z_xiaojie
z_xiaojie
采纳率100%
2013-04-11 19:57 阅读 275
已采纳

escription The server encountered an internal error () that prevented

 

 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.NullPointerException
org.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.

  • 点赞
  • 写回答
  • 关注问题
  • 收藏
  • 复制链接分享

3条回答 默认 最新

  • 已采纳
    zyn010101 zyn010101 2013-04-11 20:15

    你查看一下,你这个注册的action都配置了什么拦截器

    点赞 评论 复制链接分享
  • jinnianshilongnian jinnianshilongnian 2013-04-11 20:14

    org.apache.struts2.dispatcher.Dispatcher.serviceAction(Dispatcher.java:501)
    [quote]
    ActionProxy proxy = config.getContainer().getInstance(ActionProxyFactory.class).createActionProxy(
    namespace, name, method, extraContext, true, false);

    [/quote]

    org.apache.struts2.impl.StrutsActionProxy.getErrorMessage(StrutsActionProxy.java:69)
    [quote]
    @Override
    protected String getErrorMessage() {
    if ((namespace != null) && (namespace.trim().length() > 0)) {
    [color=red]String contextPath = ServletActionContext.getRequest().getContextPath();[/color]
    return LocalizedTextUtil.findDefaultText(
    "struts.exception.missing-package-action.with-context",
    Locale.getDefault(),
    new String[]{namespace, actionName, contextPath}
    );
    } else {
    return super.getErrorMessage();
    }
    }

    [/quote]
    69行是红色部分

    就这些错误吗? 估计配置文件问题 建议先最小化配置文件 再一点点往上加 找问题

    点赞 评论 复制链接分享
  • hejiaqi789 hejiaqi789 2013-04-12 14:42

    猜测:是不是被拦截器给过虑了.例如:session验证登陆之类的.

    点赞 评论 复制链接分享

相关推荐