NullPointerException « Struts « JSP-Servlet Q&A





1. NullPointerException for javax.servlet.GenericServlet.getServletContext(GenericServlet.java:205)    stackoverflow.com

I am running a Weblogic 8.1 SP6 server (JDK 1.4.2) on the production system.Now and then we get the below exception on the production server before the server goes down. I ...

2. Servlet.service() for servlet default threw exception java.lang.NullPointerException    stackoverflow.com

Our system using Struts 2. Sometimes it throws PWC1406: Servlet.service() for servlet default threw exception, but without any stacktrace message. Do anyone can tell me how to get the full stacktrace? ...

3. java.lang.NullPointerException at org.apache.struts.action.ActionServlet.parseModuleConfigFile    stackoverflow.com

We are deploying our Struts application in WAS6. While initializing we are getting error as below:

org.apache.struts.util.PropertyMessageResources <init> Initializing, config='org.apache.struts.util.LocalStrings', returnNull=true
[10/13/11 8:10:30:999 CDT] 00000016 PropertyMessa I org.apache.struts.util.PropertyMessageResources <init> Initializing, config='org.apache.struts.action.ActionResources', returnNull=true
[10/13/11 8:10:31:317 ...

4. RE: servlet.getServletContext().getAttribute("userList") is throwing NullPointerException in my sessionDestroyed() method    struts.1045723.n5.nabble.com

The listener class is extending Action as well as implementing HttpSessionListener interface. Cant I have servlet in my sessionDestroy() method? -----Original Message----- From: Jeromy Evans [mailto:[hidden email]] Sent: Monday, June 11, 2007 10:42 AM To: Struts Users Mailing List Subject: Re: servlet.getServletContext().getAttribute("userList") is throwing NullPointerException in my sessionDestroyed() method > I am getting NullPointerException in this line Hashtable userList = ...

5. RV: When using jsp:include or s:include in a JSP page the next Struts 2 tags will throw java.lang.NullPointerException on WebLogic 10.3    struts.1045723.n5.nabble.com

Looks like I can't send attachments through this Mailing list. Here is the URL to the bug https://issues.apache.org/struts/browse/WW-2995. I put the war file as attachment of the bug. Regards, Nstor Boscn -----Mensaje original----- De: Nstor Boscn [mailto:[hidden email]] Enviado el: Thursday, April 16, 2009 1:07 PM Para: 'Struts Users Mailing List' Asunto: RE: When using jsp:include or s:include in a JSP ...

6. S2 NullPointerException when using jsp:include in WebLogic    struts.1045723.n5.nabble.com

7. servlet.getServletContext().getAttribute("userList") is throwing NullPointerException in my sessionDestroyed() method    struts.1045723.n5.nabble.com

Hi team, In my login action I am adding the user who logged in into hash table and I am putting that hash table in servlet.getServletContext().setAttribute("") as fallows Hashtable userList = new Hashtable(); userList.put("username",username); servlet.getServletContext().setAttribute("userList",userList); and in my sessionDestroy() method I ...

8. When using jsp:include or s:include in a JSP page the next Struts 2 tags will throw java.lang.NullPointerException on WebLogic 10.3    struts.1045723.n5.nabble.com

When using jsp:include or s:include in a JSP page the next Struts 2 tags will throw: java.lang.NullPointerException at org.apache.struts2.views.jsp.ComponentTagSupport.doStartTag(ComponentT agSupport.java:50) This happens with WebLogic 10.3 but doesn't happen in OC4J 10.1.3.4. on Oracle WebLogic 10.3. It works on OC4J 10.1.3 and Tomcat 5. I created ...