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:710)
javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
root cause
java.lang.NullPointerException
taoheung.com.action.LoginAction.login(LoginAction.java:26)
sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
java.lang.reflect.Method.invoke(Unknown Source)
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:710)
javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
6 个解决方案
#1
很明显空指针
java.lang.NullPointerException
taoheung.com.action.LoginAction.login(LoginAction.java:26)
LoginAction.java:26看看
java.lang.NullPointerException
taoheung.com.action.LoginAction.login(LoginAction.java:26)
LoginAction.java:26看看
#2
taoheung.com.action.LoginAction.login(LoginAction.java:26)
第26行里面你用了这个为空的变量,所以报错.
第26行里面你用了这个为空的变量,所以报错.
#3
欢迎热爱IT行业的精英进来进行技术交流~~42800133
#4
对那个对象进行判断就行了!
#5
空指针常见的错呢,看看LoginAction 26 行吧
#6
很明显的空指针啊,
#1
很明显空指针
java.lang.NullPointerException
taoheung.com.action.LoginAction.login(LoginAction.java:26)
LoginAction.java:26看看
java.lang.NullPointerException
taoheung.com.action.LoginAction.login(LoginAction.java:26)
LoginAction.java:26看看
#2
taoheung.com.action.LoginAction.login(LoginAction.java:26)
第26行里面你用了这个为空的变量,所以报错.
第26行里面你用了这个为空的变量,所以报错.
#3
欢迎热爱IT行业的精英进来进行技术交流~~42800133
#4
对那个对象进行判断就行了!
#5
空指针常见的错呢,看看LoginAction 26 行吧
#6
很明显的空指针啊,