You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tuscany.apache.org by "Raymond Feng (JIRA)" <tu...@ws.apache.org> on 2007/09/06 00:25:33 UTC

[jira] Resolved: (TUSCANY-1517) If serviceImpl is pointing to wrong service in @Service annotation, error message should point out to exact problem with serviceImpl/service/operation

     [ https://issues.apache.org/jira/browse/TUSCANY-1517?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Raymond Feng resolved TUSCANY-1517.
-----------------------------------

    Resolution: Fixed

Fixed under r573085

> 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
>             Fix For: Java-SCA-1.0
>
>
> 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: tuscany-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: tuscany-dev-help@ws.apache.org