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
Fix For: Java-SCA-1.0
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.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]