cxf-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Łukasz Dywicki (JIRA) <j...@apache.org>
Subject [jira] [Commented] (CXF-5566) IOUtils.copy causing Jetty IllegalStateException
Date Thu, 05 Feb 2015 23:19:34 GMT

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

Łukasz Dywicki commented on CXF-5566:
-------------------------------------

I just experienced same issue without any massive load by using CXF 2.7.7 (I know it's kinda
legacy..) and making requests with curl:
{code}org.apache.cxf.interceptor.Fault: DISPATCHED,initial
	at org.apache.cxf.interceptor.LoggingInInterceptor.logging(LoggingInInterceptor.java:167)[120:org.apache.cxf.cxf-api:2.7.7]
	at org.apache.cxf.interceptor.LoggingInInterceptor.handleMessage(LoggingInInterceptor.java:78)[120:org.apache.cxf.cxf-api:2.7.7]
	at org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:272)[120:org.apache.cxf.cxf-api:2.7.7]
	at org.apache.cxf.transport.ChainInitiationObserver.onMessage(ChainInitiationObserver.java:121)[120:org.apache.cxf.cxf-api:2.7.7]
	at org.apache.cxf.transport.http.AbstractHTTPDestination.invoke(AbstractHTTPDestination.java:239)[128:org.apache.cxf.cxf-rt-transports-http:2.7.7]
	at org.apache.cxf.transport.servlet.ServletController.invokeDestination(ServletController.java:248)[128:org.apache.cxf.cxf-rt-transports-http:2.7.7]
	at org.apache.cxf.transport.servlet.ServletController.invoke(ServletController.java:222)[128:org.apache.cxf.cxf-rt-transports-http:2.7.7]
	at org.apache.cxf.transport.servlet.ServletController.invoke(ServletController.java:153)[128:org.apache.cxf.cxf-rt-transports-http:2.7.7]
	at org.apache.cxf.transport.servlet.CXFNonSpringServlet.invoke(CXFNonSpringServlet.java:167)[128:org.apache.cxf.cxf-rt-transports-http:2.7.7]
	at org.apache.cxf.transport.servlet.AbstractHTTPServlet.handleRequest(AbstractHTTPServlet.java:286)[128:org.apache.cxf.cxf-rt-transports-http:2.7.7]
	at org.apache.cxf.transport.servlet.AbstractHTTPServlet.doGet(AbstractHTTPServlet.java:211)[128:org.apache.cxf.cxf-rt-transports-http:2.7.7]
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:693)[55:org.apache.geronimo.specs.geronimo-servlet_2.5_spec:1.2]
	at org.apache.cxf.transport.servlet.AbstractHTTPServlet.service(AbstractHTTPServlet.java:262)[128:org.apache.cxf.cxf-rt-transports-http:2.7.7]
	at org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:652)[66:org.eclipse.jetty.servlet:7.6.8.v20121106]
	at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:447)[66:org.eclipse.jetty.servlet:7.6.8.v20121106]
	at org.ops4j.pax.web.service.jetty.internal.HttpServiceServletHandler.doHandle(HttpServiceServletHandler.java:70)[76:org.ops4j.pax.web.pax-web-jetty:1.1.14]
	at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:137)[64:org.eclipse.jetty.server:7.6.8.v20121106]
	at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:556)[65:org.eclipse.jetty.security:7.6.8.v20121106]
	at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:227)[64:org.eclipse.jetty.server:7.6.8.v20121106]
	at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1038)[64:org.eclipse.jetty.server:7.6.8.v20121106]
	at org.ops4j.pax.web.service.jetty.internal.HttpServiceContext.doHandle(HttpServiceContext.java:124)[76:org.ops4j.pax.web.pax-web-jetty:1.1.14]
	at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:374)[66:org.eclipse.jetty.servlet:7.6.8.v20121106]
	at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:189)[64:org.eclipse.jetty.server:7.6.8.v20121106]
	at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:972)[64:org.eclipse.jetty.server:7.6.8.v20121106]
	at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:135)[64:org.eclipse.jetty.server:7.6.8.v20121106]
	at org.ops4j.pax.web.service.jetty.internal.JettyServerHandlerCollection.handle(JettyServerHandlerCollection.java:81)[76:org.ops4j.pax.web.pax-web-jetty:1.1.14]
	at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:116)[64:org.eclipse.jetty.server:7.6.8.v20121106]
	at org.eclipse.jetty.server.Server.handle(Server.java:363)[64:org.eclipse.jetty.server:7.6.8.v20121106]
	at org.eclipse.jetty.server.AbstractHttpConnection.handleRequest(AbstractHttpConnection.java:483)[64:org.eclipse.jetty.server:7.6.8.v20121106]
	at org.eclipse.jetty.server.AbstractHttpConnection.headerComplete(AbstractHttpConnection.java:920)[64:org.eclipse.jetty.server:7.6.8.v20121106]
	at org.eclipse.jetty.server.AbstractHttpConnection$RequestHandler.headerComplete(AbstractHttpConnection.java:982)[64:org.eclipse.jetty.server:7.6.8.v20121106]
	at org.eclipse.jetty.http.HttpParser.parseNext(HttpParser.java:635)[60:org.eclipse.jetty.http:7.6.8.v20121106]
	at org.eclipse.jetty.http.HttpParser.parseAvailable(HttpParser.java:235)[60:org.eclipse.jetty.http:7.6.8.v20121106]
	at org.eclipse.jetty.server.AsyncHttpConnection.handle(AsyncHttpConnection.java:82)[64:org.eclipse.jetty.server:7.6.8.v20121106]
	at org.eclipse.jetty.io.nio.SelectChannelEndPoint.handle(SelectChannelEndPoint.java:628)[59:org.eclipse.jetty.io:7.6.8.v20121106]
	at org.eclipse.jetty.io.nio.SelectChannelEndPoint$1.run(SelectChannelEndPoint.java:52)[59:org.eclipse.jetty.io:7.6.8.v20121106]
	at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:608)[58:org.eclipse.jetty.util:7.6.8.v20121106]
	at org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:543)[58:org.eclipse.jetty.util:7.6.8.v20121106]
	at java.lang.Thread.run(Thread.java:745)[:1.7.0_67]
Caused by: java.lang.IllegalStateException: DISPATCHED,initial
	at org.eclipse.jetty.server.AsyncContinuation.handling(AsyncContinuation.java:292)[64:org.eclipse.jetty.server:7.6.8.v20121106]
	at org.eclipse.jetty.server.AbstractHttpConnection.handleRequest(AbstractHttpConnection.java:444)[64:org.eclipse.jetty.server:7.6.8.v20121106]
	at org.eclipse.jetty.server.AbstractHttpConnection.headerComplete(AbstractHttpConnection.java:920)[64:org.eclipse.jetty.server:7.6.8.v20121106]
	at org.eclipse.jetty.server.AbstractHttpConnection$RequestHandler.headerComplete(AbstractHttpConnection.java:982)[64:org.eclipse.jetty.server:7.6.8.v20121106]
	at org.eclipse.jetty.http.HttpParser.parseNext(HttpParser.java:635)[60:org.eclipse.jetty.http:7.6.8.v20121106]
	at org.eclipse.jetty.http.HttpParser.available(HttpParser.java:1225)[60:org.eclipse.jetty.http:7.6.8.v20121106]
	at org.eclipse.jetty.server.HttpInput.available(HttpInput.java:73)[64:org.eclipse.jetty.server:7.6.8.v20121106]
	at org.apache.cxf.helpers.IOUtils.copy(IOUtils.java:145)[120:org.apache.cxf.cxf-api:2.7.7]
	at org.apache.cxf.helpers.IOUtils.copy(IOUtils.java:104)[120:org.apache.cxf.cxf-api:2.7.7]
	at org.apache.cxf.helpers.IOUtils.copyAndCloseInput(IOUtils.java:110)[120:org.apache.cxf.cxf-api:2.7.7]
	at org.apache.cxf.interceptor.LoggingInInterceptor.logging(LoggingInInterceptor.java:144)[120:org.apache.cxf.cxf-api:2.7.7]
{code}

> 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