NullPointerException, if name of the component service in SCDL, doesn't match
the service name which is specified in @Service annotation,
------------------------------------------------------------------------------------------------------------------------------------------
Key: TUSCANY-1519
URL: https://issues.apache.org/jira/browse/TUSCANY-1519
Project: Tuscany
Issue Type: Bug
Components: Java SCA Problem Determination
Reporter: Rashmi Hunt
If name of the component service in SCDL, doesn't match the service name which
is specified in @Service annotation, Tuscany throws NullPointerException.
User will not be able to figure out with below exception what's really wrong
with the SCDL. Error message should point to exact problem in SCDL instead
of NullPointer
Sample SCDL:
<component name="ClientComponent">
<service name="ClientService">
......
</service>
<component>
ServiceImpl:
@Service(ServiceInterface.class)
public class BVTClientComponent implements ServiceInterface {
}
Stack Dump = java.lang.NullPointerException
at
org.apache.tuscany.sca.core.runtime.CompositeActivatorImpl.createWires(CompositeActivatorImpl.java:363)
at
org.apache.tuscany.sca.core.runtime.CompositeActivatorImpl.createRuntimeWires(CompositeActivatorImpl.java:269)
at
org.apache.tuscany.sca.core.runtime.CompositeActivatorImpl.activate(CompositeActivatorImpl.java:580)
at
org.apache.tuscany.sca.host.embedded.impl.EmbeddedSCADomain$DomainCompositeHelper.addComposite(EmbeddedSCADomain.java:124)
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]