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, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content