Thanks Lars for applying the patch. Regards,
Ulhas Bhole Lars Heinemann (JIRA) wrote:
[ https://issues.apache.org/activemq/browse/SM-1718?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Lars Heinemann resolved SM-1718. -------------------------------- Resolution: Fixed Applied patch. Thanks for providing, Ulhas.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 Assignee: Lars Heinemann Fix For: servicemix-jsr181-2008.02 Attachments: channel.patchWhile 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.
