FUSE ESB
  1. FUSE ESB
  2. ESB-1209

Ensure that multiple threads can safely use the JBI endpoint Producer

    Details

    • Type: Bug Bug
    • Status: Resolved Resolved
    • Priority: Major Major
    • Resolution: Done
    • Affects Version/s: 4.2.0-fuse-01-00
    • Fix Version/s: 4.2.0-fuse-02-00
    • Component/s: None
    • Labels:
      None
    • Similar Issues:
      Show 9 results 

      Description

      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)
      

        Activity

        Hide
        Gert Vanthienen
        added a comment -

        Merged into the components branch at FUSE in rev. 14020

        Show
        Gert Vanthienen
        added a comment - Merged into the components branch at FUSE in rev. 14020

          People

          • Assignee:
            Gert Vanthienen
            Reporter:
            Gert Vanthienen
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: