Greetings,
        I have a servlet running under Tomcat 4.0.4 on Solaris 2.8 and Java
1.2.2_08 that:
1.  Writes out a file to a temp directory
2.  Does a renameTo to get it to the final directory
3.  Does a runtime.exec to change the permissions, group, and owner

It does 1 and 2 just fine.  
It does 3 just fine for about six months, then stops.

The first time it happened, we were getting a "too many open files" error,
so I put all three commands into one exec command and explicitly closed the
in, out and error streams.  Walla!  It works.

The second time was on a different box, but the original permissions worked
OK, so I left it.

The third time was on yet another box, so I made the same change.  Now it's
doing the chmod, but not the chgrp or the chown.  The only things the logs
indicate are a problem in the apache log with the warp connector :
[org.apache.catalina.connector.warp.WarpConnection] Exception on socket
java.io.IOException: Premature packet header end

Which I haven't had much luck troubleshooting.  The servlet doesn't send
anything back, so I don't think this is it.

We've tried using explicit paths to the commands, to no avail.  Any hints?

Thanks,
Joe

____________________________________________________
To change your JDJList options, please visit:
http://www.sys-con.com/java/list.cfm

Be respectful! Clean up your posts before replying
____________________________________________________

Reply via email to