cxf-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "rstacy@zcorum.com" <rst...@zcorum.com>
Subject Intermittent Connect Reset With Large Result Set
Date Thu, 16 Oct 2008 14:57:10 GMT

Hi Folks,

I am currently using CXF 2.0.6.  I have written a web service that returns a
list of objects (max number of objects is 50).  When I return very few
objects in the list, the service works fine.  However, when I start
returning upwards of 50 objects I intermittently get a connection reset
exception as follows:

org.apache.cxf.interceptor.Fault: Unmarshalling Error: Connection reset
        at
org.apache.cxf.jaxb.JAXBEncoderDecoder.unmarshall(JAXBEncoderDecoder.java:592)
        at
org.apache.cxf.jaxb.JAXBEncoderDecoder.unmarshall(JAXBEncoderDecoder.java:498)
        at
org.apache.cxf.jaxb.io.DataReaderImpl.read(DataReaderImpl.java:40)
        at
org.apache.cxf.interceptor.DocLiteralInInterceptor.getPara(DocLiteralInInterceptor.java:235)
        at
org.apache.cxf.interceptor.DocLiteralInInterceptor.handleMessage(DocLiteralInInterceptor.java:120)
        at
org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:221)
        at org.apache.cxf.endpoint.ClientImpl.onMessage(ClientImpl.java:429)
        at
org.mule.transport.cxf.transport.MuleUniversalConduit.dispatchMuleMessage(MuleUniversalConduit.java:196)
        at
org.mule.transport.cxf.transport.MuleUniversalConduit$1.handleMessage(MuleUniversalConduit.java:142)
        at
org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:221)
        at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:276)
        at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:222)
        at
org.mule.transport.cxf.CxfMessageDispatcher.doSendWithClient(CxfMessageDispatcher.java:195)
        at
org.mule.transport.cxf.CxfMessageDispatcher.doSend(CxfMessageDispatcher.java:129)
        at
org.mule.transport.AbstractMessageDispatcher.send(AbstractMessageDispatcher.java:157)
        at
org.mule.transport.AbstractConnector.send(AbstractConnector.java:1890)
        at
org.mule.endpoint.DefaultOutboundEndpoint.send(DefaultOutboundEndpoint.java:76)
        at
org.mule.DefaultMuleSession.sendEvent(DefaultMuleSession.java:327)
        at
org.mule.DefaultMuleSession.sendEvent(DefaultMuleSession.java:213)
        at
org.mule.DefaultMuleEventContext.sendEvent(DefaultMuleEventContext.java:220)
        at
org.mule.module.client.remoting.RemoteDispatcherComponent.sendAction(RemoteDispatcherComponent.java:200)
        at
org.mule.module.client.remoting.RemoteDispatcherComponent.onCall(RemoteDispatcherComponent.java:110)
        at
org.mule.component.SimpleCallableJavaComponent.invokeComponentInstance(SimpleCallableJavaComponent.java:165)
        at
org.mule.component.AbstractJavaComponent.doOnCall(AbstractJavaComponent.java:75)
        at
org.mule.component.AbstractComponent.onCall(AbstractComponent.java:96)
        at org.mule.model.seda.SedaService.doSend(SedaService.java:237)
        at
org.mule.service.AbstractService.sendEvent(AbstractService.java:510)
        at
org.mule.DefaultMuleSession.sendEvent(DefaultMuleSession.java:354)
        at
org.mule.routing.inbound.DefaultInboundRouterCollection.send(DefaultInboundRouterCollection.java:221)
        at
org.mule.routing.inbound.DefaultInboundRouterCollection.route(DefaultInboundRouterCollection.java:181)
        at
org.mule.transport.AbstractMessageReceiver$DefaultInternalMessageListener.onMessage(AbstractMessageReceiver.java:603)
        at
org.mule.transport.AbstractMessageReceiver.routeMessage(AbstractMessageReceiver.java:346)
        at
org.mule.transport.AbstractReceiverWorker$1.doInTransaction(AbstractReceiverWorker.java:114)
        at
org.mule.transaction.TransactionTemplate.execute(TransactionTemplate.java:99)
        at
org.mule.transport.AbstractReceiverWorker.doRun(AbstractReceiverWorker.java:131)
        at
org.mule.transport.AbstractReceiverResourceWorker.doRun(AbstractReceiverResourceWorker.java:51)
        at
org.mule.transport.AbstractReceiverWorker.run(AbstractReceiverWorker.java:62)
        at org.mule.work.WorkerContext.run(WorkerContext.java:310)
        at
edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1061)
        at
edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:575)
        at java.lang.Thread.run(Unknown Source)
Caused by: javax.xml.bind.UnmarshalException
 - with linked exception:
[com.ctc.wstx.exc.WstxIOException: Connection reset]
        at
com.sun.xml.bind.v2.runtime.unmarshaller.UnmarshallerImpl.handleStreamException(UnmarshallerImpl.java:396)
        at
com.sun.xml.bind.v2.runtime.unmarshaller.UnmarshallerImpl.unmarshal0(UnmarshallerImpl.java:334)
        at
com.sun.xml.bind.v2.runtime.unmarshaller.UnmarshallerImpl.unmarshal(UnmarshallerImpl.java:311)
        at
org.apache.cxf.jaxb.JAXBEncoderDecoder.unmarshall(JAXBEncoderDecoder.java:578)
        ... 40 more
Caused by: com.ctc.wstx.exc.WstxIOException: Connection reset
        at
com.ctc.wstx.sr.StreamScanner.throwFromIOE(StreamScanner.java:708)
        at
com.ctc.wstx.sr.BasicStreamReader.next(BasicStreamReader.java:1086)
        at
org.apache.cxf.staxutils.DepthXMLStreamReader.next(DepthXMLStreamReader.java:215)
        at
com.sun.xml.bind.v2.runtime.unmarshaller.StAXStreamConnector.bridge(StAXStreamConnector.java:151)
        at
com.sun.xml.bind.v2.runtime.unmarshaller.UnmarshallerImpl.unmarshal0(UnmarshallerImpl.java:332)
        ... 42 more
Caused by: java.net.SocketException: Connection reset
        at java.net.SocketInputStream.read(Unknown Source)
        at java.io.BufferedInputStream.fill(Unknown Source)
        at java.io.BufferedInputStream.read1(Unknown Source)
        at java.io.BufferedInputStream.read(Unknown Source)
        at
org.apache.commons.httpclient.ChunkedInputStream.read(ChunkedInputStream.java:182)
        at java.io.FilterInputStream.read(Unknown Source)
        at
org.apache.commons.httpclient.AutoCloseInputStream.read(AutoCloseInputStream.java:108)
        at java.io.FilterInputStream.read(Unknown Source)
        at
org.apache.commons.httpclient.AutoCloseInputStream.read(AutoCloseInputStream.java:127)
        at
org.mule.model.streaming.DelegatingInputStream.read(DelegatingInputStream.java:58)
        at com.ctc.wstx.io.UTF8Reader.loadMore(UTF8Reader.java:365)
        at com.ctc.wstx.io.UTF8Reader.read(UTF8Reader.java:110)
        at com.ctc.wstx.io.MergedReader.read(MergedReader.java:101)
        at com.ctc.wstx.io.ReaderSource.readInto(ReaderSource.java:84)
        at
com.ctc.wstx.io.BranchingReaderSource.readInto(BranchingReaderSource.java:57)
        at
com.ctc.wstx.sr.StreamScanner.loadMoreFromCurrent(StreamScanner.java:1046)
        at
com.ctc.wstx.sr.StreamScanner.loadMoreFromCurrent(StreamScanner.java:1053)
        at
com.ctc.wstx.sr.StreamScanner.getNextCharFromCurrent(StreamScanner.java:811)
        at
com.ctc.wstx.sr.BasicStreamReader.readEndElem(BasicStreamReader.java:3204)
        at
com.ctc.wstx.sr.BasicStreamReader.nextFromTree(BasicStreamReader.java:2830)
        at
com.ctc.wstx.sr.BasicStreamReader.next(BasicStreamReader.java:1019)
        ... 45 more

I am currently exposing this web service over Mule in case that has any
bearing on this.  Any help would be greatly appreciated.  

Thanks,
Rob
-- 
View this message in context: http://www.nabble.com/Intermittent-Connect-Reset-With-Large-Result-Set-tp20015118p20015118.html
Sent from the cxf-user mailing list archive at Nabble.com.


Mime
View raw message