facebook

BasicDB Example [Closed]

  1. MyEclipse Archived
  2.  > 
  3. Database Tools (DB Explorer, Hibernate, etc.)
Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #226744 Reply

    Thomas Benz
    Member

    Hi 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.

    #226779 Reply

    Riyad Kalla
    Member

    java.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?

    #226798 Reply

    Thomas Benz
    Member

    Sorry for this post!
    I forgott to copy the JDBC-driver to Tomcats classloader path.
    Now it runs nice 😀

    #226799 Reply

    Riyad Kalla
    Member

    Glad it’s working, thank you for the followup.

Viewing 4 posts - 1 through 4 (of 4 total)
Reply To: BasicDB Example [Closed]

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