[ 
https://issues.apache.org/activemq/browse/CAMEL-584?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=43297#action_43297
 ] 

Claus Ibsen commented on CAMEL-584:
-----------------------------------

The fix is now:

Bean component sets a reference to the bean that is being invoked as a property 
on the Exchange. This property has change its key from "CamelBean" to 
"org.apache.camel.bean.BeanHolder" and the type is now a BeanHolder.

> BeanWithPropertiesAndHeadersAndBodyInjectionTest causes 
> java.lang.StackOverflowError
> ------------------------------------------------------------------------------------
>
>                 Key: CAMEL-584
>                 URL: https://issues.apache.org/activemq/browse/CAMEL-584
>             Project: Apache Camel
>          Issue Type: Bug
>          Components: camel-core
>    Affects Versions: 1.4.0
>            Reporter: Claus Ibsen
>            Assignee: Claus Ibsen
>            Priority: Minor
>
> This unit test cases infinitive loop
> {code}
> Caused by: java.lang.StackOverflowError
>       at java.util.HashMap$HashIterator.<init>(HashMap.java:822)
>       at java.util.HashMap$EntryIterator.<init>(HashMap.java:881)
>       at java.util.HashMap$EntryIterator.<init>(HashMap.java:881)
>       at java.util.HashMap.newEntryIterator(HashMap.java:895)
>       at java.util.HashMap$EntrySet.iterator(HashMap.java:988)
>       at java.util.AbstractMap.toString(AbstractMap.java:584)
>       at java.lang.String.valueOf(String.java:2615)
>       at java.lang.StringBuilder.append(StringBuilder.java:116)
>       at 
> org.apache.camel.component.bean.BeanWithPropertiesAndHeadersAndBodyInjectionTest$MyBean.toString(BeanWithPropertiesAndHeadersAndBodyInjectionTest.java:91)
>       at java.lang.String.valueOf(String.java:2615)
>       at java.lang.StringBuffer.append(StringBuffer.java:220)
>       at java.util.AbstractMap.toString(AbstractMap.java:598)
>       at java.lang.String.valueOf(String.java:2615)
>       at java.lang.StringBuilder.append(StringBuilder.java:116)
>       at 
> org.apache.camel.component.bean.BeanWithPropertiesAndHeadersAndBodyInjectionTest$MyBean.toString(BeanWithPropertiesAndHeadersAndBodyInjectionTest.java:91)
>       at java.lang.String.valueOf(String.java:2615)
> {code}

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to