I am having what appears to be an absurd problem with Tomcat and null pointers (and Hibernate, although this seems only marginally related to Hibernate). When I creat an object via a form, passed to a servlet, then back to the JSP to render the view, I consistently get a null pointer exception. The object is being persisted with no issues, and when I attempt to access the view directly, I can see the newly persisted object with no difficulty. Has anyone encountered anything like this? I'm certain I'm doing something simple that's causing this but can't figure it out for the life of me.
Code:
root cause
java.lang.NullPointerException
org.apache.jsp.myview_jsp._jspService(org.apache.jsp.myview_jsp:871)
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:322)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:291)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
com.mycompany.gtdb.controller.ViewAsset.doGet(Unknown Source)
com.mycompany.gtdb.controller.ViewAsset.doPost(Unknown Source)
javax.servlet.http.HttpServlet.service(HttpServlet.java:709)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
net.traxtech.gtdb.controller.AddGuntube.doPost(Unknown Source)
javax.servlet.http.HttpServlet.service(HttpServlet.java:709)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
com.mycompany.util.HibernateFilter.doFilter(Unknown Source)
Thanks,
Coleman