camel-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Fabrice Daugan (Updated) (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (CAMEL-5051) NullPointerException when assigning a simple Object as final bean
Date Tue, 28 Feb 2012 17:53:52 GMT

     [ https://issues.apache.org/jira/browse/CAMEL-5051?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Fabrice Daugan updated CAMEL-5051:
----------------------------------

    Attachment: stacktrace.txt

Relevant trace : 
{noformat} 
Caused by: java.lang.NullPointerException
	at org.apache.camel.component.bean.BeanInfo.collectParameterAnnotations(BeanInfo.java:386)
	at org.apache.camel.component.bean.BeanInfo.collectParameterAnnotations(BeanInfo.java:397)
	at org.apache.camel.component.bean.BeanInfo.collectParameterAnnotations(BeanInfo.java:380)
	at org.apache.camel.component.bean.BeanInfo.createMethodInfo(BeanInfo.java:323)
{noformat} 
                
> NullPointerException when assigning a simple Object as final bean
> -----------------------------------------------------------------
>
>                 Key: CAMEL-5051
>                 URL: https://issues.apache.org/jira/browse/CAMEL-5051
>             Project: Camel
>          Issue Type: Bug
>          Components: camel-core
>    Affects Versions: 2.9.0
>         Environment: JSE6, Windows7
>            Reporter: Fabrice Daugan
>            Priority: Trivial
>         Attachments: stacktrace.txt
>
>
> Considering this route :
> from("direct://myendpoint").routeId("myendpoint.route").bean(new Object());
> I get a NPE. I know, this is a very rare case that noone will reach again...
> Anyway the fix is very simple, and is attached with it's test case.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Mime
View raw message