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

Writer is not able to create path for file

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Major
    • 1.3.0.Beta4
    • 1.3.0.Beta3
    • jberet-support
    • None

    Description

      The writer on my job is not able to create a new directory path. Part of the directory structure exists. If I create the directory so that the full path exists the file is created. Is there a way to do this on the fly? Below is the error and jsl.

      Unable to find source-code formatter for language: text. Available languages are: actionscript, ada, applescript, bash, c, c#, c++, cpp, css, erlang, go, groovy, haskell, html, java, javascript, js, json, lua, none, nyan, objc, perl, php, python, r, rainbow, ruby, scala, sh, sql, swift, visualbasic, xml, yaml
      JBERET000007: Failed to run job Jberet_Adhoc_SqlTest, test, org.jberet.job.model.Chunk@23a71052
      
      javax.batch.operations.BatchRuntimeException: JBERET060000: Invalid reader or writer property value /awg/q1/app/data/tmp/XX/Jberet/Jberet_Adhoc_SqlTest.out for key resource
      
         at org.jberet.support.io.ItemReaderWriterBase.getOutputStream(ItemReaderWriterBase.java:191) ~[jberet-support-1.3.0.Beta3.jar:1.3.0.Beta3]
      
         at org.jberet.support.io.JacksonCsvItemWriter.open(JacksonCsvItemWriter.java:121) ~[jberet-support-1.3.0.Beta3.jar:1.3.0.Beta3]
      
         at org.jberet.runtime.runner.ChunkRunner.run(ChunkRunner.java:192) [jberet-core-1.3.0.Beta3.jar:1.3.0.Beta3]
      
         at org.jberet.runtime.runner.StepExecutionRunner.runBatchletOrChunk(StepExecutionRunner.java:226) [jberet-core-1.3.0.Beta3.jar:1.3.0.Beta3]
      
         at org.jberet.runtime.runner.StepExecutionRunner.run(StepExecutionRunner.java:147) [jberet-core-1.3.0.Beta3.jar:1.3.0.Beta3]
      
         at org.jberet.runtime.runner.CompositeExecutionRunner.runStep(CompositeExecutionRunner.java:164) [jberet-core-1.3.0.Beta3.jar:1.3.0.Beta3]
      
         at org.jberet.runtime.runner.CompositeExecutionRunner.runFromHeadOrRestartPoint(CompositeExecutionRunner.java:88) [jberet-core-1.3.0.Beta3.jar:1.3.0.Beta3]
      
         at org.jberet.runtime.runner.JobExecutionRunner.run(JobExecutionRunner.java:60) [jberet-core-1.3.0.Beta3.jar:1.3.0.Beta3]
      
         at org.jberet.spi.JobExecutor$1.run(JobExecutor.java:99) [jberet-core-1.3.0.Beta3.jar:1.3.0.Beta3]
      
         at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) [?:1.8.0_111]
      
         at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) [?:1.8.0_111]
      
         at java.lang.Thread.run(Thread.java:745) [?:1.8.0_111]
      
      Caused by: java.io.FileNotFoundException: /awg/q1/app/data/tmp/XX/Jberet/Jberet_Adhoc_SqlTest.out (No such file or directory)
      
         at java.io.FileOutputStream.open0(Native Method) ~[?:1.8.0_111]
      
         at java.io.FileOutputStream.open(FileOutputStream.java:270) ~[?:1.8.0_111]
      
         at java.io.FileOutputStream.<init>(FileOutputStream.java:213) ~[?:1.8.0_111]
      
         at java.io.FileOutputStream.<init>(FileOutputStream.java:162) ~[?:1.8.0_111]
      
         at org.jberet.support.io.ItemReaderWriterBase.getOutputStream(ItemReaderWriterBase.java:181) ~[jberet-support-1.3.0.Beta3.jar:1.3.0.Beta3]
      
         ... 11 more
      
       

      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: