You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tuscany.apache.org by "Zhenghui Lee (JIRA)" <tu...@ws.apache.org> on 2007/08/21 10:13:31 UTC
[jira] Created: (TUSCANY-1560) A component with multiple services
does not work.
A component with multiple services does not work.
-------------------------------------------------
Key: TUSCANY-1560
URL: https://issues.apache.org/jira/browse/TUSCANY-1560
Project: Tuscany
Issue Type: Bug
Components: Java SCA Core Runtime
Affects Versions: Java-SCA-Next
Environment: windows
Reporter: Zhenghui Lee
Priority: Critical
Fix For: Java-SCA-Next
In code org.apache.tuscany.sca.core.component.ComponentContextImpl, at line 130 :
if (regularServices.size() != 1) {
throw new ServiceRuntimeException("The component doesn't have exactly one service");
}
multiple services per component will be failed by above checking.
--
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-1560) A component with multiple services
does not work.
Posted by "Jean-Sebastien Delfino (JIRA)" <tu...@ws.apache.org>.
[ https://issues.apache.org/jira/browse/TUSCANY-1560?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Jean-Sebastien Delfino resolved TUSCANY-1560.
---------------------------------------------
Resolution: Fixed
This now works as described in the spec:
- if you have one service on your component you can target it with "componentName"
- if you have multiple services on your component you need to write "componentName/serviceName"
I just tested this and I'm getting correct error messages now:
More than one service is declared on component CalculatorServiceComponent. Service name is required to get the service.
> A component with multiple services does not work.
> -------------------------------------------------
>
> Key: TUSCANY-1560
> URL: https://issues.apache.org/jira/browse/TUSCANY-1560
> Project: Tuscany
> Issue Type: Bug
> Components: Java SCA Core Runtime
> Affects Versions: Java-SCA-Next
> Environment: windows
> Reporter: Zhenghui Lee
> Assignee: Raymond Feng
> Priority: Critical
> Fix For: Java-SCA-0.99
>
>
> In code org.apache.tuscany.sca.core.component.ComponentContextImpl, at line 130 :
> if (regularServices.size() != 1) {
> throw new ServiceRuntimeException("The component doesn't have exactly one service");
> }
> multiple services per component will be failed by above checking.
--
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-1560) A component with multiple services
does not work.
Posted by "Florian Rosenberg (JIRA)" <tu...@ws.apache.org>.
[ https://issues.apache.org/jira/browse/TUSCANY-1560?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12522141 ]
Florian Rosenberg commented on TUSCANY-1560:
--------------------------------------------
I had the same issue as stated above. The first one was a warning as shown below:
--------------------------------------------------------------
Aug 22, 2007 12:17:38 PM
org.apache.tuscany.sca.assembly.builder.impl.CompositeBuilderImpl$1 problem
WARNING: [WARNING] No implementation for component: FeedAggregatorComponent
null
--------------------------------------------------------------
The error was in definition of the org.apache.tuscany.sca.contribution.processor.StAXArtifactProcessor file. The contents of this file is shown below:
com.ibm.sca.implementation.splice.SpliceArtifactProcessor;type=http://www.osoa.org/xmlns/sca/1.0#implementation.splice,model=com.ibm.sca.implementation.splice.SpliceImplementation
but actually the "type=" is now "qname=".
The second exception (show below) can be either a result of the warning above or a change in the runtime behavior as state by Luciano on the mailing list.
So if you have a getService("ABC") in your client you need to make sure that the target component has only one service, otherwise you should use getService("ABC/ServiceName").
--------------------------------------------------------------
Exception in thread "main" org.osoa.sca.ServiceRuntimeException: The component doesn't have exactly one service
at
org.apache.tuscany.sca.core.component.ComponentContextImpl.createSelfReference(ComponentContextImpl.java:135)
at
org.apache.tuscany.sca.host.embedded.impl.DefaultSCADomain.getServiceReference(DefaultSCADomain.java:377)
at
org.apache.tuscany.sca.host.embedded.impl.DefaultSCADomain.getService(DefaultSCADomain.java:321)
at com.ibm.sca.implementation.splice.SpliceScaTester.main(SpliceScaTester.java:17)
--------------------------------------------------------------
> A component with multiple services does not work.
> -------------------------------------------------
>
> Key: TUSCANY-1560
> URL: https://issues.apache.org/jira/browse/TUSCANY-1560
> Project: Tuscany
> Issue Type: Bug
> Components: Java SCA Core Runtime
> Affects Versions: Java-SCA-Next
> Environment: windows
> Reporter: Zhenghui Lee
> Priority: Critical
> Fix For: Java-SCA-0.99
>
>
> In code org.apache.tuscany.sca.core.component.ComponentContextImpl, at line 130 :
> if (regularServices.size() != 1) {
> throw new ServiceRuntimeException("The component doesn't have exactly one service");
> }
> multiple services per component will be failed by above checking.
--
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-1560) A component with multiple services
does not work.
Posted by "Raymond Feng (JIRA)" <tu...@ws.apache.org>.
[ https://issues.apache.org/jira/browse/TUSCANY-1560?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12522164 ]
Raymond Feng commented on TUSCANY-1560:
---------------------------------------
Please verify if you hit the 2nd case. If so, it's a test case issue and you need to pass the service name for the getService() as suggested by Florian,
Thanks,
Raymond
> A component with multiple services does not work.
> -------------------------------------------------
>
> Key: TUSCANY-1560
> URL: https://issues.apache.org/jira/browse/TUSCANY-1560
> Project: Tuscany
> Issue Type: Bug
> Components: Java SCA Core Runtime
> Affects Versions: Java-SCA-Next
> Environment: windows
> Reporter: Zhenghui Lee
> Priority: Critical
> Fix For: Java-SCA-0.99
>
>
> In code org.apache.tuscany.sca.core.component.ComponentContextImpl, at line 130 :
> if (regularServices.size() != 1) {
> throw new ServiceRuntimeException("The component doesn't have exactly one service");
> }
> multiple services per component will be failed by above checking.
--
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-1560) A component with multiple services
does not work.
Posted by "Raymond Feng (JIRA)" <tu...@ws.apache.org>.
[ https://issues.apache.org/jira/browse/TUSCANY-1560?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12522188 ]
Raymond Feng commented on TUSCANY-1560:
---------------------------------------
I improved the text message for the exception to differentiate the 1st and 2nd cases under r569057. Hope it will help.
Thanks,
Raymond
> A component with multiple services does not work.
> -------------------------------------------------
>
> Key: TUSCANY-1560
> URL: https://issues.apache.org/jira/browse/TUSCANY-1560
> Project: Tuscany
> Issue Type: Bug
> Components: Java SCA Core Runtime
> Affects Versions: Java-SCA-Next
> Environment: windows
> Reporter: Zhenghui Lee
> Assignee: Raymond Feng
> Priority: Critical
> Fix For: Java-SCA-0.99
>
>
> In code org.apache.tuscany.sca.core.component.ComponentContextImpl, at line 130 :
> if (regularServices.size() != 1) {
> throw new ServiceRuntimeException("The component doesn't have exactly one service");
> }
> multiple services per component will be failed by above checking.
--
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-1560) A component with multiple services
does not work.
Posted by "Raymond Feng (JIRA)" <tu...@ws.apache.org>.
[ https://issues.apache.org/jira/browse/TUSCANY-1560?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Raymond Feng reassigned TUSCANY-1560:
-------------------------------------
Assignee: Raymond Feng
> A component with multiple services does not work.
> -------------------------------------------------
>
> Key: TUSCANY-1560
> URL: https://issues.apache.org/jira/browse/TUSCANY-1560
> Project: Tuscany
> Issue Type: Bug
> Components: Java SCA Core Runtime
> Affects Versions: Java-SCA-Next
> Environment: windows
> Reporter: Zhenghui Lee
> Assignee: Raymond Feng
> Priority: Critical
> Fix For: Java-SCA-0.99
>
>
> In code org.apache.tuscany.sca.core.component.ComponentContextImpl, at line 130 :
> if (regularServices.size() != 1) {
> throw new ServiceRuntimeException("The component doesn't have exactly one service");
> }
> multiple services per component will be failed by above checking.
--
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] Updated: (TUSCANY-1560) A component with multiple services
does not work.
Posted by "ant elder (JIRA)" <tu...@ws.apache.org>.
[ https://issues.apache.org/jira/browse/TUSCANY-1560?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
ant elder updated TUSCANY-1560:
-------------------------------
Fix Version/s: (was: Java-SCA-Next)
Java-SCA-0.99
> A component with multiple services does not work.
> -------------------------------------------------
>
> Key: TUSCANY-1560
> URL: https://issues.apache.org/jira/browse/TUSCANY-1560
> Project: Tuscany
> Issue Type: Bug
> Components: Java SCA Core Runtime
> Affects Versions: Java-SCA-Next
> Environment: windows
> Reporter: Zhenghui Lee
> Priority: Critical
> Fix For: Java-SCA-0.99
>
>
> In code org.apache.tuscany.sca.core.component.ComponentContextImpl, at line 130 :
> if (regularServices.size() != 1) {
> throw new ServiceRuntimeException("The component doesn't have exactly one service");
> }
> multiple services per component will be failed by above checking.
--
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