well I upgrades to 2.7 now.. now its different at the below line
final SimpleFeatureType type=
DataUtilities.createType("Antena","geom:Polygon:srid=4326,cellId:String");
I get the error below
Oct 20, 2010 12:23:20 PM
org.geotools.referencing.factory.epsg.ThreadedHsqlEpsgFactory
createBackingStore
INFO: Creating cached EPSG database version 7.5.0. This operation may take a
few minutes...
Oct 20, 2010 12:23:25 PM
org.geotools.referencing.factory.epsg.ThreadedHsqlEpsgFactory isAvailable
WARNING: Unavailable authority factory: European Petroleum Survey Group
org.opengis.referencing.FactoryException: Failed to connect to the EPSG
database.
at
org.geotools.referencing.factory.epsg.ThreadedEpsgFactory.createBackingStore(ThreadedEpsgFactory.java:420)
at
org.geotools.referencing.factory.DeferredAuthorityFactory.getBackingStore(DeferredAuthorityFactory.java:130)
at
org.geotools.referencing.factory.BufferedAuthorityFactory.isAvailable(BufferedAuthorityFactory.java:233)
at
org.geotools.referencing.factory.DeferredAuthorityFactory.isAvailable(DeferredAuthorityFactory.java:117)
at
org.geotools.factory.FactoryRegistry.isAvailable(FactoryRegistry.java:668)
at
org.geotools.factory.FactoryRegistry.isAcceptable(FactoryRegistry.java:500)
at
org.geotools.factory.FactoryRegistry$1.filter(FactoryRegistry.java:191)
at javax.imageio.spi.FilterIterator.advance(ServiceRegistry.java:793)
at javax.imageio.spi.FilterIterator.next(ServiceRegistry.java:811)
at org.geotools.resources.LazySet.addNext(LazySet.java:70)
at org.geotools.resources.LazySet.get(LazySet.java:120)
at org.geotools.resources.LazySet$Iter.next(LazySet.java:139)
at
org.geotools.referencing.factory.ManyAuthoritiesFactory.<init>(ManyAuthoritiesFactory.java:118)
at
org.geotools.referencing.DefaultAuthorityFactory.getBackingFactory(DefaultAuthorityFactory.java:116)
at
org.geotools.referencing.DefaultAuthorityFactory.<init>(DefaultAuthorityFactory.java:69)
at org.geotools.referencing.CRS.getAuthorityFactory(CRS.java:199)
at org.geotools.referencing.CRS.decode(CRS.java:437)
at org.geotools.referencing.CRS.decode(CRS.java:365)
at
org.geotools.data.DataUtilities.createAttribute(DataUtilities.java:2172)
at org.geotools.data.DataUtilities.createType(DataUtilities.java:1752)
at org.geotools.data.DataUtilities.createType(DataUtilities.java:1702)
at gui.TableFrame.resultSetToFCollection(TableFrame.java:142)
at gui.TableFrame.access$0(TableFrame.java:116)
at gui.TableFrame$1.actionPerformed(TableFrame.java:418)
at
javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1995)
at
javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2318)
at
javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:387)
at
javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:242)
at
javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:236)
at java.awt.Component.processMouseEvent(Component.java:6263)
at javax.swing.JComponent.processMouseEvent(JComponent.java:3267)
at java.awt.Component.processEvent(Component.java:6028)
at java.awt.Container.processEvent(Container.java:2041)
at java.awt.Component.dispatchEventImpl(Component.java:4630)
at java.awt.Container.dispatchEventImpl(Container.java:2099)
at java.awt.Component.dispatchEvent(Component.java:4460)
at
java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4574)
at java.awt.LightweightDispatcher.processMouseEvent(Container.java:4238)
at java.awt.LightweightDispatcher.dispatchEvent(Container.java:4168)
at java.awt.Container.dispatchEventImpl(Container.java:2085)
at java.awt.Window.dispatchEventImpl(Window.java:2475)
at java.awt.Component.dispatchEvent(Component.java:4460)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:599)
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.sql.SQLException: The database is already in use by another
process: org.hsqldb.persist.niolockf...@76ba4abc[file
=C:\WINDOWS\Temp\Geotools\Databases\HSQL\v7.5.0\EPSG.lck, exists=true,
locked=false, valid=false, fl =null]: java.lang.Exception:
java.io.IOException: The process cannot access the file because another
process has locked a portion of the file :
C:\WINDOWS\Temp\Geotools\Databases\HSQL\v7.5.0\EPSG.lck
at org.hsqldb.jdbc.Util.sqlException(Unknown Source)
at org.hsqldb.jdbc.jdbcConnection.<init>(Unknown Source)
at org.hsqldb.jdbcDriver.getConnection(Unknown Source)
at org.hsqldb.jdbc.jdbcDataSource.getConnection(Unknown Source)
at org.hsqldb.jdbc.jdbcDataSource.getConnection(Unknown Source)
at
org.geotools.referencing.factory.epsg.ThreadedHsqlEpsgFactory.createBackingStore(ThreadedHsqlEpsgFactory.java:322)
at
org.geotools.referencing.factory.epsg.ThreadedEpsgFactory.createBackingStore0(ThreadedEpsgFactory.java:376)
at
org.geotools.referencing.factory.epsg.ThreadedEpsgFactory.createBackingStore(ThreadedEpsgFactory.java:413)
... 48 more
and later when the we reach the viewing of SimpleFeatureCollection this
occurs.
this.showMap(map); // this inside a constructor of a class extended by
JMapFrame
java.lang.ClassCastException: java.lang.String cannot be cast to
com.vividsolutions.jts.geom.Geometry
at
org.geotools.data.collection.CollectionDataStore.getBoundsInternal(CollectionDataStore.java:162)
at
org.geotools.data.collection.CollectionDataStore.getBounds(CollectionDataStore.java:143)
at
org.geotools.data.AbstractFeatureSource.getBounds(AbstractFeatureSource.java:308)
at
org.geotools.data.AbstractFeatureSource.getBounds(AbstractFeatureSource.java:276)
at
org.geotools.map.FeatureLayer.getBounds(FeatureLayer.java:189)84097failed
--- sucess :17775 -- Collection has:17775
at org.geotools.map.MapContext.getLayerBounds(MapContext.java:463)
at
org.geotools.map.DefaultMapContext.getViewport(DefaultMapContext.java:524)
at org.geotools.map.MapContent.addMapBoundsListener(MapContent.java:628)
at org.geotools.map.MapContext.addMapBoundsListener(MapContext.java:596)
at org.geotools.swing.JMapPane.setMapContext(JMapPane.java:460)
at org.geotools.swing.JMapFrame.<init>(JMapFrame.java:171)
at org.geotools.swing.JMapFrame.<init>(JMapFrame.java:151)
at org.geotools.swing.JMapFrame.showMap(JMapFrame.java:122)
at gui.GtMapFrame.<init>(GtMapFrame.java:33)
at gui.TableFrame.resultSetToFCollection(TableFrame.java:202)
at gui.TableFrame.access$0(TableFrame.java:116)
at gui.TableFrame$1.actionPerformed(TableFrame.java:418)
at
javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1995)
at
javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2318)
at
javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:387)
at
javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:242)
at
javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:236)
at java.awt.Component.processMouseEvent(Component.java:6263)
at javax.swing.JComponent.processMouseEvent(JComponent.java:3267)
at java.awt.Component.processEvent(Component.java:6028)
at java.awt.Container.processEvent(Container.java:2041)
at java.awt.Component.dispatchEventImpl(Component.java:4630)
at java.awt.Container.dispatchEventImpl(Container.java:2099)
at java.awt.Component.dispatchEvent(Component.java:4460)
at
java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4574)
at java.awt.LightweightDispatcher.processMouseEvent(Container.java:4238)
at java.awt.LightweightDispatcher.dispatchEvent(Container.java:4168)
at java.awt.Container.dispatchEventImpl(Container.java:2085)
at java.awt.Window.dispatchEventImpl(Window.java:2475)
at java.awt.Component.dispatchEvent(Component.java:4460)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:599)
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)
What Could I be doing wrong here, I checked the coordinates in my features ,
they are ok.
Im really having a hard time getting started with GT
regards,
Imran
--
View this message in context:
http://osgeo-org.1803224.n2.nabble.com/Failed-to-connect-to-the-EPSG-database-tp5638025p5653755.html
Sent from the geotools-gt2-users mailing list archive at Nabble.com.
------------------------------------------------------------------------------
Download new Adobe(R) Flash(R) Builder(TM) 4
The new Adobe(R) Flex(R) 4 and Flash(R) Builder(TM) 4 (formerly
Flex(R) Builder(TM)) enable the development of rich applications that run
across multiple browsers and platforms. Download your free trials today!
http://p.sf.net/sfu/adobe-dev2dev
_______________________________________________
Geotools-gt2-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users