cxf-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Sergey Beryozkin (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (CXF-5566) IOUtils.copy causing Jetty IllegalStateException
Date Sun, 25 Jan 2015 21:54:34 GMT

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

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

I've actually completely missed this issue...Is JAX-RS AsyncResponse code involved ? Can updating
to newer versions of CXF or Jetty fix it ? Let us know please

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

Mime
View raw message