解决description The server encountered an internal error that prevented it from fulfilling this reques
来源:互联网 发布:淘宝灯饰3c认证 编辑:程序博客网 时间:2024/06/06 13:08
错误信息
HTTP Status 500 -
type Exception report
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:37)
com.opensymphony.xwork2.DefaultActionProxyFactory.createActionProxy(DefaultActionProxyFactory.java:58)
org.apache.struts2.dispatcher.Dispatcher.serviceAction(Dispatcher.java:554)
org.apache.struts2.dispatcher.FilterDispatcher.doFilter(FilterDispatcher.java:434)
note The full stack trace of the root cause is available in the Apache Tomcat/7.0.59 logs.
Apache Tomcat/7.0.59
解决方法:
在版本Struts 2.1.3后FilterDispatcher是分离的,如果要使用旧版本(2.13以前的)的Structs则需要这么写filter:
<filter> <filter-name>struts2</filter-name> <filter-class>org.apache.struts2.dispatcher.FilterDispatcher</filter-class>
而如果使用新版本,则要这样写:
<web-app id="WebApp_9" version="2.4" xmlns="http://java.sun.com/xml/ns/j2ee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd"> <filter> <filter-name>struts2</filter-name> <filter-class>org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter</filter-class> <init-param> <param-name>actionPackages</param-name> <param-value>com.mycompany.myapp.actions</param-value> </init-param> </filter> <filter-mapping> <filter-name>struts2</filter-name> <url-pattern>/*</url-pattern> </filter-mapping> <!-- ... --></web-app>
- 解决description The server encountered an internal error that prevented it from fulfilling this reques
- description The server encountered an internal error () that prevented it from fulfilling this request.
- The server encountered an internal error () that prevented it from fulfilling this requet异常解决
- 一个困扰很久的问题【description The server encountered an internal error () that prevented it from fulfilling this request】
- 解决方法HTTP Status 500 - description The server encountered an internal error () that prevented it from fulfilling this request
- The server encountered an internal error () that prevented it from fulfilling this request
- The server encountered an internal error () that prevented it from fulfilling this request.
- The server encountered an internal error () that prevented it from fulfilling this request.
- The server encountered an internal error () that prevented it from fulfilling this request.
- The server encountered an internal error () that prevented it from fulfilling this request
- The server encountered an internal error () that prevented it from fulfilling this request.
- The server encountered an internal error () that prevented it from fulfilling this request.
- The server encountered an internal error that prevented it from fulfilling this request
- The server encountered an internal error () that prevented it from fulfilling this request.
- The server encountered an internal error that prevented it from fulfilling this request. exception
- The server encountered an internal error that prevented it from fulfilling this request.
- The server encountered an internal error that prevented it from fulfilling this request的一种解决办法
- The server encountered an internal error () that prevented it from fulfilling this request.h--模型驱动
- T-SQL查询进阶--流程控制语句
- 图的表示-邻接矩阵表示
- STL所有算法介绍
- Jenkins中不同slave间传递文件
- 蜗牛圈圈-时尚智能的运动计时App
- 解决description The server encountered an internal error that prevented it from fulfilling this reques
- Python Paramiko模块安装和使用
- iOS开发--NSLog 打印bool值
- 一个jquery插件,页面上的等待提示
- 解决The Apache Axis2 Web service runtime in Tomcat v7.0 Server does not support the service project 问题
- DevExpress.XtraGrid.GridControl (表格控件使用说明)
- @property与@synthesize作用
- leetcode:sudoku solver
- curl 教程 好文章