前台报错500
java.lang.NullPointerException
com.lrq.service.serviceImpl.UserServiceImpl.isLogin(UserServiceImpl.java:32)
com.lrq.controller.UserAction.login(UserAction.java:48)
sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
java.lang.reflect.Method.invoke(Method.java:498)
ognl.OgnlRuntime.invokeMethod(OgnlRuntime.java:870)
后台报错
05-Apr-2017 21:43:50.082 严重 [http-apr-8080-exec-2] org.apache.struts2.dispatcher.DefaultDispatcherErrorHandler.error Exception occurred during processing request: null
java.lang.NullPointerException
at com.lrq.service.serviceImpl.UserServiceImpl.isLogin(UserServiceImpl.java:32)
at com.lrq.controller.UserAction.login(UserAction.java:48)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at ognl.OgnlRuntime.invokeMethod(OgnlRuntime.java:870)
at ognl.OgnlRuntime.callAppropriateMethod(OgnlRuntime.java:1293)
at ognl.ObjectMethodAccessor.callMethod(ObjectMethodAccessor.java:68)
解决方案:
struts中少了struts2-spring-plugin-2.3.24的jar导致spring的service注入不进来导致的错误
资源链接:http://pan.baidu.com/s/1hrCswnU