cxf-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Sergey Beryozkin <sberyoz...@gmail.com>
Subject Re: org.apache.cxf.interceptor.Fault: DISPATCHED,initial
Date Mon, 11 Jan 2016 11:54:03 GMT
Hi

It is difficult to suggest why an array is written OK in some cases but 
not in other cases when the concurrency is high, my immediate thought 
that may be the application data are being updated concurrently too 
which has some side-effects on the write process

Cheers, Sergey
On 05/01/16 16:48, Łukasz Biały wrote:
> Hi,
>
> Hopefully this is the right mailing list.
>
>
>
> I am having some trouble with CXF inside Karaf.
>
>
> Sometimes, when the same REST is invoked concurrently at the same moment I
> see the following exception in my log files:
>
>
>
> 2016-01-05 17:11:27,077 | ERROR | qtp1283154258-55 | JAXRSUtils
> | 165 - org.apache.cxf.cxf-rt-frontend-jaxrs - 3.0.7 | Problem with writing
> the data, class java.util.ArrayList, ContentType: application/json
>
> 2016-01-05 17:11:27,082 | WARN  | qtp1283154258-55 | PhaseInterceptorChain
> | 148 - org.apache.cxf.cxf-core - 3.0.7 | Interceptor for
> {http://my.app/}MyRestEndpointImpl has thrown exception, unwinding now
>
> org.apache.cxf.interceptor.Fault: DISPATCHED,initial
>
>                  at
> org.apache.cxf.jaxrs.interceptor.JAXRSOutInterceptor.handleWriteException(JA
> XRSOutInterceptor.java:382)[165:org.apache.cxf.cxf-rt-frontend-jaxrs:3.0.7]
>
>                  at
> org.apache.cxf.jaxrs.interceptor.JAXRSOutInterceptor.serializeMessage(JAXRSO
> utInterceptor.java:257)[165:org.apache.cxf.cxf-rt-frontend-jaxrs:3.0.7]
>
>                  at
> org.apache.cxf.jaxrs.interceptor.JAXRSOutInterceptor.processResponse(JAXRSOu
> tInterceptor.java:118)[165:org.apache.cxf.cxf-rt-frontend-jaxrs:3.0.7]
>
>                  at
> org.apache.cxf.jaxrs.interceptor.JAXRSOutInterceptor.handleMessage(JAXRSOutI
> nterceptor.java:81)[165:org.apache.cxf.cxf-rt-frontend-jaxrs:3.0.7]
>
>                  at
> org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain
> .java:307)[148:org.apache.cxf.cxf-core:3.0.7]
>
>                  at
> org.apache.cxf.interceptor.OutgoingChainInterceptor.handleMessage(OutgoingCh
> ainInterceptor.java:83)[148:org.apache.cxf.cxf-core:3.0.7]
>
>                  at
> org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain
> .java:307)[148:org.apache.cxf.cxf-core:3.0.7]
>
>                  at
> org.apache.cxf.transport.ChainInitiationObserver.onMessage(ChainInitiationOb
> server.java:121)[148:org.apache.cxf.cxf-core:3.0.7]
>
>                  at
> org.apache.cxf.transport.http.AbstractHTTPDestination.invoke(AbstractHTTPDes
> tination.java:251)[158:org.apache.cxf.cxf-rt-transports-http:3.0.7]
>
>                  at
> org.apache.cxf.transport.servlet.ServletController.invokeDestination(Servlet
> Controller.java:234)[158:org.apache.cxf.cxf-rt-transports-http:3.0.7]
>
>                  at
> org.apache.cxf.transport.servlet.ServletController.invoke(ServletController.
> java:208)[158:org.apache.cxf.cxf-rt-transports-http:3.0.7]
>
>                  at
> org.apache.cxf.transport.servlet.ServletController.invoke(ServletController.
> java:160)[158:org.apache.cxf.cxf-rt-transports-http:3.0.7]
>
>                  at
> org.apache.cxf.transport.servlet.CXFNonSpringServlet.invoke(CXFNonSpringServ
> let.java:180)[158:org.apache.cxf.cxf-rt-transports-http:3.0.7]
>
>                  at
> org.apache.cxf.transport.servlet.AbstractHTTPServlet.handleRequest(AbstractH
> TTPServlet.java:293)[158:org.apache.cxf.cxf-rt-transports-http:3.0.7]
>
>                  at
> org.apache.cxf.transport.servlet.AbstractHTTPServlet.doGet(AbstractHTTPServl
> et.java:217)[158:org.apache.cxf.cxf-rt-transports-http:3.0.7]
>
>                  at
> javax.servlet.http.HttpServlet.service(HttpServlet.java:575)[75:org.apache.g
> eronimo.specs.geronimo-servlet_3.0_spec:1.0.0]
>
>                  at
> org.apache.cxf.transport.servlet.AbstractHTTPServlet.service(AbstractHTTPSer
> vlet.java:268)[158:org.apache.cxf.cxf-rt-transports-http:3.0.7]
>
>                  at
> org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:684)[79:or
> g.eclipse.jetty.aggregate.jetty-all-server:8.1.16.v20140903]
>
>                  at
> org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:503)[7
> 9:org.eclipse.jetty.aggregate.jetty-all-server:8.1.16.v20140903]
>
>                  at
> org.ops4j.pax.web.service.jetty.internal.HttpServiceServletHandler.doHandle(
> HttpServiceServletHandler.java:69)[88:org.ops4j.pax.web.pax-web-jetty:3.2.2]
>
>                  at
> org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:137
> )[79:org.eclipse.jetty.aggregate.jetty-all-server:8.1.16.v20140903]
>
>                  at
> org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:557)[
> 79:org.eclipse.jetty.aggregate.jetty-all-server:8.1.16.v20140903]
>
>                  at
> org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java
> :231)[79:org.eclipse.jetty.aggregate.jetty-all-server:8.1.16.v20140903]
>
>                  at
> org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java
> :1086)[79:org.eclipse.jetty.aggregate.jetty-all-server:8.1.16.v20140903]
>
>                  at
> org.ops4j.pax.web.service.jetty.internal.HttpServiceContext.doHandle(HttpSer
> viceContext.java:240)[88:org.ops4j.pax.web.pax-web-jetty:3.2.2]
>
>                  at
> org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:429)[79
> :org.eclipse.jetty.aggregate.jetty-all-server:8.1.16.v20140903]
>
>                  at
> org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:
> 193)[79:org.eclipse.jetty.aggregate.jetty-all-server:8.1.16.v20140903]
>
>                  at
> org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:
> 1020)[79:org.eclipse.jetty.aggregate.jetty-all-server:8.1.16.v20140903]
>
>                  at
> org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:135
> )[79:org.eclipse.jetty.aggregate.jetty-all-server:8.1.16.v20140903]
>
>                  at
> org.ops4j.pax.web.service.jetty.internal.JettyServerHandlerCollection.handle
> (JettyServerHandlerCollection.java:75)[88:org.ops4j.pax.web.pax-web-jetty:3.
> 2.2]
>
>                  at
> org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:1
> 16)[79:org.eclipse.jetty.aggregate.jetty-all-server:8.1.16.v20140903]
>
>                  at
> org.eclipse.jetty.server.Server.handle(Server.java:370)[79:org.eclipse.jetty
> .aggregate.jetty-all-server:8.1.16.v20140903]
>
>                  at
> org.eclipse.jetty.server.AbstractHttpConnection.handleRequest(AbstractHttpCo
> nnection.java:494)[79:org.eclipse.jetty.aggregate.jetty-all-server:8.1.16.v2
> 0140903]
>
>                  at
> org.eclipse.jetty.server.AbstractHttpConnection.headerComplete(AbstractHttpC
> onnection.java:971)[79:org.eclipse.jetty.aggregate.jetty-all-server:8.1.16.v
> 20140903]
>
>                  at
> org.eclipse.jetty.server.AbstractHttpConnection$RequestHandler.headerComplet
> e(AbstractHttpConnection.java:1033)[79:org.eclipse.jetty.aggregate.jetty-all
> -server:8.1.16.v20140903]
>
>                  at
> org.eclipse.jetty.http.HttpParser.parseNext(HttpParser.java:644)[79:org.ecli
> pse.jetty.aggregate.jetty-all-server:8.1.16.v20140903]
>
>                  at
> org.eclipse.jetty.http.HttpParser.parseAvailable(HttpParser.java:235)[79:org
> .eclipse.jetty.aggregate.jetty-all-server:8.1.16.v20140903]
>
>                  at
> org.eclipse.jetty.server.AsyncHttpConnection.handle(AsyncHttpConnection.java
> :82)[79:org.eclipse.jetty.aggregate.jetty-all-server:8.1.16.v20140903]
>
>                  at
> org.eclipse.jetty.io.nio.SelectChannelEndPoint.handle(SelectChannelEndPoint.
> java:696)[79:org.eclipse.jetty.aggregate.jetty-all-server:8.1.16.v20140903]
>
>                  at
> org.eclipse.jetty.io.nio.SelectChannelEndPoint$1.run(SelectChannelEndPoint.j
> ava:53)[79:org.eclipse.jetty.aggregate.jetty-all-server:8.1.16.v20140903]
>
>                  at
> org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:
> 608)[79:org.eclipse.jetty.aggregate.jetty-all-server:8.1.16.v20140903]
>
>                  at
> org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:5
> 43)[79:org.eclipse.jetty.aggregate.jetty-all-server:8.1.16.v20140903]
>
>                  at java.lang.Thread.run(Thread.java:745)[:1.7.0_79]
>
> Caused by: java.lang.IllegalStateException: DISPATCHED,initial
>
>                  at
> org.eclipse.jetty.server.AsyncContinuation.handling(AsyncContinuation.java:3
> 37)[79:org.eclipse.jetty.aggregate.jetty-all-server:8.1.16.v20140903]
>
>                  at
> org.eclipse.jetty.server.AbstractHttpConnection.handleRequest(AbstractHttpCo
> nnection.java:452)[79:org.eclipse.jetty.aggregate.jetty-all-server:8.1.16.v2
> 0140903]
>
>                  at
> org.eclipse.jetty.server.AbstractHttpConnection.headerComplete(AbstractHttpC
> onnection.java:971)[79:org.eclipse.jetty.aggregate.jetty-all-server:8.1.16.v
> 20140903]
>
>                  at
> org.eclipse.jetty.server.AbstractHttpConnection$RequestHandler.headerComplet
> e(AbstractHttpConnection.java:1033)[79:org.eclipse.jetty.aggregate.jetty-all
> -server:8.1.16.v20140903]
>
>                  at
> org.eclipse.jetty.http.HttpParser.parseNext(HttpParser.java:644)[79:org.ecli
> pse.jetty.aggregate.jetty-all-server:8.1.16.v20140903]
>
>                  at
> org.eclipse.jetty.http.HttpParser.available(HttpParser.java:1234)[79:org.ecl
> ipse.jetty.aggregate.jetty-all-server:8.1.16.v20140903]
>
>                  at
> org.eclipse.jetty.server.HttpInput.available(HttpInput.java:73)[79:org.eclip
> se.jetty.aggregate.jetty-all-server:8.1.16.v20140903]
>
>                  at
> org.apache.cxf.helpers.IOUtils.copy(IOUtils.java:183)[148:org.apache.cxf.cxf
> -core:3.0.7]
>
>                  at
> org.apache.cxf.helpers.IOUtils.copy(IOUtils.java:142)[148:org.apache.cxf.cxf
> -core:3.0.7]
>
>                  at
> org.apache.cxf.io.DelegatingInputStream.cacheInput(DelegatingInputStream.jav
> a:54)[148:org.apache.cxf.cxf-core:3.0.7]
>
>                  at
> org.apache.cxf.transport.http.AbstractHTTPDestination$1.cacheInput(AbstractH
> TTPDestination.java:308)[158:org.apache.cxf.cxf-rt-transports-http:3.0.7]
>
>                  at
> org.apache.cxf.transport.http.AbstractHTTPDestination.cacheInput(AbstractHTT
> PDestination.java:582)[158:org.apache.cxf.cxf-rt-transports-http:3.0.7]
>
>                  at
> org.apache.cxf.transport.http.AbstractHTTPDestination.flushHeaders(AbstractH
> TTPDestination.java:604)[158:org.apache.cxf.cxf-rt-transports-http:3.0.7]
>
>                  at
> org.apache.cxf.transport.http.AbstractHTTPDestination.flushHeaders(AbstractH
> TTPDestination.java:597)[158:org.apache.cxf.cxf-rt-transports-http:3.0.7]
>
>                  at
> org.apache.cxf.transport.http.AbstractHTTPDestination$WrappedOutputStream.on
> FirstWrite(AbstractHTTPDestination.java:775)[158:org.apache.cxf.cxf-rt-trans
> ports-http:3.0.7]
>
>                  at
> org.apache.cxf.io.AbstractWrappedOutputStream.write(AbstractWrappedOutputStr
> eam.java:47)[148:org.apache.cxf.cxf-core:3.0.7]
>
>                  at
> org.codehaus.jackson.impl.Utf8Generator._flushBuffer(Utf8Generator.java:1754
> )[209:jackson-core-asl:1.9.5]
>
>                  at
> org.codehaus.jackson.impl.Utf8Generator.flush(Utf8Generator.java:1088)[209:j
> ackson-core-asl:1.9.5]
>
>                  at
> org.codehaus.jackson.map.ObjectMapper.writeValue(ObjectMapper.java:1615)[210
> :jackson-mapper-asl:1.9.5]
>
>                  at
> org.codehaus.jackson.jaxrs.JacksonJsonProvider.writeTo(JacksonJsonProvider.j
> ava:558)[211:jackson-jaxrs:1.9.5]
>
>                  at
> org.apache.cxf.jaxrs.utils.JAXRSUtils.writeMessageBody(JAXRSUtils.java:1381)
> [165:org.apache.cxf.cxf-rt-frontend-jaxrs:3.0.7]
>
>                  at
> org.apache.cxf.jaxrs.interceptor.JAXRSOutInterceptor.serializeMessage(JAXRSO
> utInterceptor.java:235)[165:org.apache.cxf.cxf-rt-frontend-jaxrs:3.0.7]
>
>                  ... 41 more
>
>
>
> The next REST invocation after this exception gets a random response, from
> an unrelated REST method. Also there are timeouts when invoking REST
> methods.
> I would really appreciate some help with this issue, as aim out of ideas on
> this one.
>
>
> Greetings
>
> Lukasz Bialy
>
>


-- 
Sergey Beryozkin

Talend Community Coders
http://coders.talend.com/

Mime
View raw message