MyException - 我的异常网
当前位置:我的异常网» Java相关 » java.lang.reflect.InvocationTargetException错误

java.lang.reflect.InvocationTargetException错误(2)

www.MyException.Cn  网友分享于:2013-11-10  浏览:2830次

com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:237)
com.opensymphony.xwork2.interceptor.I18nInterceptor.intercept(I18nInterceptor.java:165)
com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:237)
org.apache.struts2.interceptor.ServletConfigInterceptor.intercept(ServletConfigInterceptor.java:164)
com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:237)
com.opensymphony.xwork2.interceptor.AliasInterceptor.intercept(AliasInterceptor.java:179)
com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:237)
com.opensymphony.xwork2.interceptor.ExceptionMappingInterceptor.intercept(ExceptionMappingInterceptor.java:176)
com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:237)
org.apache.struts2.impl.StrutsActionProxy.execute(StrutsActionProxy.java:52)
org.apache.struts2.dispatcher.Dispatcher.serviceAction(Dispatcher.java:488)
org.apache.struts2.dispatcher.ng.ExecuteOperations.executeAction(ExecuteOperations.java:77)
org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter.doFilter(StrutsPrepareAndExecuteFilter.java:91)


这个异常~表示解决不能,压力很大。

------解决方案--------------------
这是我搜索到的答案,我的相同的问题到是解决了,看看能不能帮上你们的忙。
查了一下web.xml中

view plaincopy to clipboardprint?
01.<filter-mapping>
02. <filter-name>SetCharacterEncoding</filter-name>
03. <url-pattern>*</url-pattern>
04.</filter-mapping>
<filter-mapping>
<filter-name>SetCharacterEncoding</filter-name>
<url-pattern>*</url-pattern>
</filter-mapping> 


view plaincopy to clipboardprint?
01.<url-pattern>*</url-pattern>
<url-pattern>*</url-pattern> 修改为

view plaincopy to clipboardprint?
01.<url-pattern>/*</url-pattern>
<url-pattern>/*</url-pattern> 

重新启动,问题解决

文章评论

软件开发程序错误异常ExceptionCopyright © 2009-2015 MyException 版权所有