M
Michal M
Hello,
I've got a servlet which runs linux binary file and creates java.lang.Process,
takes its output (getInputStream()) and writes it on .html page via BufferedReader.
Old version of linux executable works fine, but I recently got a new version of
this program which must be deployed and here's problem:
- new executable works fine when running from linux command line (gives the same
output - about ten lines - the same text, the same md5sum of outputted file as
old one)
- getting error stream (from servlet) also works fine
- but rewriting process.getInputStream() on html page (as previous) doesn't
- - under java 1.4.2_07 (rh9) servlet some times works fine but sometimes
produces no output - exit value (waitFor()) is 129
- - under java 1.3.1_01 (rh7) servlet doesn't work - everytime exit value is
139! and there is produced no output on page
What can I do? Where the problem cames from?
Please note, I probaly won't be able to gather source code of mentioned linux
application (c/c++).
Regards,
Michal M
I've got a servlet which runs linux binary file and creates java.lang.Process,
takes its output (getInputStream()) and writes it on .html page via BufferedReader.
Old version of linux executable works fine, but I recently got a new version of
this program which must be deployed and here's problem:
- new executable works fine when running from linux command line (gives the same
output - about ten lines - the same text, the same md5sum of outputted file as
old one)
- getting error stream (from servlet) also works fine
- but rewriting process.getInputStream() on html page (as previous) doesn't
- - under java 1.4.2_07 (rh9) servlet some times works fine but sometimes
produces no output - exit value (waitFor()) is 129
- - under java 1.3.1_01 (rh7) servlet doesn't work - everytime exit value is
139! and there is produced no output on page
What can I do? Where the problem cames from?
Please note, I probaly won't be able to gather source code of mentioned linux
application (c/c++).
Regards,
Michal M