Hello everyone,

For some reason, 2.2 won't read the OGR2OGR.xml file that is located in my
data directory. I even replaced mine with the standard one in the
documentation:

<OgrConfiguration>
  <ogr2ogrLocation>ogr2ogr</ogr2ogrLocation>
  <!-- <gdalData>...</gdalData> -->
  <formats>
    <Format>
      <ogrFormat>MapInfo File</ogrFormat>
      <formatName>OGR-TAB</formatName>
      <fileExtension>.tab</fileExtension>
    </Format>
    <Format>
      <ogrFormat>MapInfo File</ogrFormat>
      <formatName>OGR-MIF</formatName>
      <fileExtension>.mif</fileExtension>
      <option>-dsco</option>
      <option>FORMAT=MIF</option>
    </Format>
    <Format>
      <ogrFormat>CSV</ogrFormat>
      <formatName>OGR-CSV</formatName>
      <fileExtension>.csv</fileExtension>
      <singleFile>true</singleFile>
      <mimeType>text/csv</mimeType>
    </Format>
    <Format>
      <ogrFormat>KML</ogrFormat>
      <formatName>OGR-KML</formatName>
      <fileExtension>.kml</fileExtension>
      <singleFile>true</singleFile>
      <mimeType>application/vnd.google-earth.kml</mimeType>
    </Format>
  </formats>
</OgrConfiguration>

This is the trace:

Any ideas?

2012-10-07 08:56:47,807 ERROR [wfs.response] - Error reading the
ogr2ogr.xml configuration file
com.thoughtworks.xstream.converters.ConversionException: Cannot construct
org.geoserver.wfs.response.OgrFormat as it does not have a no-args
constructor : Cannot construct org.geoserver.wfs.response.OgrFormat as it
does not have a no-args constructor
---- Debugging information ----
message             : Cannot construct org.geoserver.wfs.response.OgrFormat
as it does not have a no-args constructor
cause-exception     :
com.thoughtworks.xstream.converters.reflection.ObjectAccessException
cause-message       : Cannot construct org.geoserver.wfs.response.OgrFormat
as it does not have a no-args constructor
class               : org.geoserver.wfs.response.OgrConfiguration
required-type       : org.geoserver.wfs.response.OgrFormat
path                : /OgrConfiguration/formats/Format
line number         : 5
-------------------------------
     at
com.thoughtworks.xstream.core.TreeUnmarshaller.convert(TreeUnmarshaller.java:89)
     at
com.thoughtworks.xstream.core.AbstractReferenceUnmarshaller.convert(AbstractReferenceUnmarshaller.java:63)
     at
com.thoughtworks.xstream.core.TreeUnmarshaller.convertAnother(TreeUnmarshaller.java:76)
     at
com.thoughtworks.xstream.core.TreeUnmarshaller.convertAnother(TreeUnmarshaller.java:60)
     at
com.thoughtworks.xstream.converters.collections.AbstractCollectionConverter.readItem(AbstractCollectionConverter.java:71)
     at
com.thoughtworks.xstream.converters.collections.ArrayConverter.unmarshal(ArrayConverter.java:55)
     at
com.thoughtworks.xstream.core.TreeUnmarshaller.convert(TreeUnmarshaller.java:82)
     at
com.thoughtworks.xstream.core.AbstractReferenceUnmarshaller.convert(AbstractReferenceUnmarshaller.java:63)
     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
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.AbstractReferenceUnmarshaller.convert(AbstractReferenceUnmarshaller.java:63)
     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.wfs.response.Ogr2OgrConfigurator.loadConfiguration(Ogr2OgrConfigurator.java:57)
     at
org.geoserver.wfs.response.Ogr2OgrConfigurator.access$000(Ogr2OgrConfigurator.java:29)
     at
org.geoserver.wfs.response.Ogr2OgrConfigurator$ConfigurationPoller.run(Ogr2OgrConfigurator.java:109)
     at
org.geoserver.wfs.response.Ogr2OgrConfigurator$ConfigurationPoller.<init>(Ogr2OgrConfigurator.java:102)
     at
org.geoserver.wfs.response.Ogr2OgrConfigurator.<init>(Ogr2OgrConfigurator.java:44)
     at
org.geoserver.wfs.response.Ogr2OgrConfigurator.<init>(Ogr2OgrConfigurator.java:48)
     at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native
Method)
     at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown
Source)
     at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown
Source)
     at java.lang.reflect.Constructor.newInstance(Unknown Source)
     at
org.springframework.beans.BeanUtils.instantiateClass(BeanUtils.java:147)
     at
org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:110)
     at
org.springframework.beans.factory.support.ConstructorResolver.autowireConstructor(ConstructorResolver.java:280)
     at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.autowireConstructor(AbstractAutowireCapableBeanFactory.java:1035)
     at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:939)
     at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:485)
     at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:456)
     at
org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:294)
     at
org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:225)
     at
org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:291)
     at
org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:193)
     at
org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:585)
     at
org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:913)
     at
org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:464)
     at
org.springframework.web.context.ContextLoader.configureAndRefreshWebApplicationContext(ContextLoader.java:385)
     at
org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:284)
     at
org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:111)
     at
org.geoserver.platform.GeoServerContextLoaderListener.contextInitialized(GeoServerContextLoaderListener.java:18)
     at
org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4779)
     at
org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5273)
     at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
     at
org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:895)
     at
org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:871)
     at
org.apache.catalina.core.StandardHost.addChild(StandardHost.java:615)
     at
org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:962)
     at
org.apache.catalina.startup.HostConfig$DeployWar.run(HostConfig.java:1603)
     at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source)
     at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source)
     at java.util.concurrent.FutureTask.run(Unknown Source)
     at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
     at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
     at java.lang.Thread.run(Unknown Source)
Caused by:
com.thoughtworks.xstream.converters.reflection.ObjectAccessException:
Cannot construct org.geoserver.wfs.response.OgrFormat as it does not have a
no-args constructor
     at
com.thoughtworks.xstream.converters.reflection.PureJavaReflectionProvider.newInstance(PureJavaReflectionProvider.java:71)
     at
com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter.instantiateNewInstance(AbstractReflectionConverter.java:308)
     at
com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter.unmarshal(AbstractReflectionConverter.java:161)
     at
com.thoughtworks.xstream.core.TreeUnmarshaller.convert(TreeUnmarshaller.java:82)
     ... 62 more
------------------------------------------------------------------------------
Don't let slow site performance ruin your business. Deploy New Relic APM
Deploy New Relic app performance management and know exactly
what is happening inside your Ruby, Python, PHP, Java, and .NET app
Try New Relic at no cost today and get our sweet Data Nerd shirt too!
http://p.sf.net/sfu/newrelic-dev2dev
_______________________________________________
Geoserver-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geoserver-users

Reply via email to