This discussion is archived
2 Replies Latest reply: Jul 8, 2013 10:25 PM by Fa RSS

gdal postgis connection error

Fa Newbie
Currently Being Moderated

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)

Legend

  • Correct Answers - 10 points
  • Helpful Answers - 5 points