
Originally Posted by
lucasward
It would really help if you could provide a stack trace as well.
This is my Stack Trace
Code:
C:\workSpaces\Batch-ByteProcess>java -jar target\Batch-ByteProcess-1.0.jar ByteProcessJob.xml xmlByteProcessJob schedule.run=86
Mar 5, 2009 3:32:06 PM org.springframework.context.support.AbstractApplicationContext prepareRefresh
INFO: Refreshing org.springframework.context.support.ClassPathXmlApplicationContext@e5b723: display name [org.springframework.context.support.ClassPathXmlApplic
ationContext@e5b723]; startup date [Thu Mar 05 15:32:06 CST 2009]; root of context hierarchy
Mar 5, 2009 3:32:06 PM org.springframework.beans.factory.xml.XmlBeanDefinitionReader loadBeanDefinitions
INFO: Loading XML bean definitions from class path resource [ByteProcessJob.xml]
Mar 5, 2009 3:32:07 PM org.springframework.beans.factory.xml.XmlBeanDefinitionReader loadBeanDefinitions
INFO: Loading XML bean definitions from class path resource [data-source-context.xml]
Mar 5, 2009 3:32:07 PM org.springframework.context.support.AbstractApplicationContext obtainFreshBeanFactory
INFO: Bean factory for application context [org.springframework.context.support.ClassPathXmlApplicationContext@e5b723]: org.springframework.beans.factory.suppor
t.DefaultListableBeanFactory@1f06dc3
Mar 5, 2009 3:32:07 PM org.springframework.core.io.support.PropertiesLoaderSupport loadProperties
INFO: Loading properties file from class path resource [jdbc.properties]
Mar 5, 2009 3:32:07 PM org.springframework.core.io.support.PropertiesLoaderSupport loadProperties
INFO: Loading properties file from class path resource [mysql.properties]
Mar 5, 2009 3:32:07 PM org.springframework.core.io.support.PropertiesLoaderSupport loadProperties
INFO: Loading properties file from class path resource [system.properties]
Mar 5, 2009 3:32:08 PM org.springframework.beans.factory.support.DefaultListableBeanFactory preInstantiateSingletons
INFO: Pre-instantiating singletons in org.springframework.beans.factory.support.DefaultListableBeanFactory@1f06dc3: defining beans [propertyConfigurer,dataSourc
eMYSQL,dataSourceDB2,transactionManager,jdbcTemplate,jobRepository,simpleStep,mapJobRepository,xmlByteProcessJob,tradeStaxWriter,tradeMarshallingSerializer,alia
ses,customEditorConfigurer,logAdvice,eventAdvice]; root of factory hierarchy
Mar 5, 2009 3:32:08 PM org.springframework.batch.core.launch.support.CommandLine
JobRunner start
SEVERE: Job Terminated in error:
java.lang.NullPointerException
at org.springframework.batch.core.launch.support.CommandLineJobRunner.start(CommandLineJobRunner.java:205)
at org.springframework.batch.core.launch.support.CommandLineJobRunner.main(CommandLineJobRunner.java:252)
Mar 5, 2009 3:32:09 PM org.springframework.context.support.AbstractApplicationContext doClose
INFO: Closing org.springframework.context.support.ClassPathXmlApplicationContext@e5b723: display name [org.springframework.context.support.ClassPathXmlApplicati
onContext@e5b723]; startup date [Thu Mar 05 15:32:06 CST 2009]; root of contexthierarchy
Mar 5, 2009 3:32:09 PM org.springframework.beans.factory.support.DefaultSingletonBeanRegistry destroySingletons
INFO: Destroying singletons in org.springframework.beans.factory.support.DefaultListableBeanFactory@1f06dc3: defining beans [propertyConfigurer,dataSourceMYSQL,
dataSourceDB2,transactionManager,jdbcTemplate,jobRepository,simpleStep,mapJobRepository,xmlByteProcessJob,tradeStaxWriter,tradeMarshallingSerializer,aliases,cus
tomEditorConfigurer,logAdvice,eventAdvice]; root of factory hierarchy
Thanks a lot for your help