You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tuscany.apache.org by "Raymond Feng (JIRA)" <tu...@ws.apache.org> on 2007/09/05 21:47:33 UTC

[jira] Resolved: (TUSCANY-1520) IndexOutOfBoundsException if XSD namespace is omitted in SCDL

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

Raymond Feng resolved TUSCANY-1520.
-----------------------------------

    Resolution: Invalid

The stacktrace points to old code which is not in trunk any more. Please reopen it with the latest stacktrace if you still see this issue.



> IndexOutOfBoundsException if  XSD namespace is omitted in SCDL
> --------------------------------------------------------------
>
>                 Key: TUSCANY-1520
>                 URL: https://issues.apache.org/jira/browse/TUSCANY-1520
>             Project: Tuscany
>          Issue Type: Bug
>          Components: Java SCA Problem Determination
>            Reporter: Rashmi Hunt
>             Fix For: Java-SCA-1.0
>
>
> In a SCDL definition if user forgets to put the XSD namespace definition at the top of a composite definition. For example if you forget the XSD namespace definition (xmlns:xsd="http://www.w3.org/2001/XMLSchema")  in a composite definition like this:
> <composite xmlns="http://www.osoa.org/xmlns/sca/1.0"
> xmlns:wsdli="http://www.w3.org/2006/01/wsdl-instance"
> name="helloworldwsinstance0">
> ....
> <component>
> ....
> <property name="instanceId" type="xsd:int">1</property>
> <property name="instanceName" type="xsd:string">instanceName</property>
> </component>
> .....
> </composite>
> If the XSD namespace is omitted (as above) you will get a runtime failure, from Tuscany without indicating what is the the problem 
> with the SCDL. Need an error message which points out to exact problem in SCDL instead of IndexOutOfBoundsException
> java.lang.IndexOutOfBoundsException: Index: 0, Size: 0
> 	at java.util.ArrayList.RangeCheck(ArrayList.java:572)
> 	at java.util.ArrayList.get(ArrayList.java:347)
> 	at org.apache.tuscany.core.property.PropertyObjectFactoryImpl$ObjectFactoryImpl.getInstance(PropertyObjectFactoryImpl.java:125)
> 	at org.apache.tuscany.core.injection.MethodInjector.inject(MethodInjector.java:46)
> 	at org.apache.tuscany.core.implementation.PojoAtomicComponent.createInstance(PojoAtomicComponent.java:140)
> 	at org.apache.tuscany.core.component.scope.CompositeScopeContainer.getInstanceWrapper(CompositeScopeContainer.java:131)
> 	at org.apache.tuscany.core.component.scope.AbstractScopeContainer.getInstance(AbstractScopeContainer.java:99)
> 	at org.apache.tuscany.core.implementation.PojoAtomicComponent.getTargetInstance(PojoAtomicComponent.java:129)
> 	at org.apache.tuscany.core.implementation.java.JavaTargetInvoker.getInstance(JavaTargetInvoker.java:128)
> 	at org.apache.tuscany.core.implementation.java.JavaTargetInvoker.invokeTarget(JavaTargetInvoker.java:75)
> 	at org.apache.tuscany.spi.extension.TargetInvokerExtension.invoke(TargetInvokerExtension.java:67)
> 	at org.apache.tuscany.core.wire.InvokerInterceptor.invoke(InvokerInterceptor.java:44)
> 	at org.apache.tuscany.core.wire.SynchronousBridgingInterceptor.invoke(SynchronousBridgingInterceptor.java:41)
> 	at org.apache.tuscany.core.wire.SynchronousBridgingInterceptor.invoke(SynchronousBridgingInterceptor.java:41)
> 	at org.apache.tuscany.core.wire.SynchronousBridgingInterceptor.invoke(SynchronousBridgingInterceptor.java:41)

-- 
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