- This topic has 1 reply, 1 voice, and was last updated 18 years, 11 months ago by hyh888.
-
AuthorPosts
-
hyh888Memberthe 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.
hyh888MemberJSP 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.
-
AuthorPosts