4 Replies Latest reply on Sep 3, 2010 7:46 AM by Fernando Salceda

    pool-component.servicemix-camel-thread

    Fernando Salceda Novice

      I'm using "apache-servicemix-4.2.0-fuse-02-00" and I've installed on it the following components:

      cxf-consumer -> camel-recipientList -> camel-xslt-transformer -> cxf-provider

       

      After doing some stress tests (max. 5 user requests in 1 second) I found out that sometimes It crashes between the recipientList and transformer components.  I checked out with jconsole that pool-component.servicemix-camel-thread is not blocked but is waiting for a exchange. But there is never an error log in servicemix.log. I paste the threads info before and after it happens.

       

      Information displayed by jconsole for

      "pool-component.servicemix-camel-threads"

      -


       

      All is ok when:

       

      Name: pool-component.servicemix-camel-thread-3

      State: WAITING

      Total blocked: 0  Total waited: 2

       

      Stack trace:

      sun.misc.Unsafe.park(Native Method)

      java.util.concurrent.locks.LockSupport.park(LockSupport.java:118)

      java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.await(AbstractQueuedSynchronizer.java:1841)

      java.util.concurrent.ArrayBlockingQueue.take(ArrayBlockingQueue.java:341)

      java.util.concurrent.ThreadPoolExecutor.getTask(ThreadPoolExecutor.java:470)

      java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:674)

       

      -


       

      No answer when:

       

      Name: pool-component.servicemix-camel-thread-3 (waiting for exchange c922e124-f157-4e1d-9a94-d6ec1989f924)

      State: WAITING

      Total blocked: 0  Total waited: 68

       

      Stack trace:

      sun.misc.Unsafe.park(Native Method)

      java.util.concurrent.locks.LockSupport.park(LockSupport.java:118)

      java.util.concurrent.locks.AbstractQueuedSynchronizer.parkAndCheckInterrupt(AbstractQueuedSynchronizer.java:716)

      java.util.concurrent.locks.AbstractQueuedSynchronizer.doAcquireSharedInterruptibly(AbstractQueuedSynchronizer.java:872)

      java.util.concurrent.locks.AbstractQueuedSynchronizer.acquireSharedInterruptibly(AbstractQueuedSynchronizer.java:1179)

      java.util.concurrent.Semaphore.acquire(Semaphore.java:272)

      org.apache.servicemix.nmr.core.ChannelImpl.sendSync(ChannelImpl.java:151)

      org.apache.servicemix.nmr.core.ChannelImpl.sendSync(ChannelImpl.java:127)

      org.apache.servicemix.jbi.runtime.impl.DeliveryChannelImpl.sendSync(DeliveryChannelImpl.java:187)

      org.apache.servicemix.common.EndpointDeliveryChannel.sendSync(EndpointDeliveryChannel.java:120)

      org.apache.servicemix.common.endpoints.SimpleEndpoint.sendSync(SimpleEndpoint.java:74)

      org.apache.servicemix.camel.CamelConsumerEndpoint.process(CamelConsumerEndpoint.java:65)

      org.apache.servicemix.camel.JbiEndpoint$JbiProducer$1.call(JbiEndpoint.java:115)

      org.apache.servicemix.camel.JbiBinding.runWithCamelContextClassLoader(JbiBinding.java:116)

      org.apache.servicemix.camel.JbiEndpoint$JbiProducer.process(JbiEndpoint.java:113)

      org.apache.camel.processor.RedeliveryErrorHandler.processExchange(RedeliveryErrorHandler.java:177)

      org.apache.camel.processor.RedeliveryErrorHandler.processErrorHandler(RedeliveryErrorHandler.java:143)

      org.apache.camel.processor.RedeliveryErrorHandler.process(RedeliveryErrorHandler.java:88)

      org.apache.camel.processor.DefaultErrorHandler.process(DefaultErrorHandler.java:49)

      org.apache.camel.processor.MulticastProcessor.doProcess(MulticastProcessor.java:268)

      org.apache.camel.processor.MulticastProcessor.doProcessSequential(MulticastProcessor.java:236)

      org.apache.camel.processor.MulticastProcessor.process(MulticastProcessor.java:153)

      org.apache.camel.processor.RecipientList.sendToRecipientList(RecipientList.java:102)

      org.apache.camel.processor.RecipientList.process(RecipientList.java:81)

      org.apache.camel.management.InstrumentationProcessor.process(InstrumentationProcessor.java:67)

      org.apache.camel.processor.DelegateProcessor.processNext(DelegateProcessor.java:53)

      org.apache.camel.processor.DelegateProcessor.proceed(DelegateProcessor.java:82)

      org.apache.camel.processor.interceptor.TraceInterceptor.process(TraceInterceptor.java:93)

      org.apache.camel.management.InstrumentationProcessor.process(InstrumentationProcessor.java:67)

      org.apache.camel.processor.DefaultChannel.process(DefaultChannel.java:228)

      org.apache.camel.processor.Pipeline.process(Pipeline.java:74)

      org.apache.camel.processor.UnitOfWorkProcessor.processNext(UnitOfWorkProcessor.java:66)

      org.apache.camel.processor.DelegateProcessor.process(DelegateProcessor.java:48)

      org.apache.camel.management.InstrumentationProcessor.process(InstrumentationProcessor.java:67)

      org.apache.servicemix.camel.CamelProviderEndpoint$1.call(CamelProviderEndpoint.java:111)

      org.apache.servicemix.camel.JbiBinding.runWithCamelContextClassLoader(JbiBinding.java:116)

      org.apache.servicemix.camel.CamelProviderEndpoint.handleActiveProviderExchange(CamelProviderEndpoint.java:109)

      org.apache.servicemix.camel.CamelProviderEndpoint.process(CamelProviderEndpoint.java:87)

      org.apache.servicemix.common.AsyncBaseLifeCycle.doProcess(AsyncBaseLifeCycle.java:617)

      org.apache.servicemix.common.AsyncBaseLifeCycle.processExchange(AsyncBaseLifeCycle.java:571)

      org.apache.servicemix.common.AsyncBaseLifeCycle.processExchangeInTx(AsyncBaseLifeCycle.java:468)

      org.apache.servicemix.common.AsyncBaseLifeCycle$2.run(AsyncBaseLifeCycle.java:347)

      java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:650)

      java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:675)

      java.lang.Thread.run(Thread.java:595)

       

      -


       

      It happens with every "pool-component.servicemix-camel-thread-X" thread.

       

      After that I have to restart fuse to make it work again.

       

      I tried to put "corePoolSize=16" in .../etc/org.apache.servicemix.jbi.cfg config file but It didn't work very well.

       

       

      I would appreciate an answer with a possible solution or with a more info request if you need it.

       

      Thanks.

        • 1. Re: pool-component.servicemix-camel-thread
          Fernando Salceda Novice

          When I restart servicemix, It usually throws an Exception when I call my consumer and have to restart it again. Perhaps it is related with my problem:

           

          -


          16:18:16,620 | ERROR | x-camel-thread-4 | DefaultErrorHandler              | rg.apache.camel.processor.Logger  248 | Failed delivery for exchangeId: 081c3067-e88f-4960-b5f2-e9f20f0180f8. Exhausted after delivery attempt: 1 caught: javax.xml.transform.TransformerException: javax.xml.transform.TransformerException: com.sun.org.apache.xml.internal.utils.WrappedRuntimeException: Stream closed

          javax.xml.transform.TransformerException: javax.xml.transform.TransformerException: com.sun.org.apache.xml.internal.utils.WrappedRuntimeException: Stream closed

               at com.sun.org.apache.xalan.internal.xsltc.trax.TransformerImpl.transform(TransformerImpl.java:673)

               at com.sun.org.apache.xalan.internal.xsltc.trax.TransformerImpl.transform(TransformerImpl.java:300)

               at org.apache.camel.builder.xml.XsltBuilder.process(XsltBuilder.java:82)

               at org.apache.camel.impl.ProcessorEndpoint.onExchange(ProcessorEndpoint.java:95)

               at org.apache.camel.impl.ProcessorEndpoint$1.process(ProcessorEndpoint.java:65)

               at org.apache.camel.processor.SendProcessor$1.doInProducer(SendProcessor.java:97)

               at org.apache.camel.processor.SendProcessor$1.doInProducer(SendProcessor.java:95)

               at org.apache.camel.impl.ProducerCache.doInProducer(ProducerCache.java:146)

               at org.apache.camel.processor.SendProcessor.doProcess(SendProcessor.java:94)

               at org.apache.camel.processor.SendProcessor.process(SendProcessor.java:82)

               at org.apache.camel.management.InstrumentationProcessor.process(InstrumentationProcessor.java:67)

               at org.apache.camel.processor.DelegateProcessor.processNext(DelegateProcessor.java:53)

               at org.apache.camel.processor.DelegateProcessor.proceed(DelegateProcessor.java:82)

               at org.apache.camel.processor.interceptor.TraceInterceptor.process(TraceInterceptor.java:93)

               at org.apache.camel.management.InstrumentationProcessor.process(InstrumentationProcessor.java:67)

               at org.apache.camel.processor.RedeliveryErrorHandler.processExchange(RedeliveryErrorHandler.java:177)

               at org.apache.camel.processor.RedeliveryErrorHandler.processErrorHandler(RedeliveryErrorHandler.java:143)

               at org.apache.camel.processor.RedeliveryErrorHandler.process(RedeliveryErrorHandler.java:88)

               at org.apache.camel.processor.DefaultErrorHandler.process(DefaultErrorHandler.java:49)

               at org.apache.camel.processor.DefaultChannel.process(DefaultChannel.java:228)

               at org.apache.camel.processor.Pipeline.process(Pipeline.java:74)

               at org.apache.camel.processor.UnitOfWorkProcessor.processNext(UnitOfWorkProcessor.java:66)

               at org.apache.camel.processor.DelegateProcessor.process(DelegateProcessor.java:48)

               at org.apache.camel.management.InstrumentationProcessor.process(InstrumentationProcessor.java:67)

               at org.apache.servicemix.camel.CamelProviderEndpoint$1.call(CamelProviderEndpoint.java:111)

               at org.apache.servicemix.camel.JbiBinding.runWithCamelContextClassLoader(JbiBinding.java:116)

               at org.apache.servicemix.camel.CamelProviderEndpoint.handleActiveProviderExchange(CamelProviderEndpoint.java:109)

               at org.apache.servicemix.camel.CamelProviderEndpoint.process(CamelProviderEndpoint.java:87)

               at org.apache.servicemix.common.AsyncBaseLifeCycle.doProcess(AsyncBaseLifeCycle.java:617)

               at org.apache.servicemix.common.AsyncBaseLifeCycle.processExchange(AsyncBaseLifeCycle.java:571)

               at org.apache.servicemix.common.AsyncBaseLifeCycle.processExchangeInTx(AsyncBaseLifeCycle.java:468)

               at org.apache.servicemix.common.AsyncBaseLifeCycle$2.run(AsyncBaseLifeCycle.java:347)

               at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:650)

               at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:675)

               at java.lang.Thread.run(Thread.java:595)

          Caused by: javax.xml.transform.TransformerException: com.sun.org.apache.xml.internal.utils.WrappedRuntimeException: Stream closed

               at com.sun.org.apache.xalan.internal.xsltc.trax.TransformerImpl.getDOM(TransformerImpl.java:515)

               at com.sun.org.apache.xalan.internal.xsltc.trax.TransformerImpl.transform(TransformerImpl.java:663)

               ... 34 more

          Caused by: com.sun.org.apache.xml.internal.utils.WrappedRuntimeException: Stream closed

               at com.sun.org.apache.xalan.internal.xsltc.dom.XSLTCDTMManager.getDTM(XSLTCDTMManager.java:397)

               at com.sun.org.apache.xalan.internal.xsltc.dom.XSLTCDTMManager.getDTM(XSLTCDTMManager.java:231)

               at com.sun.org.apache.xalan.internal.xsltc.trax.TransformerImpl.getDOM(TransformerImpl.java:493)

               ... 35 more

          -


          javax.xml.transform.TransformerException: com.sun.org.apache.xml.internal.utils.WrappedRuntimeException: Stream closed

               at com.sun.org.apache.xalan.internal.xsltc.trax.TransformerImpl.getDOM(TransformerImpl.java:515)

               at com.sun.org.apache.xalan.internal.xsltc.trax.TransformerImpl.transform(TransformerImpl.java:663)

               at com.sun.org.apache.xalan.internal.xsltc.trax.TransformerImpl.transform(TransformerImpl.java:300)

               at org.apache.camel.builder.xml.XsltBuilder.process(XsltBuilder.java:82)

               at org.apache.camel.impl.ProcessorEndpoint.onExchange(ProcessorEndpoint.java:95)

               at org.apache.camel.impl.ProcessorEndpoint$1.process(ProcessorEndpoint.java:65)

               at org.apache.camel.processor.SendProcessor$1.doInProducer(SendProcessor.java:97)

               at org.apache.camel.processor.SendProcessor$1.doInProducer(SendProcessor.java:95)

               at org.apache.camel.impl.ProducerCache.doInProducer(ProducerCache.java:146)

               at org.apache.camel.processor.SendProcessor.doProcess(SendProcessor.java:94)

               at org.apache.camel.processor.SendProcessor.process(SendProcessor.java:82)

               at org.apache.camel.management.InstrumentationProcessor.process(InstrumentationProcessor.java:67)

               at org.apache.camel.processor.DelegateProcessor.processNext(DelegateProcessor.java:53)

               at org.apache.camel.processor.DelegateProcessor.proceed(DelegateProcessor.java:82)

               at org.apache.camel.processor.interceptor.TraceInterceptor.process(TraceInterceptor.java:93)

               at org.apache.camel.management.InstrumentationProcessor.process(InstrumentationProcessor.java:67)

               at org.apache.camel.processor.RedeliveryErrorHandler.processExchange(RedeliveryErrorHandler.java:177)

               at org.apache.camel.processor.RedeliveryErrorHandler.processErrorHandler(RedeliveryErrorHandler.java:143)

               at org.apache.camel.processor.RedeliveryErrorHandler.process(RedeliveryErrorHandler.java:88)

               at org.apache.camel.processor.DefaultErrorHandler.process(DefaultErrorHandler.java:49)

               at org.apache.camel.processor.DefaultChannel.process(DefaultChannel.java:228)

               at org.apache.camel.processor.Pipeline.process(Pipeline.java:74)

               at org.apache.camel.processor.UnitOfWorkProcessor.processNext(UnitOfWorkProcessor.java:66)

               at org.apache.camel.processor.DelegateProcessor.process(DelegateProcessor.java:48)

               at org.apache.camel.management.InstrumentationProcessor.process(InstrumentationProcessor.java:67)

               at org.apache.servicemix.camel.CamelProviderEndpoint$1.call(CamelProviderEndpoint.java:111)

               at org.apache.servicemix.camel.JbiBinding.runWithCamelContextClassLoader(JbiBinding.java:116)

               at org.apache.servicemix.camel.CamelProviderEndpoint.handleActiveProviderExchange(CamelProviderEndpoint.java:109)

               at org.apache.servicemix.camel.CamelProviderEndpoint.process(CamelProviderEndpoint.java:87)

               at org.apache.servicemix.common.AsyncBaseLifeCycle.doProcess(AsyncBaseLifeCycle.java:617)

               at org.apache.servicemix.common.AsyncBaseLifeCycle.processExchange(AsyncBaseLifeCycle.java:571)

               at org.apache.servicemix.common.AsyncBaseLifeCycle.processExchangeInTx(AsyncBaseLifeCycle.java:468)

               at org.apache.servicemix.common.AsyncBaseLifeCycle$2.run(AsyncBaseLifeCycle.java:347)

               at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:650)

               at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:675)

               at java.lang.Thread.run(Thread.java:595)

          Caused by: com.sun.org.apache.xml.internal.utils.WrappedRuntimeException: Stream closed

               at com.sun.org.apache.xalan.internal.xsltc.dom.XSLTCDTMManager.getDTM(XSLTCDTMManager.java:397)

               at com.sun.org.apache.xalan.internal.xsltc.dom.XSLTCDTMManager.getDTM(XSLTCDTMManager.java:231)

               at com.sun.org.apache.xalan.internal.xsltc.trax.TransformerImpl.getDOM(TransformerImpl.java:493)

               ... 35 more

          -


          com.sun.org.apache.xml.internal.utils.WrappedRuntimeException: Stream closed

               at com.sun.org.apache.xalan.internal.xsltc.dom.XSLTCDTMManager.getDTM(XSLTCDTMManager.java:397)

               at com.sun.org.apache.xalan.internal.xsltc.dom.XSLTCDTMManager.getDTM(XSLTCDTMManager.java:231)

               at com.sun.org.apache.xalan.internal.xsltc.trax.TransformerImpl.getDOM(TransformerImpl.java:493)

               at com.sun.org.apache.xalan.internal.xsltc.trax.TransformerImpl.transform(TransformerImpl.java:663)

               at com.sun.org.apache.xalan.internal.xsltc.trax.TransformerImpl.transform(TransformerImpl.java:300)

               at org.apache.camel.builder.xml.XsltBuilder.process(XsltBuilder.java:82)

               at org.apache.camel.impl.ProcessorEndpoint.onExchange(ProcessorEndpoint.java:95)

               at org.apache.camel.impl.ProcessorEndpoint$1.process(ProcessorEndpoint.java:65)

               at org.apache.camel.processor.SendProcessor$1.doInProducer(SendProcessor.java:97)

               at org.apache.camel.processor.SendProcessor$1.doInProducer(SendProcessor.java:95)

               at org.apache.camel.impl.ProducerCache.doInProducer(ProducerCache.java:146)

               at org.apache.camel.processor.SendProcessor.doProcess(SendProcessor.java:94)

               at org.apache.camel.processor.SendProcessor.process(SendProcessor.java:82)

               at org.apache.camel.management.InstrumentationProcessor.process(InstrumentationProcessor.java:67)

               at org.apache.camel.processor.DelegateProcessor.processNext(DelegateProcessor.java:53)

               at org.apache.camel.processor.DelegateProcessor.proceed(DelegateProcessor.java:82)

               at org.apache.camel.processor.interceptor.TraceInterceptor.process(TraceInterceptor.java:93)

               at org.apache.camel.management.InstrumentationProcessor.process(InstrumentationProcessor.java:67)

               at org.apache.camel.processor.RedeliveryErrorHandler.processExchange(RedeliveryErrorHandler.java:177)

               at org.apache.camel.processor.RedeliveryErrorHandler.processErrorHandler(RedeliveryErrorHandler.java:143)

               at org.apache.camel.processor.RedeliveryErrorHandler.process(RedeliveryErrorHandler.java:88)

               at org.apache.camel.processor.DefaultErrorHandler.process(DefaultErrorHandler.java:49)

               at org.apache.camel.processor.DefaultChannel.process(DefaultChannel.java:228)

               at org.apache.camel.processor.Pipeline.process(Pipeline.java:74)

               at org.apache.camel.processor.UnitOfWorkProcessor.processNext(UnitOfWorkProcessor.java:66)

               at org.apache.camel.processor.DelegateProcessor.process(DelegateProcessor.java:48)

               at org.apache.camel.management.InstrumentationProcessor.process(InstrumentationProcessor.java:67)

               at org.apache.servicemix.camel.CamelProviderEndpoint$1.call(CamelProviderEndpoint.java:111)

               at org.apache.servicemix.camel.JbiBinding.runWithCamelContextClassLoader(JbiBinding.java:116)

               at org.apache.servicemix.camel.CamelProviderEndpoint.handleActiveProviderExchange(CamelProviderEndpoint.java:109)

               at org.apache.servicemix.camel.CamelProviderEndpoint.process(CamelProviderEndpoint.java:87)

               at org.apache.servicemix.common.AsyncBaseLifeCycle.doProcess(AsyncBaseLifeCycle.java:617)

               at org.apache.servicemix.common.AsyncBaseLifeCycle.processExchange(AsyncBaseLifeCycle.java:571)

               at org.apache.servicemix.common.AsyncBaseLifeCycle.processExchangeInTx(AsyncBaseLifeCycle.java:468)

               at org.apache.servicemix.common.AsyncBaseLifeCycle$2.run(AsyncBaseLifeCycle.java:347)

               at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:650)

               at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:675)

               at java.lang.Thread.run(Thread.java:595)

          -


          java.io.IOException: Stream closed

               at java.io.StringReader.ensureOpen(StringReader.java:39)

               at java.io.StringReader.read(StringReader.java:73)

               at com.sun.org.apache.xerces.internal.impl.XMLEntityScanner.load(XMLEntityScanner.java:1740)

               at com.sun.org.apache.xerces.internal.impl.XMLEntityScanner.skipString(XMLEntityScanner.java:1437)

               at com.sun.org.apache.xerces.internal.impl.XMLVersionDetector.determineDocVersion(XMLVersionDetector.java:191)

               at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:798)

               at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:764)

               at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser.java:148)

               at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1242)

               at com.sun.org.apache.xalan.internal.xsltc.dom.XSLTCDTMManager.getDTM(XSLTCDTMManager.java:391)

               at com.sun.org.apache.xalan.internal.xsltc.dom.XSLTCDTMManager.getDTM(XSLTCDTMManager.java:231)

               at com.sun.org.apache.xalan.internal.xsltc.trax.TransformerImpl.getDOM(TransformerImpl.java:493)

               at com.sun.org.apache.xalan.internal.xsltc.trax.TransformerImpl.transform(TransformerImpl.java:663)

               at com.sun.org.apache.xalan.internal.xsltc.trax.TransformerImpl.transform(TransformerImpl.java:300)

               at org.apache.camel.builder.xml.XsltBuilder.process(XsltBuilder.java:82)

               at org.apache.camel.impl.ProcessorEndpoint.onExchange(ProcessorEndpoint.java:95)

               at org.apache.camel.impl.ProcessorEndpoint$1.process(ProcessorEndpoint.java:65)

               at org.apache.camel.processor.SendProcessor$1.doInProducer(SendProcessor.java:97)

               at org.apache.camel.processor.SendProcessor$1.doInProducer(SendProcessor.java:95)

               at org.apache.camel.impl.ProducerCache.doInProducer(ProducerCache.java:146)

               at org.apache.camel.processor.SendProcessor.doProcess(SendProcessor.java:94)

               at org.apache.camel.processor.SendProcessor.process(SendProcessor.java:82)

               at org.apache.camel.management.InstrumentationProcessor.process(InstrumentationProcessor.java:67)

               at org.apache.camel.processor.DelegateProcessor.processNext(DelegateProcessor.java:53)

               at org.apache.camel.processor.DelegateProcessor.proceed(DelegateProcessor.java:82)

               at org.apache.camel.processor.interceptor.TraceInterceptor.process(TraceInterceptor.java:93)

               at org.apache.camel.management.InstrumentationProcessor.process(InstrumentationProcessor.java:67)

               at org.apache.camel.processor.RedeliveryErrorHandler.processExchange(RedeliveryErrorHandler.java:177)

               at org.apache.camel.processor.RedeliveryErrorHandler.processErrorHandler(RedeliveryErrorHandler.java:143)

               at org.apache.camel.processor.RedeliveryErrorHandler.process(RedeliveryErrorHandler.java:88)

               at org.apache.camel.processor.DefaultErrorHandler.process(DefaultErrorHandler.java:49)

               at org.apache.camel.processor.DefaultChannel.process(DefaultChannel.java:228)

               at org.apache.camel.processor.Pipeline.process(Pipeline.java:74)

               at org.apache.camel.processor.UnitOfWorkProcessor.processNext(UnitOfWorkProcessor.java:66)

               at org.apache.camel.processor.DelegateProcessor.process(DelegateProcessor.java:48)

               at org.apache.camel.management.InstrumentationProcessor.process(InstrumentationProcessor.java:67)

               at org.apache.servicemix.camel.CamelProviderEndpoint$1.call(CamelProviderEndpoint.java:111)

               at org.apache.servicemix.camel.JbiBinding.runWithCamelContextClassLoader(JbiBinding.java:116)

               at org.apache.servicemix.camel.CamelProviderEndpoint.handleActiveProviderExchange(CamelProviderEndpoint.java:109)

               at org.apache.servicemix.camel.CamelProviderEndpoint.process(CamelProviderEndpoint.java:87)

               at org.apache.servicemix.common.AsyncBaseLifeCycle.doProcess(AsyncBaseLifeCycle.java:617)

               at org.apache.servicemix.common.AsyncBaseLifeCycle.processExchange(AsyncBaseLifeCycle.java:571)

               at org.apache.servicemix.common.AsyncBaseLifeCycle.processExchangeInTx(AsyncBaseLifeCycle.java:468)

               at org.apache.servicemix.common.AsyncBaseLifeCycle$2.run(AsyncBaseLifeCycle.java:347)

               at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:650)

               at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:675)

               at java.lang.Thread.run(Thread.java:595)

          -


          com.sun.org.apache.xml.internal.utils.WrappedRuntimeException: Stream closed

               at com.sun.org.apache.xalan.internal.xsltc.dom.XSLTCDTMManager.getDTM(XSLTCDTMManager.java:397)

               at com.sun.org.apache.xalan.internal.xsltc.dom.XSLTCDTMManager.getDTM(XSLTCDTMManager.java:231)

               at com.sun.org.apache.xalan.internal.xsltc.trax.TransformerImpl.getDOM(TransformerImpl.java:493)

               at com.sun.org.apache.xalan.internal.xsltc.trax.TransformerImpl.transform(TransformerImpl.java:663)

               at com.sun.org.apache.xalan.internal.xsltc.trax.TransformerImpl.transform(TransformerImpl.java:300)

               at org.apache.camel.builder.xml.XsltBuilder.process(XsltBuilder.java:82)

               at org.apache.camel.impl.ProcessorEndpoint.onExchange(ProcessorEndpoint.java:95)

               at org.apache.camel.impl.ProcessorEndpoint$1.process(ProcessorEndpoint.java:65)

               at org.apache.camel.processor.SendProcessor$1.doInProducer(SendProcessor.java:97)

               at org.apache.camel.processor.SendProcessor$1.doInProducer(SendProcessor.java:95)

               at org.apache.camel.impl.ProducerCache.doInProducer(ProducerCache.java:146)

               at org.apache.camel.processor.SendProcessor.doProcess(SendProcessor.java:94)

               at org.apache.camel.processor.SendProcessor.process(SendProcessor.java:82)

               at org.apache.camel.management.InstrumentationProcessor.process(InstrumentationProcessor.java:67)

               at org.apache.camel.processor.DelegateProcessor.processNext(DelegateProcessor.java:53)

               at org.apache.camel.processor.DelegateProcessor.proceed(DelegateProcessor.java:82)

               at org.apache.camel.processor.interceptor.TraceInterceptor.process(TraceInterceptor.java:93)

               at org.apache.camel.management.InstrumentationProcessor.process(InstrumentationProcessor.java:67)

               at org.apache.camel.processor.RedeliveryErrorHandler.processExchange(RedeliveryErrorHandler.java:177)

               at org.apache.camel.processor.RedeliveryErrorHandler.processErrorHandler(RedeliveryErrorHandler.java:143)

               at org.apache.camel.processor.RedeliveryErrorHandler.process(RedeliveryErrorHandler.java:88)

               at org.apache.camel.processor.DefaultErrorHandler.process(DefaultErrorHandler.java:49)

               at org.apache.camel.processor.DefaultChannel.process(DefaultChannel.java:228)

               at org.apache.camel.processor.Pipeline.process(Pipeline.java:74)

               at org.apache.camel.processor.UnitOfWorkProcessor.processNext(UnitOfWorkProcessor.java:66)

               at org.apache.camel.processor.DelegateProcessor.process(DelegateProcessor.java:48)

               at org.apache.camel.management.InstrumentationProcessor.process(InstrumentationProcessor.java:67)

               at org.apache.servicemix.camel.CamelProviderEndpoint$1.call(CamelProviderEndpoint.java:111)

               at org.apache.servicemix.camel.JbiBinding.runWithCamelContextClassLoader(JbiBinding.java:116)

               at org.apache.servicemix.camel.CamelProviderEndpoint.handleActiveProviderExchange(CamelProviderEndpoint.java:109)

               at org.apache.servicemix.camel.CamelProviderEndpoint.process(CamelProviderEndpoint.java:87)

               at org.apache.servicemix.common.AsyncBaseLifeCycle.doProcess(AsyncBaseLifeCycle.java:617)

               at org.apache.servicemix.common.AsyncBaseLifeCycle.processExchange(AsyncBaseLifeCycle.java:571)

               at org.apache.servicemix.common.AsyncBaseLifeCycle.processExchangeInTx(AsyncBaseLifeCycle.java:468)

               at org.apache.servicemix.common.AsyncBaseLifeCycle$2.run(AsyncBaseLifeCycle.java:347)

               at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:650)

               at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:675)

               at java.lang.Thread.run(Thread.java:595)

          -


          java.io.IOException: Stream closed

               at java.io.StringReader.ensureOpen(StringReader.java:39)

               at java.io.StringReader.read(StringReader.java:73)

               at com.sun.org.apache.xerces.internal.impl.XMLEntityScanner.load(XMLEntityScanner.java:1740)

               at com.sun.org.apache.xerces.internal.impl.XMLEntityScanner.skipString(XMLEntityScanner.java:1437)

               at com.sun.org.apache.xerces.internal.impl.XMLVersionDetector.determineDocVersion(XMLVersionDetector.java:191)

               at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:798)

               at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:764)

               at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser.java:148)

               at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1242)

               at com.sun.org.apache.xalan.internal.xsltc.dom.XSLTCDTMManager.getDTM(XSLTCDTMManager.java:391)

               at com.sun.org.apache.xalan.internal.xsltc.dom.XSLTCDTMManager.getDTM(XSLTCDTMManager.java:231)

               at com.sun.org.apache.xalan.internal.xsltc.trax.TransformerImpl.getDOM(TransformerImpl.java:493)

               at com.sun.org.apache.xalan.internal.xsltc.trax.TransformerImpl.transform(TransformerImpl.java:663)

               at com.sun.org.apache.xalan.internal.xsltc.trax.TransformerImpl.transform(TransformerImpl.java:300)

               at org.apache.camel.builder.xml.XsltBuilder.process(XsltBuilder.java:82)

               at org.apache.camel.impl.ProcessorEndpoint.onExchange(ProcessorEndpoint.java:95)

               at org.apache.camel.impl.ProcessorEndpoint$1.process(ProcessorEndpoint.java:65)

               at org.apache.camel.processor.SendProcessor$1.doInProducer(SendProcessor.java:97)

               at org.apache.camel.processor.SendProcessor$1.doInProducer(SendProcessor.java:95)

               at org.apache.camel.impl.ProducerCache.doInProducer(ProducerCache.java:146)

               at org.apache.camel.processor.SendProcessor.doProcess(SendProcessor.java:94)

               at org.apache.camel.processor.SendProcessor.process(SendProcessor.java:82)

               at org.apache.camel.management.InstrumentationProcessor.process(InstrumentationProcessor.java:67)

               at org.apache.camel.processor.DelegateProcessor.processNext(DelegateProcessor.java:53)

               at org.apache.camel.processor.DelegateProcessor.proceed(DelegateProcessor.java:82)

               at org.apache.camel.processor.interceptor.TraceInterceptor.process(TraceInterceptor.java:93)

               at org.apache.camel.management.InstrumentationProcessor.process(InstrumentationProcessor.java:67)

               at org.apache.camel.processor.RedeliveryErrorHandler.processExchange(RedeliveryErrorHandler.java:177)

               at org.apache.camel.processor.RedeliveryErrorHandler.processErrorHandler(RedeliveryErrorHandler.java:143)

               at org.apache.camel.processor.RedeliveryErrorHandler.process(RedeliveryErrorHandler.java:88)

               at org.apache.camel.processor.DefaultErrorHandler.process(DefaultErrorHandler.java:49)

               at org.apache.camel.processor.DefaultChannel.process(DefaultChannel.java:228)

               at org.apache.camel.processor.Pipeline.process(Pipeline.java:74)

               at org.apache.camel.processor.UnitOfWorkProcessor.processNext(UnitOfWorkProcessor.java:66)

               at org.apache.camel.processor.DelegateProcessor.process(DelegateProcessor.java:48)

               at org.apache.camel.management.InstrumentationProcessor.process(InstrumentationProcessor.java:67)

               at org.apache.servicemix.camel.CamelProviderEndpoint$1.call(CamelProviderEndpoint.java:111)

               at org.apache.servicemix.camel.JbiBinding.runWithCamelContextClassLoader(JbiBinding.java:116)

               at org.apache.servicemix.camel.CamelProviderEndpoint.handleActiveProviderExchange(CamelProviderEndpoint.java:109)

               at org.apache.servicemix.camel.CamelProviderEndpoint.process(CamelProviderEndpoint.java:87)

               at org.apache.servicemix.common.AsyncBaseLifeCycle.doProcess(AsyncBaseLifeCycle.java:617)

               at org.apache.servicemix.common.AsyncBaseLifeCycle.processExchange(AsyncBaseLifeCycle.java:571)

               at org.apache.servicemix.common.AsyncBaseLifeCycle.processExchangeInTx(AsyncBaseLifeCycle.java:468)

               at org.apache.servicemix.common.AsyncBaseLifeCycle$2.run(AsyncBaseLifeCycle.java:347)

               at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:650)

               at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:675)

               at java.lang.Thread.run(Thread.java:595)

          16:18:16,644 | WARN  | qtp-1160315221-1 | PhaseInterceptorChain            | ache.cxf.common.logging.LogUtils  365 | Interceptor for PielRegistrationService#newReg has thrown exception, unwinding now

          org.apache.cxf.interceptor.Fault: java.io.IOException: Stream closed

               at org.apache.servicemix.cxfbc.CxfBcConsumer.toElement(CxfBcConsumer.java:1057)

               at org.apache.servicemix.cxfbc.CxfBcConsumer.access$800(CxfBcConsumer.java:130)

               at org.apache.servicemix.cxfbc.CxfBcConsumer$JbiPostInvokerInterceptor.handleMessage(CxfBcConsumer.java:912)

               at org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:243)

               at org.apache.cxf.phase.PhaseInterceptorChain.resume(PhaseInterceptorChain.java:218)

               at org.apache.cxf.transport.ChainInitiationObserver.onMessage(ChainInitiationObserver.java:68)

               at org.apache.servicemix.cxfbc.CxfBcConsumer$JbiChainInitiationObserver.onMessage(CxfBcConsumer.java:713)

               at org.apache.cxf.transport.http_jetty.JettyHTTPDestination.serviceRequest(JettyHTTPDestination.java:312)

               at org.apache.cxf.transport.http_jetty.JettyHTTPDestination.doService(JettyHTTPDestination.java:276)

               at org.apache.cxf.transport.http_jetty.JettyHTTPHandler.handle(JettyHTTPHandler.java:70)

               at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:765)

               at org.mortbay.jetty.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:230)

               at org.mortbay.jetty.handler.HandlerList.handle(HandlerList.java:49)

               at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:152)

               at org.mortbay.jetty.Server.handle(Server.java:326)

               at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:542)

               at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:398)

               at org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:409)

               at org.mortbay.jetty.nio.SelectChannelConnector$RetryContinuation.run(SelectChannelConnector.java:525)

               at org.mortbay.thread.QueuedThreadPool$PoolThread.run(QueuedThreadPool.java:582)

          Caused by: javax.xml.transform.TransformerException: java.io.IOException: Stream closed

               at com.sun.org.apache.xalan.internal.xsltc.trax.TransformerImpl.transform(TransformerImpl.java:673)

               at com.sun.org.apache.xalan.internal.xsltc.trax.TransformerImpl.transform(TransformerImpl.java:300)

               at org.apache.servicemix.jbi.jaxp.SourceTransformer.toResult(SourceTransformer.java:135)

               at org.apache.servicemix.jbi.jaxp.SourceTransformer.toResult(SourceTransformer.java:113)

               at org.apache.servicemix.jbi.jaxp.SourceTransformer.toDOMNodeFromSAX(SourceTransformer.java:311)

               at org.apache.servicemix.jbi.jaxp.SourceTransformer.toDOMSourceFromSAX(SourceTransformer.java:306)

               at org.apache.servicemix.jbi.jaxp.SourceTransformer.toDOMSource(SourceTransformer.java:183)

               at org.apache.servicemix.jbi.jaxp.SourceTransformer.toDOMNode(SourceTransformer.java:323)

               at org.apache.servicemix.jbi.jaxp.SourceTransformer.toDOMElement(SourceTransformer.java:373)

               at org.apache.servicemix.cxfbc.CxfBcConsumer.toElement(CxfBcConsumer.java:1053)

               ... 19 more

          Caused by: java.io.IOException: Stream closed

               at java.io.StringReader.ensureOpen(StringReader.java:39)

               at java.io.StringReader.read(StringReader.java:73)

               at com.sun.org.apache.xerces.internal.impl.XMLEntityScanner.load(XMLEntityScanner.java:1740)

               at com.sun.org.apache.xerces.internal.impl.XMLEntityScanner.skipString(XMLEntityScanner.java:1437)

               at com.sun.org.apache.xerces.internal.impl.XMLVersionDetector.determineDocVersion(XMLVersionDetector.java:191)

               at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:798)

               at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:764)

               at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser.java:148)

               at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1242)

               at com.sun.org.apache.xalan.internal.xsltc.trax.TransformerImpl.transformIdentity(TransformerImpl.java:607)

               at com.sun.org.apache.xalan.internal.xsltc.trax.TransformerImpl.transform(TransformerImpl.java:661)

               ... 28 more

           

          -


           

          Please, I would appreciate a lot an answer because I cannot identify what I'm doing wrong or what It actually happens.

           

          Thanks.

          • 2. Re: pool-component.servicemix-camel-thread
            Claus Ibsen Master

            You may have to enable stream caching, to ensure the streams can be read multiple times.

             

            Search the camel docu for that.

            • 3. Re: pool-component.servicemix-camel-thread
              Fernando Salceda Novice

              I activated stream caching but 3 concurrent calls make it fall down as well. Something between the recipient list and the transformer happens and the thread waits for exchange message. It's a bit desperating

              • 4. Re: pool-component.servicemix-camel-thread
                Fernando Salceda Novice

                I atach a screenshot where camel threads appear waiting for exchange.