Help coderanch get a
new server
by contributing to the fundraiser
  • 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Devaka Cooray
  • Liutauras Vilda
Sheriffs:
  • Jeanne Boyarsky
  • paul wheaton
  • Henry Wong
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Tim Moores
  • Carey Brown
  • Mikalai Zaikin
Bartenders:
  • Lou Hamers
  • Piet Souris
  • Frits Walraven

Legacy upgrade from JBOSS 3.2.3 to 4.2.2 resulting in null pointer errors

 
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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!




 
Gregg Yows
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Really? Nobody has a clue what is going on here? I'm currently diffing my jar files between each server to see if it is a class-loading issue. Please help. Thanks.
 
Sheriff
Posts: 10445
227
IntelliJ IDE Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

at com.synsoltec.dwconsole.web.jspinputs.JSPInputs.getTitle(JSPInputs.java:111)



In the code you posted, which line is 111? Have you checked which object is null?
 
reply
    Bookmark Topic Watch Topic
  • New Topic