Hitachi Vantara Pentaho Community Forums
Results 1 to 3 of 3

Thread: (stderr) - java.io.IOException: Bad file descriptor

  1. #1
    Join Date
    Mar 2006
    Posts
    170

    Talking (stderr) - java.io.IOException: Bad file descriptor

    Hi All,

    I am getting this "sometimes" in my log.

    It is hit or miss, same code run with same data and sometimes these appear in the log other runs it doesn't.

    I did a search on Google and some say that it is a bug in Java 1.6 possibly fixed in Java 1.7.

    Has anyone else had this?

    I have a PDI "Loop" that is tweaked to run parallel within a job.

    3 streams running parallel iterate over a PDI loop serially and kick off FACT (3rd party utility) via a shell step for each iteration. Unloading a flat file from Oracle.

    Hope that makes sense...

    I thought maybe PDI was tripping up over itself as the loop-process was hustling too fast so I tried to slow it down by sprinkling in a few wait 1 second steps here and there. However that didn't help.

    Here is an excerpt from the log:

    ERROR 08-07 23:04:21,606 - call_fact_for_delta (stderr) - java.io.IOException: Bad file descriptor
    at java.io.FileInputStream.readBytes(Native Method)
    at java.io.FileInputStream.read(Unknown Source)
    at sun.nio.cs.StreamDecoder.readBytes(Unknown Source)
    at sun.nio.cs.StreamDecoder.implRead(Unknown Source)
    at sun.nio.cs.StreamDecoder.read(Unknown Source)
    at java.io.InputStreamReader.read(Unknown Source)
    at java.io.BufferedReader.fill(Unknown Source)
    at java.io.BufferedReader.readLine(Unknown Source)
    at java.io.BufferedReader.readLine(Unknown Source)
    at org.pentaho.di.core.util.StreamLogger.run(StreamLogger.java:45)
    at java.lang.Thread.run(Unknown Source)

    Now the crazy thing is FACT is dumping the flat file and working-acting like no issues or problems encountered.

    However the log states this is an error and it appears it is in the logging of stderr via the shell step.

    Anyone have a workaround or thoughts?

    Much appreciated.

    BTW if I adjust my process to work with the Transformation "Execute a Process" I don't see this error ever appear ... I do believe because it doesn't try and output stderr like the shell step is doing.

    Thanks

    Kent

  2. #2
    Join Date
    Feb 2009
    Posts
    1

    Default

    To add to this, it also occurs when PDI calls a shell wrapper, which in turn calls fact. So, definitely appears to be an issue with PDI's hook into the shell's stderr.

  3. #3
    Join Date
    Nov 1999
    Posts
    9,729

    Default

    I googled for it, found this link:

    http://256.com/gray/docs/misc/java_b...lose_bug.shtml

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Privacy Policy | Legal Notices | Safe Harbor Privacy Policy

Copyright © 2005 - 2019 Hitachi Vantara Corporation. All Rights Reserved.