You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tuscany.apache.org by "Luciano Resende (JIRA)" <de...@tuscany.apache.org> on 2009/01/19 18:19:59 UTC

[jira] Resolved: (TUSCANY-1718) One contribution exported it's namespace and was imported by two contribution ,gets assembly error.

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

Luciano Resende resolved TUSCANY-1718.
--------------------------------------

    Resolution: Invalid

Please let us know if this is still an issue with latest Tuscany releases using Domain/Node API.

> One contribution exported it's namespace and was imported by two contribution ,gets assembly error.
> ---------------------------------------------------------------------------------------------------
>
>                 Key: TUSCANY-1718
>                 URL: https://issues.apache.org/jira/browse/TUSCANY-1718
>             Project: Tuscany
>          Issue Type: Bug
>          Components: Java SCA Assembly Model
>    Affects Versions: Java-SCA-Next
>         Environment: winxp,eclipse,jdk1.5.09
>            Reporter: wangfeng
>            Assignee: Luciano Resende
>             Fix For: Java-SCA-Next
>
>         Attachments: ContributionTestCase.zip
>
>
> My test case is that:
> 1.Contribution 'hello' export it's namespache 'http://hello'.
> 2.Contribution 'world_one' import the 'hello' contribution's namespache. 
> 3.Contribution 'world_two' import the 'hello' contribution's namespache too. 
> when run the testcase,get a fatal error as below:
> org.apache.tuscany.sca.core.assembly.ActivationException: java.lang.IllegalStateException: Reference interface not remoteable for component: HelloWorldServiceComponent_two and reference: helloServiceRef
> 	at org.apache.tuscany.sca.core.assembly.CompositeActivatorImpl.activate(CompositeActivatorImpl.java:739)
> 	at test.ContributionTestCase.setUp(ContributionTestCase.java:82)
> 	at junit.framework.TestCase.runBare(TestCase.java:128)
> 	at junit.framework.TestResult$1.protect(TestResult.java:110)
> 	at junit.framework.TestResult.runProtected(TestResult.java:128)
> 	at junit.framework.TestResult.run(TestResult.java:113)
> 	at junit.framework.TestCase.run(TestCase.java:120)
> 	at junit.framework.TestSuite.runTest(TestSuite.java:228)
> 	at junit.framework.TestSuite.run(TestSuite.java:223)
> 	at org.eclipse.jdt.internal.junit.runner.junit3.JUnit3TestReference.run(JUnit3TestReference.java:128)
> 	at org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38)
> 	at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:460)
> 	at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:673)
> 	at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:386)
> 	at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:196)
> Caused by: java.lang.IllegalStateException: Reference interface not remoteable for component: HelloWorldServiceComponent_two and reference: helloServiceRef
> 	at org.apache.tuscany.sca.binding.sca.impl.RuntimeSCAReferenceBindingProvider.isTargetRemote(RuntimeSCAReferenceBindingProvider.java:124)
> 	at org.apache.tuscany.sca.binding.sca.impl.RuntimeSCAReferenceBindingProvider.<init>(RuntimeSCAReferenceBindingProvider.java:85)
> 	at org.apache.tuscany.sca.binding.sca.impl.RuntimeSCABindingProviderFactory.createReferenceBindingProvider(RuntimeSCABindingProviderFactory.java:59)
> 	at org.apache.tuscany.sca.binding.sca.impl.RuntimeSCABindingProviderFactory.createReferenceBindingProvider(RuntimeSCABindingProviderFactory.java:1)
> 	at org.apache.tuscany.sca.provider.DefaultProviderFactoryExtensionPoint$LazyBindingProviderFactory.createReferenceBindingProvider(DefaultProviderFactoryExtensionPoint.java:189)
> 	at org.apache.tuscany.sca.core.assembly.CompositeActivatorImpl.addReferenceBindingProvider(CompositeActivatorImpl.java:179)
> 	at org.apache.tuscany.sca.core.assembly.CompositeActivatorImpl.activate(CompositeActivatorImpl.java:135)
> 	at org.apache.tuscany.sca.core.assembly.CompositeActivatorImpl.activate(CompositeActivatorImpl.java:735)
> 	... 14 more
> but when I remove the contribution 'world_one' or contribution 'world_two',the testcase works fine.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.