当前位置: 代码迷 >> Eclipse >> #invoke : Servlet.service() for servlet default threw exception
  详细解决方案

#invoke : Servlet.service() for servlet default threw exception

热度:652   发布时间:2016-04-23 13:51:03.0
初始化页面的时候web层次的Action类报错
ERROR: org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/PJMANAGE].[default]#invoke : Servlet.service() for servlet default threw exception
java.lang.NullPointerException
at com.winner.pjmanage.web.pm03.Pm030401Action.Pm030401Init(Pm030401Action.java:60)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at com.opensymphony.xwork2.DefaultActionInvocation.invokeAction(DefaultActionInvocation.java:404)
at com.opensymphony.xwork2.DefaultActionInvocation.invokeActionOnly(DefaultActionInvocation.java:267)
at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:229)
at com.opensymphony.xwork2.interceptor.DefaultWorkflowInterceptor.doIntercept(DefaultWorkflowInterceptor.java:221)
at com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:86)
at com.opensymphony.xwork2.DefaultActionInvocation$2.doProfiling(DefaultActionInvocation.java:224)
at com.opensymphony.xwork2.DefaultActionInvocation$2.doProfiling(DefaultActionInvocation.java:223)
at com.opensymphony.xwork2.util.profiling.UtilTimerStack.profile(UtilTimerStack.java:455)

------解决方案--------------------
服务器没配置好
  相关解决方案