[ https://issues.apache.org/jira/browse/TUSCANY-1718?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12599701#action_12599701 ]
Luciano Resende commented on TUSCANY-1718: ------------------------------------------ I've added the test case into itest/contribution-multiple. The exception being throw is because there are some unresolved artifacts when the composite is built. The strange thing is that, right after you contributed the 3 contributions, all seems like resolved, and it looks like there is something wrong when building each of the contributions. Anyway, still needs further investigation. > 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.