[Geoserver-users] GeoServer 1.7.3 startup problem

Hi All,

I try to set up 1.7.3 after successfully using 1.7.2

It prints the following errors:
Mar 13, 2009 4:49:34 PM java.util.prefs.FileSystemPreferences$2 run
WARNING: Couldn't create user preferences directory. User preferences
are unusable.
Mar 13, 2009 4:49:34 PM java.util.prefs.FileSystemPreferences$2 run
WARNING: java.io.IOException: No such file or director
...
2009-03-13 16:49:28,719 DEBUG [data.director] - Found the following file capable
factories: [class org.geotools.data.wfs.WFSDataStoreFactory, class org.geotools
.data.shapefile.ShapefileDataStoreFactory]
2009-03-13 16:49:28,735 DEBUG [data.director] - Factory class
org.geotools.data.wfs.WFSDataStoreFactory reports it can process
parameters, but then fails during creation
java.lang.ClassCastException:
sun.net.www.protocol.file.FileURLConnection cannot be cast to
java.net.HttpURLConnection
        at org.geotools.data.wfs.protocol.http.SimpleHttpProtocol.openConnection(SimpleHttpProtocol.java:106)
        at org.geotools.data.wfs.protocol.http.SimpleHttpProtocol.issueGet(SimpleHttpProtocol.java:84)
        at org.geotools.data.wfs.WFSDataStoreFactory.loadCapabilities(WFSDataStoreFactory.java:674)
        at org.geotools.data.wfs.WFSDataStoreFactory.createDataStore(WFSDataStoreFactory.java:348)
        at org.geotools.data.wfs.WFSDataStoreFactory.createDataStore(WFSDataStoreFactory.java:115)
        at org.geotools.data.directory.FactoryAdapter.getStore(FactoryAdapter.java:79)
        at org.geotools.data.directory.DirectoryTypeCache.refreshCacheContents(DirectoryTypeCache.java:246)
        at org.geotools.data.directory.DirectoryTypeCache.updateCache(DirectoryTypeCache.java:191)
        at org.geotools.data.directory.DirectoryTypeCache.getTypeNames(DirectoryTypeCache.java:144)
        at org.geotools.data.directory.DirectoryDataStore.getTypeNames(DirectoryDataStore.java:101)
        at org.vfny.geoserver.util.DataStoreUtils.getDataStore(DataStoreUtils.java:80)
        at org.geoserver.catalog.ResourcePool.getDataStore(ResourcePool.java:172)
        at org.geoserver.catalog.impl.DataStoreInfoImpl.getDataStore(DataStoreInfoImpl.java:29)
        at org.geoserver.catalog.util.LegacyCatalogImporter.importDataStores(LegacyCatalogImporter.java:356)
        at org.geoserver.catalog.util.LegacyCatalogImporter.importCatalog(LegacyCatalogImporter.java:301)
        at org.geoserver.catalog.util.LegacyCatalogImporter.imprt(LegacyCatalogImporter.java:151)
        at org.geoserver.config.GeoServerLoader.initialize(GeoServerLoader.java:119)
        at org.geoserver.config.GeoServerLoader.postProcessBeforeInitialization(GeoServerLoader.java:81)
...
[similar several times for built-in demo data]

Is it something severe?

Thank you in advance.
Best regards: Balázs Bámer

Hi Balázs,

Does the server actually startup and operate normally? Or does this error prevent start up and/or prevent any layers from being set up properly?

It seems to me that the problem lies in the WFSDataStore reporting it can handle some url's when it can't. This is undoubtedly due to the way things work now with the data directory store. Andrea, thoughts?

-Justin

Balázs Bámer wrote:

Hi All,

I try to set up 1.7.3 after successfully using 1.7.2

It prints the following errors:
Mar 13, 2009 4:49:34 PM java.util.prefs.FileSystemPreferences$2 run
WARNING: Couldn't create user preferences directory. User preferences
are unusable.
Mar 13, 2009 4:49:34 PM java.util.prefs.FileSystemPreferences$2 run
WARNING: java.io.IOException: No such file or director
...
2009-03-13 16:49:28,719 DEBUG [data.director] - Found the following file capable
factories: [class org.geotools.data.wfs.WFSDataStoreFactory, class org.geotools
.data.shapefile.ShapefileDataStoreFactory]
2009-03-13 16:49:28,735 DEBUG [data.director] - Factory class
org.geotools.data.wfs.WFSDataStoreFactory reports it can process
parameters, but then fails during creation
java.lang.ClassCastException:
sun.net.www.protocol.file.FileURLConnection cannot be cast to
java.net.HttpURLConnection
        at org.geotools.data.wfs.protocol.http.SimpleHttpProtocol.openConnection(SimpleHttpProtocol.java:106)
        at org.geotools.data.wfs.protocol.http.SimpleHttpProtocol.issueGet(SimpleHttpProtocol.java:84)
        at org.geotools.data.wfs.WFSDataStoreFactory.loadCapabilities(WFSDataStoreFactory.java:674)
        at org.geotools.data.wfs.WFSDataStoreFactory.createDataStore(WFSDataStoreFactory.java:348)
        at org.geotools.data.wfs.WFSDataStoreFactory.createDataStore(WFSDataStoreFactory.java:115)
        at org.geotools.data.directory.FactoryAdapter.getStore(FactoryAdapter.java:79)
        at org.geotools.data.directory.DirectoryTypeCache.refreshCacheContents(DirectoryTypeCache.java:246)
        at org.geotools.data.directory.DirectoryTypeCache.updateCache(DirectoryTypeCache.java:191)
        at org.geotools.data.directory.DirectoryTypeCache.getTypeNames(DirectoryTypeCache.java:144)
        at org.geotools.data.directory.DirectoryDataStore.getTypeNames(DirectoryDataStore.java:101)
        at org.vfny.geoserver.util.DataStoreUtils.getDataStore(DataStoreUtils.java:80)
        at org.geoserver.catalog.ResourcePool.getDataStore(ResourcePool.java:172)
        at org.geoserver.catalog.impl.DataStoreInfoImpl.getDataStore(DataStoreInfoImpl.java:29)
        at org.geoserver.catalog.util.LegacyCatalogImporter.importDataStores(LegacyCatalogImporter.java:356)
        at org.geoserver.catalog.util.LegacyCatalogImporter.importCatalog(LegacyCatalogImporter.java:301)
        at org.geoserver.catalog.util.LegacyCatalogImporter.imprt(LegacyCatalogImporter.java:151)
        at org.geoserver.config.GeoServerLoader.initialize(GeoServerLoader.java:119)
        at org.geoserver.config.GeoServerLoader.postProcessBeforeInitialization(GeoServerLoader.java:81)
...
[similar several times for built-in demo data]

Is it something severe?

Thank you in advance.
Best regards: Balázs Bámer

------------------------------------------------------------------------------
Apps built with the Adobe(R) Flex(R) framework and Flex Builder(TM) are
powering Web 2.0 with engaging, cross-platform capabilities. Quickly and
easily build your RIAs with Flex Builder, the Eclipse(TM)based development
software that enables intelligent coding and step-through debugging.
Download the free 60 day trial. http://p.sf.net/sfu/www-adobe-com
_______________________________________________
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users

--
Justin Deoliveira
OpenGeo - http://opengeo.org
Enterprise support for open source geospatial.

Justin Deoliveira ha scritto:

Hi Balázs,

Does the server actually startup and operate normally? Or does this error prevent start up and/or prevent any layers from being set up properly?

It seems to me that the problem lies in the WFSDataStore reporting it can handle some url's when it can't. This is undoubtedly due to the way things work now with the data directory store. Andrea, thoughts?

Yeah, the WFSDataStore claims to be able to handle a URL pointing
to a local resource, but then bombs out when trying to actually
open it (no wonder, it's not a WFS server).
The DirectoryDataStore logs this failure at the DEBUG level only,
so it's not visible unless you enable the VERBOSE or GEOTOOLS_DEVELOPER
logging rofiles, and that cannot prevent startup by itself, thought is of course annoying. Opened a jira to have the WFS datastore behave itself:
http://jira.codehaus.org/browse/GEOT-2387

If GeoServer does not start up, the error message will be most likely
visible even at the normal log level configuration.
Balazs, if your GeoServer does not start, can you post _full_ startup
logs (.gz or .zip compressed please) to the ml (or by private mail if
they are too big) so that we can see if there is any significant
error report?
Cheers
Andrea

--
Andrea Aime
OpenGeo - http://opengeo.org
Expert service straight from the developers.