Details
Description
While trying to get two instances of auctionMonitor to work with Optional non-blocking IO (NIO) facililty on Tomcat6
I see these java script errors and warnings:
[window] Parsing erroricefaces-d2d.js (line 1312)
[window] XML Parsing Error: junk after document element Location: http://localhost:8080/auctionMonitor/block/receive-updated-views Line Number 1, Column 82:icefaces-d2d.js (line 1312)
[window.lSCs#1.async-connection] receive broadcast failed TypeError: _2b4 has no properties message=_2b4 has no properties
[window.lSCs#1.async-connection.heartbeat] pong losticefaces-d2d.js (line 1310)
[window.lSCs#1] connection in trouble
Errors in log file:
Mar 11, 2008 12:29:16 PM org.apache.catalina.core.ApplicationContext log
INFO: SessionListener: contextInitialized()
Mar 11, 2008 12:33:11 PM org.apache.catalina.core.StandardWrapperValve invoke
SEVERE: Servlet.service() for servlet Blocking Servlet threw exception
java.lang.IllegalStateException: Cannot forward after response has been committed
at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:302)
at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:292)
at com.icesoft.faces.webapp.xmlhttp.BlockingServlet.service(BlockingServlet.java:54)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
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:102)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:263)
at org.apache.coyote.http11.Http11NioProcessor.process(Http11NioProcessor.java:887)
at org.apache.coyote.http11.Http11NioProtocol$Http11ConnectionHandler.process(Http11NioProtocol.java:696)
at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.run(NioEndpoint.java:2009)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:650)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:675)
at java.lang.Thread.run(Thread.java:595)
Mar 11, 2008 12:30:55 PM com.icesoft.faces.async.render.RenderHub createCoreService
INFO: core render service created:
core pool size : 10
max pool size : 15
keep alive time: 300000
Mar 11, 2008 12:34:15 PM org.apache.coyote.http11.Http11NioProtocol$Http11ConnectionHandler event
SEVERE: Error reading request, ignored
java.lang.NullPointerException
at org.apache.tomcat.util.http.MimeHeaders.clear(MimeHeaders.java:130)
at org.apache.coyote.Response.recycle(Response.java:579)
at org.apache.coyote.http11.InternalNioOutputBuffer.recycle(InternalNioOutputBuffer.java:338)
at org.apache.coyote.http11.Http11NioProcessor.recycle(Http11NioProcessor.java:997)
at org.apache.coyote.http11.Http11NioProcessor.event(Http11NioProcessor.java:779)
at org.apache.coyote.http11.Http11NioProtocol$Http11ConnectionHandler.event(Http11NioProtocol.java:634)
at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.run(NioEndpoint.java:2009)
at org.apache.tomcat.util.net.NioEndpoint.processSocket(NioEndpoint.java:1127)
at org.apache.tomcat.util.net.NioEndpoint$Poller.cancelledKey(NioEndpoint.java:1377)
at org.apache.tomcat.util.net.NioEndpoint$Poller.timeout(NioEndpoint.java:1611)
at org.apache.tomcat.util.net.NioEndpoint$Poller.run(NioEndpoint.java:1452)
at java.lang.Thread.run(Thread.java:595)
I see these java script errors and warnings:
[window] Parsing erroricefaces-d2d.js (line 1312)
[window] XML Parsing Error: junk after document element Location: http://localhost:8080/auctionMonitor/block/receive-updated-views Line Number 1, Column 82:icefaces-d2d.js (line 1312)
[window.lSCs#1.async-connection] receive broadcast failed TypeError: _2b4 has no properties message=_2b4 has no properties
[window.lSCs#1.async-connection.heartbeat] pong losticefaces-d2d.js (line 1310)
[window.lSCs#1] connection in trouble
Errors in log file:
Mar 11, 2008 12:29:16 PM org.apache.catalina.core.ApplicationContext log
INFO: SessionListener: contextInitialized()
Mar 11, 2008 12:33:11 PM org.apache.catalina.core.StandardWrapperValve invoke
SEVERE: Servlet.service() for servlet Blocking Servlet threw exception
java.lang.IllegalStateException: Cannot forward after response has been committed
at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:302)
at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:292)
at com.icesoft.faces.webapp.xmlhttp.BlockingServlet.service(BlockingServlet.java:54)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
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:102)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:263)
at org.apache.coyote.http11.Http11NioProcessor.process(Http11NioProcessor.java:887)
at org.apache.coyote.http11.Http11NioProtocol$Http11ConnectionHandler.process(Http11NioProtocol.java:696)
at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.run(NioEndpoint.java:2009)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:650)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:675)
at java.lang.Thread.run(Thread.java:595)
Mar 11, 2008 12:30:55 PM com.icesoft.faces.async.render.RenderHub createCoreService
INFO: core render service created:
core pool size : 10
max pool size : 15
keep alive time: 300000
Mar 11, 2008 12:34:15 PM org.apache.coyote.http11.Http11NioProtocol$Http11ConnectionHandler event
SEVERE: Error reading request, ignored
java.lang.NullPointerException
at org.apache.tomcat.util.http.MimeHeaders.clear(MimeHeaders.java:130)
at org.apache.coyote.Response.recycle(Response.java:579)
at org.apache.coyote.http11.InternalNioOutputBuffer.recycle(InternalNioOutputBuffer.java:338)
at org.apache.coyote.http11.Http11NioProcessor.recycle(Http11NioProcessor.java:997)
at org.apache.coyote.http11.Http11NioProcessor.event(Http11NioProcessor.java:779)
at org.apache.coyote.http11.Http11NioProtocol$Http11ConnectionHandler.event(Http11NioProtocol.java:634)
at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.run(NioEndpoint.java:2009)
at org.apache.tomcat.util.net.NioEndpoint.processSocket(NioEndpoint.java:1127)
at org.apache.tomcat.util.net.NioEndpoint$Poller.cancelledKey(NioEndpoint.java:1377)
at org.apache.tomcat.util.net.NioEndpoint$Poller.timeout(NioEndpoint.java:1611)
at org.apache.tomcat.util.net.NioEndpoint$Poller.run(NioEndpoint.java:1452)
at java.lang.Thread.run(Thread.java:595)
Issue Links
- depends on
-
ICE-1773 Tomcat 6 asynchronous feature uses recycled events (IllegalStateException)
- Closed
tested on latest trunk head, the fix Jack put in resolves the error. Tested using 2 FF and 1 IE.