tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Christoph Kukulies <k...@gilberto.physik.RWTH-Aachen.DE>
Subject Re: Runtime.exec Nullpointer Exception
Date Thu, 16 Nov 2000 08:02:33 GMT
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

Mime
View raw message