facebook

problem when running Database Explorer and Hibernate Tutoria

💡
Our Forums Have Moved

For help with installation, bugs reports or feature requests, please head over to our new forums.
Genuitec Community on GitHub

  1. MyEclipse IDE
  2.  > 
  3. General Development
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #253447 Reply

    zmshang
    Member

    This is the error when “Database Explore and Hibernate Tutoria” is running, I want to know what’s wrong with it?

    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.zmshang.hibernate.SessionFactory.currentSession(SessionFactory.java:56)
    com.zmshang.hibernate.VipService.getVipdataList(VipService.java:194)
    org.apache.jsp.AddVipData_jsp._jspService(AddVipData_jsp.java:130)
    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.

    ——————————————————————————–
    [/img]

    #253472

    Riyad Kalla
    Member

    Well it looks like the session factory is throwing a null pointer exception. Dig into the error logs like the report says and find the full stack trace, then check around line 56 of SessionFactory and see what is throwing the NPE.

Viewing 2 posts - 1 through 2 (of 2 total)
Reply To: problem when running Database Explorer and Hibernate Tutoria

You must be logged in to post in the forum log in