You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cxf.apache.org by "Geoff Genz (JIRA)" <ji...@apache.org> on 2014/02/17 21:13:19 UTC
[jira] [Created] (CXF-5566) IOUtils.copy causing Jetty
IllegalStateException
Geoff Genz created CXF-5566:
-------------------------------
Summary: 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.1.5#6160)