JWorld@TW the best professional Java site in Taiwan
      註冊 | 登入 | 全文檢索 | 排行榜  

» JWorld@TW » Servlet/JSP 討論區  

按列印兼容模式列印這個話題 列印話題    把這個話題寄給朋友 寄給朋友   
reply to postflat modego to previous topicgo to next topic
本主題所含的標籤
無標籤
作者 Re:沒什麼營養的動態生成圖片 Servlet & JSP [Re:JiaYun]
uxa





發文: 489
積分: 6
於 2006-11-30 20:22 user profilesend a private message to userreply to postreply to postsearch all posts byselect and copy to clipboard. 
ie only, sorry for netscape users:-)add this post to my favorite list
請教一下小弟我使用了這個圖片驗證後,在load到這一個頁面時它會丟出以下的exception
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
2006-11-30 20:19:37,463 ERROR [StandardWrapperValve.invoke:253]- Servlet.service() for servlet jsp threw exception
java.lang.IllegalStateException: getOutputStream() has already been called for this response
  at org.apache.catalina.connector.Response.getWriter(Response.java:599)
  at org.apache.catalina.connector.ResponseFacade.getWriter(ResponseFacade.java:195)
  at org.apache.jasper.runtime.JspWriterImpl.initOut(JspWriterImpl.java:124)
  at org.apache.jasper.runtime.JspWriterImpl.flushBuffer(JspWriterImpl.java:117)
  at org.apache.jasper.runtime.PageContextImpl.release(PageContextImpl.java:191)
  at org.apache.jasper.runtime.JspFactoryImpl.internalReleasePageContext(JspFactoryImpl.java:115)
  at org.apache.jasper.runtime.JspFactoryImpl.releasePageContext(JspFactoryImpl.java:75)
  at org.apache.jsp.jsp.portal.DynaImage_jsp._jspService(DynaImage_jsp.java:98)
  at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97)
  at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
  at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:332)
  at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
  at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
  at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
  at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
  at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
  at org.displaytag.filter.ResponseOverrideFilter.doFilter(ResponseOverrideFilter.java:125)
  at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
  at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
  at com.era.ticket.filter.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:122)
  at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
  at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
  at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
  at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
  at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
  at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
  at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
  at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
  at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)
  at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664)
  at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
  at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)
  at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
  at java.lang.Thread.run(Thread.java:595)
2006-11-30 20:19:37,463 ERROR [StandardWrapperValve.invoke:253]- Servlet.service() for servlet jsp threw exception
java.lang.IllegalStateException: getOutputStream() has already been called for this response
  at org.apache.catalina.connector.Response.getWriter(Response.java:599)
  at org.apache.catalina.connector.ResponseFacade.getWriter(ResponseFacade.java:195)
  at org.apache.jasper.runtime.JspWriterImpl.initOut(JspWriterImpl.java:124)
  at org.apache.jasper.runtime.JspWriterImpl.flushBuffer(JspWriterImpl.java:117)
  at org.apache.jasper.runtime.PageContextImpl.release(PageContextImpl.java:191)
  at org.apache.jasper.runtime.JspFactoryImpl.internalReleasePageContext(JspFactoryImpl.java:115)
  at org.apache.jasper.runtime.JspFactoryImpl.releasePageContext(JspFactoryImpl.java:75)
  at org.apache.jsp.jsp.portal.DynaImage_jsp._jspService(DynaImage_jsp.java:98)
  at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97)
  at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
  at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:332)
  at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
  at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
  at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
  at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
  at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
  at org.displaytag.filter.ResponseOverrideFilter.doFilter(ResponseOverrideFilter.java:125)
  at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
  at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
  at com.era.ticket.filter.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:122)
  at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
  at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
  at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
  at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
  at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
  at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
  at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
  at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
  at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)
  at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664)
  at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
  at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)
  at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
  at java.lang.Thread.run(Thread.java:595)
 


請問一下這是正常的現象嗎??
要如何能避免掉這個Exception的產生呢?
謝謝


reply to postreply to post
☆只要努力就有希望☆
話題樹型展開
人氣 標題 作者 字數 發文時間
27284 [精華] 沒什麼營養的動態生成圖片 Servlet & JSP JiaYun 571 2003-07-03 18:45
21613 Re:沒什麼營養的動態生成圖片 Servlet & JSP iampoya 33 2003-07-03 18:55
16704 Re:沒什麼營養的動態生成圖片 Servlet & JSP uxa 6372 2006-11-30 20:22
14675 Re:沒什麼營養的動態生成圖片 Servlet & JSP ok12360000 176 2007-07-27 23:50
16179 Re:沒什麼營養的動態生成圖片 Servlet & JSP shasun 2209 2006-12-04 18:24
16035 Re:沒什麼營養的動態生成圖片 Servlet & JSP jen3 16 2006-12-07 17:26
21169 Re:沒什麼營養的動態生成圖片 Servlet & JSP koji 288 2003-07-03 19:13
20887 Re:沒什麼營養的動態生成圖片 Servlet & JSP JiaYun 122 2003-07-03 19:18
20846 Re:沒什麼營養的動態生成圖片 Servlet & JSP JiaYun 182 2003-07-03 19:27
20703 Re:沒什麼營養的動態生成圖片 Servlet & JSP koji 72 2003-07-03 19:36
20639 Re:沒什麼營養的動態生成圖片 Servlet & JSP sdargon 79 2003-07-21 17:13
20301 Re:沒什麼營養的動態生成圖片 Servlet & JSP jeff0208 38 2003-07-22 14:31
20317 Re:沒什麼營養的動態生成圖片 Servlet & JSP garbage 26 2003-07-26 06:15
19697 Re:沒什麼營養的動態生成圖片 Servlet & JSP freeman_z 97 2004-07-05 12:30
18457 Re:沒什麼營養的動態生成圖片 Servlet & JSP qboy113011 44 2005-05-11 08:46
18631 Re:沒什麼營養的動態生成圖片 Servlet & JSP qboy113011 94 2005-05-11 21:04
» JWorld@TW »  Servlet/JSP 討論區

reply to postflat modego to previous topicgo to next topic
  已讀文章
  新的文章
  被刪除的文章
Jump to the top of page

JWorld@TW 本站商標資訊

Powered by Powerful JuteForum® Version Jute 1.5.8