I run 2 jobs like that :
jobLauncher.run( (Job) beanFactory.getBean("geckoAlimentationJob"), new JobParameters() );
--> this job load data from a sysbase database and write it in a SQL server database
jobLauncher.run( (Job) beanFactory.getBean("clinkAlimentationJob"), new JobParameters());
--> this job load data from a SQL server database and write it in a SQL server database
job launcher is SimpleJobLauncher use a task executor class SimpleAsyncTaskExecutor.
the transaction manager is ResourcelessTransactionManager class.
and it send me that
Exception in thread "SimpleAsyncTaskExecutor-1" org.springframework.batch.core.UnexpectedJobExecut ionException: Encountered an error saving batch meta data.
for each, i use SimpleJob and SimpleStepFactoryBean class.
readers are JdbcCursorItemReader
writers are ItemWriter delegate to BatchSqlUpdateItemWriter.
can ou help me ?
regards.



Reply With Quote
