StackOverflowError in toString method within anonymous class in TransactionErrorHandler of camel-spring component

Solution Verified - Updated -

Issue

  • The toString method in the anonymous class in org.apache.camel.spring.spi.TransactionErrorHandler#processByErrorHandler causes a stack overflow
  • Implemented as
return "Done " + this;
  • Probably should be
return "Done " + TransactionErrorHandler.this;
  • Only noticed during debugging session when the debugger invokes toString on an instance.

Environment

  • Red Hat JBoss Fuse
    • 6.1.0

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In
Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.