On Fri, Oct 15, 2010 at 10:15 AM, Imran Rajjad <[email protected]> wrote:
> Hi list,
>
> I am new to Geotools, I am getting the following exception at the line
>
> final  SimpleFeatureType Type=
> DataUtilities.createType("Antena","location:Polygon:srid=4326,cellId:String");
>
> I am using Gt 2.6, any idea or reason behind this? I followed this from 
> tutorial
>
>
> Oct 15, 2010 1:12:33 PM
> org.geotools.referencing.factory.epsg.ThreadedPostgreSQLEpsgFactory
> 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:430)
>        at 
> org.geotools.referencing.factory.DeferredAuthorityFactory.getBackingStore(DeferredAuthorityFactory.java:132)
>        at 
> org.geotools.referencing.factory.BufferedAuthorityFactory.isAvailable(BufferedAuthorityFactory.java:233)
>        at 
> org.geotools.referencing.factory.DeferredAuthorityFactory.isAvailable(DeferredAuthorityFactory.java:119)
>        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.<init>(ServiceRegistry.java:787)
>        at 
> javax.imageio.spi.ServiceRegistry.getServiceProviders(ServiceRegistry.java:491)
>        at 
> org.geotools.factory.FactoryRegistry.getServiceProviders(FactoryRegistry.java:196)
>        at 
> org.geotools.referencing.ReferencingFactoryFinder.getFactories(ReferencingFactoryFinder.java:176)
>        at 
> org.geotools.referencing.ReferencingFactoryFinder.getCRSAuthorityFactories(ReferencingFactoryFinder.java:451)
>        at 
> org.geotools.referencing.DefaultAuthorityFactory.getBackingFactory(DefaultAuthorityFactory.java:88)
>        at 
> org.geotools.referencing.DefaultAuthorityFactory.<init>(DefaultAuthorityFactory.java:69)
>        at org.geotools.referencing.CRS.getAuthorityFactory(CRS.java:197)
>        at org.geotools.referencing.CRS.decode(CRS.java:435)
>        at org.geotools.referencing.CRS.decode(CRS.java:363)
>        at 
> org.geotools.data.DataUtilities.createAttribute(DataUtilities.java:1752)
>        at org.geotools.data.DataUtilities.createType(DataUtilities.java:1396)
>        at org.geotools.data.DataUtilities.createType(DataUtilities.java:1347)
>        at core.Antena.getGeomFeature(Antena.java:74)

This is all you get? No extra parts in the stack trace?
Hum... do you have gt-hsql-epsg or gt-h2-espg in your classpath?

Cheers
Andrea

-----------------------------------------------------
Ing. Andrea Aime
Senior Software Engineer

GeoSolutions S.A.S.
Via Poggio alle Viti 1187
55054  Massarosa (LU)
Italy

phone: +39 0584962313
fax:     +39 0584962313

http://www.geo-solutions.it
http://geo-solutions.blogspot.com/
http://www.linkedin.com/in/andreaaime
http://twitter.com/geowolf

-----------------------------------------------------

------------------------------------------------------------------------------
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

Reply via email to