[ http://issues.apache.org/jira/browse/TUSCANY-335?page=comments#action_12378588 ]
Jean-Sebastien Delfino commented on TUSCANY-335: ------------------------------------------------ Thanks for reporting this. Could you please attach your test case and/or the modified SCDL (with the references definition removed) to the JIRA issue? Are you removing the whole <references/> element? or just the definition of the reference? Thanks. > java.lang.IndexOutOfBoundsException when not definting references in the > sca.module > ----------------------------------------------------------------------------------- > > Key: TUSCANY-335 > URL: http://issues.apache.org/jira/browse/TUSCANY-335 > Project: Tuscany > Type: Bug > Reporter: Yang Lei > > When remove the references defintion from sca.module: e.g. > <component name="MyClientServiceComponent"> > <implementation.java > class="mysca.test.client.impl.MyClientServiceImpl"/> > <references> > <v:vacationService>MyServiceComponent</v:vacationService> > </references> > </component> > Got the following exception. > Exception in thread "main" java.lang.IndexOutOfBoundsException: Index: 0, > Size: 0 > at java.util.ArrayList.RangeCheck(Unknown Source) > at java.util.ArrayList.get(Unknown Source) > at > org.apache.tuscany.container.java.builder.JavaContextFactoryBuilder.createInjector(JavaContextFactoryBuilder.java:393) > at > org.apache.tuscany.container.java.builder.JavaContextFactoryBuilder.createReferenceInjector(JavaContextFactoryBuilder.java:343) > at > org.apache.tuscany.container.java.builder.JavaContextFactoryBuilder.build(JavaContextFactoryBuilder.java:247) > at > org.apache.tuscany.core.builder.impl.AssemblyVisitorImpl.visit(AssemblyVisitorImpl.java:52) > at > org.apache.tuscany.model.assembly.impl.AssemblyObjectImpl.accept(AssemblyObjectImpl.java:39) > at > org.apache.tuscany.model.assembly.impl.ExtensibleImpl.accept(ExtensibleImpl.java:66) > at > org.apache.tuscany.model.assembly.impl.ComponentImpl.accept(ComponentImpl.java:201) > at > org.apache.tuscany.model.assembly.impl.AssemblyObjectImpl.accept(AssemblyObjectImpl.java:51) > at > org.apache.tuscany.model.assembly.impl.CompositeImpl.accept(CompositeImpl.java:329) > at > org.apache.tuscany.model.assembly.impl.ModuleImpl.accept(ModuleImpl.java:96) > at > org.apache.tuscany.model.assembly.impl.ComponentImpl.accept(ComponentImpl.java:211) > at > org.apache.tuscany.core.builder.impl.AssemblyVisitorImpl.start(AssemblyVisitorImpl.java:44) > at > org.apache.tuscany.core.runtime.RuntimeContextImpl.build(RuntimeContextImpl.java:160) > at > org.apache.tuscany.core.context.impl.AbstractCompositeContext.registerModelObject(AbstractCompositeContext.java:259) > at > org.apache.tuscany.core.client.BootstrapHelper.registerModule(BootstrapHelper.java:133) > at > org.apache.tuscany.core.client.TuscanyRuntime.<init>(TuscanyRuntime.java:104) > at > mysca.test.client.testcase.MyServiceClientTestCase.start(MyServiceClientTestCase.java:94) > at > mysca.test.client.testcase.MyServiceClientTestCase.testTwoClient(MyServiceClientTestCase.java:39) > at > mysca.test.client.testcase.MyServiceClientTestCase.main(MyServiceClientTestCase.java:29) -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira