- This topic has 3 replies, 2 voices, and was last updated 19 years, 8 months ago by Riyad Kalla.
-
AuthorPosts
-
Thomas BenzMemberHi There!
I am also experiencing some problems while trying the BasicDB Example. I have been reading the previous posts to that subject, but couldn’t find a solution.
May be you can tell me where I should start searching for the mistake, when you look on the error message of Tomcat:—————————————-
HTTP Status 500 –type Exception report
message
description The server encountered an internal error () that prevented it from fulfilling this request.
exception
org.apache.jasper.JasperException
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:372)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)root cause
java.lang.NullPointerException
com.nscorp.hibernate.SessionFactory.currentSession(SessionFactory.java:56)
com.nscorp.hibernate.VipService.getVipdataList(VipService.java:200)
org.apache.jsp.AddVipData_jsp._jspService(AddVipData_jsp.java:120)
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:94)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:324)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)note The full stack trace of the root cause is available in the Apache Tomcat/5.0.28 logs.
Apache Tomcat/5.0.28
—————————————Thanks in advance.
Riyad KallaMemberjava.lang.NullPointerException
com.nscorp.hibernate.SessionFactory.currentSession(SessionFactory.java:56)What is happening at line 56 in SessionFactory? Do you need to check for a null here and do something if it is null?
Thomas BenzMemberSorry for this post!
I forgott to copy the JDBC-driver to Tomcats classloader path.
Now it runs nice 😀
Riyad KallaMemberGlad it’s working, thank you for the followup.
-
AuthorPosts