I am migrating from 1.0 to 2.0.
The following is the configuration:
On executing this piece, I get the following exception.Code:<bean id="demoJob" parent="simpleBatchJob"> <property name="name" value="demoJob" /> <property name="steps"> <list> <ref bean="demoStep" /> </list> </property> </bean> <bean id="demoStep" parent="taskletStep"> <property name="tasklet" ref="tasklet" /> <property name="jobRepository" ref="jobRepository" /> <property name="transactionManager" ref="batchExecTransactionManager"></property> </bean> <bean id="tasklet" class="batch.demo.MyTasklet" /> <property name="location" value="/tmp/demo/"></property> </bean>
java.lang.NullPointerException
at org.springframework.batch.core.job.AbstractJob.upd ateStatus(AbstractJob.java:423)
at org.springframework.batch.core.job.AbstractJob.exe cute(AbstractJob.java:245)
....
....
....
Any takes on what I might be doing wrong?


Reply With Quote