facebook

hibernate DEMO BasicDB

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

    hyh888
    Member

    the class AddVipdata.java in com.nscorp.action package can’t find the setVipTitle method in the Vipdata.java of com.nscorp.hibernate package.

    Was there anybody run this Project successfully who can help me to solve the problem.

    in program

    if (AddVipdataForm.getVipName() != null)
    {
    Vipdata vipdata = new Vipdata();
    vipdata.setVipTitle(AddVipdataForm.getVipTitle());
    vipdata.setVipName(AddVipdataForm.getVipName());
    VipService.getInstance().addVipdata(vipdata);
    AddVipdataForm.clear();

    }

    the next two lines

    vipdata.setVipName(AddVipdataForm.getVipName());
    VipService.getInstance().addVipdata(vipdata);

    was mark by red lines by Eclipse.
    so the JSP can not run successfully.

    #240878 Reply

    hyh888
    Member

    JSP error Message
    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:370)
    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)

    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(org.apache.jsp.AddVipData_jsp:119)
    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)

    note The full stack trace of the root cause is available in the Apache Tomcat/5.5.9 logs.

Viewing 2 posts - 1 through 2 (of 2 total)
Reply To: hibernate DEMO BasicDB

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