If serviceImpl is pointing to wrong service in @Service annotation, error message should point out to exact problem with serviceImpl/service/operation -------------------------------------------------------------------------------------------------------------------------------------------------------
Key: TUSCANY-1517 URL: https://issues.apache.org/jira/browse/TUSCANY-1517 Project: Tuscany Issue Type: Bug Components: Java SCA Problem Determination Reporter: Rashmi Hunt If user makes error in service impl, pointing to a wrong service interface in @Service annotation, during composite startup, Tuscany tries to introspect the impl and tries to match to service operation and fails with below exception. Even though it's user error, with this exception message, user can not figure out what is the problem with the composite. Exception message should be clear enough to point to exact error with details about which serviceImpl/service/operation. Example serviceimpl for this defect @Service(HelloWorld3Service.class) public class HelloWorldImpl implements HelloWorldService { .... } Exception: Caused by: java.lang.IllegalArgumentException: org.apache.tuscany.sca.implementation.java.context.TargetMethodNotFoundException: Target method not found for operation at org.apache.tuscany.sca.implementation.java.invocation.JavaImplementationProvider.createInvoker(JavaImplementationProvider.java:134) at org.apache.tuscany.sca.core.runtime.CompositeActivatorImpl.addImplementationInterceptor(CompositeActivatorImpl.java:647) at org.apache.tuscany.sca.core.runtime.CompositeActivatorImpl.createWires(CompositeActivatorImpl.java:520) at org.apache.tuscany.sca.core.runtime.CompositeActivatorImpl.createRuntimeWires(CompositeActivatorImpl.java:376) at org.apache.tuscany.sca.core.runtime.CompositeActivatorImpl.activate(CompositeActivatorImpl.java:781) ... 39 more Caused by: org.apache.tuscany.sca.implementation.java.context.TargetMethodNotFoundException: Target method not found for operation at org.apache.tuscany.sca.implementation.java.invocation.JavaComponentInfo.createTargetInvoker(JavaComponentInfo.java:399) at org.apache.tuscany.sca.implementation.java.invocation.JavaImplementationProvider.createInvoker(JavaImplementationProvider.java:132) ... 43 more -- 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]