[Geoserver-users] Problem encountered during GeoBatch startup

I am posting to this list because the GeoBatch User group for some reason does not permit me to post a new topic to it.

I just installed GeoBatch 1.3.0 and ran through the Installation instructions in the documentation. I overrode the configuration to have a separate config directory and separate location for my ‘gb_database.properties’ file.

I am using the default sample “catalog.xml” file located in my GeoBatch config directory and upon startup I get the following error in the geobatch.log file:

The key error below is: “Caused by: com.thoughtworks.xstream.converters.reflection.ObjectAccessException: Cannot construct it.geosolutions.geobatch.configuration.flow.file.FileBasedCatalogConfiguration as it does not have a no-args constructor” and when I look at the GeoBatch source code sure enough the FileBasedCatalogConfiguration class does not have a no-args constructor which I believe is necessary in order for the Spring Framework to instantiate that class.

Any help on this would be appreciated.

Thanks,

–Steve

2014-07-30 17:50:11,330 ERROR ContextLoader:220 - Context initialization failed

org.springframework.beans.factory.BeanCreationException: Error creating bean with name ‘globalConfig’ defined in URL [jar:file:/D:/apache-tomcat-7.0.53-8787-geobatch/webapps/geobatch/WEB-INF/lib/gb-dao-xstream-1.3.0.jar!/applicationContext.xml]: Invocation of init method failed; nested exception is java.io.IOException: Unable to load catalog config ‘catalog’ from base dir D:\Data\GeoBatch\config

at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1412)

at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:519)

at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:456)

at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:291)

at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)

at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:288)

at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:190)

at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:574)

at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:895)

at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:425)

at org.springframework.web.context.ContextLoader.createWebApplicationContext(ContextLoader.java:276)

at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:197)

at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:47)

at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4973)

at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5467)

at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)

at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:901)

at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:877)

at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:632)

at org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:1073)

at org.apache.catalina.startup.HostConfig$DeployWar.run(HostConfig.java:1857)

at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)

at java.util.concurrent.FutureTask.run(FutureTask.java:262)

at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)

at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)

at java.lang.Thread.run(Thread.java:745)

Caused by: java.io.IOException: Unable to load catalog config ‘catalog’ from base dir D:\Data\GeoBatch\config

at it.geosolutions.geobatch.catalog.dao.file.xstream.XStreamCatalogDAO.find(XStreamCatalogDAO.java:80)

at it.geosolutions.geobatch.catalog.dao.file.xstream.XStreamCatalogDAO.find(XStreamCatalogDAO.java:47)

at it.geosolutions.geobatch.catalog.impl.BasePersistentResource.load(BasePersistentResource.java:85)

at it.geosolutions.geobatch.global.XStreamCatalogLoader.init(XStreamCatalogLoader.java:101)

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)

at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

at java.lang.reflect.Method.invoke(Method.java:606)

at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeCustomInitMethod(AbstractAutowireCapableBeanFactory.java:1536)

at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1477)

at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1409)

… 25 more

Caused by: com.thoughtworks.xstream.converters.ConversionException: Cannot construct it.geosolutions.geobatch.configuration.flow.file.FileBasedCatalogConfiguration as it does not have a no-args constructor : Cannot construct it.geosolutions.geobatch.configuration.flow.file.FileBasedCatalogConfiguration as it does not have a no-args constructor

---- Debugging information ----

message : Cannot construct it.geosolutions.geobatch.configuration.flow.file.FileBasedCatalogConfiguration as it does not have a no-args constructor

cause-exception : com.thoughtworks.xstream.converters.reflection.ObjectAccessException

cause-message : Cannot construct it.geosolutions.geobatch.configuration.flow.file.FileBasedCatalogConfiguration as it does not have a no-args constructor

class : it.geosolutions.geobatch.configuration.flow.file.FileBasedCatalogConfiguration

required-type : it.geosolutions.geobatch.configuration.flow.file.FileBasedCatalogConfiguration

path : /CatalogConfiguration

line number : 2

···

Stephen Brooke (a.k.a. Steve)
Software Engineer III
Ground Systems
MDA
http://www.mda.ca
sbrooke@anonymised.com

Direct phone

+1 604 231 2429

Cell phone

+1 778 839 3274

Switchboard

+1 604 278 3411

FAX

+1 604 231 2757


This e-mail and any attachments are intended solely for the use of the intended recipient(s) and may contain legally privileged, proprietary and/or confidential information. Any use, disclosure, dissemination, distribution or copying of this e-mail and any attachments for any purposes that have not been specifically authorized by the sender is strictly prohibited. If you are not the intended recipient, please immediately notify the sender by reply e-mail and permanently delete all copies and attachments.
The entire content of this e-mail is for “information purposes” only and should not be relied upon by the recipient in any way unless otherwise confirmed in writing by way of letter or facsimile.

Hi Stephen,
this error says that the application couldn’t read the file D:\Data\GeoBatch\config\catalog.xml .
Check if you have the catalog.xml file in that directory and try to change the path using slashes instead of backslashes, like this : D:/Data/GeoBatch/config/catalog.xml

Lorenzo.

···

2014-07-31 3:03 GMT+02:00 Stephen Brooke <sbrooke@anonymised.com>:

I am posting to this list because the GeoBatch User group for some reason does not permit me to post a new topic to it.

I just installed GeoBatch 1.3.0 and ran through the Installation instructions in the documentation. I overrode the configuration to have a separate config directory and separate location for my ‘gb_database.properties’ file.

I am using the default sample “catalog.xml” file located in my GeoBatch config directory and upon startup I get the following error in the geobatch.log file:

The key error below is: “Caused by: com.thoughtworks.xstream.converters.reflection.ObjectAccessException: Cannot construct it.geosolutions.geobatch.configuration.flow.file.FileBasedCatalogConfiguration as it does not have a no-args constructor” and when I look at the GeoBatch source code sure enough the FileBasedCatalogConfiguration class does not have a no-args constructor which I believe is necessary in order for the Spring Framework to instantiate that class.

Any help on this would be appreciated.

Thanks,

–Steve

2014-07-30 17:50:11,330 ERROR ContextLoader:220 - Context initialization failed

org.springframework.beans.factory.BeanCreationException: Error creating bean with name ‘globalConfig’ defined in URL [jar:file:/D:/apache-tomcat-7.0.53-8787-geobatch/webapps/geobatch/WEB-INF/lib/gb-dao-xstream-1.3.0.jar!/applicationContext.xml]: Invocation of init method failed; nested exception is java.io.IOException: Unable to load catalog config ‘catalog’ from base dir D:\Data\GeoBatch\config

at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1412)

at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:519)

at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:456)

at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:291)

at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)

at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:288)

at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:190)

at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:574)

at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:895)

at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:425)

at org.springframework.web.context.ContextLoader.createWebApplicationContext(ContextLoader.java:276)

at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:197)

at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:47)

at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4973)

at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5467)

at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)

at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:901)

at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:877)

at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:632)

at org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:1073)

at org.apache.catalina.startup.HostConfig$DeployWar.run(HostConfig.java:1857)

at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)

at java.util.concurrent.FutureTask.run(FutureTask.java:262)

at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)

at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)

at java.lang.Thread.run(Thread.java:745)

Caused by: java.io.IOException: Unable to load catalog config ‘catalog’ from base dir D:\Data\GeoBatch\config

at it.geosolutions.geobatch.catalog.dao.file.xstream.XStreamCatalogDAO.find(XStreamCatalogDAO.java:80)

at it.geosolutions.geobatch.catalog.dao.file.xstream.XStreamCatalogDAO.find(XStreamCatalogDAO.java:47)

at it.geosolutions.geobatch.catalog.impl.BasePersistentResource.load(BasePersistentResource.java:85)

at it.geosolutions.geobatch.global.XStreamCatalogLoader.init(XStreamCatalogLoader.java:101)

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)

at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

at java.lang.reflect.Method.invoke(Method.java:606)

at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeCustomInitMethod(AbstractAutowireCapableBeanFactory.java:1536)

at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1477)

at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1409)

… 25 more

Caused by: com.thoughtworks.xstream.converters.ConversionException: Cannot construct it.geosolutions.geobatch.configuration.flow.file.FileBasedCatalogConfiguration as it does not have a no-args constructor : Cannot construct it.geosolutions.geobatch.configuration.flow.file.FileBasedCatalogConfiguration as it does not have a no-args constructor

---- Debugging information ----

message : Cannot construct it.geosolutions.geobatch.configuration.flow.file.FileBasedCatalogConfiguration as it does not have a no-args constructor

cause-exception : com.thoughtworks.xstream.converters.reflection.ObjectAccessException

cause-message : Cannot construct it.geosolutions.geobatch.configuration.flow.file.FileBasedCatalogConfiguration as it does not have a no-args constructor

class : it.geosolutions.geobatch.configuration.flow.file.FileBasedCatalogConfiguration

required-type : it.geosolutions.geobatch.configuration.flow.file.FileBasedCatalogConfiguration

path : /CatalogConfiguration

line number : 2


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.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 it.geosolutions.geobatch.catalog.dao.file.xstream.XStreamCatalogDAO.find(XStreamCatalogDAO.java:70)

… 35 more

Caused by: com.thoughtworks.xstream.converters.reflection.ObjectAccessException: Cannot construct it.geosolutions.geobatch.configuration.flow.file.FileBasedCatalogConfiguration 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)

… 44 more

2014-07-30 17:50:11,330 ERROR ContextLoader:220 - Context initialization failed

org.springframework.beans.factory.BeanCreationException: Error creating bean with name ‘globalConfig’ defined in URL [jar:file:/D:/apache-tomcat-7.0.53-8787-geobatch/webapps/geobatch/WEB-INF/lib/gb-dao-xstream-1.3.0.jar!/applicationContext.xml]: Invocation of init method failed; nested exception is java.io.IOException: Unable to load catalog config ‘catalog’ from base dir D:\Data\GeoBatch\config

at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1412)

at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:519)

at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:456)

at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:291)

at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)

at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:288)

at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:190)

at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:574)

at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:895)

at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:425)

at org.springframework.web.context.ContextLoader.createWebApplicationContext(ContextLoader.java:276)

at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:197)

at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:47)

at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4973)

at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5467)

at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)

at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:901)

at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:877)

at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:632)

at org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:1073)

at org.apache.catalina.startup.HostConfig$DeployWar.run(HostConfig.java:1857)

at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)

at java.util.concurrent.FutureTask.run(FutureTask.java:262)

at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)

at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)

at java.lang.Thread.run(Thread.java:745)

Caused by: java.io.IOException: Unable to load catalog config ‘catalog’ from base dir D:\Data\GeoBatch\config

at it.geosolutions.geobatch.catalog.dao.file.xstream.XStreamCatalogDAO.find(XStreamCatalogDAO.java:80)

at it.geosolutions.geobatch.catalog.dao.file.xstream.XStreamCatalogDAO.find(XStreamCatalogDAO.java:47)

at it.geosolutions.geobatch.catalog.impl.BasePersistentResource.load(BasePersistentResource.java:85)

at it.geosolutions.geobatch.global.XStreamCatalogLoader.init(XStreamCatalogLoader.java:101)

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)

at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

at java.lang.reflect.Method.invoke(Method.java:606)

at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeCustomInitMethod(AbstractAutowireCapableBeanFactory.java:1536)

at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1477)

at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1409)

… 25 more

Caused by: com.thoughtworks.xstream.converters.ConversionException: Cannot construct it.geosolutions.geobatch.configuration.flow.file.FileBasedCatalogConfiguration as it does not have a no-args constructor : Cannot construct it.geosolutions.geobatch.configuration.flow.file.FileBasedCatalogConfiguration as it does not have a no-args constructor

---- Debugging information ----

message : Cannot construct it.geosolutions.geobatch.configuration.flow.file.FileBasedCatalogConfiguration as it does not have a no-args constructor

cause-exception : com.thoughtworks.xstream.converters.reflection.ObjectAccessException

cause-message : Cannot construct it.geosolutions.geobatch.configuration.flow.file.FileBasedCatalogConfiguration as it does not have a no-args constructor

class : it.geosolutions.geobatch.configuration.flow.file.FileBasedCatalogConfiguration

required-type : it.geosolutions.geobatch.configuration.flow.file.FileBasedCatalogConfiguration

path : /CatalogConfiguration

line number : 2


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.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 it.geosolutions.geobatch.catalog.dao.file.xstream.XStreamCatalogDAO.find(XStreamCatalogDAO.java:70)

… 35 more

Caused by: com.thoughtworks.xstream.converters.reflection.ObjectAccessException: Cannot construct it.geosolutions.geobatch.configuration.flow.file.FileBasedCatalogConfiguration 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)

… 44 more

Stephen Brooke (a.k.a. Steve)
Software Engineer III
Ground Systems
MDA
http://www.mda.ca
sbrooke@anonymised.com

Direct phone

+1 604 231 2429

Cell phone

+1 778 839 3274

Switchboard

+1 604 278 3411

FAX

+1 604 231 2757


This e-mail and any attachments are intended solely for the use of the intended recipient(s) and may contain legally privileged, proprietary and/or confidential information. Any use, disclosure, dissemination, distribution or copying of this e-mail and any attachments for any purposes that have not been specifically authorized by the sender is strictly prohibited. If you are not the intended recipient, please immediately notify the sender by reply e-mail and permanently delete all copies and attachments.
The entire content of this e-mail is for “information purposes” only and should not be relied upon by the recipient in any way unless otherwise confirmed in writing by way of letter or facsimile.


Infragistics Professional
Build stunning WinForms apps today!
Reboot your WinForms applications with our WinForms controls.
Build a bridge from your legacy apps to the future.
http://pubads.g.doubleclick.net/gampad/clk?id=153845071&iu=/4140/ostg.clktrk


Geoserver-users mailing list
Geoserver-users@anonymised.comsts.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users

==
GeoServer Professional Services from the experts! Visit
http://goo.gl/NWWaa2 for more information.

Regards,
Lorenzo Natali

==

Dott. Ing. Lorenzo Natali
@lorenzonatali
Software Engineer

GeoSolutions S.A.S.
Via Poggio alle Viti 1187
55054 Massarosa (LU)
Italy
phone: +39 0584 962313
fax: +39 0584 1660272
mob: +39 333 8128928

http://www.geo-solutions.it
http://twitter.com/geosolutions_it


Hi Lorenzo,

Thanks for your response. I tried what you suggested but I get the same error.

–Steve

···

Hi Stephen,

this error says that the application couldn’t read the file D:\Data\GeoBatch\config\catalog.xml .

Check if you have the catalog.xml file in that directory and try to change the path using slashes instead of backslashes, like this : D:/Data/GeoBatch/config/catalog.xml

Lorenzo.

2014-07-31 3:03 GMT+02:00 Stephen Brooke <sbrooke@…3836…>:

I am posting to this list because the GeoBatch User group for some reason does not permit me to post a new topic to it.

I just installed GeoBatch 1.3.0 and ran through the Installation instructions in the documentation. I overrode the configuration to have a separate config directory and separate location for my ‘gb_database.properties’ file.

I am using the default sample “catalog.xml” file located in my GeoBatch config directory and upon startup I get the following error in the geobatch.log file:

The key error below is: “Caused by: com.thoughtworks.xstream.converters.reflection.ObjectAccessException: Cannot construct it.geosolutions.geobatch.configuration.flow.file.FileBasedCatalogConfiguration as it does not have a no-args constructor” and when I look at the GeoBatch source code sure enough the FileBasedCatalogConfiguration class does not have a no-args constructor which I believe is necessary in order for the Spring Framework to instantiate that class.

Any help on this would be appreciated.

Thanks,

–Steve

2014-07-30 17:50:11,330 ERROR ContextLoader:220 - Context initialization failed

org.springframework.beans.factory.BeanCreationException: Error creating bean with name ‘globalConfig’ defined in URL [jar:file:/D:/apache-tomcat-7.0.53-8787-geobatch/webapps/geobatch/WEB-INF/lib/gb-dao-xstream-1.3.0.jar!/applicationContext.xml]: Invocation of init method failed; nested exception is java.io.IOException: Unable to load catalog config ‘catalog’ from base dir D:\Data\GeoBatch\config

at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1412)

at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:519)

at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:456)

at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:291)

at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)

at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:288)

at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:190)

at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:574)

at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:895)

at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:425)

at org.springframework.web.context.ContextLoader.createWebApplicationContext(ContextLoader.java:276)

at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:197)

at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:47)

at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4973)

at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5467)

at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)

at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:901)

at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:877)

at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:632)

at org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:1073)

at org.apache.catalina.startup.HostConfig$DeployWar.run(HostConfig.java:1857)

at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)

at java.util.concurrent.FutureTask.run(FutureTask.java:262)

at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)

at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)

at java.lang.Thread.run(Thread.java:745)

Caused by: java.io.IOException: Unable to load catalog config ‘catalog’ from base dir D:\Data\GeoBatch\config

at it.geosolutions.geobatch.catalog.dao.file.xstream.XStreamCatalogDAO.find(XStreamCatalogDAO.java:80)

at it.geosolutions.geobatch.catalog.dao.file.xstream.XStreamCatalogDAO.find(XStreamCatalogDAO.java:47)

at it.geosolutions.geobatch.catalog.impl.BasePersistentResource.load(BasePersistentResource.java:85)

at it.geosolutions.geobatch.global.XStreamCatalogLoader.init(XStreamCatalogLoader.java:101)

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)

at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

at java.lang.reflect.Method.invoke(Method.java:606)

at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeCustomInitMethod(AbstractAutowireCapableBeanFactory.java:1536)

at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1477)

at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1409)

… 25 more

Caused by: com.thoughtworks.xstream.converters.ConversionException: Cannot construct it.geosolutions.geobatch.configuration.flow.file.FileBasedCatalogConfiguration as it does not have a no-args constructor : Cannot construct it.geosolutions.geobatch.configuration.flow.file.FileBasedCatalogConfiguration as it does not have a no-args constructor

---- Debugging information ----

message : Cannot construct it.geosolutions.geobatch.configuration.flow.file.FileBasedCatalogConfiguration as it does not have a no-args constructor

cause-exception : com.thoughtworks.xstream.converters.reflection.ObjectAccessException

cause-message : Cannot construct it.geosolutions.geobatch.configuration.flow.file.FileBasedCatalogConfiguration as it does not have a no-args constructor

class : it.geosolutions.geobatch.configuration.flow.file.FileBasedCatalogConfiguration

required-type : it.geosolutions.geobatch.configuration.flow.file.FileBasedCatalogConfiguration

path : /CatalogConfiguration

line number : 2


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.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 it.geosolutions.geobatch.catalog.dao.file.xstream.XStreamCatalogDAO.find(XStreamCatalogDAO.java:70)

… 35 more

Caused by: com.thoughtworks.xstream.converters.reflection.ObjectAccessException: Cannot construct it.geosolutions.geobatch.configuration.flow.file.FileBasedCatalogConfiguration 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)

… 44 more

2014-07-30 17:50:11,330 ERROR ContextLoader:220 - Context initialization failed

org.springframework.beans.factory.BeanCreationException: Error creating bean with name ‘globalConfig’ defined in URL [jar:file:/D:/apache-tomcat-7.0.53-8787-geobatch/webapps/geobatch/WEB-INF/lib/gb-dao-xstream-1.3.0.jar!/applicationContext.xml]: Invocation of init method failed; nested exception is java.io.IOException: Unable to load catalog config ‘catalog’ from base dir D:\Data\GeoBatch\config

at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1412)

at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:519)

at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:456)

at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:291)

at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)

at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:288)

at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:190)

at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:574)

at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:895)

at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:425)

at org.springframework.web.context.ContextLoader.createWebApplicationContext(ContextLoader.java:276)

at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:197)

at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:47)

at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4973)

at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5467)

at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)

at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:901)

at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:877)

at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:632)

at org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:1073)

at org.apache.catalina.startup.HostConfig$DeployWar.run(HostConfig.java:1857)

at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)

at java.util.concurrent.FutureTask.run(FutureTask.java:262)

at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)

at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)

at java.lang.Thread.run(Thread.java:745)

Caused by: java.io.IOException: Unable to load catalog config ‘catalog’ from base dir D:\Data\GeoBatch\config

at it.geosolutions.geobatch.catalog.dao.file.xstream.XStreamCatalogDAO.find(XStreamCatalogDAO.java:80)

at it.geosolutions.geobatch.catalog.dao.file.xstream.XStreamCatalogDAO.find(XStreamCatalogDAO.java:47)

at it.geosolutions.geobatch.catalog.impl.BasePersistentResource.load(BasePersistentResource.java:85)

at it.geosolutions.geobatch.global.XStreamCatalogLoader.init(XStreamCatalogLoader.java:101)

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)

at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

at java.lang.reflect.Method.invoke(Method.java:606)

at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeCustomInitMethod(AbstractAutowireCapableBeanFactory.java:1536)

at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1477)

at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1409)

… 25 more

Caused by: com.thoughtworks.xstream.converters.ConversionException: Cannot construct it.geosolutions.geobatch.configuration.flow.file.FileBasedCatalogConfiguration as it does not have a no-args constructor : Cannot construct it.geosolutions.geobatch.configuration.flow.file.FileBasedCatalogConfiguration as it does not have a no-args constructor

---- Debugging information ----

message : Cannot construct it.geosolutions.geobatch.configuration.flow.file.FileBasedCatalogConfiguration as it does not have a no-args constructor

cause-exception : com.thoughtworks.xstream.converters.reflection.ObjectAccessException

cause-message : Cannot construct it.geosolutions.geobatch.configuration.flow.file.FileBasedCatalogConfiguration as it does not have a no-args constructor

class : it.geosolutions.geobatch.configuration.flow.file.FileBasedCatalogConfiguration

required-type : it.geosolutions.geobatch.configuration.flow.file.FileBasedCatalogConfiguration

path : /CatalogConfiguration

line number : 2


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.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 it.geosolutions.geobatch.catalog.dao.file.xstream.XStreamCatalogDAO.find(XStreamCatalogDAO.java:70)

… 35 more

Caused by: com.thoughtworks.xstream.converters.reflection.ObjectAccessException: Cannot construct it.geosolutions.geobatch.configuration.flow.file.FileBasedCatalogConfiguration 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)

… 44 more

Stephen Brooke (a.k.a. Steve)
Software Engineer III
Ground Systems
MDA
http://www.mda.ca
sbrooke@…3836…

Direct phone

+1 604 231 2429

Cell phone

+1 778 839 3274

Switchboard

+1 604 278 3411

FAX

+1 604 231 2757


This e-mail and any attachments are intended solely for the use of the intended recipient(s) and may contain legally privileged, proprietary and/or confidential information. Any use, disclosure, dissemination, distribution or copying of this e-mail and any attachments for any purposes that have not been specifically authorized by the sender is strictly prohibited. If you are not the intended recipient, please immediately notify the sender by reply e-mail and permanently delete all copies and attachments.
The entire content of this e-mail is for “information purposes” only and should not be relied upon by the recipient in any way unless otherwise confirmed in writing by way of letter or facsimile.


Infragistics Professional
Build stunning WinForms apps today!
Reboot your WinForms applications with our WinForms controls.
Build a bridge from your legacy apps to the future.
http://pubads.g.doubleclick.net/gampad/clk?id=153845071&iu=/4140/ostg.clktrk


Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users

==
GeoServer Professional Services from the experts! Visit
http://goo.gl/NWWaa2 for more information.

Regards,

Lorenzo Natali

==

Dott. Ing. Lorenzo Natali

@lorenzonatali

Software Engineer

GeoSolutions S.A.S.
Via Poggio alle Viti 1187
55054 Massarosa (LU)
Italy
phone: +39 0584 962313
fax: +39 0584 1660272
mob: +39 333 8128928

http://www.geo-solutions.it
http://twitter.com/geosolutions_it


It seems you were not a member of the geobatch user group.
You should have received an invitation by the administrator.

Please post this discussion again on the other mailing list.
Lorenzo.

···

2014-07-31 18:43 GMT+02:00 Stephen Brooke <sbrooke@anonymised.com>:

Hi Lorenzo,

Thanks for your response. I tried what you suggested but I get the same error.

–Steve

From: offtherailz@anonymised.com [mailto:offtherailz@anonymised.com] On Behalf Of Lorenzo Natali
Sent: Thursday, July 31, 2014 5:58 AM
To: Stephen Brooke
Cc: geoserver-users@lists.sourceforge.net
Subject: Re: [Geoserver-users] Problem encountered during GeoBatch startup

Hi Stephen,

this error says that the application couldn’t read the file D:\Data\GeoBatch\config\catalog.xml .

Check if you have the catalog.xml file in that directory and try to change the path using slashes instead of backslashes, like this : D:/Data/GeoBatch/config/catalog.xml

Lorenzo.

2014-07-31 3:03 GMT+02:00 Stephen Brooke <sbrooke@anonymised.com>:

I am posting to this list because the GeoBatch User group for some reason does not permit me to post a new topic to it.

I just installed GeoBatch 1.3.0 and ran through the Installation instructions in the documentation. I overrode the configuration to have a separate config directory and separate location for my ‘gb_database.properties’ file.

I am using the default sample “catalog.xml” file located in my GeoBatch config directory and upon startup I get the following error in the geobatch.log file:

The key error below is: “Caused by: com.thoughtworks.xstream.converters.reflection.ObjectAccessException: Cannot construct it.geosolutions.geobatch.configuration.flow.file.FileBasedCatalogConfiguration as it does not have a no-args constructor” and when I look at the GeoBatch source code sure enough the FileBasedCatalogConfiguration class does not have a no-args constructor which I believe is necessary in order for the Spring Framework to instantiate that class.

Any help on this would be appreciated.

Thanks,

–Steve

2014-07-30 17:50:11,330 ERROR ContextLoader:220 - Context initialization failed

org.springframework.beans.factory.BeanCreationException: Error creating bean with name ‘globalConfig’ defined in URL [jar:file:/D:/apache-tomcat-7.0.53-8787-geobatch/webapps/geobatch/WEB-INF/lib/gb-dao-xstream-1.3.0.jar!/applicationContext.xml]: Invocation of init method failed; nested exception is java.io.IOException: Unable to load catalog config ‘catalog’ from base dir D:\Data\GeoBatch\config

at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1412)

at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:519)

at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:456)

at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:291)

at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)

at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:288)

at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:190)

at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:574)

at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:895)

at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:425)

at org.springframework.web.context.ContextLoader.createWebApplicationContext(ContextLoader.java:276)

at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:197)

at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:47)

at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4973)

at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5467)

at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)

at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:901)

at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:877)

at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:632)

at org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:1073)

at org.apache.catalina.startup.HostConfig$DeployWar.run(HostConfig.java:1857)

at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)

at java.util.concurrent.FutureTask.run(FutureTask.java:262)

at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)

at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)

at java.lang.Thread.run(Thread.java:745)

Caused by: java.io.IOException: Unable to load catalog config ‘catalog’ from base dir D:\Data\GeoBatch\config

at it.geosolutions.geobatch.catalog.dao.file.xstream.XStreamCatalogDAO.find(XStreamCatalogDAO.java:80)

at it.geosolutions.geobatch.catalog.dao.file.xstream.XStreamCatalogDAO.find(XStreamCatalogDAO.java:47)

at it.geosolutions.geobatch.catalog.impl.BasePersistentResource.load(BasePersistentResource.java:85)

at it.geosolutions.geobatch.global.XStreamCatalogLoader.init(XStreamCatalogLoader.java:101)

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)

at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

at java.lang.reflect.Method.invoke(Method.java:606)

at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeCustomInitMethod(AbstractAutowireCapableBeanFactory.java:1536)

at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1477)

at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1409)

… 25 more

Caused by: com.thoughtworks.xstream.converters.ConversionException: Cannot construct it.geosolutions.geobatch.configuration.flow.file.FileBasedCatalogConfiguration as it does not have a no-args constructor : Cannot construct it.geosolutions.geobatch.configuration.flow.file.FileBasedCatalogConfiguration as it does not have a no-args constructor

---- Debugging information ----

message : Cannot construct it.geosolutions.geobatch.configuration.flow.file.FileBasedCatalogConfiguration as it does not have a no-args constructor

cause-exception : com.thoughtworks.xstream.converters.reflection.ObjectAccessException

cause-message : Cannot construct it.geosolutions.geobatch.configuration.flow.file.FileBasedCatalogConfiguration as it does not have a no-args constructor

class : it.geosolutions.geobatch.configuration.flow.file.FileBasedCatalogConfiguration

required-type : it.geosolutions.geobatch.configuration.flow.file.FileBasedCatalogConfiguration

path : /CatalogConfiguration

line number : 2


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.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 it.geosolutions.geobatch.catalog.dao.file.xstream.XStreamCatalogDAO.find(XStreamCatalogDAO.java:70)

… 35 more

Caused by: com.thoughtworks.xstream.converters.reflection.ObjectAccessException: Cannot construct it.geosolutions.geobatch.configuration.flow.file.FileBasedCatalogConfiguration 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)

… 44 more

2014-07-30 17:50:11,330 ERROR ContextLoader:220 - Context initialization failed

org.springframework.beans.factory.BeanCreationException: Error creating bean with name ‘globalConfig’ defined in URL [jar:file:/D:/apache-tomcat-7.0.53-8787-geobatch/webapps/geobatch/WEB-INF/lib/gb-dao-xstream-1.3.0.jar!/applicationContext.xml]: Invocation of init method failed; nested exception is java.io.IOException: Unable to load catalog config ‘catalog’ from base dir D:\Data\GeoBatch\config

at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1412)

at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:519)

at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:456)

at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:291)

at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)

at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:288)

at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:190)

at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:574)

at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:895)

at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:425)

at org.springframework.web.context.ContextLoader.createWebApplicationContext(ContextLoader.java:276)

at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:197)

at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:47)

at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4973)

at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5467)

at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)

at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:901)

at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:877)

at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:632)

at org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:1073)

at org.apache.catalina.startup.HostConfig$DeployWar.run(HostConfig.java:1857)

at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)

at java.util.concurrent.FutureTask.run(FutureTask.java:262)

at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)

at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)

at java.lang.Thread.run(Thread.java:745)

Caused by: java.io.IOException: Unable to load catalog config ‘catalog’ from base dir D:\Data\GeoBatch\config

at it.geosolutions.geobatch.catalog.dao.file.xstream.XStreamCatalogDAO.find(XStreamCatalogDAO.java:80)

at it.geosolutions.geobatch.catalog.dao.file.xstream.XStreamCatalogDAO.find(XStreamCatalogDAO.java:47)

at it.geosolutions.geobatch.catalog.impl.BasePersistentResource.load(BasePersistentResource.java:85)

at it.geosolutions.geobatch.global.XStreamCatalogLoader.init(XStreamCatalogLoader.java:101)

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)

at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

at java.lang.reflect.Method.invoke(Method.java:606)

at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeCustomInitMethod(AbstractAutowireCapableBeanFactory.java:1536)

at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1477)

at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1409)

… 25 more

Caused by: com.thoughtworks.xstream.converters.ConversionException: Cannot construct it.geosolutions.geobatch.configuration.flow.file.FileBasedCatalogConfiguration as it does not have a no-args constructor : Cannot construct it.geosolutions.geobatch.configuration.flow.file.FileBasedCatalogConfiguration as it does not have a no-args constructor

---- Debugging information ----

message : Cannot construct it.geosolutions.geobatch.configuration.flow.file.FileBasedCatalogConfiguration as it does not have a no-args constructor

cause-exception : com.thoughtworks.xstream.converters.reflection.ObjectAccessException

cause-message : Cannot construct it.geosolutions.geobatch.configuration.flow.file.FileBasedCatalogConfiguration as it does not have a no-args constructor

class : it.geosolutions.geobatch.configuration.flow.file.FileBasedCatalogConfiguration

required-type : it.geosolutions.geobatch.configuration.flow.file.FileBasedCatalogConfiguration

path : /CatalogConfiguration

line number : 2


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.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 it.geosolutions.geobatch.catalog.dao.file.xstream.XStreamCatalogDAO.find(XStreamCatalogDAO.java:70)

… 35 more

Caused by: com.thoughtworks.xstream.converters.reflection.ObjectAccessException: Cannot construct it.geosolutions.geobatch.configuration.flow.file.FileBasedCatalogConfiguration 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)

… 44 more

Stephen Brooke (a.k.a. Steve)
Software Engineer III
Ground Systems
MDA
http://www.mda.ca
sbrooke@anonymised.com

Direct phone

+1 604 231 2429

Cell phone

+1 778 839 3274

Switchboard

+1 604 278 3411

FAX

+1 604 231 2757


This e-mail and any attachments are intended solely for the use of the intended recipient(s) and may contain legally privileged, proprietary and/or confidential information. Any use, disclosure, dissemination, distribution or copying of this e-mail and any attachments for any purposes that have not been specifically authorized by the sender is strictly prohibited. If you are not the intended recipient, please immediately notify the sender by reply e-mail and permanently delete all copies and attachments.
The entire content of this e-mail is for “information purposes” only and should not be relied upon by the recipient in any way unless otherwise confirmed in writing by way of letter or facsimile.


Infragistics Professional
Build stunning WinForms apps today!
Reboot your WinForms applications with our WinForms controls.
Build a bridge from your legacy apps to the future.
http://pubads.g.doubleclick.net/gampad/clk?id=153845071&iu=/4140/ostg.clktrk


Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users

==
GeoServer Professional Services from the experts! Visit
http://goo.gl/NWWaa2 for more information.

Regards,

Lorenzo Natali

==

Dott. Ing. Lorenzo Natali

@lorenzonatali

Software Engineer

GeoSolutions S.A.S.
Via Poggio alle Viti 1187
55054 Massarosa (LU)
Italy
phone: +39 0584 962313
fax: +39 0584 1660272
mob: +39 333 8128928

http://www.geo-solutions.it
http://twitter.com/geosolutions_it


==
GeoServer Professional Services from the experts! Visit
http://goo.gl/NWWaa2 for more information.

Regards,
Lorenzo Natali

==

Dott. Ing. Lorenzo Natali
@lorenzonatali
Software Engineer

GeoSolutions S.A.S.
Via Poggio alle Viti 1187
55054 Massarosa (LU)
Italy
phone: +39 0584 962313
fax: +39 0584 1660272
mob: +39 333 8128928

http://www.geo-solutions.it
http://twitter.com/geosolutions_it