You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tuscany.apache.org by "Rashmi Hunt (JIRA)" <tu...@ws.apache.org> on 2007/08/09 05:46:59 UTC
[jira] Created: (TUSCANY-1517) If serviceImpl is pointing to wrong
service in @Service annotation, error message should point out to exact
problem with serviceImpl/service/operation
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: tuscany-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: tuscany-dev-help@ws.apache.org
[jira] Commented: (TUSCANY-1517) If serviceImpl is pointing to
wrong service in @Service annotation, error message should point out to
exact problem with serviceImpl/service/operation
Posted by "Amita Vadhavkar (JIRA)" <tu...@ws.apache.org>.
[ https://issues.apache.org/jira/browse/TUSCANY-1517?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12521415 ]
Amita Vadhavkar commented on TUSCANY-1517:
------------------------------------------
I tried to debug this and the stack trace I get is a bit different than one pasted here. But anyways,
I have tried to find which can be the place to fix the issue and mailed all details on
http://www.mail-archive.com/tuscany-dev@ws.apache.org/msg21922.html
I will create a patch based on the response.
Regards,
Amita
> 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-Next
>
>
> 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
[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
Posted by "Raymond Feng (JIRA)" <tu...@ws.apache.org>.
[ 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
[jira] Assigned: (TUSCANY-1517) If serviceImpl is pointing to wrong
service in @Service annotation, error message should point out to exact
problem with serviceImpl/service/operation
Posted by "Raymond Feng (JIRA)" <tu...@ws.apache.org>.
[ https://issues.apache.org/jira/browse/TUSCANY-1517?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Raymond Feng reassigned TUSCANY-1517:
-------------------------------------
Assignee: Raymond Feng
> 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
> Assignee: Raymond Feng
> 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