Hi I founded an error when i load a map from a mysql table. When I use the
info tool it generates an exception.

This is the list of errors:


Exception in thread "AWT-EventQueue-0" java.lang.IllegalStateException:
java.lang.RuntimeException: java.io.IOException: Error occurred trying to
reproject data
        at org.geotools.swing.tool.InfoTool.onMouseClicked(InfoTool.java:180)
        at
org.geotools.swing.tool.MapToolManager.mouseClicked(MapToolManager.java:134)
        at 
java.awt.AWTEventMulticaster.mouseClicked(AWTEventMulticaster.java:253)
        at 
java.awt.AWTEventMulticaster.mouseClicked(AWTEventMulticaster.java:252)
        at java.awt.Component.processMouseEvent(Component.java:6291)
        at javax.swing.JComponent.processMouseEvent(JComponent.java:3267)
        at java.awt.Component.processEvent(Component.java:6053)
        at java.awt.Container.processEvent(Container.java:2041)
        at java.awt.Component.dispatchEventImpl(Component.java:4651)
        at java.awt.Container.dispatchEventImpl(Container.java:2099)
        at java.awt.Component.dispatchEvent(Component.java:4481)
        at 
java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4577)
        at java.awt.LightweightDispatcher.processMouseEvent(Container.java:4247)
        at java.awt.LightweightDispatcher.dispatchEvent(Container.java:4168)
        at java.awt.Container.dispatchEventImpl(Container.java:2085)
        at java.awt.Window.dispatchEventImpl(Window.java:2478)
        at java.awt.Component.dispatchEvent(Component.java:4481)
        at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:643)
        at java.awt.EventQueue.access$000(EventQueue.java:84)
        at java.awt.EventQueue$1.run(EventQueue.java:602)
        at java.awt.EventQueue$1.run(EventQueue.java:600)
        at java.security.AccessController.doPrivileged(Native Method)
        at
java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:87)
        at
java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:98)
        at java.awt.EventQueue$2.run(EventQueue.java:616)
        at java.awt.EventQueue$2.run(EventQueue.java:614)
        at java.security.AccessController.doPrivileged(Native Method)
        at
java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:87)
        at java.awt.EventQueue.dispatchEvent(EventQueue.java:613)
        at
java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:269)
        at
java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:184)
        at
java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:174)
        at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:169)
        at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:161)
        at java.awt.EventDispatchThread.run(EventDispatchThread.java:122)
Caused by: java.lang.RuntimeException: java.io.IOException: Error occurred
trying to reproject data
        at
org.geotools.data.store.ContentFeatureCollection.features(ContentFeatureCollection.java:217)
        at
org.geotools.data.store.ContentFeatureCollection.features(ContentFeatureCollection.java:67)
        at
org.geotools.data.CachingFeatureSource.fillCache(CachingFeatureSource.java:102)
        at
org.geotools.data.CachingFeatureSource.getFeatures(CachingFeatureSource.java:163)
        at
org.geotools.data.CachingFeatureSource.getFeatures(CachingFeatureSource.java:62)
        at
org.geotools.swing.tool.VectorLayerHelper.getInfo(VectorLayerHelper.java:152)
        at
org.geotools.swing.tool.VectorLayerHelper.getInfo(VectorLayerHelper.java:62)
        at org.geotools.swing.tool.InfoTool.onMouseClicked(InfoTool.java:178)
        ... 34 more
Caused by: java.io.IOException: Error occurred trying to reproject data
        at
org.geotools.data.store.ContentFeatureSource.getReader(ContentFeatureSource.java:505)
        at
org.geotools.data.store.ContentFeatureCollection.features(ContentFeatureCollection.java:214)
        ... 41 more
Caused by: java.lang.IllegalArgumentException: CoordinateSystem GEOGCS["WGS
84", 
  DATUM["World Geodetic System 1984", 
    SPHEROID["WGS 84", 6378137.0, 298.257223563, AUTHORITY["EPSG","7030"]], 
    AUTHORITY["EPSG","6326"]], 
  PRIMEM["Greenwich", 0.0, AUTHORITY["EPSG","8901"]], 
  UNIT["degree", 0.017453292519943295], 
  AXIS["Geodetic latitude", NORTH], 
  AXIS["Geodetic longitude", EAST], 
  AUTHORITY["EPSG","4326"]] already used (check before using wrapper)
        at
org.geotools.data.crs.ReprojectFeatureReader.<init>(ReprojectFeatureReader.java:116)
        at
org.geotools.data.store.ContentFeatureSource.getReader(ContentFeatureSource.java:500)
        ... 42 more
Refilling cache from Query:
   feature type: null
   filter: [ ogc_geom bbox POLYGON ((-9058.262990581341 -17333.582493747534,
-9058.262990581341 -17325.647190063093, -9050.327686896897
-17325.647190063093, -9050.327686896897 -17333.582493747534,
-9058.262990581341 -17333.582493747534)) ]
   [properties:  ALL ]
Exception in thread "AWT-EventQueue-0" java.lang.IllegalStateException:
java.lang.RuntimeException: java.io.IOException: Error occurred trying to
reproject data
        at org.geotools.swing.tool.InfoTool.onMouseClicked(InfoTool.java:180)
        at
org.geotools.swing.tool.MapToolManager.mouseClicked(MapToolManager.java:134)
        at 
java.awt.AWTEventMulticaster.mouseClicked(AWTEventMulticaster.java:253)
        at 
java.awt.AWTEventMulticaster.mouseClicked(AWTEventMulticaster.java:252)
        at java.awt.Component.processMouseEvent(Component.java:6291)
        at javax.swing.JComponent.processMouseEvent(JComponent.java:3267)
        at java.awt.Component.processEvent(Component.java:6053)
        at java.awt.Container.processEvent(Container.java:2041)
        at java.awt.Component.dispatchEventImpl(Component.java:4651)
        at java.awt.Container.dispatchEventImpl(Container.java:2099)
        at java.awt.Component.dispatchEvent(Component.java:4481)
        at 
java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4577)
        at java.awt.LightweightDispatcher.processMouseEvent(Container.java:4247)
        at java.awt.LightweightDispatcher.dispatchEvent(Container.java:4168)
        at java.awt.Container.dispatchEventImpl(Container.java:2085)
        at java.awt.Window.dispatchEventImpl(Window.java:2478)
        at java.awt.Component.dispatchEvent(Component.java:4481)
        at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:643)
        at java.awt.EventQueue.access$000(EventQueue.java:84)
        at java.awt.EventQueue$1.run(EventQueue.java:602)
        at java.awt.EventQueue$1.run(EventQueue.java:600)
        at java.security.AccessController.doPrivileged(Native Method)
        at
java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:87)
        at
java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:98)
        at java.awt.EventQueue$2.run(EventQueue.java:616)
        at java.awt.EventQueue$2.run(EventQueue.java:614)
        at java.security.AccessController.doPrivileged(Native Method)
        at
java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:87)
        at java.awt.EventQueue.dispatchEvent(EventQueue.java:613)
        at
java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:269)
        at
java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:184)
        at
java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:174)
        at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:169)
        at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:161)
        at java.awt.EventDispatchThread.run(EventDispatchThread.java:122)
Caused by: java.lang.RuntimeException: java.io.IOException: Error occurred
trying to reproject data
        at
org.geotools.data.store.ContentFeatureCollection.features(ContentFeatureCollection.java:217)
        at
org.geotools.data.store.ContentFeatureCollection.features(ContentFeatureCollection.java:67)
        at
org.geotools.data.CachingFeatureSource.fillCache(CachingFeatureSource.java:102)
        at
org.geotools.data.CachingFeatureSource.getFeatures(CachingFeatureSource.java:163)
        at
org.geotools.data.CachingFeatureSource.getFeatures(CachingFeatureSource.java:62)
        at
org.geotools.swing.tool.VectorLayerHelper.getInfo(VectorLayerHelper.java:152)
        at
org.geotools.swing.tool.VectorLayerHelper.getInfo(VectorLayerHelper.java:62)
        at org.geotools.swing.tool.InfoTool.onMouseClicked(InfoTool.java:178)
        ... 34 more
Caused by: java.io.IOException: Error occurred trying to reproject data
        at
org.geotools.data.store.ContentFeatureSource.getReader(ContentFeatureSource.java:505)
        at
org.geotools.data.store.ContentFeatureCollection.features(ContentFeatureCollection.java:214)
        ... 41 more
Caused by: java.lang.IllegalArgumentException: CoordinateSystem GEOGCS["WGS
84", 
  DATUM["World Geodetic System 1984", 
    SPHEROID["WGS 84", 6378137.0, 298.257223563, AUTHORITY["EPSG","7030"]], 
    AUTHORITY["EPSG","6326"]], 
  PRIMEM["Greenwich", 0.0, AUTHORITY["EPSG","8901"]], 
  UNIT["degree", 0.017453292519943295], 
  AXIS["Geodetic latitude", NORTH], 
  AXIS["Geodetic longitude", EAST], 
  AUTHORITY["EPSG","4326"]] already used (check before using wrapper)
        at
org.geotools.data.crs.ReprojectFeatureReader.<init>(ReprojectFeatureReader.java:116)
        at
org.geotools.data.store.ContentFeatureSource.getReader(ContentFeatureSource.java:500)
        ... 42 more


--
View this message in context: 
http://osgeo-org.1803224.n2.nabble.com/Info-tool-null-pointer-Exception-tp6617705p6617705.html
Sent from the geotools-gt2-users mailing list archive at Nabble.com.

------------------------------------------------------------------------------
Storage Efficiency Calculator
This modeling tool is based on patent-pending intellectual property that
has been used successfully in hundreds of IBM storage optimization engage-
ments, worldwide.  Store less, Store more with what you own, Move data to 
the right place. Try It Now! http://www.accelacomm.com/jaw/sfnl/114/51427378/
_______________________________________________
Geotools-gt2-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users

Reply via email to