[ 
https://issues.apache.org/jira/browse/CXF-5566?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14312204#comment-14312204
 ] 

Sergey Beryozkin commented on CXF-5566:
---------------------------------------

Hi Ɓukasz

So you can reproduce it in a curl -> Jetty Server -> CXF client -> Remote 
Endpoint chain ?
Yeah, please try that property, and I'd very appreciate if you could also try 
and test this chain invocation (without setting the property) with one of the 
latest CXF + Jetty combinations - if it is OK with the latest versions then we 
can only recommend setting the property, otherwise there may be something that 
needs to be fixed in the CXF code too...I can try the latest versions myself 
but I suspect in order to reproduce one needs to 'hit' a specific execution 
path.. 

Cheers, 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)

Reply via email to