-
Bug
-
Resolution: Done
-
Major
-
1.3.0.Beta3
-
None
It throws the following error message while writing it into csv by using csvItemWriter.
Oct 03, 2016 1:25:29 PM org.jberet.runtime.runner.ChunkRunner readProcessWriteItems
ERROR: ProcessingInfo
{count=1197, timerExpired=false, itemState=RUNNING, chunkState=DEPLETED, checkpointPosition=-1, readPosition=1197, failurePoint=null}Oct 03, 2016 1:25:29 PM org.jberet.runtime.runner.ChunkRunner run
ERROR: item-count=10000, time-limit=0, skip-limit=-1, skipCount=0, retry-limit=-1, retryCount=0
Oct 03, 2016 1:25:29 PM org.jberet.runtime.runner.ChunkRunner run
ERROR: JBERET000007: Failed to run job job, xxxxxx, org.jberet.job.model.Chunk@e4fe4dd
java.lang.IllegalArgumentException: columns to write should not be empty on line 4
at org.supercsv.io.AbstractCsvWriter.writeRow(AbstractCsvWriter.java:162)
at org.supercsv.io.AbstractCsvWriter.writeRow(AbstractCsvWriter.java:126)
at org.supercsv.io.CsvListWriter.write(CsvListWriter.java:71)
at org.jberet.support.io.CsvItemWriter.writeItems(CsvItemWriter.java:152)
at org.jberet.runtime.runner.ChunkRunner.doCheckpoint(ChunkRunner.java:522)
at org.jberet.runtime.runner.ChunkRunner.readProcessWriteItems(ChunkRunner.java:317)
at org.jberet.runtime.runner.ChunkRunner.run(ChunkRunner.java:201)
at org.jberet.runtime.runner.StepExecutionRunner.runBatchletOrChunk(StepExecutionRunner.java:219)
at org.jberet.runtime.runner.StepExecutionRunner.run(StepExecutionRunner.java:140)
at org.jberet.runtime.runner.CompositeExecutionRunner.runStep(CompositeExecutionRunner.java:164)
at org.jberet.runtime.runner.CompositeExecutionRunner.runFromHeadOrRestartPoint(CompositeExecutionRunner.java:88)
at org.jberet.runtime.runner.JobExecutionRunner.run(JobExecutionRunner.java:59)
at org.jberet.spi.JobExecutor$1.run(JobExecutor.java:99)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at java.lang.Thread.run(Thread.java:745)
More details at JBeret Forum / Space:
https://developer.jboss.org/thread/272537
- links to