Win a copy of Real-World Software Development: A Project-Driven Guide to Fundamentals in Java this week in the Agile and Other Processes forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
  • Campbell Ritchie
  • Paul Clapham
  • Bear Bibeault
  • Liutauras Vilda
  • Devaka Cooray
  • Knute Snortum
  • Junilu Lacar
  • Henry Wong
Saloon Keepers:
  • Ron McLeod
  • Stephan van Hulst
  • Tim Moores
  • Carey Brown
  • Tim Holloway
  • salvin francis
  • Frits Walraven
  • Piet Souris

Null pointer exception while executing runtime.exec() from bean in tomcat

Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
SEVERE: An exception or error occurred in the container during the request processing
at org.apache.catalina.core.StandardWrapperValve.invoke(
at org.apache.catalina.core.StandardContextValve.invoke(
at org.apache.catalina.authenticator.AuthenticatorBase.invoke(
at org.apache.catalina.core.StandardHostValve.invoke(
at org.apache.catalina.valves.ErrorReportValve.invoke(
at org.apache.catalina.valves.AccessLogValve.invoke(
at org.apache.catalina.core.StandardEngineValve.invoke(
at org.apache.catalina.connector.CoyoteAdapter.service(
at org.apache.coyote.http11.Http11AprProcessor.process(
at org.apache.coyote.http11.Http11AprProtocol$Http11ConnectionHandler.process(
at java.util.concurrent.ThreadPoolExecutor.runWorker(
at java.util.concurrent.ThreadPoolExecutor$

at java.util.concurrent.ThreadPoolExecutor$

while executing  from bean,jsp and servlet .
Working in netbeans project but now working in tomcat

 TStr_neroLoc="E:\\DARS\\BurnAware\\DataDisc.exe udf " + aTStr_append + dletter + " -b";
                                   //TStr_neroLoc=  "E:\\DARS\\CommandBurner\\cmdburn.exe  /burn /"+ dletter +" " + aTStr_append + " /eject";
           //TStr_neroLoc=  "C:\\Program Files \\burndisk.exe  /write "+ aTStr_append + dletter +" /eject";
           System.out.println("Path of burndisk===="+TStr_neroLoc);
           Runtime run=Runtime.getRuntime();  
               Process p=run.exec(TStr_neroLoc);
             num =p.waitFor();
               System.out.println("Return values of processs===="+num);

Hey cool! They got a blimp! But I have a tiny ad:
Java file APIs (DOC, XLS, PDF, and many more)
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!