Uploaded image for project: 'JBeret'
  1. JBeret
  2. JBERET-460

beanIOItemWriter Invalid writer property value for key resource

    XMLWordPrintable

Details

    Description

      See JBeret Forum discussion thread: https://developer.jboss.org/thread/279059

      The writer fails with the following exception when the target resource file as specified in job xml contains no path prefix:

      javax.batch.operations.BatchRuntimeException: JBERET060000: Invalid reader or writer property value mytest.out for key resource
      
      at org.jberet.support.io.ItemReaderWriterBase.newFileOutputStream(ItemReaderWriterBase.java:222) ~[jberet-support-1.3.0.Final.jar:?]
      
      at org.jberet.support.io.ItemReaderWriterBase.getOutputStream(ItemReaderWriterBase.java:183) ~[jberet-support-1.3.0.Final.jar:?]
      
      at org.jberet.support.io.BeanIOItemWriter.open(BeanIOItemWriter.java:48) ~[jberet-support-1.3.0.Final.jar:?]
      
      at org.jberet.runtime.runner.ChunkRunner.run(ChunkRunner.java:199) [jberet-core-1.3.0.Final.jar:1.3.0.Final]
      
      at org.jberet.runtime.runner.StepExecutionRunner.runBatchletOrChunk(StepExecutionRunner.java:225) [jberet-core-1.3.0.Final.jar:1.3.0.Final]
      
      at org.jberet.runtime.runner.StepExecutionRunner.run(StepExecutionRunner.java:144) [jberet-core-1.3.0.Final.jar:1.3.0.Final]
      
      at org.jberet.runtime.runner.CompositeExecutionRunner.runStep(CompositeExecutionRunner.java:164) [jberet-core-1.3.0.Final.jar:1.3.0.Final]
      
      at org.jberet.runtime.runner.CompositeExecutionRunner.runFromHeadOrRestartPoint(CompositeExecutionRunner.java:88) [jberet-core-1.3.0.Final.jar:1.3.0.Final]
      
      at org.jberet.runtime.runner.JobExecutionRunner.run(JobExecutionRunner.java:60) [jberet-core-1.3.0.Final.jar:1.3.0.Final]
      
      at org.jberet.spi.JobExecutor$1.run(JobExecutor.java:99) [jberet-core-1.3.0.Final.jar:1.3.0.Final]
      
      at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) [?:1.8.0_121]
      
      at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) [?:1.8.0_121]
      
      at java.lang.Thread.run(Thread.java:745) [?:1.8.0_121]
      

      Attachments

        Issue Links

          Activity

            People

              cfang@redhat.com Cheng Fang
              cfang@redhat.com Cheng Fang
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: