Uploaded image for project: 'ServiceMix'
  1. ServiceMix
  2. SM-759

Error "Attempted read on closed stream" thrown from jsr181 proxies when dealing with streams

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 3.0, 3.0.1
    • 3.1
    • servicemix-jsr181
    • None

    Description

      ERROR - DefaultFaultHandler - Fault occurred!
      org.codehaus.xfire.XFireRuntimeException: Could not invoke service.. Nested exception is org.codehaus.xfire.fault.XFireFault: Error sending jbi exchange
      org.codehaus.xfire.fault.XFireFault: Error sending jbi exchange
      at org.codehaus.xfire.fault.XFireFault.createFault(XFireFault.java:89)
      at org.codehaus.xfire.handler.OutMessageSender.invoke(OutMessageSender.java:30)
      at org.codehaus.xfire.handler.HandlerPipeline.invoke(HandlerPipeline.java:131)
      at org.codehaus.xfire.client.Invocation.invoke(Invocation.java:75)
      at org.codehaus.xfire.client.Client.invoke(Client.java:335)
      at org.codehaus.xfire.client.XFireProxy.handleRequest(XFireProxy.java:77)
      at org.codehaus.xfire.client.XFireProxy.invoke(XFireProxy.java:57)
      at org.apache.servicemix.jsr181.xfire.JbiProxyFactoryBean$1.invoke(JbiProxyFactoryBean.java:71)
      at $Proxy1.listeImplantUniteAvecAdrsParEtabID(Unknown Source)
      at com.bull.etnic.FaseImpl.infosFase(FaseImpl.java:186)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:585)
      at org.codehaus.xfire.service.invoker.AbstractInvoker.invoke(AbstractInvoker.java:54)
      at org.codehaus.xfire.service.binding.ServiceInvocationHandler.sendMessage(ServiceInvocationHandler.java:271)
      at org.codehaus.xfire.service.binding.ServiceInvocationHandler$1.run(ServiceInvocationHandler.java:84)
      at org.codehaus.xfire.service.binding.ServiceInvocationHandler.execute(ServiceInvocationHandler.java:132)
      at org.codehaus.xfire.service.binding.ServiceInvocationHandler.invoke(ServiceInvocationHandler.java:107)
      at org.codehaus.xfire.handler.HandlerPipeline.invoke(HandlerPipeline.java:131)
      at org.codehaus.xfire.transport.DefaultEndpoint.onReceive(DefaultEndpoint.java:64)
      at org.codehaus.xfire.transport.AbstractChannel.receive(AbstractChannel.java:38)
      at org.apache.servicemix.jsr181.Jsr181ExchangeProcessor.process(Jsr181ExchangeProcessor.java:109)
      at org.apache.servicemix.common.AsyncBaseLifeCycle.doProcess(AsyncBaseLifeCycle.java:479)
      at org.apache.servicemix.common.AsyncBaseLifeCycle.processExchange(AsyncBaseLifeCycle.java:439)
      at org.apache.servicemix.common.BaseLifeCycle.onMessageExchange(BaseLifeCycle.java:46)
      at org.apache.servicemix.jbi.messaging.DeliveryChannelImpl.processInBound(DeliveryChannelImpl.java:610)
      at org.apache.servicemix.jbi.nmr.flow.AbstractFlow.doRouting(AbstractFlow.java:174)
      at org.apache.servicemix.jbi.nmr.flow.seda.SedaFlow.doRouting(SedaFlow.java:176)
      at org.apache.servicemix.jbi.nmr.flow.seda.SedaQueue$1.run(SedaQueue.java:134)
      at edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:665)
      at edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:690)
      at java.lang.Thread.run(Thread.java:595)
      Caused by: org.codehaus.xfire.XFireException: Error sending jbi exchange
      at org.apache.servicemix.jsr181.xfire.JbiChannel.send(JbiChannel.java:121)
      at org.codehaus.xfire.handler.OutMessageSender.invoke(OutMessageSender.java:26)
      ... 31 more
      Caused by: javax.xml.transform.TransformerException: com.ctc.wstx.exc.WstxIOException: Attempted read on closed stream.
      at org.apache.xalan.transformer.TransformerIdentityImpl.transform(TransformerIdentityImpl.java:501)
      at org.apache.servicemix.jbi.jaxp.SourceTransformer.toResult(SourceTransformer.java:84)
      at org.apache.servicemix.jbi.jaxp.SourceTransformer.toString(SourceTransformer.java:100)
      at org.apache.servicemix.jbi.jaxp.SourceTransformer.toStreamSourceFromSAX(SourceTransformer.java:187)
      at org.apache.servicemix.jbi.jaxp.SourceTransformer.toStreamSource(SourceTransformer.java:171)
      at org.apache.servicemix.jbi.jaxp.SourceTransformer.toReaderFromSource(SourceTransformer.java:204)
      at org.apache.servicemix.jbi.jaxp.StAXSourceTransformer.toXMLStreamReader(StAXSourceTransformer.java:79)
      at org.apache.servicemix.jsr181.xfire.JbiChannel.send(JbiChannel.java:113)
      ... 32 more
      Caused by: com.ctc.wstx.exc.WstxIOException: Attempted read on closed stream.
      at org.apache.servicemix.jbi.jaxp.StaxSource.parse(StaxSource.java:147)
      at org.apache.servicemix.jbi.jaxp.StaxSource.parse(StaxSource.java:256)
      at org.apache.xalan.transformer.TransformerIdentityImpl.transform(TransformerIdentityImpl.java:484)
      ... 39 more

      Attachments

        Activity

          People

            gnodet Guillaume Nodet
            gnodet Guillaume Nodet
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: