Native coverage SRS lost after restart
--------------------------------------

                 Key: GEOS-3378
                 URL: http://jira.codehaus.org/browse/GEOS-3378
             Project: GeoServer
          Issue Type: Bug
            Reporter: Andrea Aime
            Assignee: Andrea Aime
            Priority: Critical
             Fix For: 2.0-RC2


Configure a new coverage, save it, restart GeoServer. The coverage is there but 
its native SRS is no more, any attempt to save changes to the coverage will 
result in:

{code}
org.geotools.coverage.grid.InvalidGridGeometryException: Coordinate reference 
system is unspecified.
        at 
org.geotools.coverage.grid.GeneralGridGeometry.getCoordinateReferenceSystem(GeneralGridGeometry.java:456)
        at 
org.geoserver.config.util.XStreamPersister$GridGeometry2DConverter.doMarshal(XStreamPersister.java:841)
        at 
com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter.marshal(AbstractReflectionConverter.java:58)
        at 
com.thoughtworks.xstream.core.TreeMarshaller.convert(TreeMarshaller.java:86)
        at 
com.thoughtworks.xstream.core.TreeMarshaller.convertAnother(TreeMarshaller.java:78)
        at 
com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter.marshallField(AbstractReflectionConverter.java:157)
        at 
com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter$2.writeField(AbstractReflectionConverter.java:148)
        at 
com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter$2.visit(AbstractReflectionConverter.java:118)
        at 
org.geoserver.config.util.XStreamPersister$CustomReflectionProvider$VisitorWrapper.visit(XStreamPersister.java:468)
        at 
com.thoughtworks.xstream.converters.reflection.PureJavaReflectionProvider.visitSerializableFields(PureJavaReflectionProvider.java:129)
        at 
org.geoserver.config.util.XStreamPersister$CustomReflectionProvider.visitSerializableFields(XStreamPersister.java:444)
        at 
com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter.doMarshal(AbstractReflectionConverter.java:100)
        at 
org.geoserver.config.util.XStreamPersister$AbstractReflectionConverter.doMarshal(XStreamPersister.java:1026)
        at 
com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter.marshal(AbstractReflectionConverter.java:58)
        at 
com.thoughtworks.xstream.core.TreeMarshaller.convert(TreeMarshaller.java:86)
        at 
com.thoughtworks.xstream.core.TreeMarshaller.convertAnother(TreeMarshaller.java:78)
        at 
com.thoughtworks.xstream.core.TreeMarshaller.convertAnother(TreeMarshaller.java:63)
        at 
com.thoughtworks.xstream.core.TreeMarshaller.start(TreeMarshaller.java:98)
        at 
com.thoughtworks.xstream.core.AbstractTreeMarshallingStrategy.marshal(AbstractTreeMarshallingStrategy.java:38)
        at com.thoughtworks.xstream.XStream.marshal(XStream.java:837)
        at com.thoughtworks.xstream.XStream.marshal(XStream.java:826)
        at com.thoughtworks.xstream.XStream.toXML(XStream.java:801)
        at 
org.geoserver.config.util.XStreamPersister.save(XStreamPersister.java:395)
        at 
org.geoserver.config.GeoServerPersister.persist(GeoServerPersister.java:570)
        at 
org.geoserver.config.GeoServerPersister.persist(GeoServerPersister.java:563)
        at 
org.geoserver.config.GeoServerPersister.modifyCoverage(GeoServerPersister.java:414)
        at 
org.geoserver.config.GeoServerPersister.handlePostModifyEvent(GeoServerPersister.java:147)
        at org.geoserver.catalog.impl.CatalogImpl.event(CatalogImpl.java:1297)
        at 
org.geoserver.catalog.impl.CatalogImpl.firePostModified(CatalogImpl.java:1277)
        at org.geoserver.catalog.impl.CatalogImpl.saved(CatalogImpl.java:1258)
        at org.geoserver.catalog.impl.CatalogImpl.save(CatalogImpl.java:390)
        at 
org.geoserver.security.SecureCatalogImpl.save(SecureCatalogImpl.java:946)
        at 
org.geoserver.web.data.resource.ResourceConfigurationPage$4.onSubmit(ResourceConfigurationPage.java:133)
        at 
org.apache.wicket.markup.html.form.Form.delegateSubmit(Form.java:1351)
        at 
org.apache.wicket.markup.html.form.Form.onFormSubmitted(Form.java:810)
{code}

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

        

------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
Geoserver-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geoserver-devel

Reply via email to