ClassCast Exception after restarting geoserver using the community schema
-------------------------------------------------------------------------

                 Key: GEOS-1903
                 URL: http://jira.codehaus.org/browse/GEOS-1903
             Project: GeoServer
          Issue Type: Bug
          Components: Community schema
            Reporter: Stefan Hansen
            Assignee: Andrea Aime


We were doing some experiments today with a Geoserver running the community 
module. At the beginning we had one complex datastore configured and serving 
one featuretype.

When I configure a complex data store (siteLocation) usually everything works 
fine, until Geoserver is restarted. After the restart the datastore doesn't 
work anymore and deleting it and reconfiguring doesn't help. Neither does 
restarting Geoserver again.

To get a working Geoserver again the only option I found so far, is replacing 
the data directory with a fresh copy. Maybe it gets somehow corrupt??

Here is a snippet from geoserver.log. It shows the logs when it tries to 
restart geoserver.

 ERROR [data.jdbc] - There's code using JDBC based datastore and not disposing 
them. This may lead to temporary loss of database connections. Please make sure 
all data access code calls DataStore.dispose() before freeing all references to 
it
 ERROR [data.jdbc] - There's code using JDBC based datastore and not disposing 
them. This may lead to temporary loss of database connections. Please make sure 
all data access code calls DataStore.dispose() before freeing all references to 
it
 ERROR [data.jdbc] - There's code using JDBC based datastore and not disposing 
them. This may lead to temporary loss of database connections. Please make sure 
all data access code calls DataStore.dispose() before freeing all references to 
it
 ERROR [data.jdbc] - There's code using JDBC based datastore and not disposing 
them. This may lead to temporary loss of database connections. Please make sure 
all data access code calls DataStore.dispose() before freeing all references to 
it
 ERROR [data.jdbc] - There's code using JDBC based datastore and not disposing 
them. This may lead to temporary loss of database connections. Please make sure 
all data access code calls DataStore.dispose() before freeing all references to 
it
 ERROR [data.jdbc] - There's code using JDBC based datastore and not disposing 
them. This may lead to temporary loss of database connections. Please make sure 
all data access code calls DataStore.dispose() before freeing all references to 
it
 ERROR [data.jdbc] - There's code using JDBC based datastore and not disposing 
them. This may lead to temporary loss of database connections. Please make sure 
all data access code calls DataStore.dispose() before freeing all references to 
it
 ERROR [data.jdbc] - There's code using JDBC based datastore and not disposing 
them. This may lead to temporary loss of database connections. Please make sure 
all data access code calls DataStore.dispose() before freeing all references to 
it
 ERROR [data.jdbc] - There's code using JDBC based datastore and not disposing 
them. This may lead to temporary loss of database connections. Please make sure 
all data access code calls DataStore.dispose() before freeing all references to 
it
 ERROR [data.jdbc] - There's code using JDBC based datastore and not disposing 
them. This may lead to temporary loss of database connections. Please make sure 
all data access code calls DataStore.dispose() before freeing all references to 
it
2008-05-02 15:51:55,267 INFO [geoserver.global] - StdOut logging enabled.  Log 
file also output to 
'C:\stuff\DuckHawk\AWDIP\datadir\geoserver_conf\logs\geoserver.log'
2008-05-02 15:51:55,847 INFO [geoserver.global] - Loading feature type 
'bom:::SiteLocation' (layer 1/1)
2008-05-02 15:52:00,407 WARN [geotools.xml] - Using the provided absolute URI 
as the location for namespace 'http://www.opengis.net/om/1.0', as it couldn't 
be resolved for the provided location path 
'http://schemas.opengis.net/om/1.0.0/om.xsd'
2008-05-02 15:52:00,940 WARN [geotools.xml] - Using the provided absolute URI 
as the location for namespace 'http://www.opengis.net/om/1.0', as it couldn't 
be resolved for the provided location path './observation.xsd'
2008-05-02 15:52:00,956 WARN [geotools.xml] - Using the provided absolute URI 
as the location for namespace 'http://www.opengis.net/sampling/1.0', as it 
couldn't be resolved for the provided location path 
'http://schemas.opengis.net/sampling/1.0.0/sampling.xsd'
2008-05-02 15:52:01,206 WARN [geotools.xml] - Using the provided absolute URI 
as the location for namespace 'http://www.opengis.net/sampling/1.0', as it 
couldn't be resolved for the provided location path './samplingManifold.xsd'
2008-05-02 15:52:01,206 WARN [geotools.xml] - Using the provided absolute URI 
as the location for namespace 'http://www.opengis.net/sampling/1.0', as it 
couldn't be resolved for the provided location path './specimen.xsd'
2008-05-02 15:52:01,206 WARN [geotools.xml] - Using the provided absolute URI 
as the location for namespace 'http://www.opengis.net/cv/0.2.1', as it couldn't 
be resolved for the provided location path 
'http://bp.schemas.opengis.net/06-188r1/cv/0.2.1/cv.xsd'
2008-05-02 15:52:01,708 WARN [geotools.xml] - Using the provided absolute URI 
as the location for namespace 'http://www.opengis.net/cv/0.2.1', as it couldn't 
be resolved for the provided location path './compactDiscreteCoverage.xsd'
2008-05-02 15:52:01,708 WARN [geotools.xml] - Using the provided absolute URI 
as the location for namespace 'http://www.opengis.net/swe/1.0.1', as it 
couldn't be resolved for the provided location path 
'http://schemas.opengis.net/sweCommon/1.0.1/swe.xsd'
2008-05-02 15:52:01,943 WARN [geotools.xml] - Using the provided absolute URI 
as the location for namespace 'http://www.opengis.net/swe/1.0.1', as it 
couldn't be resolved for the provided location path './positionTypes.xsd'
2008-05-02 15:52:01,943 WARN [geotools.xml] - Using the provided absolute URI 
as the location for namespace 'http://www.opengis.net/swe/1.0.1', as it 
couldn't be resolved for the provided location path './curveTypes.xsd'
2008-05-02 15:52:01,958 WARN [geotools.xml] - Using the provided absolute URI 
as the location for namespace 'http://www.opengis.net/swe/1.0.1', as it 
couldn't be resolved for the provided location path './data.xsd'
2008-05-02 15:52:01,958 WARN [geotools.xml] - Using the provided absolute URI 
as the location for namespace 'http://www.opengis.net/swe/1.0.1', as it 
couldn't be resolved for the provided location path './temporalAggregates.xsd'
2008-05-02 15:52:01,958 WARN [geotools.xml] - Using the provided absolute URI 
as the location for namespace 'http://www.opengis.net/swe/1.0.1', as it 
couldn't be resolved for the provided location path './phenomenon.xsd'
2008-05-02 15:52:01,958 WARN [geotools.xml] - Using the provided absolute URI 
as the location for namespace 'http://www.opengis.net/swe/1.0.1', as it 
couldn't be resolved for the provided location path './xmlData.xsd'
2008-05-02 15:52:03,698 WARN [complex.config] - 
http://www.opengis.net/sampling/1.0SamplingPointType has no super type
2008-05-02 15:52:03,698 WARN [complex.config] - 
http://www.opengis.net/om/1.0ObservationType has no super type
2008-05-02 15:52:03,698 WARN [complex.config] - 
http://www.opengis.net/cv/0.2.1CompactDiscreteTimeCoveragePropertyType has no 
super type
2008-05-02 15:52:05,124 ERROR [geoserver.global] - FeatureTypeInfo 
bom:::SiteLocation ignored - as DataStore bom is 
broken:java.lang.ClassCastException: 
org.geotools.feature.iso.type.ComplexTypeImpl cannot be cast to 
org.opengis.feature.type.FeatureType
2008-05-02 15:52:06,236 ERROR [data.jdbc] - There's code using JDBC based 
datastore and not disposing them. This may lead to temporary loss of database 
connections. Please make sure all data access code calls DataStore.dispose() 
before freeing all references to it 

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference 
Don't miss this year's exciting event. There's still time to save $100. 
Use priority code J8TL2D2. 
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
_______________________________________________
Geoserver-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geoserver-devel

Reply via email to