问题描述
HTTP Status 500 - --------------------------------------------------------------------------------type Exception report用ssh做的。前一个登录都实现了。但是现在做注册却出现了问题。查了好多资料,说是配置的问题,我想着应该不会啊,要不登录怎么实现的。什么原因??message description The server encountered an internal error () that prevented it from fulfilling this request.exception java.lang.NullPointerExceptionorg.apache.struts2.impl.StrutsActionProxy.getErrorMessage(StrutsActionProxy.java:69)com.opensymphony.xwork2.DefaultActionProxy.prepare(DefaultActionProxy.java:185)org.apache.struts2.impl.StrutsActionProxy.prepare(StrutsActionProxy.java:63)org.apache.struts2.impl.StrutsActionProxyFactory.createActionProxy(StrutsActionProxyFactory.java:39)com.opensymphony.xwork2.DefaultActionProxyFactory.createActionProxy(DefaultActionProxyFactory.java:58)org.apache.struts2.dispatcher.Dispatcher.serviceAction(Dispatcher.java:501)org.apache.struts2.dispatcher.FilterDispatcher.doFilter(FilterDispatcher.java:432)note The full stack trace of the root cause is available in the Apache Tomcat/6.0.35 logs.
解决方案
你查看一下,你这个注册的action都配置了什么拦截器
解决方案二:
猜测:是不是被拦截器给过虑了.例如:session验证登陆之类的.
解决方案三:
org.apache.struts2.dispatcher.Dispatcher.serviceAction(Dispatcher.java:501)引用 ActionProxy proxy = config.getContainer().getInstance(ActionProxyFactory.class).createActionProxy( namespace, name, method, extraContext, true, false);org.apache.struts2.impl.StrutsActionProxy.getErrorMessage(StrutsActionProxy.java:69)引用 @Override protected String getErrorMessage() { if ((namespace != null) && (namespace.trim().length() > 0)) { String contextPath = ServletActionContext.getRequest().getContextPath(); return LocalizedTextUtil.findDefaultText( "struts.exception.missing-package-action.with-context", Locale.getDefault(), new String[]{namespace, actionName, contextPath} ); } else { return super.getErrorMessage(); } }69行是红色部分就这些错误吗? 估计配置文件问题 建议先最小化配置文件 再一点点往上加 找问题