Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>Just a couple of points.</p> <p>The first is that I've never understood why Java insists on getting the process's output stream with <code>getInputStream</code> - that's just bizarre. But that's just me ranting, there's not much you can do about that :-)</p> <p>Secondly, I'm not sure why you have a "naked" <code>process.getInputStream();</code> in your code. I don't think it's bad but it seems unnecessary.</p> <p>Thirdly (and, to be honest, this is the only one I think may help), you need to debug the batch file itself rather than your Java code.</p> <p>This can be done with the following two suggestions.</p> <p>First, get the error stream and look at it. It's quite possible that <code>cmd</code> is delivering error information which you're just ignoring.</p> <p>Secondly, change the batch file to output copious amounts of debug statements, one after each line if necessary. This will hopefully pinpoint the problem down to a specific place in the batch file.</p> <p>If it only happens in production (and intermittently), that's harder, but we generally find that our customers are more than willing to accept debug-style temporary patches so we can collect the information to fix the problems they're seeing.</p> <p>Output from a batch file which is simply logged is also a low-risk change. Some debug code is not so low-risk and we have to test that <em>very</em> thoroughly before involving the customer production systems. Some will refuse point blank, a not-unwise position to take.</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload