Uploaded image for project: 'ServiceMix Components'
  1. ServiceMix Components
  2. SMXCOMP-263

jsr181ServiceUnitAnalyser returns null channel while using jbi-maven-plugin to create service-unit decriptor which caues it to fail.

    XMLWordPrintableJSON

Details

    • Patch Available

    Description

      While running wsdl-first sample I came across failure in generating jsr181 Servce Unit Descriptor from jbi-maven-plugin. Upon debugging it turned out that the bug fix in DefaultComponent in servicemix-common on trunk now initialize newly created ServiceUnit which calls on the Component context to get delivery channel and calls to create ExchangeFactory on that channel.

      In case of the jbi-maven-plugin jsr181ServiceUnitAnalyzer passes in the DummyComponentContext which returns null channel and eventually the SU creation fails in init() with Null pointer exception.

      I have attached a patch to create dummy channel and return this dummy channel from DummyComponentContext to avoid null pointer exception.

      Attachments

        1. channel.patch
          3 kB
          Ulhas Bhole

        Activity

          People

            lhein Lars Heinemann
            ulhasbhole Ulhas Bhole
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: