GeoServer
  1. GeoServer
  2. GEOS-2796

Can't reload the stored configuration after restart on trunk

    Details

    • Type: Bug Bug
    • Status: Closed Closed
    • Priority: Critical Critical
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.0-beta1
    • Component/s: None
    • Labels:
      None
    • Number of attachments :
      0

      Description

      Steps:

      • add a postgis datastore
      • stop geoserver
      • restart

      The result is:

      log4j:WARN File option not set for appender [geoserverlogfile].
      log4j:WARN Are you using FileAppender instead of ConsoleAppender?
      27 mar 18:32:35 ERROR [geoserver.global] - 
      ----------------------------------
      - GEOSERVER_DATA_DIR: C:\progetti\geoserver\src\trunk\data\release
      ----------------------------------
      27 mar 18:32:35 INFO [org.geoserver] - Loaded style 'burg'
      27 mar 18:32:35 INFO [org.geoserver] - Loaded style 'capitals'
      27 mar 18:32:35 INFO [org.geoserver] - Loaded style 'cite_lakes'
      27 mar 18:32:35 INFO [org.geoserver] - Loaded style 'concat'
      27 mar 18:32:35 INFO [org.geoserver] - Loaded style 'dem'
      27 mar 18:32:35 INFO [org.geoserver] - Loaded style 'flags'
      27 mar 18:32:35 INFO [org.geoserver] - Loaded style 'giant_polygon'
      27 mar 18:32:35 INFO [org.geoserver] - Loaded style 'grass'
      27 mar 18:32:35 INFO [org.geoserver] - Loaded style 'green'
      27 mar 18:32:35 INFO [org.geoserver] - Loaded style 'line'
      27 mar 18:32:35 INFO [org.geoserver] - Loaded style 'poi'
      27 mar 18:32:35 INFO [org.geoserver] - Loaded style 'point'
      27 mar 18:32:35 INFO [org.geoserver] - Loaded style 'polygon'
      27 mar 18:32:35 INFO [org.geoserver] - Loaded style 'poly_landmarks'
      27 mar 18:32:35 INFO [org.geoserver] - Loaded style 'pophatch'
      27 mar 18:32:35 INFO [org.geoserver] - Loaded style 'population'
      27 mar 18:32:35 INFO [org.geoserver] - Loaded style 'rain'
      27 mar 18:32:35 INFO [org.geoserver] - Loaded style 'raster'
      27 mar 18:32:35 INFO [org.geoserver] - Loaded style 'restricted'
      27 mar 18:32:35 INFO [org.geoserver] - Loaded style 'simple_roads'
      27 mar 18:32:35 INFO [org.geoserver] - Loaded style 'simple_streams'
      27 mar 18:32:35 INFO [org.geoserver] - Loaded style 'tiger_roads'
      27 mar 18:32:35 INFO [org.geoserver] - Loaded workspace 'cite'
      27 mar 18:32:35 INFO [org.geoserver] - Loaded workspace 'it.geosolutions'
      27 mar 18:32:35 INFO [org.geoserver] - Loaded workspace 'nurc'
      27 mar 18:32:35 INFO [org.geoserver] - Loaded store 'arcGridSample', enabled
      27 mar 18:32:35 INFO [org.geoserver] - Loaded coverage store 'arcGridSample'
      27 mar 18:32:36 WARN [referencing.factory] - Axis elements found in a wkt definition, the force longitude first axis order hint might not be respected:
      PROJCS["Monte Mario / Italy zone 1", GEOGCS["Monte Mario", DATUM["Monte Mario", SPHEROID["International 1924", 6378388.0, 297.0, AUTHORITY["EPSG","7022"]], TOWGS84[-104.1,-49.1,-9.9,0.971,-2.917,0.714,-11.68], AUTHORITY["EPSG","6265"]], PRIMEM["Greenwich", 0.0, AUTHORITY["EPSG","8901"]], UNIT["degree", 0.017453292519943295], AXIS["Geodetic longitude", EAST], AXIS["Geodetic latitude", NORTH], AUTHORITY["EPSG","4265"]], PROJECTION["Transverse Mercator", AUTHORITY["EPSG","9807"]], PARAMETER["central_meridian", 9.0], PARAMETER["latitude_of_origin", 0.0], PARAMETER["scale_factor", 0.9996], PARAMETER["false_easting", 1500000.0], PARAMETER["false_northing", 0.0], UNIT["m", 1.0], AXIS["Easting", EAST], AXIS["Northing", NORTH], AUTHORITY["EPSG","3003"]]
      27 mar 18:32:36 WARN [referencing.factory] - Axis elements found in a wkt definition, the force longitude first axis order hint might not be respected:
      PROJCS["WGS84 / Simple Mercator", GEOGCS["WGS 84", DATUM["WGS_1984", SPHEROID["WGS_1984", 6378137.0, 298.257223563]], PRIMEM["Greenwich", 0.0], UNIT["degree", 0.017453292519943295]], PROJECTION["Mercator_1SP_Google"], PARAMETER["latitude_of_origin", 0.0], PARAMETER["central_meridian", 0.0], PARAMETER["scale_factor", 1.0], PARAMETER["false_easting", 0.0], PARAMETER["false_northing", 0.0], UNIT["m", 1.0], AXIS["x", EAST], AXIS["y", NORTH], AUTHORITY["EPSG","54004"]]
      27 mar 18:32:36 INFO [org.geoserver] - Loaded coverage 'Arc_Sample', enabled
      27 mar 18:32:36 INFO [org.geoserver] - Loaded coverage 'arcGridSample'
      27 mar 18:32:36 INFO [org.geoserver] - Loaded layer 'Arc_Sample'
      27 mar 18:32:36 INFO [org.geoserver] - Loaded store 'img_sample2', enabled
      27 mar 18:32:36 INFO [org.geoserver] - Loaded coverage store 'img_sample2'
      27 mar 18:32:36 INFO [org.geoserver] - Loaded coverage 'Pk50095', enabled
      27 mar 18:32:36 INFO [org.geoserver] - Loaded coverage 'img_sample2'
      27 mar 18:32:36 INFO [org.geoserver] - Loaded layer 'Pk50095'
      27 mar 18:32:36 INFO [org.geoserver] - Loaded store 'mosaic', enabled
      27 mar 18:32:36 INFO [org.geoserver] - Loaded coverage store 'mosaic'
      27 mar 18:32:36 INFO [org.geoserver] - Loaded coverage 'mosaic', enabled
      27 mar 18:32:36 INFO [org.geoserver] - Loaded coverage 'mosaic'
      27 mar 18:32:36 INFO [org.geoserver] - Loaded layer 'mosaic'
      27 mar 18:32:36 INFO [org.geoserver] - Loaded store 'worldImageSample', enabled
      27 mar 18:32:36 INFO [org.geoserver] - Loaded coverage store 'worldImageSample'
      27 mar 18:32:36 INFO [org.geoserver] - Loaded coverage 'Img_Sample', enabled
      27 mar 18:32:36 INFO [org.geoserver] - Loaded coverage 'worldImageSample'
      27 mar 18:32:36 INFO [org.geoserver] - Loaded layer 'Img_Sample'
      27 mar 18:32:36 INFO [org.geoserver] - Loaded workspace 'sde'
      27 mar 18:32:36 INFO [org.geoserver] - Loaded workspace 'sf'
      27 mar 18:32:36 INFO [org.geoserver] - Loaded store 'sf', enabled
      27 mar 18:32:36 INFO [org.geoserver] - Loaded data store 'sf'
      27 mar 18:32:36 INFO [org.geoserver] - Loaded feature type 'archsites', enabled
      27 mar 18:32:36 INFO [org.geoserver] - Loaded feature type 'sf'
      27 mar 18:32:36 INFO [org.geoserver] - Loaded layer 'archsites'
      27 mar 18:32:36 INFO [org.geoserver] - Loaded feature type 'bugsites', enabled
      27 mar 18:32:36 INFO [org.geoserver] - Loaded feature type 'sf'
      27 mar 18:32:36 INFO [org.geoserver] - Loaded layer 'bugsites'
      27 mar 18:32:36 INFO [org.geoserver] - Loaded feature type 'restricted', enabled
      27 mar 18:32:36 INFO [org.geoserver] - Loaded feature type 'sf'
      27 mar 18:32:36 INFO [org.geoserver] - Loaded layer 'restricted'
      27 mar 18:32:36 INFO [org.geoserver] - Loaded feature type 'roads', enabled
      27 mar 18:32:36 INFO [org.geoserver] - Loaded feature type 'sf'
      27 mar 18:32:36 INFO [org.geoserver] - Loaded layer 'roads'
      27 mar 18:32:36 INFO [org.geoserver] - Loaded feature type 'streams', enabled
      27 mar 18:32:36 INFO [org.geoserver] - Loaded feature type 'sf'
      27 mar 18:32:36 INFO [org.geoserver] - Loaded layer 'streams'
      27 mar 18:32:36 INFO [org.geoserver] - Loaded store 'sfdem', enabled
      27 mar 18:32:36 INFO [org.geoserver] - Loaded coverage store 'sfdem'
      27 mar 18:32:36 INFO [org.geoserver] - Loaded coverage 'sfdem', enabled
      27 mar 18:32:36 INFO [org.geoserver] - Loaded coverage 'sfdem'
      27 mar 18:32:36 INFO [org.geoserver] - Loaded layer 'sfdem'
      27 mar 18:32:36 INFO [org.geoserver] - Loaded workspace 'tiger'
      27 mar 18:32:36 INFO [org.geoserver] - Loaded store 'nyc', enabled
      27 mar 18:32:36 INFO [org.geoserver] - Loaded data store 'nyc'
      27 mar 18:32:36 INFO [org.geoserver] - Loaded feature type 'giant_polygon', enabled
      27 mar 18:32:36 INFO [org.geoserver] - Loaded feature type 'nyc'
      27 mar 18:32:36 INFO [org.geoserver] - Loaded layer 'giant_polygon'
      27 mar 18:32:36 INFO [org.geoserver] - Loaded feature type 'poi', enabled
      27 mar 18:32:36 INFO [org.geoserver] - Loaded feature type 'nyc'
      27 mar 18:32:36 INFO [org.geoserver] - Loaded layer 'poi'
      27 mar 18:32:36 INFO [org.geoserver] - Loaded feature type 'poly_landmarks', enabled
      27 mar 18:32:36 INFO [org.geoserver] - Loaded feature type 'nyc'
      27 mar 18:32:36 INFO [org.geoserver] - Loaded layer 'poly_landmarks'
      27 mar 18:32:36 INFO [org.geoserver] - Loaded feature type 'tiger_roads', enabled
      27 mar 18:32:36 INFO [org.geoserver] - Loaded feature type 'nyc'
      27 mar 18:32:36 INFO [org.geoserver] - Loaded layer 'tiger_roads'
      27 mar 18:32:36 INFO [org.geoserver] - Loaded workspace 'topp'
      27 mar 18:32:36 WARN [support.DisposableBeanAdapter] - Invocation of destroy method failed on bean with name 'geoServerLoader': java.lang.NullPointerException
      27 mar 18:32:36 ERROR [context.ContextLoader] - Context initialization failed
      org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'rawCatalog' defined in URL [file:/C:/progetti/geoserver/src/trunk/src/main/target/classes/applicationContext.xml]: Initialization of bean failed; nested exception is java.lang.RuntimeException: com.thoughtworks.xstream.converters.ConversionException:  : expected = after attribute name (position: TEXT seen ...</Wicket__Data__Source__Name>\n    <validate connections>... @13:27)  :  : expected = after attribute name (position: TEXT seen ...</Wicket__Data__Source__Name>\n    <validate connections>... @13:27) 
      ---- Debugging information ----
      message             :  : expected = after attribute name (position: TEXT seen ...</Wicket__Data__Source__Name>\n    <validate connections>... @13:27) 
      cause-exception     : com.thoughtworks.xstream.io.StreamException
      cause-message       :  : expected = after attribute name (position: TEXT seen ...</Wicket__Data__Source__Name>\n    <validate connections>... @13:27) 
      class               : org.geoserver.catalog.impl.DataStoreInfoImpl
      required-type       : java.util.HashMap
      line number         : 13
      -------------------------------
      	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:480)
      	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory$1.run(AbstractAutowireCapableBeanFactory.java:409)
      	at java.security.AccessController.doPrivileged(Native Method)
      	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:380)
      	at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:264)
      	at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:221)
      	at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:261)
      	at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:185)
      	at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:164)
      	at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:429)
      	at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:729)
      	at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:381)
      	at org.springframework.web.context.ContextLoader.createWebApplicationContext(ContextLoader.java:255)
      	at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:199)
      	at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:45)
      	at org.mortbay.jetty.handler.ContextHandler.startContext(ContextHandler.java:540)
      	at org.mortbay.jetty.servlet.Context.startContext(Context.java:135)
      	at org.mortbay.jetty.webapp.WebAppContext.startContext(WebAppContext.java:1220)
      	at org.mortbay.jetty.handler.ContextHandler.doStart(ContextHandler.java:510)
      	at org.mortbay.jetty.webapp.WebAppContext.doStart(WebAppContext.java:448)
      	at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:39)
      	at org.mortbay.jetty.handler.HandlerWrapper.doStart(HandlerWrapper.java:130)
      	at org.mortbay.jetty.Server.doStart(Server.java:222)
      	at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:39)
      	at org.geoserver.web.Start.main(Start.java:57)
      Caused by: java.lang.RuntimeException: com.thoughtworks.xstream.converters.ConversionException:  : expected = after attribute name (position: TEXT seen ...</Wicket__Data__Source__Name>\n    <validate connections>... @13:27)  :  : expected = after attribute name (position: TEXT seen ...</Wicket__Data__Source__Name>\n    <validate connections>... @13:27) 
      ---- Debugging information ----
      message             :  : expected = after attribute name (position: TEXT seen ...</Wicket__Data__Source__Name>\n    <validate connections>... @13:27) 
      cause-exception     : com.thoughtworks.xstream.io.StreamException
      cause-message       :  : expected = after attribute name (position: TEXT seen ...</Wicket__Data__Source__Name>\n    <validate connections>... @13:27) 
      class               : org.geoserver.catalog.impl.DataStoreInfoImpl
      required-type       : java.util.HashMap
      line number         : 13
      -------------------------------
      	at org.geoserver.config.GeoServerLoader.postProcessBeforeInitialization(GeoServerLoader.java:128)
      	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyBeanPostProcessorsBeforeInitialization(AbstractAutowireCapableBeanFactory.java:350)
      	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1330)
      	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:473)
      	... 24 more
      Caused by: com.thoughtworks.xstream.converters.ConversionException:  : expected = after attribute name (position: TEXT seen ...</Wicket__Data__Source__Name>\n    <validate connections>... @13:27)  :  : expected = after attribute name (position: TEXT seen ...</Wicket__Data__Source__Name>\n    <validate connections>... @13:27) 
      ---- Debugging information ----
      message             :  : expected = after attribute name (position: TEXT seen ...</Wicket__Data__Source__Name>\n    <validate connections>... @13:27) 
      cause-exception     : com.thoughtworks.xstream.io.StreamException
      cause-message       :  : expected = after attribute name (position: TEXT seen ...</Wicket__Data__Source__Name>\n    <validate connections>... @13:27) 
      class               : org.geoserver.catalog.impl.DataStoreInfoImpl
      required-type       : java.util.HashMap
      line number         : 13
      -------------------------------
      	at com.thoughtworks.xstream.core.TreeUnmarshaller.convert(TreeUnmarshaller.java:89)
      	at com.thoughtworks.xstream.core.TreeUnmarshaller.convertAnother(TreeUnmarshaller.java:76)
      	at com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter.unmarshallField(AbstractReflectionConverter.java:246)
      	at com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter.doUnmarshal(AbstractReflectionConverter.java:218)
      	at org.geoserver.config.util.XStreamPersister$StoreInfoConverter.doUnmarshal(XStreamPersister.java:991)
      	at com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter.unmarshal(AbstractReflectionConverter.java:162)
      	at com.thoughtworks.xstream.core.TreeUnmarshaller.convert(TreeUnmarshaller.java:82)
      	at com.thoughtworks.xstream.core.TreeUnmarshaller.convertAnother(TreeUnmarshaller.java:76)
      	at com.thoughtworks.xstream.core.TreeUnmarshaller.convertAnother(TreeUnmarshaller.java:60)
      	at com.thoughtworks.xstream.core.TreeUnmarshaller.start(TreeUnmarshaller.java:137)
      	at com.thoughtworks.xstream.core.AbstractTreeMarshallingStrategy.unmarshal(AbstractTreeMarshallingStrategy.java:33)
      	at com.thoughtworks.xstream.XStream.unmarshal(XStream.java:923)
      	at com.thoughtworks.xstream.XStream.unmarshal(XStream.java:909)
      	at com.thoughtworks.xstream.XStream.fromXML(XStream.java:861)
      	at org.geoserver.config.util.XStreamPersister.load(XStreamPersister.java:400)
      	at org.geoserver.config.GeoServerLoader.depersist(GeoServerLoader.java:657)
      	at org.geoserver.config.GeoServerLoader.readCatalog(GeoServerLoader.java:485)
      	at org.geoserver.config.GeoServerLoader.loadCatalog(GeoServerLoader.java:154)
      	at org.geoserver.config.GeoServerLoader.postProcessBeforeInitialization(GeoServerLoader.java:125)
      	... 27 more
      Caused by: com.thoughtworks.xstream.io.StreamException:  : expected = after attribute name (position: TEXT seen ...</Wicket__Data__Source__Name>\n    <validate connections>... @13:27) 
      	at com.thoughtworks.xstream.io.xml.XppReader.pullNextEvent(XppReader.java:78)
      	at com.thoughtworks.xstream.io.xml.AbstractPullReader.readRealEvent(AbstractPullReader.java:137)
      	at com.thoughtworks.xstream.io.xml.AbstractPullReader.readEvent(AbstractPullReader.java:124)
      	at com.thoughtworks.xstream.io.xml.AbstractPullReader.hasMoreChildren(AbstractPullReader.java:78)
      	at org.geoserver.config.util.XStreamPersister$BreifMapConverter.populateMap(XStreamPersister.java:494)
      	at com.thoughtworks.xstream.converters.collections.MapConverter.unmarshal(MapConverter.java:66)
      	at com.thoughtworks.xstream.core.TreeUnmarshaller.convert(TreeUnmarshaller.java:82)
      	... 45 more
      Caused by: org.xmlpull.v1.XmlPullParserException: expected = after attribute name (position: TEXT seen ...</Wicket__Data__Source__Name>\n    <validate connections>... @13:27) 
      	at org.xmlpull.mxp1.MXParser.parseAttribute(MXParser.java:2004)
      	at org.xmlpull.mxp1.MXParser.parseStartTag(MXParser.java:1799)
      	at org.xmlpull.mxp1.MXParser.nextImpl(MXParser.java:1127)
      	at org.xmlpull.mxp1.MXParser.next(MXParser.java:1093)
      	at com.thoughtworks.xstream.io.xml.XppReader.pullNextEvent(XppReader.java:63)
      	... 51 more
      27 mar 18:32:36 ERROR [mortbay.log] - Failed startup of context org.mortbay.jetty.webapp.WebAppContext@229ed4{/geoserver,src/main/webapp}
      org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'rawCatalog' defined in URL [file:/C:/progetti/geoserver/src/trunk/src/main/target/classes/applicationContext.xml]: Initialization of bean failed; nested exception is java.lang.RuntimeException: com.thoughtworks.xstream.converters.ConversionException:  : expected = after attribute name (position: TEXT seen ...</Wicket__Data__Source__Name>\n    <validate connections>... @13:27)  :  : expected = after attribute name (position: TEXT seen ...</Wicket__Data__Source__Name>\n    <validate connections>... @13:27) 
      ---- Debugging information ----
      message             :  : expected = after attribute name (position: TEXT seen ...</Wicket__Data__Source__Name>\n    <validate connections>... @13:27) 
      cause-exception     : com.thoughtworks.xstream.io.StreamException
      cause-message       :  : expected = after attribute name (position: TEXT seen ...</Wicket__Data__Source__Name>\n    <validate connections>... @13:27) 
      class               : org.geoserver.catalog.impl.DataStoreInfoImpl
      required-type       : java.util.HashMap
      line number         : 13
      -------------------------------
      	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:480)
      	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory$1.run(AbstractAutowireCapableBeanFactory.java:409)
      	at java.security.AccessController.doPrivileged(Native Method)
      	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:380)
      	at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:264)
      	at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:221)
      	at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:261)
      	at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:185)
      	at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:164)
      	at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:429)
      	at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:729)
      	at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:381)
      	at org.springframework.web.context.ContextLoader.createWebApplicationContext(ContextLoader.java:255)
      	at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:199)
      	at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:45)
      	at org.mortbay.jetty.handler.ContextHandler.startContext(ContextHandler.java:540)
      	at org.mortbay.jetty.servlet.Context.startContext(Context.java:135)
      	at org.mortbay.jetty.webapp.WebAppContext.startContext(WebAppContext.java:1220)
      	at org.mortbay.jetty.handler.ContextHandler.doStart(ContextHandler.java:510)
      	at org.mortbay.jetty.webapp.WebAppContext.doStart(WebAppContext.java:448)
      	at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:39)
      	at org.mortbay.jetty.handler.HandlerWrapper.doStart(HandlerWrapper.java:130)
      	at org.mortbay.jetty.Server.doStart(Server.java:222)
      	at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:39)
      	at org.geoserver.web.Start.main(Start.java:57)
      Caused by: java.lang.RuntimeException: com.thoughtworks.xstream.converters.ConversionException:  : expected = after attribute name (position: TEXT seen ...</Wicket__Data__Source__Name>\n    <validate connections>... @13:27)  :  : expected = after attribute name (position: TEXT seen ...</Wicket__Data__Source__Name>\n    <validate connections>... @13:27) 
      ---- Debugging information ----
      message             :  : expected = after attribute name (position: TEXT seen ...</Wicket__Data__Source__Name>\n    <validate connections>... @13:27) 
      cause-exception     : com.thoughtworks.xstream.io.StreamException
      cause-message       :  : expected = after attribute name (position: TEXT seen ...</Wicket__Data__Source__Name>\n    <validate connections>... @13:27) 
      class               : org.geoserver.catalog.impl.DataStoreInfoImpl
      required-type       : java.util.HashMap
      line number         : 13
      -------------------------------
      	at org.geoserver.config.GeoServerLoader.postProcessBeforeInitialization(GeoServerLoader.java:128)
      	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyBeanPostProcessorsBeforeInitialization(AbstractAutowireCapableBeanFactory.java:350)
      	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1330)
      	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:473)
      	... 24 more
      Caused by: com.thoughtworks.xstream.converters.ConversionException:  : expected = after attribute name (position: TEXT seen ...</Wicket__Data__Source__Name>\n    <validate connections>... @13:27)  :  : expected = after attribute name (position: TEXT seen ...</Wicket__Data__Source__Name>\n    <validate connections>... @13:27) 
      ---- Debugging information ----
      message             :  : expected = after attribute name (position: TEXT seen ...</Wicket__Data__Source__Name>\n    <validate connections>... @13:27) 
      cause-exception     : com.thoughtworks.xstream.io.StreamException
      cause-message       :  : expected = after attribute name (position: TEXT seen ...</Wicket__Data__Source__Name>\n    <validate connections>... @13:27) 
      class               : org.geoserver.catalog.impl.DataStoreInfoImpl
      required-type       : java.util.HashMap
      line number         : 13
      -------------------------------
      	at com.thoughtworks.xstream.core.TreeUnmarshaller.convert(TreeUnmarshaller.java:89)
      	at com.thoughtworks.xstream.core.TreeUnmarshaller.convertAnother(TreeUnmarshaller.java:76)
      	at com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter.unmarshallField(AbstractReflectionConverter.java:246)
      	at com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter.doUnmarshal(AbstractReflectionConverter.java:218)
      	at org.geoserver.config.util.XStreamPersister$StoreInfoConverter.doUnmarshal(XStreamPersister.java:991)
      	at com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter.unmarshal(AbstractReflectionConverter.java:162)
      	at com.thoughtworks.xstream.core.TreeUnmarshaller.convert(TreeUnmarshaller.java:82)
      	at com.thoughtworks.xstream.core.TreeUnmarshaller.convertAnother(TreeUnmarshaller.java:76)
      	at com.thoughtworks.xstream.core.TreeUnmarshaller.convertAnother(TreeUnmarshaller.java:60)
      	at com.thoughtworks.xstream.core.TreeUnmarshaller.start(TreeUnmarshaller.java:137)
      	at com.thoughtworks.xstream.core.AbstractTreeMarshallingStrategy.unmarshal(AbstractTreeMarshallingStrategy.java:33)
      	at com.thoughtworks.xstream.XStream.unmarshal(XStream.java:923)
      	at com.thoughtworks.xstream.XStream.unmarshal(XStream.java:909)
      	at com.thoughtworks.xstream.XStream.fromXML(XStream.java:861)
      	at org.geoserver.config.util.XStreamPersister.load(XStreamPersister.java:400)
      	at org.geoserver.config.GeoServerLoader.depersist(GeoServerLoader.java:657)
      	at org.geoserver.config.GeoServerLoader.readCatalog(GeoServerLoader.java:485)
      	at org.geoserver.config.GeoServerLoader.loadCatalog(GeoServerLoader.java:154)
      	at org.geoserver.config.GeoServerLoader.postProcessBeforeInitialization(GeoServerLoader.java:125)
      	... 27 more
      Caused by: com.thoughtworks.xstream.io.StreamException:  : expected = after attribute name (position: TEXT seen ...</Wicket__Data__Source__Name>\n    <validate connections>... @13:27) 
      	at com.thoughtworks.xstream.io.xml.XppReader.pullNextEvent(XppReader.java:78)
      	at com.thoughtworks.xstream.io.xml.AbstractPullReader.readRealEvent(AbstractPullReader.java:137)
      	at com.thoughtworks.xstream.io.xml.AbstractPullReader.readEvent(AbstractPullReader.java:124)
      	at com.thoughtworks.xstream.io.xml.AbstractPullReader.hasMoreChildren(AbstractPullReader.java:78)
      	at org.geoserver.config.util.XStreamPersister$BreifMapConverter.populateMap(XStreamPersister.java:494)
      	at com.thoughtworks.xstream.converters.collections.MapConverter.unmarshal(MapConverter.java:66)
      	at com.thoughtworks.xstream.core.TreeUnmarshaller.convert(TreeUnmarshaller.java:82)
      	... 45 more
      Caused by: org.xmlpull.v1.XmlPullParserException: expected = after attribute name (position: TEXT seen ...</Wicket__Data__Source__Name>\n    <validate connections>... @13:27) 
      	at org.xmlpull.mxp1.MXParser.parseAttribute(MXParser.java:2004)
      	at org.xmlpull.mxp1.MXParser.parseStartTag(MXParser.java:1799)
      	at org.xmlpull.mxp1.MXParser.nextImpl(MXParser.java:1127)
      	at org.xmlpull.mxp1.MXParser.next(MXParser.java:1093)
      	at com.thoughtworks.xstream.io.xml.XppReader.pullNextEvent(XppReader.java:63)
      	... 51 more
      27 mar 18:32:36 WARN [mortbay.log] - Nested in org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'rawCatalog' defined in URL [file:/C:/progetti/geoserver/src/trunk/src/main/target/classes/applicationContext.xml]: Initialization of bean failed; nested exception is java.lang.RuntimeException: com.thoughtworks.xstream.converters.ConversionException:  : expected = after attribute name (position: TEXT seen ...</Wicket__Data__Source__Name>\n    <validate connections>... @13:27)  :  : expected = after attribute name (position: TEXT seen ...</Wicket__Data__Source__Name>\n    <validate connections>... @13:27) 
      ---- Debugging information ----
      message             :  : expected = after attribute name (position: TEXT seen ...</Wicket__Data__Source__Name>\n    <validate connections>... @13:27) 
      cause-exception     : com.thoughtworks.xstream.io.StreamException
      cause-message       :  : expected = after attribute name (position: TEXT seen ...</Wicket__Data__Source__Name>\n    <validate connections>... @13:27) 
      class               : org.geoserver.catalog.impl.DataStoreInfoImpl
      required-type       : java.util.HashMap
      line number         : 13
      -------------------------------:
      org.xmlpull.v1.XmlPullParserException: expected = after attribute name (position: TEXT seen ...</Wicket__Data__Source__Name>\n    <validate connections>... @13:27) 
      	at org.xmlpull.mxp1.MXParser.parseAttribute(MXParser.java:2004)
      	at org.xmlpull.mxp1.MXParser.parseStartTag(MXParser.java:1799)
      	at org.xmlpull.mxp1.MXParser.nextImpl(MXParser.java:1127)
      	at org.xmlpull.mxp1.MXParser.next(MXParser.java:1093)
      	at com.thoughtworks.xstream.io.xml.XppReader.pullNextEvent(XppReader.java:63)
      	at com.thoughtworks.xstream.io.xml.AbstractPullReader.readRealEvent(AbstractPullReader.java:137)
      	at com.thoughtworks.xstream.io.xml.AbstractPullReader.readEvent(AbstractPullReader.java:124)
      	at com.thoughtworks.xstream.io.xml.AbstractPullReader.hasMoreChildren(AbstractPullReader.java:78)
      	at org.geoserver.config.util.XStreamPersister$BreifMapConverter.populateMap(XStreamPersister.java:494)
      	at com.thoughtworks.xstream.converters.collections.MapConverter.unmarshal(MapConverter.java:66)
      	at com.thoughtworks.xstream.core.TreeUnmarshaller.convert(TreeUnmarshaller.java:82)
      	at com.thoughtworks.xstream.core.TreeUnmarshaller.convertAnother(TreeUnmarshaller.java:76)
      	at com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter.unmarshallField(AbstractReflectionConverter.java:246)
      	at com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter.doUnmarshal(AbstractReflectionConverter.java:218)
      	at org.geoserver.config.util.XStreamPersister$StoreInfoConverter.doUnmarshal(XStreamPersister.java:991)
      	at com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter.unmarshal(AbstractReflectionConverter.java:162)
      	at com.thoughtworks.xstream.core.TreeUnmarshaller.convert(TreeUnmarshaller.java:82)
      	at com.thoughtworks.xstream.core.TreeUnmarshaller.convertAnother(TreeUnmarshaller.java:76)
      	at com.thoughtworks.xstream.core.TreeUnmarshaller.convertAnother(TreeUnmarshaller.java:60)
      	at com.thoughtworks.xstream.core.TreeUnmarshaller.start(TreeUnmarshaller.java:137)
      	at com.thoughtworks.xstream.core.AbstractTreeMarshallingStrategy.unmarshal(AbstractTreeMarshallingStrategy.java:33)
      	at com.thoughtworks.xstream.XStream.unmarshal(XStream.java:923)
      	at com.thoughtworks.xstream.XStream.unmarshal(XStream.java:909)
      	at com.thoughtworks.xstream.XStream.fromXML(XStream.java:861)
      	at org.geoserver.config.util.XStreamPersister.load(XStreamPersister.java:400)
      	at org.geoserver.config.GeoServerLoader.depersist(GeoServerLoader.java:657)
      	at org.geoserver.config.GeoServerLoader.readCatalog(GeoServerLoader.java:485)
      	at org.geoserver.config.GeoServerLoader.loadCatalog(GeoServerLoader.java:154)
      	at org.geoserver.config.GeoServerLoader.postProcessBeforeInitialization(GeoServerLoader.java:125)
      	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyBeanPostProcessorsBeforeInitialization(AbstractAutowireCapableBeanFactory.java:350)
      	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1330)
      	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:473)
      	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory$1.run(AbstractAutowireCapableBeanFactory.java:409)
      	at java.security.AccessController.doPrivileged(Native Method)
      	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:380)
      	at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:264)
      	at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:221)
      	at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:261)
      	at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:185)
      	at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:164)
      	at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:429)
      	at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:729)
      	at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:381)
      	at org.springframework.web.context.ContextLoader.createWebApplicationContext(ContextLoader.java:255)
      	at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:199)
      	at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:45)
      	at org.mortbay.jetty.handler.ContextHandler.startContext(ContextHandler.java:540)
      	at org.mortbay.jetty.servlet.Context.startContext(Context.java:135)
      	at org.mortbay.jetty.webapp.WebAppContext.startContext(WebAppContext.java:1220)
      	at org.mortbay.jetty.handler.ContextHandler.doStart(ContextHandler.java:510)
      	at org.mortbay.jetty.webapp.WebAppContext.doStart(WebAppContext.java:448)
      	at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:39)
      	at org.mortbay.jetty.handler.HandlerWrapper.doStart(HandlerWrapper.java:130)
      	at org.mortbay.jetty.Server.doStart(Server.java:222)
      	at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:39)
      	at org.geoserver.web.Start.main(Start.java:57)
      

      Mind the rogue "Wicket_DataSource_Name" attribute is a hack done in the store editor page to stick the store name and description in the same format as the datastore parameters (by adding those two in the param map). The hack is very ugly and should be fixed, not sure it has anyting to do with this issue thought.

        Issue Links

          Activity

          Hide
          Andrea Aime added a comment - - edited

          Figured it out, has nothing to do with those params.
          It's just that the datastore connection params can contain spaces in the name, generating this invalid document (note element names such as "validate connections"):

          <dataStore>
            <name>postgis</name>
            <enabled>true</enabled>
            <workspace>
              <name>topp</name>
            </workspace>
            <connectionParameters>
              <port>5432</port>
              <passwd>postgis</passwd>
              <dbtype>postgis</dbtype>
              <host>localhost</host>
              <validate connections>false</validate connections>
              <max connections>10</max connections>
              <database>postgres</database>
              <wkb enabled>true</wkb enabled>
              <namespace>http://www.openplans.org/topp</namespace>
              <schema>public</schema>
              <estimated extent>false</estimated extent>
              <loose bbox>true</loose bbox>
              <user>postgres</user>
              <min connections>4</min connections>
            </connectionParameters>
          </dataStore>
          

          I guess we need to resort to a scheme like <param name="xxx">value</name> or just use the Xstream default map persister

          Show
          Andrea Aime added a comment - - edited Figured it out, has nothing to do with those params. It's just that the datastore connection params can contain spaces in the name, generating this invalid document (note element names such as "validate connections"): <dataStore> <name> postgis </name> <enabled> true </enabled> <workspace> <name> topp </name> </workspace> <connectionParameters> <port> 5432 </port> <passwd> postgis </passwd> <dbtype> postgis </dbtype> <host> localhost </host> <validate connections> false </validate connections> <max connections> 10 </max connections> <database> postgres </database> <wkb enabled> true </wkb enabled> <namespace> http://www.openplans.org/topp </namespace> <schema> public </schema> <estimated extent> false </estimated extent> <loose bbox> true </loose bbox> <user> postgres </user> <min connections> 4 </min connections> </connectionParameters> </dataStore> I guess we need to resort to a scheme like <param name="xxx">value</name> or just use the Xstream default map persister
          Hide
          Ben Caradoc-Davies added a comment -

          Justin, as I noted GEOS-2808 (spotted by Andrea as a duplicate), this bug breaks CITE testing as well.

          Show
          Ben Caradoc-Davies added a comment - Justin, as I noted GEOS-2808 (spotted by Andrea as a duplicate), this bug breaks CITE testing as well.
          Hide
          Justin Deoliveira added a comment -

          Yup, found this issue as well. And yeah, the solution i have yet to commit is just to revert back to always using the default xsteram map encoder.

          Show
          Justin Deoliveira added a comment - Yup, found this issue as well. And yeah, the solution i have yet to commit is just to revert back to always using the default xsteram map encoder.
          Hide
          Andrea Aime added a comment -

          Mass closing all resolved issues that have been closed for more than one month without further comments

          Show
          Andrea Aime added a comment - Mass closing all resolved issues that have been closed for more than one month without further comments

            People

            • Assignee:
              Justin Deoliveira
              Reporter:
              Andrea Aime
            • Votes:
              1 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: