[Geoserver-devel] HSQL geometry factory

Have a WAR file of a branch that works fine on one machine under Jetty and Tomcat 5.5, but under Tomcat 5.0 on another machine throws an error (below)

CRS is coming from Oracle in two different installs, but have checked and the "Well Known Text" is identical - and the HSQL resouirces should be identical - same WAR files.

Any clues would be appreciated!

Clueless, (not in Seattle)

Rob Atkinson

Register org.geotools.referencing.factory.epsg.DefaultFactory
55141 [CONFIG] org.geotools.factory.FactoryRegistry - Scan for 'DataSource' implementations:
Register org.geotools.referencing.factory.epsg.HSQLDataSource
java.util.logging.ErrorManager: 5
java.lang.NullPointerException
at java.io.Writer.write(Writer.java:126)
at org.vfny.geoserver.global.Log4JFormatter.format(Log4JFormatter.java:146)
at java.util.logging.StreamHandler.publish(StreamHandler.java:179)
at org.vfny.geoserver.global.Log4JFormatter$Stdout.publish(Log4JFormatter.java:344)
at java.util.logging.Logger.log(Logger.java:428)
at org.geotools.referencing.factory.epsg.DefaultFactory.createFactory(DefaultFactory.java:30
4)
at org.geotools.referencing.factory.epsg.DefaultFactory.createBackingStore(DefaultFactory.ja
va:325)
at org.geotools.referencing.factory.DeferredAuthorityFactory.getBackingStore(DeferredAuthori
tyFactory.java:186)
at org.geotools.referencing.factory.BufferedAuthorityFactory.isReady(BufferedAuthorityFactor
y.java:204)
at org.geotools.referencing.factory.DeferredAuthorityFactory.isReady(DeferredAuthorityFactor
y.java:174)
at org.geotools.factory.FactoryRegistry$1.filter(FactoryRegistry.java:83)
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:123)
at org.geotools.factory.FactoryRegistry.getServiceProvider(FactoryRegistry.java:228)
at org.geotools.factory.FactoryRegistry.getServiceProvider(FactoryRegistry.java:200)
at org.geotools.factory.FactoryCreator.getServiceProvider(FactoryCreator.java:90)
at org.geotools.referencing.FactoryFinder.getCoordinateOperationAuthorityFactory(FactoryFind
er.java:376)
at org.geotools.referencing.operation.AuthorityBackedFactory.getAuthorityFactory(AuthorityBa
ckedFactory.java:124)
at org.geotools.referencing.operation.AuthorityBackedFactory.isReady(AuthorityBackedFactory.
java:238)
at org.geotools.factory.FactoryRegistry$1.filter(FactoryRegistry.java:83)
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:123)
at org.geotools.factory.FactoryRegistry.getServiceProvider(FactoryRegistry.java:228)
at org.geotools.factory.FactoryRegistry.getServiceProvider(FactoryRegistry.java:200)
at org.geotools.factory.FactoryCreator.getServiceProvider(FactoryCreator.java:90)
at org.geotools.referencing.FactoryFinder.getCoordinateOperationFactory(FactoryFinder.java:2
51)
at org.geotools.referencing.CRS.<clinit>(CRS.java:283)
at org.geotools.data.oracle.OracleDataStore.determineCRS(OracleDataStore.java:376)
at org.geotools.data.oracle.OracleDataStore.getSDOGeometryAttribute(OracleDataStore.java:357
)
at org.geotools.data.oracle.OracleDataStore.buildAttributeType(OracleDataStore.java:332)
at org.geotools.data.oracle.OracleDataStore.buildSchema(OracleDataStore.java:226)
at org.geotools.data.jdbc.FeatureTypeHandler.getFeatureTypeInfo(FeatureTypeHandler.java:201)

at org.geotools.data.jdbc.FeatureTypeHandler.getSchema(FeatureTypeHandler.java:169)
at org.geotools.data.jdbc.JDBC1DataStore.getSchema(JDBC1DataStore.java:396)
at org.geotools.data.oracle.OracleDataStore.getSchema(OracleDataStore.java:665)
at org.vfny.geoserver.global.Data.loadFeatureTypes(Data.java:346)
at org.vfny.geoserver.global.Data.load(Data.java:155)
at org.vfny.geoserver.global.GeoServerPlugIn.init(GeoServerPlugIn.java:109)
at org.apache.struts.action.ActionServlet.initModulePlugIns(ActionServlet.java:869)
at org.apache.struts.action.ActionServlet.init(ActionServlet.java:336)
at javax.servlet.GenericServlet.init(GenericServlet.java:211)
at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1029)
at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:862)
at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:4013)
at org.apache.catalina.core.StandardContext.start(StandardContext.java:4357)
at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:823)
at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:807)
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:595)
at org.apache.catalina.core.StandardHostDeployer.install(StandardHostDeployer.java:277)
at org.apache.catalina.core.StandardHost.install(StandardHost.java:832)
at org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java:701)
at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:432)
at org.apache.catalina.startup.HostConfig.start(HostConfig.java:983)
at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:349)
at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1091)
at org.apache.catalina.core.StandardHost.start(StandardHost.java:789)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1083)
at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:478)
at org.apache.catalina.core.StandardService.start(StandardService.java:480)
at org.apache.catalina.core.StandardServer.start(StandardServer.java:2313)
at org.apache.catalina.startup.Catalina.start(Catalina.java:556)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:287)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:425)
55797 [CONFIG] org.geotools.referencing.factory.epsg.DefaultFactory - Connected to EPSG database "
jdbc:hsqldb:file:/C:/Tomcat 5.0/temp/Geotools/Databases/HSQL/EPSG" on HSQL Database Engine.
55813 [CONFIG] org.geotools.factory.FactoryRegistry - Scan for 'DatumFactory' implementations:
Register org.geotools.referencing.factory.GeotoolsFactory
Register org.geotools.referencing.factory.DatumAliases

Rob Atkinson wrote:

Have a WAR file of a branch that works fine on one machine under Jetty and Tomcat 5.5, but under Tomcat 5.0 on another machine throws an error (below)

CRS is coming from Oracle in two different installs, but have checked and the "Well Known Text" is identical - and the HSQL resouirces should be identical - same WAR files.

Any clues would be appreciated!

Oh - idea!

The HSQL EPSG factory requires some local file mojo to function. Is it possible that you different application containers have different ability to write to the local file system?

Jody

On 4/20/06, Jody Garnett <jgarnett@...12...> wrote:

Rob Atkinson wrote:
>
> Have a WAR file of a branch that works fine on one machine under Jetty
> and Tomcat 5.5, but under Tomcat 5.0 on another machine throws an
> error (below)
>
> CRS is coming from Oracle in two different installs, but have checked
> and the "Well Known Text" is identical - and the HSQL resouirces
> should be identical - same WAR files.
>
> Any clues would be appreciated!
Oh - idea!

The HSQL EPSG factory requires some local file mojo to function. Is it
possible that you different application containers have different
ability to write to the local file system?

Jody

I think that Jody is correct--the fact that the Writer class throws a
NullPointerException may well be indicative of a permissions issue.
The HSQL EPSG Factory does create a dir with the database, if it
doesn't already exist.

Alex