JSP项目开发全程实录完整源代码(06 OA办公系统运行报错) 请教老师指点!!!1!!
架包,驱动都加了,源文件src也补上了,首页能进去,其它就进不去了,并发生以下报告、、、、HTTP Status 500 -
--------------------------------------------------------------------------------
type Exception report
message
description The server encountered an internal error () that prevented it from fulfilling this request.
exception
javax.servlet.ServletException: java.lang.NullPointerException
org.apache.struts.action.RequestProcessor.processException(RequestProcessor.java:545)
org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:486)
org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:274)
org.apache.struts.action.ActionServlet.process(ActionServlet.java:1482)
org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:525)
javax.servlet.http.HttpServlet.service(HttpServlet.java:637)
javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
com.struts.filter.MyFilter.doFilter(MyFilter.java:15)
root cause
java.lang.NullPointerException
com.hiernate.util.HibernateUtil.findUser(HibernateUtil.java:27)
com.struts.action.FindUserAction.finUser(FindUserAction.java:23)
sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
java.lang.reflect.Method.invoke(Method.java:597)
org.apache.struts.actions.DispatchAction.dispatchMethod(DispatchAction.java:280)
org.apache.struts.actions.DispatchAction.execute(DispatchAction.java:216)
org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:484)
org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:274)
org.apache.struts.action.ActionServlet.process(ActionServlet.java:1482)
org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:525)
javax.servlet.http.HttpServlet.service(HttpServlet.java:637)
javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
com.struts.filter.MyFilter.doFilter(MyFilter.java:15)
note The full stack trace of the root cause is available in the Apache Tomcat/6.0.20 logs.
请老师指点??????
--------------------编程问答-------------------- 对象是空值! --------------------编程问答-------------------- 是不是数据库里面没数据。。导致空指针错误。 --------------------编程问答-------------------- com.hiernate.util.HibernateUtil.findUser(HibernateUtil.java:27)
这个不是说的很清楚了,哪一个类,那一行,debug一下不就知道了,程序员不能这么懒 --------------------编程问答-------------------- 这个不是说的很清楚了,哪一个类,那一行,debug一下不就知道了,程序员不能这么懒
补充:Java , Java EE