Return-Path: Mailing-List: contact tomcat-user-help@jakarta.apache.org; run by ezmlm Delivered-To: mailing list tomcat-user@jakarta.apache.org Received: (qmail 15758 invoked from network); 16 Nov 2000 08:02:34 -0000 Received: from gilberto.physik.rwth-aachen.de (137.226.30.2) by locus.apache.org with SMTP; 16 Nov 2000 08:02:34 -0000 Received: (from kuku@localhost) by gilberto.physik.rwth-aachen.de (8.9.3/8.9.3) id JAA44013 for tomcat-user@jakarta.apache.org; Thu, 16 Nov 2000 09:02:33 +0100 (CET) (envelope-from kuku) Date: Thu, 16 Nov 2000 09:02:33 +0100 From: Christoph Kukulies To: tomcat-user@jakarta.apache.org Subject: Re: Runtime.exec Nullpointer Exception Message-ID: <20001116090233.A43974@gil.physik.rwth-aachen.de> References: Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Mailer: Mutt 1.0i In-Reply-To: ; from ralph.einfeldt@uptime-isc.de on Thu, Nov 16, 2000 at 08:26:50AM +0100 X-Spam-Rating: locus.apache.org 1.6.2 0/1000/N On Thu, Nov 16, 2000 at 08:26:50AM +0100, Ralph Einfeldt wrote: > Guess: > the cause is cmdarray[5]=null; I remember I had a glitch at this and the error didn't occur when I was using jdk1.1.8. Now I'm using jdk 1.2. Can it be a security policy issue? Since I' exec'ing a file in the filesystem. Where do I edit the security policy, btw? I need to know this for other reasons anyway. > > I think the arguments to exec are not null terminated > arrays is in c(++). > So you have to define the arrays with a size that meets > your argument count. > > If not, what about a stacktrace? > At which line is the Exception thrown ? > > e.printStackTrace(); I thought I posted the stacktrace. ANyway, here it is again. (but there is no line indicated) java.lang.NullPointerException at java.lang.Runtime.exec(Compiled Code) at java.lang.Runtime.exec(Compiled Code) at Some.doGet(Compiled Code) at Some.doPost(Compiled Code) at javax.servlet.http.HttpServlet.service(Compiled Code) at javax.servlet.http.HttpServlet.service(Compiled Code) at org.apache.tomcat.core.ServletWrapper.handleRequest(Compiled Code) at org.apache.tomcat.core.ServletWrapper.handleRequest(Compiled Code) at org.apache.tomcat.servlets.InvokerServlet.service(Compiled Code) at javax.servlet.http.HttpServlet.service(Compiled Code) at org.apache.tomcat.core.ServletWrapper.handleRequest(Compiled Code) at org.apache.tomcat.core.ContextManager.service(Compiled Code) at org.apache.tomcat.service.connector.Ajp12ConnectionHandler.processConnection(Compiled Code) at org.apache.tomcat.service.TcpConnectionThread.run(Compiled Code) at java.lang.Thread.run(Compiled Code) > > > -----Urspr�ngliche Nachricht----- > > Von: Christoph Kukulies [mailto:kuku@gilberto.physik.rwth-aachen.de] > > Gesendet: Mittwoch, 15. November 2000 19:14 > > An: tomcat-user@jakarta.apache.org > > Betreff: Runtime.exec Nullpointer Exception -- --Chris Christoph P. U. Kukulies kuku@gil.physik.rwth-aachen.de