Uploaded image for project: 'Camel'
  1. Camel
  2. CAMEL-4264

The routeContext stack of DefaultUnitOfWork should be thread safe

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 2.7.3, 2.8.0
    • 2.8.1, 2.9.0
    • camel-core
    • None

    Description

      Here is the stack trace

      java.util.EmptyStackException
              at java.util.Stack.peek(Stack.java:85)
              at java.util.Stack.pop(Stack.java:67)
              at 
      org.apache.camel.impl.DefaultUnitOfWork.popRouteContext(DefaultUnitOfWork.java:226)
              at 
      org.apache.camel.processor.DefaultChannel$1.done(DefaultChannel.java:260)
              at 
      org.apache.camel.processor.RedeliveryErrorHandler.processErrorHandler(RedeliveryErrorHandler.java:330)
              at 
      org.apache.camel.processor.RedeliveryErrorHandler.process(RedeliveryErrorHandler.java:208)
              at 
      org.apache.camel.processor.DefaultChannel.process(DefaultChannel.java:256)
              at 
      org.apache.camel.util.AsyncProcessorHelper.process(AsyncProcessorHelper.java:70)
              at org.apache.camel.processor.Pipeline.process(Pipeline.java:143)
              at org.apache.camel.processor.Pipeline.process(Pipeline.java:78)
              at 
      org.apache.camel.processor.UnitOfWorkProcessor.process(UnitOfWorkProcessor.java:113)
              at 
      org.apache.camel.util.AsyncProcessorHelper.process(AsyncProcessorHelper.java:91)
              at 
      org.apache.camel.processor.DelegateAsyncProcessor.process(DelegateAsyncProcessor.java:85)
              at 
      org.apache.camel.processor.aggregate.AggregateProcessor$1.run(AggregateProcessor.java:397)
              at 
      java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
              at 
      java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
              at java.util.concurrent.FutureTask.run(FutureTask.java:138)
              at 
      java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
              at 
      java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
              at java.lang.Thread.run(Thread.java:619)
      
      

      You can find more information in this mail thread[1]
      [1]http://camel.465427.n5.nabble.com/EmptyStackException-in-DefaultUnitOfWork-popRouteContext-td4630106.html

      Attachments

        Issue Links

          Activity

            People

              muellerc Christian Müller
              njiang Willem Jiang
              Votes:
              3 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: