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

                 Key: SM-1718
                 URL: https://issues.apache.org/activemq/browse/SM-1718
             Project: ServiceMix
          Issue Type: Bug
          Components: servicemix-jsr181
    Affects Versions: servicemix-jsr181-2008.01
            Reporter: Ulhas Bhole
             Fix For: servicemix-jsr181-2008.02


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. 

 

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to