Hey Folks-
I am pretty much a newb to
JSP and have been tasked with upgrading one of our existing applications (8 years old) to our "latest" supported version of
JBOSS (4.2.2). Please don't laugh. I work for the State. Anyway... The app runs fine under JBOSS 3.2.3. But when I try to run it under 4.2.2, I get the following error when I attempt to call a method on one of my value beans:
12:32:22,953 ERROR [[jsp]] Servlet.service() for servlet jsp threw exception
java.lang.NullPointerException
at com.synsoltec.dwconsole.web.jspinputs.JSPInputs.getTitle(JSPInputs.java:111)
at org.apache.jsp.SST.JSP.Layouts.IncludeHeader_jsp._jspService(IncludeHeader_jsp.java:75)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:373)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:336)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:265)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.j
ava:290)
My (partial) JSP looks like this (note the scope of the useBean = request):
...and the relevant bean JSPInputs looks like this:
I did make the upgrade changes to to my value classes (classes used/called by my JSP useBean properties) that I know about. Specifically, adding a no-arg constructor and implementing the Serializable interface. Running through the debugger, I can see that there is supposed to be a number of objects / properties that should be available to to JSPInputs, but these are not created/ instantiated under JBOSS 4.2.2. This is part of a navigation framework that is trying to build up a header for the next page (by the way...not sure if that is important).
Any suggestions would be greatly appreciated. Thanks!