[esb-issues] [JBoss JIRA] Closed: (JBESB-3342) null Camel header triggers IllegalArgumentException in CamelMessageComposer

David Ward (JIRA) jira-events at lists.jboss.org
Wed Jun 9 17:22:38 EDT 2010


     [ https://jira.jboss.org/browse/JBESB-3342?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

David Ward closed JBESB-3342.
-----------------------------

    Resolution: Done


Committed revision 33431.

> null Camel header triggers IllegalArgumentException in CamelMessageComposer
> ---------------------------------------------------------------------------
>
>                 Key: JBESB-3342
>                 URL: https://jira.jboss.org/browse/JBESB-3342
>             Project: JBoss ESB
>          Issue Type: Bug
>      Security Level: Public(Everyone can see) 
>          Components: Rosetta, Transports
>    Affects Versions: 4.9
>            Reporter: David Ward
>            Assignee: David Ward
>             Fix For: 4.9
>
>
> If the incoming Camel Message has a null header value, then when trying to set it as an ESB Message property will trigger an IllegalArgumentException, like so:
> 15:48:28,174 ERROR [DefaultErrorHandler] Failed delivery for exchangeId: 3b0371eb-076f-4f14-9635-3245ff547f2f. Exhausted after delivery attempt: 1 caught: java.lang.IllegalArgumentException: null 'value' arg in method call.
> java.lang.IllegalArgumentException: null 'value' arg in method call.
> 	at org.jboss.internal.soa.esb.assertion.AssertArgument.isNotNull(AssertArgument.java:43)
> 	at org.jboss.internal.soa.esb.message.format.xml.PropertiesImpl.setProperty(PropertiesImpl.java:74)
> 	at org.jboss.soa.esb.listeners.gateway.camel.CamelMessageComposer.populateMessage(CamelMessageComposer.java:61)
> 	at org.jboss.soa.esb.listeners.gateway.camel.CamelMessageComposer.populateMessage(CamelMessageComposer.java:41)
> 	at org.jboss.soa.esb.listeners.message.AbstractMessageComposer.compose(AbstractMessageComposer.java:76)
> 	at org.jboss.soa.esb.listeners.gateway.camel.ServiceProcessor.process(ServiceProcessor.java:48)
> 	at org.apache.camel.impl.ProcessorEndpoint.onExchange(ProcessorEndpoint.java:95)
> The CamelMessageComposer should check for null values and not set them as properties.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


More information about the esb-issues mailing list