DWR

Tomcat 6 continuation support for Reverse Ajax

Details

  • Type: New Feature New Feature
  • Status: Closed Closed
  • Priority: Major Major
  • Resolution: Won't Fix
  • Affects Version/s: 2.0.1
  • Fix Version/s: None
  • Component/s: Reverse Ajax
  • Description:
    Add continuation of tomcat 6 support for DWR.

    A bit before tomcat 6 GA would be great ;)

Issue Links

Activity

Hide
David Marginian added a comment - 10/Dec/10 9:17 PM

As far as I can tell this never actually worked, see DWR-423. The issue in 423 was actually preventing the Tomcat specific stuff from firing.

Show
David Marginian added a comment - 10/Dec/10 9:17 PM As far as I can tell this never actually worked, see DWR-423. The issue in 423 was actually preventing the Tomcat specific stuff from firing.
Hide
David Marginian added a comment - 17/Apr/11 11:20 AM

I am seeing some exceptions being thrown from Tomcat NIO when this is enabled in DWR. It appears these exceptions result from the fact that we are closing the CometEvent before we flush in the Script Conduit:

g to response: dwr.util.setValue("clockDisplay","Sun Apr 17 12:22:32 MDT 2011",{ escapeHtml:false});
java.lang.NullPointerException
at org.apache.coyote.http11.InternalNioOutputBuffer.addToBB(InternalNioO
utputBuffer.java:621)
at org.apache.coyote.http11.InternalNioOutputBuffer.access$000(InternalN
ioOutputBuffer.java:46)
at org.apache.coyote.http11.InternalNioOutputBuffer$SocketOutputBuffer.d
oWrite(InternalNioOutputBuffer.java:809)
at org.apache.coyote.http11.filters.ChunkedOutputFilter.doWrite(ChunkedO
utputFilter.java:124)
at org.apache.coyote.http11.InternalNioOutputBuffer.doWrite(InternalNioO
utputBuffer.java:590)
at org.apache.coyote.Response.doWrite(Response.java:560)
at org.apache.catalina.connector.OutputBuffer.realWriteBytes(OutputBuffe
r.java:353)
at org.apache.tomcat.util.buf.ByteChunk.flushBuffer(ByteChunk.java:432)
at org.apache.catalina.connector.OutputBuffer.doFlush(OutputBuffer.java:
309)
at org.apache.catalina.connector.OutputBuffer.flush(OutputBuffer.java:28
8)
at org.apache.catalina.connector.CoyoteWriter.flush(CoyoteWriter.java:95
)
at org.directwebremoting.dwrp.BaseScriptConduit.flush(BaseScriptConduit.
java:143)
at org.directwebremoting.dwrp.PlainScriptConduit.addScript(PlainScriptCo
nduit.java:102)
at org.directwebremoting.impl.DefaultScriptSession.addScript(DefaultScri
ptSession.java:240)
at org.directwebremoting.ScriptSessions.addScript(ScriptSessions.java:81
)
at org.directwebremoting.ScriptSessions.addFunctionCall(ScriptSessions.j
ava:115)
at org.directwebremoting.ui.dwr.Util.setValue(Util.java:63)
at org.directwebremoting.ui.dwr.Util.setValue(Util.java:51)
at com.example.dwr.reverseajax.Clock$1.run(Clock.java:93)
at org.directwebremoting.impl.DefaultTaskDispatcher.dispatchTask(Default
TaskDispatcher.java:57)
at org.directwebremoting.Browser.withPage(Browser.java:141)
at com.example.dwr.reverseajax.Clock.setClockDisplay(Clock.java:89)
at com.example.dwr.reverseajax.Clock.run(Clock.java:55)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:44

Show
David Marginian added a comment - 17/Apr/11 11:20 AM I am seeing some exceptions being thrown from Tomcat NIO when this is enabled in DWR. It appears these exceptions result from the fact that we are closing the CometEvent before we flush in the Script Conduit: g to response: dwr.util.setValue("clockDisplay","Sun Apr 17 12:22:32 MDT 2011",{ escapeHtml:false}); java.lang.NullPointerException at org.apache.coyote.http11.InternalNioOutputBuffer.addToBB(InternalNioO utputBuffer.java:621) at org.apache.coyote.http11.InternalNioOutputBuffer.access$000(InternalN ioOutputBuffer.java:46) at org.apache.coyote.http11.InternalNioOutputBuffer$SocketOutputBuffer.d oWrite(InternalNioOutputBuffer.java:809) at org.apache.coyote.http11.filters.ChunkedOutputFilter.doWrite(ChunkedO utputFilter.java:124) at org.apache.coyote.http11.InternalNioOutputBuffer.doWrite(InternalNioO utputBuffer.java:590) at org.apache.coyote.Response.doWrite(Response.java:560) at org.apache.catalina.connector.OutputBuffer.realWriteBytes(OutputBuffe r.java:353) at org.apache.tomcat.util.buf.ByteChunk.flushBuffer(ByteChunk.java:432) at org.apache.catalina.connector.OutputBuffer.doFlush(OutputBuffer.java: 309) at org.apache.catalina.connector.OutputBuffer.flush(OutputBuffer.java:28 8) at org.apache.catalina.connector.CoyoteWriter.flush(CoyoteWriter.java:95 ) at org.directwebremoting.dwrp.BaseScriptConduit.flush(BaseScriptConduit. java:143) at org.directwebremoting.dwrp.PlainScriptConduit.addScript(PlainScriptCo nduit.java:102) at org.directwebremoting.impl.DefaultScriptSession.addScript(DefaultScri ptSession.java:240) at org.directwebremoting.ScriptSessions.addScript(ScriptSessions.java:81 ) at org.directwebremoting.ScriptSessions.addFunctionCall(ScriptSessions.j ava:115) at org.directwebremoting.ui.dwr.Util.setValue(Util.java:63) at org.directwebremoting.ui.dwr.Util.setValue(Util.java:51) at com.example.dwr.reverseajax.Clock$1.run(Clock.java:93) at org.directwebremoting.impl.DefaultTaskDispatcher.dispatchTask(Default TaskDispatcher.java:57) at org.directwebremoting.Browser.withPage(Browser.java:141) at com.example.dwr.reverseajax.Clock.setClockDisplay(Clock.java:89) at com.example.dwr.reverseajax.Clock.run(Clock.java:55) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:44
Hide
David Marginian added a comment - 22/Nov/12 9:40 AM

Please see DWR-590.

Show
David Marginian added a comment - 22/Nov/12 9:40 AM Please see DWR-590.

People

Dates

  • Created:
    20/Aug/07 10:27 PM
    Updated:
    22/Nov/12 9:41 AM
    Resolved:
    22/Nov/12 9:41 AM