Strange Error

classic Classic list List threaded Threaded
8 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Strange Error

nakoned
Hi,
    I have been using Atmosphere for some time, but mostly from my local net. I have somewhat older version: 0.7-snapshot on GF 3.0.1. It has been working fine, but now when I opened my app port to outside world, I started getting these strange errors:


[#|2011-07-01T19:59:38.908-0400|SEVERE|glassfish3.0.1|Atmosphere|_ThreadID=34;_ThreadName=Thread-1;|The log message is null.
java.lang.IllegalStateException: Request object no longer valid. This object has been cancelled
        at org.atmosphere.cpr.AtmosphereResourceImpl.getRequest(AtmosphereResourceImpl.java:226)
        at org.atmosphere.cpr.AtmosphereResourceImpl.getRequest(AtmosphereResourceImpl.java:59)
        at org.atmosphere.jersey.util.JerseyBroadcasterUtil.broadcast(JerseyBroadcasterUtil.java:30)
        at org.atmosphere.jersey.JerseyBroadcaster.broadcast(JerseyBroadcaster.java:66)
        at org.atmosphere.cpr.DefaultBroadcaster.push(DefaultBroadcaster.java:290)
        at org.atmosphere.cpr.DefaultBroadcaster.push(DefaultBroadcaster.java:260)
        at org.atmosphere.cpr.DefaultBroadcaster$1.run(DefaultBroadcaster.java:209)
        at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
        at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
        at java.util.concurrent.FutureTask.run(FutureTask.java:138)
        at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
        at java.lang.Thread.run(Thread.java:619)
|#]

[[#|2011-07-01T19:59:38.909-0400|SEVERE|glassfish3.0.1|com.sun.jersey.spi.container.ContainerResponse|_ThreadID=31;_ThreadName=Thread-1;|Mapped exception to response: 500 (Internal Server Error)
javax.ws.rs.WebApplicationException: org.apache.catalina.connector.ClientAbortException: java.io.IOException: Client is busy or timed out
        at org.atmosphere.jersey.AtmosphereFilter$Filter.suspend(AtmosphereFilter.java:518)
        at org.atmosphere.jersey.AtmosphereFilter$Filter.filter(AtmosphereFilter.java:244)
        at com.sun.jersey.server.impl.application.WebApplicationImpl._handleRequest(WebApplicationImpl.java:1119)
        at com.sun.jersey.server.impl.application.WebApplicationImpl.handleRequest(WebApplicationImpl.java:1053)
        at com.sun.jersey.server.impl.application.WebApplicationImpl.handleRequest(WebApplicationImpl.java:1043)
        at com.sun.jersey.spi.container.servlet.WebComponent.service(WebComponent.java:406)
        at com.sun.jersey.spi.container.servlet.ServletContainer.service(ServletContainer.java:477)
        at com.sun.jersey.spi.container.servlet.ServletContainer.service(ServletContainer.java:662)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:847)
        at org.atmosphere.util.AtmosphereFilterChain.doFilter(AtmosphereFilterChain.java:155)
        at org.atmosphere.util.AtmosphereFilterChain.invokeFilterChain(AtmosphereFilterChain.java:116)
        at org.atmosphere.handler.ReflectorServletProcessor$FilterChainServletWrapper.service(ReflectorServletProcessor.java:268)
        at org.atmosphere.handler.ReflectorServletProcessor.onRequest(ReflectorServletProcessor.java:133)
        at org.atmosphere.cpr.AsynchronousProcessor.action(AsynchronousProcessor.java:176)
        at org.atmosphere.cpr.AsynchronousProcessor.suspended(AsynchronousProcessor.java:145)
        at org.atmosphere.container.Servlet30Support.service(Servlet30Support.java:85)
        at org.atmosphere.cpr.AtmosphereServlet.doCometSupport(AtmosphereServlet.java:1085)
        at org.atmosphere.cpr.AtmosphereServlet.doPost(AtmosphereServlet.java:1068)
        at org.atmosphere.cpr.AtmosphereServlet.doGet(AtmosphereServlet.java:1054)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:734)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:847)
        at org.apache.catalina.core.StandardWrapper.service(StandardWrapper.java:1523)
        at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:279)
        at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:188)
        at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:641)
        at com.sun.enterprise.web.WebPipeline.invoke(WebPipeline.java:97)
        at com.sun.enterprise.web.PESessionLockingStandardPipeline.invoke(PESessionLockingStandardPipeline.java:85)
        at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:185)
        at org.apache.catalina.connector.CoyoteAdapter.doService(CoyoteAdapter.java:325)
        at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:226)
        at com.sun.enterprise.v3.services.impl.ContainerMapper.service(ContainerMapper.java:165)
        at com.sun.grizzly.http.ProcessorTask.invokeAdapter(ProcessorTask.java:791)
        at com.sun.grizzly.http.ProcessorTask.doProcess(ProcessorTask.java:693)
        at com.sun.grizzly.http.ProcessorTask.process(ProcessorTask.java:954)
        at com.sun.grizzly.http.DefaultProtocolFilter.execute(DefaultProtocolFilter.java:170)
        at com.sun.grizzly.DefaultProtocolChain.executeProtocolFilter(DefaultProtocolChain.java:135)
        at com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:102)
        at com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:88)
        at com.sun.grizzly.http.HttpProtocolChain.execute(HttpProtocolChain.java:76)
        at com.sun.grizzly.ProtocolChainContextTask.doCall(ProtocolChainContextTask.java:53)
        at com.sun.grizzly.SelectionKeyContextTask.call(SelectionKeyContextTask.java:57)
        at com.sun.grizzly.ContextTask.run(ContextTask.java:69)
        at com.sun.grizzly.util.AbstractThreadPool$Worker.doWork(AbstractThreadPool.java:330)
        at com.sun.grizzly.util.AbstractThreadPool$Worker.run(AbstractThreadPool.java:309)
        at java.lang.Thread.run(Thread.java:619)
Caused by: org.apache.catalina.connector.ClientAbortException: java.io.IOException: Client is busy or timed out
        at org.apache.catalina.connector.OutputBuffer.realWriteBytes(OutputBuffer.java:425)
        at com.sun.grizzly.util.buf.ByteChunk.append(ByteChunk.java:331)
        at org.apache.catalina.connector.OutputBuffer.writeBytes(OutputBuffer.java:450)
        at org.apache.catalina.connector.OutputBuffer.write(OutputBuffer.java:437)
        at org.apache.catalina.connector.CoyoteOutputStream.write(CoyoteOutputStream.java:161)
        at com.sun.jersey.spi.container.servlet.WebComponent$Writer.write(WebComponent.java:296)
        at com.sun.jersey.spi.container.ContainerResponse$CommittingOutputStream.write(ContainerResponse.java:130)
        at sun.nio.cs.StreamEncoder.writeBytes(StreamEncoder.java:202)
        at sun.nio.cs.StreamEncoder.implWrite(StreamEncoder.java:263)
        at sun.nio.cs.StreamEncoder.write(StreamEncoder.java:106)
        at java.io.OutputStreamWriter.write(OutputStreamWriter.java:190)
        at java.io.BufferedWriter.flushBuffer(BufferedWriter.java:111)
        at java.io.BufferedWriter.write(BufferedWriter.java:212)
        at java.io.Writer.write(Writer.java:140)
        at com.sun.jersey.core.util.ReaderWriter.writeToAsString(ReaderWriter.java:177)
        at com.sun.jersey.core.provider.AbstractMessageReaderWriterProvider.writeToAsString(AbstractMessageReaderWriterProvider.java:125)
        at com.sun.jersey.core.impl.provider.entity.StringProvider.writeTo(StringProvider.java:85)
        at com.sun.jersey.core.impl.provider.entity.StringProvider.writeTo(StringProvider.java:55)
        at com.sun.jersey.spi.container.ContainerResponse.write(ContainerResponse.java:294)
        at org.atmosphere.jersey.AtmosphereFilter$Filter.suspend(AtmosphereFilter.java:515)
        ... 44 more
Caused by: java.io.IOException: Client is busy or timed out
        at com.sun.grizzly.util.OutputWriter.flushChannel(OutputWriter.java:127)
        at com.sun.grizzly.util.OutputWriter.flushChannel(OutputWriter.java:74)
        at com.sun.grizzly.http.SocketChannelOutputBuffer.flushChannel(SocketChannelOutputBuffer.java:321)
        at com.sun.grizzly.http.SocketChannelOutputBuffer.flushBuffer(SocketChannelOutputBuffer.java:392)
        at com.sun.grizzly.http.SocketChannelOutputBuffer.realWriteBytes(SocketChannelOutputBuffer.java:279)
        at com.sun.grizzly.tcp.http11.InternalOutputBuffer$OutputStreamOutputBuffer.doWrite(InternalOutputBuffer.java:884)
        at com.sun.grizzly.tcp.http11.filters.ChunkedOutputFilter.doWrite(ChunkedOutputFilter.java:163)
        at com.sun.grizzly.tcp.http11.InternalOutputBuffer.doWrite(InternalOutputBuffer.java:640)
        at com.sun.grizzly.tcp.Response.doWrite(Response.java:676)
        at org.apache.catalina.connector.OutputBuffer.realWriteBytes(OutputBuffer.java:420)
        ... 63 more
|#]


Did anyone face anything like that? I am surprised that behavior is different between the two... Do I need to do anything extra than just open a port on my firewall?

Regards,
 
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Strange Error

Jeanfrancois Arcand-4
Salut,

seems one of your client is not reading the response fast enough

>> Caused by: org.apache.catalina.connector.ClientAbortException:
>> java.io.IOException: Client is busy or timed out
>>          at
>> org.apache.catalina.connector.OutputBuffer.realWriteBytes(OutputBuffer.java:425)
>>          at com.sun.grizzly.util.buf.ByteChunk.append(ByteChunk.java:331)
>>          at
>> org.apache.catalina.connector.OutputBuffer.writeBytes(OutputBuffer.java:450)
>>          at
>> org.apache.catalina.connector.OutputBuffer.write(OutputBuffer.java:437)
>>          at

I don't recall how the time out in Grizzly can be increased (shame on me
I did implement that :-)), but the issue here is Grizzly try to write
and the I/O layer is not reading the bytes (either a network or client
issue). I'm cc-ing Alexey so he can remind us how the write time out can
be increased.

Thanks

-- Jeanfrancois





On 11-07-01 9:46 PM, nakoned wrote:

> Hi,
>      I have been using Atmosphere for some time, but mostly from my local
> net. I have somewhat older version: 0.7-snapshot on GF 3.0.1. It has been
> working fine, but now when I opened my app port to outside world, I started
> getting these strange errors:
>
>
> [#|2011-07-01T19:59:38.908-0400|SEVERE|glassfish3.0.1|Atmosphere|_ThreadID=34;_ThreadName=Thread-1;|The
> log message is null.
> java.lang.IllegalStateException: Request object no longer valid. This object
> has been cancelled
>          at
> org.atmosphere.cpr.AtmosphereResourceImpl.getRequest(AtmosphereResourceImpl.java:226)
>          at
> org.atmosphere.cpr.AtmosphereResourceImpl.getRequest(AtmosphereResourceImpl.java:59)
>          at
> org.atmosphere.jersey.util.JerseyBroadcasterUtil.broadcast(JerseyBroadcasterUtil.java:30)
>          at
> org.atmosphere.jersey.JerseyBroadcaster.broadcast(JerseyBroadcaster.java:66)
>          at
> org.atmosphere.cpr.DefaultBroadcaster.push(DefaultBroadcaster.java:290)
>          at
> org.atmosphere.cpr.DefaultBroadcaster.push(DefaultBroadcaster.java:260)
>          at
> org.atmosphere.cpr.DefaultBroadcaster$1.run(DefaultBroadcaster.java:209)
>          at
> java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
>          at
> java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
>          at java.util.concurrent.FutureTask.run(FutureTask.java:138)
>          at
> java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
>          at
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
>          at java.lang.Thread.run(Thread.java:619)
> |#]
>
> [[#|2011-07-01T19:59:38.909-0400|SEVERE|glassfish3.0.1|com.sun.jersey.spi.container.ContainerResponse|_ThreadID=31;_ThreadName=Thread-1;|Mapped
> exception to response: 500 (Internal Server Error)
> javax.ws.rs.WebApplicationException:
> org.apache.catalina.connector.ClientAbortException: java.io.IOException:
> Client is busy or timed out
>          at
> org.atmosphere.jersey.AtmosphereFilter$Filter.suspend(AtmosphereFilter.java:518)
>          at
> org.atmosphere.jersey.AtmosphereFilter$Filter.filter(AtmosphereFilter.java:244)
>          at
> com.sun.jersey.server.impl.application.WebApplicationImpl._handleRequest(WebApplicationImpl.java:1119)
>          at
> com.sun.jersey.server.impl.application.WebApplicationImpl.handleRequest(WebApplicationImpl.java:1053)
>          at
> com.sun.jersey.server.impl.application.WebApplicationImpl.handleRequest(WebApplicationImpl.java:1043)
>          at
> com.sun.jersey.spi.container.servlet.WebComponent.service(WebComponent.java:406)
>          at
> com.sun.jersey.spi.container.servlet.ServletContainer.service(ServletContainer.java:477)
>          at
> com.sun.jersey.spi.container.servlet.ServletContainer.service(ServletContainer.java:662)
>          at javax.servlet.http.HttpServlet.service(HttpServlet.java:847)
>          at
> org.atmosphere.util.AtmosphereFilterChain.doFilter(AtmosphereFilterChain.java:155)
>          at
> org.atmosphere.util.AtmosphereFilterChain.invokeFilterChain(AtmosphereFilterChain.java:116)
>          at
> org.atmosphere.handler.ReflectorServletProcessor$FilterChainServletWrapper.service(ReflectorServletProcessor.java:268)
>          at
> org.atmosphere.handler.ReflectorServletProcessor.onRequest(ReflectorServletProcessor.java:133)
>          at
> org.atmosphere.cpr.AsynchronousProcessor.action(AsynchronousProcessor.java:176)
>          at
> org.atmosphere.cpr.AsynchronousProcessor.suspended(AsynchronousProcessor.java:145)
>          at
> org.atmosphere.container.Servlet30Support.service(Servlet30Support.java:85)
>          at
> org.atmosphere.cpr.AtmosphereServlet.doCometSupport(AtmosphereServlet.java:1085)
>          at
> org.atmosphere.cpr.AtmosphereServlet.doPost(AtmosphereServlet.java:1068)
>          at
> org.atmosphere.cpr.AtmosphereServlet.doGet(AtmosphereServlet.java:1054)
>          at javax.servlet.http.HttpServlet.service(HttpServlet.java:734)
>          at javax.servlet.http.HttpServlet.service(HttpServlet.java:847)
>          at
> org.apache.catalina.core.StandardWrapper.service(StandardWrapper.java:1523)
>          at
> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:279)
>          at
> org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:188)
>          at
> org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:641)
>          at com.sun.enterprise.web.WebPipeline.invoke(WebPipeline.java:97)
>          at
> com.sun.enterprise.web.PESessionLockingStandardPipeline.invoke(PESessionLockingStandardPipeline.java:85)
>          at
> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:185)
>          at
> org.apache.catalina.connector.CoyoteAdapter.doService(CoyoteAdapter.java:325)
>          at
> org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:226)
>          at
> com.sun.enterprise.v3.services.impl.ContainerMapper.service(ContainerMapper.java:165)
>          at
> com.sun.grizzly.http.ProcessorTask.invokeAdapter(ProcessorTask.java:791)
>          at
> com.sun.grizzly.http.ProcessorTask.doProcess(ProcessorTask.java:693)
>          at
> com.sun.grizzly.http.ProcessorTask.process(ProcessorTask.java:954)
>          at
> com.sun.grizzly.http.DefaultProtocolFilter.execute(DefaultProtocolFilter.java:170)
>          at
> com.sun.grizzly.DefaultProtocolChain.executeProtocolFilter(DefaultProtocolChain.java:135)
>          at
> com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:102)
>          at
> com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:88)
>          at
> com.sun.grizzly.http.HttpProtocolChain.execute(HttpProtocolChain.java:76)
>          at
> com.sun.grizzly.ProtocolChainContextTask.doCall(ProtocolChainContextTask.java:53)
>          at
> com.sun.grizzly.SelectionKeyContextTask.call(SelectionKeyContextTask.java:57)
>          at com.sun.grizzly.ContextTask.run(ContextTask.java:69)
>          at
> com.sun.grizzly.util.AbstractThreadPool$Worker.doWork(AbstractThreadPool.java:330)
>          at
> com.sun.grizzly.util.AbstractThreadPool$Worker.run(AbstractThreadPool.java:309)
>          at java.lang.Thread.run(Thread.java:619)
> Caused by: org.apache.catalina.connector.ClientAbortException:
> java.io.IOException: Client is busy or timed out
>          at
> org.apache.catalina.connector.OutputBuffer.realWriteBytes(OutputBuffer.java:425)
>          at com.sun.grizzly.util.buf.ByteChunk.append(ByteChunk.java:331)
>          at
> org.apache.catalina.connector.OutputBuffer.writeBytes(OutputBuffer.java:450)
>          at
> org.apache.catalina.connector.OutputBuffer.write(OutputBuffer.java:437)
>          at
> org.apache.catalina.connector.CoyoteOutputStream.write(CoyoteOutputStream.java:161)
>          at
> com.sun.jersey.spi.container.servlet.WebComponent$Writer.write(WebComponent.java:296)
>          at
> com.sun.jersey.spi.container.ContainerResponse$CommittingOutputStream.write(ContainerResponse.java:130)
>          at sun.nio.cs.StreamEncoder.writeBytes(StreamEncoder.java:202)
>          at sun.nio.cs.StreamEncoder.implWrite(StreamEncoder.java:263)
>          at sun.nio.cs.StreamEncoder.write(StreamEncoder.java:106)
>          at java.io.OutputStreamWriter.write(OutputStreamWriter.java:190)
>          at java.io.BufferedWriter.flushBuffer(BufferedWriter.java:111)
>          at java.io.BufferedWriter.write(BufferedWriter.java:212)
>          at java.io.Writer.write(Writer.java:140)
>          at
> com.sun.jersey.core.util.ReaderWriter.writeToAsString(ReaderWriter.java:177)
>          at
> com.sun.jersey.core.provider.AbstractMessageReaderWriterProvider.writeToAsString(AbstractMessageReaderWriterProvider.java:125)
>          at
> com.sun.jersey.core.impl.provider.entity.StringProvider.writeTo(StringProvider.java:85)
>          at
> com.sun.jersey.core.impl.provider.entity.StringProvider.writeTo(StringProvider.java:55)
>          at
> com.sun.jersey.spi.container.ContainerResponse.write(ContainerResponse.java:294)
>          at
> org.atmosphere.jersey.AtmosphereFilter$Filter.suspend(AtmosphereFilter.java:515)
>          ... 44 more
> Caused by: java.io.IOException: Client is busy or timed out
>          at
> com.sun.grizzly.util.OutputWriter.flushChannel(OutputWriter.java:127)
>          at
> com.sun.grizzly.util.OutputWriter.flushChannel(OutputWriter.java:74)
>          at
> com.sun.grizzly.http.SocketChannelOutputBuffer.flushChannel(SocketChannelOutputBuffer.java:321)
>          at
> com.sun.grizzly.http.SocketChannelOutputBuffer.flushBuffer(SocketChannelOutputBuffer.java:392)
>          at
> com.sun.grizzly.http.SocketChannelOutputBuffer.realWriteBytes(SocketChannelOutputBuffer.java:279)
>          at
> com.sun.grizzly.tcp.http11.InternalOutputBuffer$OutputStreamOutputBuffer.doWrite(InternalOutputBuffer.java:884)
>          at
> com.sun.grizzly.tcp.http11.filters.ChunkedOutputFilter.doWrite(ChunkedOutputFilter.java:163)
>          at
> com.sun.grizzly.tcp.http11.InternalOutputBuffer.doWrite(InternalOutputBuffer.java:640)
>          at com.sun.grizzly.tcp.Response.doWrite(Response.java:676)
>          at
> org.apache.catalina.connector.OutputBuffer.realWriteBytes(OutputBuffer.java:420)
>          ... 63 more
> |#]
>
>
> Did anyone face anything like that? I am surprised that behavior is
> different between the two... Do I need to do anything extra than just open a
> port on my firewall?
>
> Regards,
>
>
>
> --
> View this message in context: http://atmosphere-users-mailling-list.2493822.n2.nabble.com/Strange-Error-tp6539902p6539902.html
> Sent from the Atmosphere users mailling list mailing list archive at Nabble.com.
>
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Strange Error

Oleksiy Stashok-2
Hi,


> seems one of your client is not reading the response fast enough
>
>>> Caused by: org.apache.catalina.connector.ClientAbortException:
>>> java.io.IOException: Client is busy or timed out
>>>          at
>>> org.apache.catalina.connector.OutputBuffer.realWriteBytes(OutputBuffer.java:425)
>>>
>>>          at
>>> com.sun.grizzly.util.buf.ByteChunk.append(ByteChunk.java:331)
>>>          at
>>> org.apache.catalina.connector.OutputBuffer.writeBytes(OutputBuffer.java:450)
>>>
>>>          at
>>> org.apache.catalina.connector.OutputBuffer.write(OutputBuffer.java:437)
>>>          at
>
> I don't recall how the time out in Grizzly can be increased (shame on
> me I did implement that :-)), but the issue here is Grizzly try to
> write and the I/O layer is not reading the bytes (either a network or
> client issue). I'm cc-ing Alexey so he can remind us how the write
> time out can be increased.
Right, you can increase the write timeout by setting system property in
the glassfish domain.xml file like:

<jvm-options>-Dcom.sun.grizzly.writeTimeout=<CUSTOM_TIMEOUT_IN_MILLIS></jvm-options>

the default value is 30000, which is 30 seconds.

Thanks.

WBR,
Alexey.

>
> Thanks
>
> -- Jeanfrancois
>
>
>
>
>
> On 11-07-01 9:46 PM, nakoned wrote:
>> Hi,
>>      I have been using Atmosphere for some time, but mostly from my
>> local
>> net. I have somewhat older version: 0.7-snapshot on GF 3.0.1. It has
>> been
>> working fine, but now when I opened my app port to outside world, I
>> started
>> getting these strange errors:
>>
>>
>> [#|2011-07-01T19:59:38.908-0400|SEVERE|glassfish3.0.1|Atmosphere|_ThreadID=34;_ThreadName=Thread-1;|The
>>
>> log message is null.
>> java.lang.IllegalStateException: Request object no longer valid. This
>> object
>> has been cancelled
>>          at
>> org.atmosphere.cpr.AtmosphereResourceImpl.getRequest(AtmosphereResourceImpl.java:226)
>>
>>          at
>> org.atmosphere.cpr.AtmosphereResourceImpl.getRequest(AtmosphereResourceImpl.java:59)
>>
>>          at
>> org.atmosphere.jersey.util.JerseyBroadcasterUtil.broadcast(JerseyBroadcasterUtil.java:30)
>>
>>          at
>> org.atmosphere.jersey.JerseyBroadcaster.broadcast(JerseyBroadcaster.java:66)
>>
>>          at
>> org.atmosphere.cpr.DefaultBroadcaster.push(DefaultBroadcaster.java:290)
>>          at
>> org.atmosphere.cpr.DefaultBroadcaster.push(DefaultBroadcaster.java:260)
>>          at
>> org.atmosphere.cpr.DefaultBroadcaster$1.run(DefaultBroadcaster.java:209)
>>          at
>> java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
>>          at
>> java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
>>          at java.util.concurrent.FutureTask.run(FutureTask.java:138)
>>          at
>> java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
>>
>>          at
>> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
>>
>>          at java.lang.Thread.run(Thread.java:619)
>> |#]
>>
>> [[#|2011-07-01T19:59:38.909-0400|SEVERE|glassfish3.0.1|com.sun.jersey.spi.container.ContainerResponse|_ThreadID=31;_ThreadName=Thread-1;|Mapped
>>
>> exception to response: 500 (Internal Server Error)
>> javax.ws.rs.WebApplicationException:
>> org.apache.catalina.connector.ClientAbortException: java.io.IOException:
>> Client is busy or timed out
>>          at
>> org.atmosphere.jersey.AtmosphereFilter$Filter.suspend(AtmosphereFilter.java:518)
>>
>>          at
>> org.atmosphere.jersey.AtmosphereFilter$Filter.filter(AtmosphereFilter.java:244)
>>
>>          at
>> com.sun.jersey.server.impl.application.WebApplicationImpl._handleRequest(WebApplicationImpl.java:1119)
>>
>>          at
>> com.sun.jersey.server.impl.application.WebApplicationImpl.handleRequest(WebApplicationImpl.java:1053)
>>
>>          at
>> com.sun.jersey.server.impl.application.WebApplicationImpl.handleRequest(WebApplicationImpl.java:1043)
>>
>>          at
>> com.sun.jersey.spi.container.servlet.WebComponent.service(WebComponent.java:406)
>>
>>          at
>> com.sun.jersey.spi.container.servlet.ServletContainer.service(ServletContainer.java:477)
>>
>>          at
>> com.sun.jersey.spi.container.servlet.ServletContainer.service(ServletContainer.java:662)
>>
>>          at javax.servlet.http.HttpServlet.service(HttpServlet.java:847)
>>          at
>> org.atmosphere.util.AtmosphereFilterChain.doFilter(AtmosphereFilterChain.java:155)
>>
>>          at
>> org.atmosphere.util.AtmosphereFilterChain.invokeFilterChain(AtmosphereFilterChain.java:116)
>>
>>          at
>> org.atmosphere.handler.ReflectorServletProcessor$FilterChainServletWrapper.service(ReflectorServletProcessor.java:268)
>>
>>          at
>> org.atmosphere.handler.ReflectorServletProcessor.onRequest(ReflectorServletProcessor.java:133)
>>
>>          at
>> org.atmosphere.cpr.AsynchronousProcessor.action(AsynchronousProcessor.java:176)
>>
>>          at
>> org.atmosphere.cpr.AsynchronousProcessor.suspended(AsynchronousProcessor.java:145)
>>
>>          at
>> org.atmosphere.container.Servlet30Support.service(Servlet30Support.java:85)
>>
>>          at
>> org.atmosphere.cpr.AtmosphereServlet.doCometSupport(AtmosphereServlet.java:1085)
>>
>>          at
>> org.atmosphere.cpr.AtmosphereServlet.doPost(AtmosphereServlet.java:1068)
>>          at
>> org.atmosphere.cpr.AtmosphereServlet.doGet(AtmosphereServlet.java:1054)
>>          at javax.servlet.http.HttpServlet.service(HttpServlet.java:734)
>>          at javax.servlet.http.HttpServlet.service(HttpServlet.java:847)
>>          at
>> org.apache.catalina.core.StandardWrapper.service(StandardWrapper.java:1523)
>>
>>          at
>> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:279)
>>
>>          at
>> org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:188)
>>
>>          at
>> org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:641)
>>
>>          at
>> com.sun.enterprise.web.WebPipeline.invoke(WebPipeline.java:97)
>>          at
>> com.sun.enterprise.web.PESessionLockingStandardPipeline.invoke(PESessionLockingStandardPipeline.java:85)
>>
>>          at
>> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:185)
>>
>>          at
>> org.apache.catalina.connector.CoyoteAdapter.doService(CoyoteAdapter.java:325)
>>
>>          at
>> org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:226)
>>
>>          at
>> com.sun.enterprise.v3.services.impl.ContainerMapper.service(ContainerMapper.java:165)
>>
>>          at
>> com.sun.grizzly.http.ProcessorTask.invokeAdapter(ProcessorTask.java:791)
>>          at
>> com.sun.grizzly.http.ProcessorTask.doProcess(ProcessorTask.java:693)
>>          at
>> com.sun.grizzly.http.ProcessorTask.process(ProcessorTask.java:954)
>>          at
>> com.sun.grizzly.http.DefaultProtocolFilter.execute(DefaultProtocolFilter.java:170)
>>
>>          at
>> com.sun.grizzly.DefaultProtocolChain.executeProtocolFilter(DefaultProtocolChain.java:135)
>>
>>          at
>> com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:102)
>>
>>          at
>> com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:88)
>>
>>          at
>> com.sun.grizzly.http.HttpProtocolChain.execute(HttpProtocolChain.java:76)
>>
>>          at
>> com.sun.grizzly.ProtocolChainContextTask.doCall(ProtocolChainContextTask.java:53)
>>
>>          at
>> com.sun.grizzly.SelectionKeyContextTask.call(SelectionKeyContextTask.java:57)
>>
>>          at com.sun.grizzly.ContextTask.run(ContextTask.java:69)
>>          at
>> com.sun.grizzly.util.AbstractThreadPool$Worker.doWork(AbstractThreadPool.java:330)
>>
>>          at
>> com.sun.grizzly.util.AbstractThreadPool$Worker.run(AbstractThreadPool.java:309)
>>
>>          at java.lang.Thread.run(Thread.java:619)
>> Caused by: org.apache.catalina.connector.ClientAbortException:
>> java.io.IOException: Client is busy or timed out
>>          at
>> org.apache.catalina.connector.OutputBuffer.realWriteBytes(OutputBuffer.java:425)
>>
>>          at
>> com.sun.grizzly.util.buf.ByteChunk.append(ByteChunk.java:331)
>>          at
>> org.apache.catalina.connector.OutputBuffer.writeBytes(OutputBuffer.java:450)
>>
>>          at
>> org.apache.catalina.connector.OutputBuffer.write(OutputBuffer.java:437)
>>          at
>> org.apache.catalina.connector.CoyoteOutputStream.write(CoyoteOutputStream.java:161)
>>
>>          at
>> com.sun.jersey.spi.container.servlet.WebComponent$Writer.write(WebComponent.java:296)
>>
>>          at
>> com.sun.jersey.spi.container.ContainerResponse$CommittingOutputStream.write(ContainerResponse.java:130)
>>
>>          at sun.nio.cs.StreamEncoder.writeBytes(StreamEncoder.java:202)
>>          at sun.nio.cs.StreamEncoder.implWrite(StreamEncoder.java:263)
>>          at sun.nio.cs.StreamEncoder.write(StreamEncoder.java:106)
>>          at
>> java.io.OutputStreamWriter.write(OutputStreamWriter.java:190)
>>          at java.io.BufferedWriter.flushBuffer(BufferedWriter.java:111)
>>          at java.io.BufferedWriter.write(BufferedWriter.java:212)
>>          at java.io.Writer.write(Writer.java:140)
>>          at
>> com.sun.jersey.core.util.ReaderWriter.writeToAsString(ReaderWriter.java:177)
>>
>>          at
>> com.sun.jersey.core.provider.AbstractMessageReaderWriterProvider.writeToAsString(AbstractMessageReaderWriterProvider.java:125)
>>
>>          at
>> com.sun.jersey.core.impl.provider.entity.StringProvider.writeTo(StringProvider.java:85)
>>
>>          at
>> com.sun.jersey.core.impl.provider.entity.StringProvider.writeTo(StringProvider.java:55)
>>
>>          at
>> com.sun.jersey.spi.container.ContainerResponse.write(ContainerResponse.java:294)
>>
>>          at
>> org.atmosphere.jersey.AtmosphereFilter$Filter.suspend(AtmosphereFilter.java:515)
>>
>>          ... 44 more
>> Caused by: java.io.IOException: Client is busy or timed out
>>          at
>> com.sun.grizzly.util.OutputWriter.flushChannel(OutputWriter.java:127)
>>          at
>> com.sun.grizzly.util.OutputWriter.flushChannel(OutputWriter.java:74)
>>          at
>> com.sun.grizzly.http.SocketChannelOutputBuffer.flushChannel(SocketChannelOutputBuffer.java:321)
>>
>>          at
>> com.sun.grizzly.http.SocketChannelOutputBuffer.flushBuffer(SocketChannelOutputBuffer.java:392)
>>
>>          at
>> com.sun.grizzly.http.SocketChannelOutputBuffer.realWriteBytes(SocketChannelOutputBuffer.java:279)
>>
>>          at
>> com.sun.grizzly.tcp.http11.InternalOutputBuffer$OutputStreamOutputBuffer.doWrite(InternalOutputBuffer.java:884)
>>
>>          at
>> com.sun.grizzly.tcp.http11.filters.ChunkedOutputFilter.doWrite(ChunkedOutputFilter.java:163)
>>
>>          at
>> com.sun.grizzly.tcp.http11.InternalOutputBuffer.doWrite(InternalOutputBuffer.java:640)
>>
>>          at com.sun.grizzly.tcp.Response.doWrite(Response.java:676)
>>          at
>> org.apache.catalina.connector.OutputBuffer.realWriteBytes(OutputBuffer.java:420)
>>
>>          ... 63 more
>> |#]
>>
>>
>> Did anyone face anything like that? I am surprised that behavior is
>> different between the two... Do I need to do anything extra than just
>> open a
>> port on my firewall?
>>
>> Regards,
>>
>>
>>
>> --
>> View this message in context:
>> http://atmosphere-users-mailling-list.2493822.n2.nabble.com/Strange-Error-tp6539902p6539902.html
>> Sent from the Atmosphere users mailling list mailing list archive at
>> Nabble.com.
>>

Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Strange Error

nakoned
Thanks. It seemed like a strange error...

On a different note... I am trying to upgrade to GF 3.1 and latest atmosphere (as it is a great library!) 0.7.2... Could you please list the dependencies needed to run the latest version? Looks like I consistently missing libraries when I compile my code against the new 0.7.2?

Thanks again.
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Strange Error

jfarcand
Administrator
Salut,

take a look at the following pom.xml to learn which dependencies are needed. You aren't using maven?

   https://oss.sonatype.org/content/repositories/releases/org/atmosphere/atmosphere-project/0.7.2/atmosphere-project-0.7.2.pom

A+

-- Jeanfrancois
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Strange Error

nakoned
thanks. I am not using mavin. However, I looked at it, but it seems like when I run I get errors about missing references, which are not in the pom (like  com.google.inject.Injector or org.jivesoftware.smack.MessageListener) So that is why I was asking what are the actual dependencies? It is possible I have missed something though...
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Strange Error

nakoned
In reply to this post by Oleksiy Stashok-2
Actually now I have other problem... I cannot connect more than one client to Atmosphere powered servlet. When I do I get some errors about internal server error. Is there another flag on GF that I need to switch? Like allow multiple clients to connect to servlet or something to that effect?

Regards,
Ed
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Strange Error

nakoned
The more I try to get to the bottom of it the more I get the following:

[#|2011-07-20T15:07:47.619-0400|WARNING|glassfish3.0.1|javax.enterprise.system.container.web.com.sun.enterprise.web|_ThreadID=30;_ThreadName=http-thread-pool-8080-(2);|StandardWrapperValve[SEMFAServlet]: PWC1406: Servlet.service() for servlet SEMFAServlet threw exception
java.lang.RuntimeException: java.lang.IllegalStateException
        at org.atmosphere.handler.ReflectorServletProcessor.onRequest(ReflectorServletProcessor.java:135)
        at org.atmosphere.cpr.AsynchronousProcessor.action(AsynchronousProcessor.java:176)
        at org.atmosphere.cpr.AsynchronousProcessor.suspended(AsynchronousProcessor.java:145)
        at org.atmosphere.container.Servlet30Support.service(Servlet30Support.java:85)
        at org.atmosphere.cpr.AtmosphereServlet.doCometSupport(AtmosphereServlet.java:1085)
        at org.atmosphere.cpr.AtmosphereServlet.doPost(AtmosphereServlet.java:1068)
        at org.atmosphere.cpr.AtmosphereServlet.doGet(AtmosphereServlet.java:1054)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:734)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:847)
        at org.apache.catalina.core.StandardWrapper.service(StandardWrapper.java:1523)
        at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:279)
        at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:188)
        at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:641)
        at com.sun.enterprise.web.WebPipeline.invoke(WebPipeline.java:97)
        at com.sun.enterprise.web.PESessionLockingStandardPipeline.invoke(PESessionLockingStandardPipeline.java:85)
        at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:185)
        at org.apache.catalina.connector.CoyoteAdapter.doService(CoyoteAdapter.java:325)
        at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:226)
        at com.sun.enterprise.v3.services.impl.ContainerMapper.service(ContainerMapper.java:165)
        at com.sun.grizzly.http.ProcessorTask.invokeAdapter(ProcessorTask.java:791)
        at com.sun.grizzly.http.ProcessorTask.doProcess(ProcessorTask.java:693)
        at com.sun.grizzly.http.ProcessorTask.process(ProcessorTask.java:954)
        at com.sun.grizzly.http.DefaultProtocolFilter.execute(DefaultProtocolFilter.java:170)
        at com.sun.grizzly.DefaultProtocolChain.executeProtocolFilter(DefaultProtocolChain.java:135)
        at com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:102)
        at com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:88)
        at com.sun.grizzly.http.HttpProtocolChain.execute(HttpProtocolChain.java:76)
        at com.sun.grizzly.ProtocolChainContextTask.doCall(ProtocolChainContextTask.java:53)
        at com.sun.grizzly.SelectionKeyContextTask.call(SelectionKeyContextTask.java:57)
        at com.sun.grizzly.ContextTask.run(ContextTask.java:69)
        at com.sun.grizzly.util.AbstractThreadPool$Worker.doWork(AbstractThreadPool.java:330)
        at com.sun.grizzly.util.AbstractThreadPool$Worker.run(AbstractThreadPool.java:309)
        at java.lang.Thread.run(Thread.java:619)
Caused by: java.lang.IllegalStateException
        at org.apache.catalina.connector.ResponseFacade.sendError(ResponseFacade.java:486)
        at com.sun.jersey.spi.container.servlet.WebComponent$Writer.finish(WebComponent.java:272)
        at com.sun.jersey.spi.container.ContainerResponse.write(ContainerResponse.java:237)
        at com.sun.jersey.server.impl.application.WebApplicationImpl._handleRequest(WebApplicationImpl.java:1140)
        at com.sun.jersey.server.impl.application.WebApplicationImpl.handleRequest(WebApplicationImpl.java:1053)
        at com.sun.jersey.server.impl.application.WebApplicationImpl.handleRequest(WebApplicationImpl.java:1043)
        at com.sun.jersey.spi.container.servlet.WebComponent.service(WebComponent.java:406)
        at com.sun.jersey.spi.container.servlet.ServletContainer.service(ServletContainer.java:477)
        at com.sun.jersey.spi.container.servlet.ServletContainer.service(ServletContainer.java:662)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:847)
        at org.atmosphere.util.AtmosphereFilterChain.doFilter(AtmosphereFilterChain.java:155)
        at org.atmosphere.util.AtmosphereFilterChain.invokeFilterChain(AtmosphereFilterChain.java:116)
        at org.atmosphere.handler.ReflectorServletProcessor$FilterChainServletWrapper.service(ReflectorServletProcessor.java:268)
        at org.atmosphere.handler.ReflectorServletProcessor.onRequest(ReflectorServletProcessor.java:133)

The general symptoms are:
1) I start glassfish and connect with one client - everything is fine at that point
2) I try connecting with the second client - within a few seconds I get that exception.

Does anyone have any idea? Or least some points on what to try?
Loading...