This week's book giveaway is in the Java 8 forum.
We're giving away four copies of Java 8 in Action and have Raoul-Gabriel Urma, Mario Fusco, and Alan Mycroft on-line!
See this thread for details.
The moose likes Struts and the fly likes Struts Application failed to lauch - Null pointer Exception Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Struts Application failed to lauch - Null pointer Exception" Watch "Struts Application failed to lauch - Null pointer Exception" New topic
Author

Struts Application failed to lauch - Null pointer Exception

Parameswaran Thangavel
Ranch Hand

Joined: Mar 01, 2005
Posts: 485
hi all
i am getting the below error when i deployed an war(struts) in weblogic.
but it is working fine in another server or System. The welcome page is displaying properly when i submit the form i am getting the below error.

Any idea???



<Aug 1, 2006 9:27:24 PM GMT+05:30> <Error> <HTTP> <BEA-101020> <[ServletContext(id=1592123,name=reprocess_IATPA,con
text-path=/reprocess_IATPA)] Servlet failed with Exception
java.lang.NullPointerException
at jsp_servlet._web_45_inf._jsp.__error._jspService(__error.java:239)
at weblogic.servlet.jsp.JspBase.service(JspBase.java:33)
at weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run(ServletStubImpl.java:1006)
at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:419)
at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:315)
at weblogic.servlet.internal.RequestDispatcherImpl.forward(RequestDispatcherImpl.java:322)
at org.apache.struts.action.RequestProcessor.doForward(RequestProcessor.java:1069)
at org.apache.struts.action.RequestProcessor.processForwardConfig(RequestProcessor.java:455)
at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:279)
at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1482)
at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:525)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run(ServletStubImpl.java:1006)
at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:419)
at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:315)
at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:671
8)
at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:121)
at weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletContext.java:3764)
at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java:2644)
at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:219)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:178)
>
Naseem Khan
Ranch Hand

Joined: Apr 25, 2005
Posts: 809
Well its not easy to figure out your problem by just seeing the stack trace. We don't know the structure of your war file.

Probably servlet failed to instantiate the class and some method is called on it.

Post your web.xml and action of struts-config.xml and the html:form of jsp which is making request.

Naseem


Asking Smart Questions FAQ - How To Put Your Code In Code Tags
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Struts Application failed to lauch - Null pointer Exception
 
Similar Threads
JSP error
IllegalArgumentException: argument type mismatch
Struts and File upload error - newbie
Error 500--Internal Server Error-Null Pointer Exception
Exception creating bean of class