[
https://issues.apache.org/jira/browse/CXF-5566?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14309369#comment-14309369
]
Sergey Beryozkin commented on CXF-5566:
---------------------------------------
Hi Ćukasz
Hmm... I can see that CXF Jetty Destination can create Continuations itself,
https://git-wip-us.apache.org/repos/asf?p=cxf.git;a=blob;f=rt/transports/http-jetty/src/main/java/org/apache/cxf/transport/http_jetty/continuations/JettyContinuationProviderFactory.java;h=d0192608f28b6c95345bf2969b0a2a14b42cd10f;hb=HEAD#l49
I wonder if it may affect the way Jetty responds in some cases.
Can you please experiment with disabling that code by setting
"org.apache.cxf.transport.http_jetty.continuations.disable" to true ?
It would be good to have something reproducible; not clear now if it was all
down to the old Jetty versions or not
Thanks, Sergey
> IOUtils.copy causing Jetty IllegalStateException
> ------------------------------------------------
>
> Key: CXF-5566
> URL: https://issues.apache.org/jira/browse/CXF-5566
> Project: CXF
> Issue Type: Bug
> Components: Transports
> Affects Versions: 2.7.10
> Environment: Mac with embedded Jetty, Linux in Jetty container, both
> DEBUG and production versons
> Reporter: Geoff Genz
>
> java.lang.IllegalStateException: DISPATCHED,initial
> at
> org.eclipse.jetty.server.AsyncContinuation.handling(AsyncContinuation.java:340)
> ~[jetty-server-8.1.14.v20131031.jar:8.1.14.v20131031]
> at
> org.eclipse.jetty.server.AbstractHttpConnection.handleRequest(AbstractHttpConnection.java:452)
> ~[jetty-server-8.1.14.v20131031.jar:8.1.14.v20131031]
> at
> org.eclipse.jetty.server.AbstractHttpConnection.headerComplete(AbstractHttpConnection.java:971)
> ~[jetty-server-8.1.14.v20131031.jar:8.1.14.v20131031]
> at
> org.eclipse.jetty.server.AbstractHttpConnection$RequestHandler.headerComplete(AbstractHttpConnection.java:1033)
> ~[jetty-server-8.1.14.v20131031.jar:8.1.14.v20131031]
> at org.eclipse.jetty.http.HttpParser.parseNext(HttpParser.java:644)
> ~[jetty-http-8.1.14.v20131031.jar:8.1.14.v20131031]
> at org.eclipse.jetty.http.HttpParser.available(HttpParser.java:1234)
> ~[jetty-http-8.1.14.v20131031.jar:8.1.14.v20131031]
> at org.eclipse.jetty.server.HttpInput.available(HttpInput.java:73)
> ~[jetty-server-8.1.14.v20131031.jar:8.1.14.v20131031]
> at org.apache.cxf.helpers.IOUtils.copy(IOUtils.java:148)
> ~[cxf-bundle-jaxrs-2.7.10.jar:2.7.10]
> at org.apache.cxf.helpers.IOUtils.copy(IOUtils.java:107)
> ~[cxf-bundle-jaxrs-2.7.10.jar:2.7.10]
> at
> org.apache.cxf.io.DelegatingInputStream.cacheInput(DelegatingInputStream.java:54)
> ~[cxf-bundle-jaxrs-2.7.10.jar:2.7.10]
> at
> org.apache.cxf.transport.http.AbstractHTTPDestination$1.cacheInput(AbstractHTTPDestination.java:284)
> ~[cxf-bundle-jaxrs-2.7.10.jar:2.7.10]
> at
> org.apache.cxf.transport.http.AbstractHTTPDestination.cacheInput(AbstractHTTPDestination.java:533)
> ~[cxf-bundle-jaxrs-2.7.10.jar:2.7.10]
> at
> org.apache.cxf.transport.http.AbstractHTTPDestination.flushHeaders(AbstractHTTPDestination.java:545)
> ~[cxf-bundle-jaxrs-2.7.10.jar:2.7.10]
> at
> org.apache.cxf.transport.http_jetty.JettyHTTPDestination.flushHeaders(JettyHTTPDestination.java:384)
> ~[cxf-bundle-jaxrs-2.7.10.jar:2.7.10]
> at
> org.apache.cxf.transport.http.AbstractHTTPDestination.flushHeaders(AbstractHTTPDestination.java:538)
> ~[cxf-bundle-jaxrs-2.7.10.jar:2.7.10]
> at
> org.apache.cxf.transport.http.AbstractHTTPDestination$WrappedOutputStream.onFirstWrite(AbstractHTTPDestination.java:716)
> ~[cxf-bundle-jaxrs-2.7.10.jar:2.7.10]
> at
> org.apache.cxf.io.AbstractWrappedOutputStream.write(AbstractWrappedOutputStream.java:47)
> ~[cxf-bundle-jaxrs-2.7.10.jar:2.7.10]
> at
> org.apache.cxf.io.CacheAndWriteOutputStream.write(CacheAndWriteOutputStream.java:71)
> ~[cxf-bundle-jaxrs-2.7.10.jar:2.7.10]
> at
> org.codehaus.jackson.impl.Utf8Generator._flushBuffer(Utf8Generator.java:1754)
> ~[jackson-core-asl-1.9.13.jar:1.9.13]
> at
> org.codehaus.jackson.impl.Utf8Generator.flush(Utf8Generator.java:1088)
> ~[jackson-core-asl-1.9.13.jar:1.9.13]
> at
> org.codehaus.jackson.map.ObjectMapper.writeValue(ObjectMapper.java:1615)
> ~[jackson-mapper-asl-1.9.13.jar:1.9.13]
> at
> org.codehaus.jackson.jaxrs.JacksonJsonProvider.writeTo(JacksonJsonProvider.java:559)
> ~[jackson-jaxrs-1.9.13.jar:1.9.13]
> at
> org.apache.cxf.jaxrs.utils.JAXRSUtils.writeMessageBody(JAXRSUtils.java:1317)
> ~[cxf-bundle-jaxrs-2.7.10.jar:2.7.10]
> We can sometimes run 100000 requests through without seeing it, then the very
> next request dies with this exception.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)