In my application, I use JBeret implementation for batch processing.
When trying to retrieve the running executions of a job but I got a NPE:
Stacktrace:
Caused by: java.lang.NullPointerException at org.jberet.runtime.JobExecutionImpl.getJobName(JobExecutionImpl.java:141) at org.jberet.operations.JobOperatorImpl.getRunningExecutions(JobOperatorImpl.java:157) at ch.adnovum.monexio.server.batch.rs.BatchOperatorServiceBean.getRunningJobIds(BatchOperatorServiceBean.java:143) at ch.adnovum.monexio.server.batch.rs.BatchOperatorServiceBean.assertAtomicJob(BatchOperatorServiceBean.java:94) at ch.adnovum.monexio.server.batch.rs.BatchOperatorServiceBean.start(BatchOperatorServiceBean.java:54)
The code for your reference: http://grepcode.com/file/repo1.maven.org/maven2/org.jberet/jberet-core/1.0.1.CR1/org/jberet/operations/JobOperatorImpl.java#JobOperatorImpl.getRunningExecutions%28java.lang.String%29
I checked the database where JBeret stores the job information, as far as I can see, the every execution attached to valid instance.
Has anyone ever faced the same problem?