Effective October 27, 2012, online and email support for FuseSource products will move to Red Hat support channels. For more information, please see the JIRA Migration to Red Hat FAQ.
As of October 27th, please open all new issues in the Red Hat Customer Portal .
Issue Details (XML | Word | Printable)

Key: ESB-1209
Type: Bug Bug
Status: Resolved Resolved
Resolution: Fixed
Priority: Major Major
Assignee: Gert Vanthienen
Reporter: Gert Vanthienen
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
FUSE ESB

Ensure that multiple threads can safely use the JBI endpoint Producer

Created: 27/May/10 01:12 PM   Updated: 27/May/10 01:43 PM
Component/s: None
Affects Version/s: 4.2.0-fuse-01-00
Fix Version/s: 4.2.0-fuse-02-00

External Issue URL: https://issues.apache.org/activemq/browse/SMXCOMP-751


 Description  « Hide
Currently, a single instance of a JbiProducer is used by the JbiEndpoint. As soon as the producer is stopped, all references to the Producer become unusable. Especially with custom code that accesses the Producer from multiple threads, this can easily lead to exceptions like the one below:
java.lang.NullPointerException
  at org.apache.servicemix.camel.JbiBinding.createJbiMessageExchange(JbiBinding.java:148)
  at org.apache.servicemix.camel.JbiBinding.makeJbiMessageExchange(JbiBinding.java:118)
  at org.apache.servicemix.camel.CamelConsumerEndpoint.process(CamelConsumerEndpoint.java:57) 
  at org.apache.servicemix.camel.JbiEndpoint$JbiProducer$1.call(JbiEndpoint.java:122) 
  at org.apache.servicemix.camel.JbiBinding.runWithCamelContextClassLoader(JbiBinding.java:107)
  at org.apache.servicemix.camel.JbiEndpoint$JbiProducer.process(JbiEndpoint.java:120)


 All   Comments   Change History      Sort Order: Ascending order - Click to sort in descending order
Gert Vanthienen added a comment - 27/May/10 01:18 PM
Merged into the components branch at FUSE in rev. 14020