Skip to Main Content

Integration

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Interested in getting your voice heard by members of the Developer Marketing team at Oracle? Check out this post for AppDev or this post for AI focus group information.

gdal postgis connection error

Farid CherJul 6 2013 — edited Jul 9 2013

Hi Forum, I run the mapbuilder with this line of command to add a postgiss layer to mapbuilder.

java -cp .\mapbuilder.jar;"C:\Program Files (x86)\GDAL\java\gdal.jar"; oracle.mapviewer.builder.MapBuilder

I tried to create a Custom Geometry Theme (using the built-in ogr provider),and then I set the value of datasource to

PG:dbname='postgis' host='localhost'  port='5432' user='postgres' password='123456'  tables=table_name

it produced these errors:

Native library load failed.

java.lang.UnsatisfiedLinkError: no ogrjni in java.library.path

Exception occurred during event dispatching:

java.lang.UnsatisfiedLinkError: org.gdal.ogr.ogrJNI.RegisterAll()V

        at org.gdal.ogr.ogrJNI.RegisterAll(Native Method)

        at org.gdal.ogr.ogr.RegisterAll(ogr.java:115)

        at oracle.sdovis.OGRDataProvider.getAttributeList(OGRDataProvider.java:3

48)

        at oracle.mapviewer.builder.wizard.theme.customgeom.CustomGeomThemeWizar

d.getProviderAttributes(CustomGeomThemeWizard.java:472)

        at oracle.mapviewer.builder.wizard.theme.customgeom.CustomGeomThemeWizar

d.wizardSelectionChanged(CustomGeomThemeWizard.java:269)

        at oracle.bali.ewt.wizard.BaseWizard.processWizardEvent(Unknown Source)

        at oracle.bali.ewt.wizard.BaseWizard.processEventImpl(Unknown Source)

        at oracle.bali.ewt.LWComponent.processEvent(Unknown Source)

        at oracle.bali.ewt.wizard.BaseWizard.selectPage(Unknown Source)

        at oracle.bali.ewt.wizard.BaseWizard.doNext(Unknown Source)

        at oracle.bali.ewt.wizard.BaseWizard$Action.actionPerformed(Unknown Sour

ce)

        at javax.swing.AbstractButton.fireActionPerformed(Unknown Source)

        at javax.swing.AbstractButton$Handler.actionPerformed(Unknown Source)

        at javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source)

        at javax.swing.DefaultButtonModel.setPressed(Unknown Source)

        at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(Unknown Sour

ce)

        at java.awt.Component.processMouseEvent(Unknown Source)

        at javax.swing.JComponent.processMouseEvent(Unknown Source)

        at java.awt.Component.processEvent(Unknown Source)

        at java.awt.Container.processEvent(Unknown Source)

        at java.awt.Component.dispatchEventImpl(Unknown Source)

        at java.awt.Container.dispatchEventImpl(Unknown Source)

        at java.awt.Component.dispatchEvent(Unknown Source)

        at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)

        at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source)

        at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)

        at java.awt.Container.dispatchEventImpl(Unknown Source)

        at java.awt.Window.dispatchEventImpl(Unknown Source)

        at java.awt.Component.dispatchEvent(Unknown Source)

        at java.awt.EventQueue.dispatchEvent(Unknown Source)

        at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)

        at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)

        at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)

        at java.awt.Dialog$1.run(Unknown Source)

        at java.awt.Dialog$3.run(Unknown Source)

        at java.security.AccessController.doPrivileged(Native Method)

        at java.awt.Dialog.show(Unknown Source)

        at java.awt.Component.show(Unknown Source)

        at java.awt.Component.setVisible(Unknown Source)

        at java.awt.Window.setVisible(Unknown Source)

        at java.awt.Dialog.setVisible(Unknown Source)

        at oracle.bali.ewt.wizard.WizardDialog.runDialog(Unknown Source)

        at oracle.bali.ewt.wizard.WizardDialog.runDialog(Unknown Source)

        at oracle.mapviewer.builder.wizard.theme.customgeom.CustomGeomThemeWizar

d.<init>(CustomGeomThemeWizard.java:169)

        at oracle.mapviewer.builder.MapViewerNavigatorEvents.newCustomGeomTheme_

actionPerformed(MapViewerNavigatorEvents.java:1480)

        at oracle.mapviewer.builder.MapViewerNavigatorEvents$16.actionPerformed(

MapViewerNavigatorEvents.java:2966)

        at javax.swing.AbstractButton.fireActionPerformed(Unknown Source)

        at javax.swing.AbstractButton$Handler.actionPerformed(Unknown Source)

        at javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source)

        at javax.swing.DefaultButtonModel.setPressed(Unknown Source)

        at javax.swing.AbstractButton.doClick(Unknown Source)

        at javax.swing.plaf.basic.BasicMenuItemUI.doClick(Unknown Source)

        at javax.swing.plaf.basic.BasicMenuItemUI$Handler.mouseReleased(Unknown

Source)

        at java.awt.Component.processMouseEvent(Unknown Source)

        at javax.swing.JComponent.processMouseEvent(Unknown Source)

        at java.awt.Component.processEvent(Unknown Source)

        at java.awt.Container.processEvent(Unknown Source)

        at java.awt.Component.dispatchEventImpl(Unknown Source)

        at java.awt.Container.dispatchEventImpl(Unknown Source)

        at java.awt.Component.dispatchEvent(Unknown Source)

        at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)

        at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source)

        at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)

        at java.awt.Container.dispatchEventImpl(Unknown Source)

        at java.awt.Window.dispatchEventImpl(Unknown Source)

        at java.awt.Component.dispatchEvent(Unknown Source)

        at java.awt.EventQueue.dispatchEvent(Unknown Source)

        at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)

        at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)

        at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)

        at java.awt.EventDispatchThread.pumpEvents(Unknown Source)

        at java.awt.EventDispatchThread.pumpEvents(Unknown Source)

        at java.awt.EventDispatchThread.run(Unknown Source)

This post has been answered by Jpaiva-Oracle on Jul 8 2013
Jump to Answer

Comments

Locked Post
New comments cannot be posted to this locked post.

Post Details

Locked on Aug 6 2013
Added on Jul 6 2013
2 comments
1,097 views