谁有struts2-core-2.1.6.jar的源代码

a83800244 2011-08-02 09:59:11

2011-8-2 9:58:56 org.apache.catalina.core.StandardWrapperValve invoke
严重: Servlet.service() for servlet default threw exception
java.lang.IllegalStateException
at org.apache.catalina.connector.ResponseFacade.sendError(ResponseFacade.java:407)
at org.apache.struts2.dispatcher.Dispatcher.sendError(Dispatcher.java:725)
at org.apache.struts2.dispatcher.Dispatcher.serviceAction(Dispatcher.java:485)
at org.apache.struts2.dispatcher.FilterDispatcher.doFilter(FilterDispatcher.java:395)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at com.mlocso.util.SecuritFilter.doFilter(SecuritFilter.java:49)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:228)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:104)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:216)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:634)
at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:445)
at java.lang.Thread.run(Thread.java:619)

程序老报这个错误,不知道为什么。我的工程用的是struts2.1.6,所以我想看看struts2.1.6的源代码查查到底是哪报的错!
谁有麻烦给传一个,谢谢!
...全文
211 13 打赏 收藏 转发到动态 举报
AI 作业
写回复
用AI写文章
13 条回复
切换为时间正序
请发表友善的回复…
发表回复
nodream521 2011-08-02
  • 打赏
  • 举报
回复
代码你直接就能看的,用myeclipse一点,然后添加这个jar包,就看到了
傻傻的傻傻傻 2011-08-02
  • 打赏
  • 举报
回复
tomcat的问题??
muler1988 2011-08-02
  • 打赏
  • 举报
回复
晕。。。。
a83800244 2011-08-02
  • 打赏
  • 举报
回复
[Quote=引用 3 楼 quanlei1507053 的回复:]
www.findjar.com
[/Quote]
谢谢,下到了。但是这行at org.apache.catalina.connector.ResponseFacade.sendError(ResponseFacade.java:407)跟踪不到啊,还是看不出是哪报的错,各位碰到过这个问题吗?
brightyq 2011-08-02
  • 打赏
  • 举报
回复
[Quote=引用 3 楼 quanlei1507053 的回复:]
www.findjar.com
[/Quote]
up
quanlei1507053 2011-08-02
  • 打赏
  • 举报
回复
a83800244 2011-08-02
  • 打赏
  • 举报
回复
[Quote=引用 1 楼 zl3450341 的回复:]
源代码去官网上下载
[/Quote]
官网现在没有2.1.6了,现在都是2.2.3了
老张-AI 2011-08-02
  • 打赏
  • 举报
回复
源代码去官网上下载
Luger 2011-08-02
  • 打赏
  • 举报
回复
http://www.findjar.com 原来有这个网站 学习了
五哥 2011-08-02
  • 打赏
  • 举报
回复
java.lang.IllegalStateException异常解决办法

最近在使用response.sendRedirect()时出现如下错误:
java.lang.IllegalStateException
org.apache.catalina.connector.ResponseFacade.sendRedirect(ResponseFacade.java:423)

经过分析、查看jdk文档终于找到解决的办法,在response.sendRedirect()方法后加return语句即可,如下:
response.sendRedirect("login.jsp");
return;

原因是:在程序中两次调用了response.sendRedirect()方法。



jdk5.0文档中很清楚地介绍了出现IllegalStateException异常的可能情况:

1)同一个页面中再次调用response.sendRedirect()方法。
2)提交的URL错误,即不是个有效的URL。

sendRedirect
void sendRedirect(java.lang.String location)
throws java.io.IOException
Sends a temporary redirect response to the client using the specified redirect location URL. This method can accept relative URLs; the servlet container must convert the relative URL to an absolute URL before sending the response to the client. If the location is relative without a leading '/' the container interprets it as relative to the current request URI. If the location is relative with a leading '/' the container interprets it as relative to the servlet container root.
If the response has already been committed, this method throws an IllegalStateException. After using this method, the response should be considered to be committed and should not be written to.

Parameters:
location - the redirect location URL
Throws:
java.io.IOException - If an input or output exception occurs
java.lang.IllegalStateException - If the response was committed or if a partial URL is given and cannot be converted into a valid URL
tanrenzong1986 2011-08-02
  • 打赏
  • 举报
回复
网上下去啊。
izard999 2011-08-02
  • 打赏
  • 举报
回复
有问题找官方.! 这是正道
a83800244 2011-08-02
  • 打赏
  • 举报
回复
[Quote=引用 8 楼 nodream521 的回复:]
代码你直接就能看的,用myeclipse一点,然后添加这个jar包,就看到了
[/Quote]
这个我知道。。。。。但是at org.apache.catalina.connector.ResponseFacade.sendError(ResponseFacade.java:407)这行一点,就是没有找到。没给我引用jar包的机会。。。别的行都行

81,122

社区成员

发帖
与我相关
我的任务
社区描述
Java Web 开发
社区管理员
  • Web 开发社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧