Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / General / May 2007

Tip: Looking for answers? Try searching our database.

ExitValue of Windows OS Process returns always 128

Thread view: 
tkonrath@gmx.at - 10 May 2007 14:32 GMT
Hi.

In our java webapp (jfdk 1.4.2 and Tomcat 4 on an Windows 2003 Server)
we have a class, which calls an externel programm as a OS process. But
the exit code is 128. Always !!! If we execute the command in die
Windows Command Line directly, everythink works fine.

The Tomcat runs as a service. Even if we create just a simple jsp page
with the following code:
<%

  java.lang.Process dirProc =
java.lang.Runtime.getRuntime().exec("cmd /c Dir * > c:\
\dir_test.txt");

    dirProc.waitFor();

    out.write("" + dirProc.exitValue());
%>

we get 128 as exit code !!! and no file c:\dir_test.txt is created.

Can anyone help??? PLEASE!

Thanks

Thomas Konrath
tkonrath - 14 May 2007 16:16 GMT
Finally we solved the problem:

our Tomcat-Server runs as a service under Windows. Several other calls
of the external programm have just running of an timeout, but the
processes still exsists on the server. So after killing all hanging
processes through the task manager, everythink works fine.

It seem, that this return value is like the error message "Maximum
number of opend processes reached."

Thx,
Thomas


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.