Details
-
Bug
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
servicemix-jsr181-2008.01
-
None
-
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.