Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » XML Schema Definition (XSD) » 1999 schema - IndexOutOfBoundsException
1999 schema - IndexOutOfBoundsException [message #33079] Fri, 21 November 2003 02:41 Go to next message
Eclipse User
Originally posted by: cipher8000.yahoo.com

Hi Ed,

I am getting this is the print stack trace when i tried to parse the schemas
located in the Amazon wsdl which is located at
http://soap.amazon.com/schemas/AmazonWebServices.wsdl

I guess i am getting this error because the amazon schema refers to 1999
schema model, Looks like this is a
bug to me.Here is the stack trace of it.

java.lang.IndexOutOfBoundsException: index=0, size=0
at org.eclipse.emf.common.util.BasicEList.get(BasicEList.java:4 98)
at org.eclipse.xsd.impl.XSDSchemaImpl.patch(XSDSchemaImpl.java: 1479)
at
org.eclipse.xsd.impl.XSDSchemaImpl.traverseToRootForPatching (XSDSchemaImpl.j
ava:1468)
at
org.eclipse.xsd.impl.XSDConcreteComponentImpl.changeAttribut e(XSDConcreteCom
ponentImpl.java:1234)
at
org.eclipse.xsd.impl.XSDSchemaImpl.changeAttribute(XSDSchema Impl.java:2244)
at
org.eclipse.xsd.impl.XSDConcreteComponentImpl.eNotify(XSDCon creteComponentIm
pl.java:1205)
at
org.eclipse.xsd.impl.XSDConcreteComponentImpl.setElementGen( XSDConcreteCompo
nentImpl.java:2797)
at
org.eclipse.xsd.impl.XSDConcreteComponentImpl.setElement(XSD ConcreteComponen
tImpl.java:2829)
at
org.eclipse.xsd.impl.XSDSchemaImpl.setElement(XSDSchemaImpl. java:2367)
at
org.eclipse.xsd.impl.XSDSchemaImpl.createMetaSchema(XSDSchem aImpl.java:502)
at org.eclipse.xsd.util.XSDResourceImpl.doLoad(XSDResourceImpl. java:348)
at
org.eclipse.emf.ecore.resource.impl.ResourceImpl.load(Resour ceImpl.java:881)
at
org.eclipse.emf.ecore.resource.impl.ResourceImpl.load(Resour ceImpl.java:755)
at
org.eclipse.emf.ecore.resource.impl.ResourceSetImpl.demandLo ad(ResourceSetIm
pl.java:220)
at
org.eclipse.emf.ecore.resource.impl.ResourceSetImpl.getResou rce(ResourceSetI
mpl.java:286)
at
org.eclipse.xsd.impl.XSDSchemaImpl.getSchemaForSchema(XSDSch emaImpl.java:633
)
at
org.eclipse.xsd.impl.XSDSchemaImpl.resolveSimpleTypeDefiniti on(XSDSchemaImpl
..java:2170)
at
org.eclipse.xsd.impl.XSDConcreteComponentImpl.resolveSimpleT ypeDefinition(XS
DConcreteComponentImpl.java:2340)
at
org.eclipse.xsd.impl.XSDConcreteComponentImpl.resolveSimpleT ypeDefinitionURI
(XSDConcreteComponentImpl.java:2318)
at
org.eclipse.xsd.impl.XSDAttributeDeclarationImpl.reconcileAt tributes(XSDAttr
ibuteDeclarationImpl.java:473)
at
org.eclipse.xsd.impl.XSDConcreteComponentImpl.reconcile(XSDC oncreteComponent
Impl.java:951)
at
org.eclipse.xsd.impl.XSDConcreteComponentImpl.elementChanged (XSDConcreteComp
onentImpl.java:399)
at
org.eclipse.xsd.impl.XSDConcreteComponentImpl.adoptContent(X SDConcreteCompon
entImpl.java:1348)
at
org.eclipse.xsd.impl.XSDSchemaImpl.adoptContent(XSDSchemaImp l.java:1725)
at
org.eclipse.xsd.impl.XSDConcreteComponentImpl.eNotify(XSDCon creteComponentIm
pl.java:1125)
at
org.eclipse.emf.common.notify.impl.NotificationChainImpl.dis patch(Notificati
onChainImpl.java:115)
at
org.eclipse.emf.common.notify.impl.NotificationChainImpl.dis patch(Notificati
onChainImpl.java:103)
at
org.eclipse.emf.common.notify.impl.NotifyingListImpl.addUniq ue(NotifyingList
Impl.java:220)
at org.eclipse.emf.common.util.BasicEList.add(BasicEList.java:5 70)
at
org.eclipse.xsd.impl.XSDConcreteComponentImpl.setListContent AndOrder(XSDConc
reteComponentImpl.java:2075)
at
org.eclipse.xsd.impl.XSDSchemaImpl.handleReconciliation(XSDS chemaImpl.java:1
946)
at
org.eclipse.xsd.impl.XSDConcreteComponentImpl.reconcileConte nts(XSDConcreteC
omponentImpl.java:1018)
at
org.eclipse.xsd.impl.XSDConcreteComponentImpl.reconcile(XSDC oncreteComponent
Impl.java:952)
at
org.eclipse.xsd.impl.XSDConcreteComponentImpl.changeAttribut e(XSDConcreteCom
ponentImpl.java:1232)
at
org.eclipse.xsd.impl.XSDSchemaImpl.changeAttribute(XSDSchema Impl.java:2244)
at
org.eclipse.xsd.impl.XSDConcreteComponentImpl.eNotify(XSDCon creteComponentIm
pl.java:1205)
at
org.eclipse.xsd.impl.XSDConcreteComponentImpl.setElementGen( XSDConcreteCompo
nentImpl.java:2797)
at
org.eclipse.xsd.impl.XSDConcreteComponentImpl.setElement(XSD ConcreteComponen
tImpl.java:2829)
at
org.eclipse.xsd.impl.XSDSchemaImpl.setElement(XSDSchemaImpl. java:2367)
at
org.eclipse.xsd.impl.XSDSchemaImpl.createMetaSchema(XSDSchem aImpl.java:502)
at org.eclipse.xsd.util.XSDResourceImpl.doLoad(XSDResourceImpl. java:348)
at
org.eclipse.emf.ecore.resource.impl.ResourceImpl.load(Resour ceImpl.java:881)
at
org.eclipse.xsd.impl.XSDSchemaDirectiveImpl.resolve(XSDSchem aDirectiveImpl.j
ava:380)
at
org.eclipse.xsd.impl.XSDImportImpl.importSchema(XSDImportImp l.java:488)
at
org.eclipse.xsd.impl.XSDSchemaImpl.resolveSchema(XSDSchemaIm pl.java:2055)
at
org.eclipse.xsd.impl.XSDSchemaImpl.resolveNamedComponent(XSD SchemaImpl.java:
2078)
at
org.eclipse.xsd.impl.XSDSchemaImpl.resolveAttributeDeclarati on(XSDSchemaImpl
..java:2093)
at
org.eclipse.xsd.impl.XSDConcreteComponentImpl.resolveAttribu teDeclaration(XS
DConcreteComponentImpl.java:2450)
at
org.eclipse.xsd.impl.XSDAttributeDeclarationImpl.patch(XSDAt tributeDeclarati
onImpl.java:201)
at
org.eclipse.xsd.impl.XSDConcreteComponentImpl.patch(XSDConcr eteComponentImpl
..java:513)
at
org.eclipse.xsd.impl.XSDAttributeUseImpl.patch(XSDAttributeU seImpl.java:748)
at
org.eclipse.xsd.impl.XSDConcreteComponentImpl.patch(XSDConcr eteComponentImpl
..java:513)
at
org.eclipse.xsd.impl.XSDNamedComponentImpl.patch(XSDNamedCom ponentImpl.java:
690)
at
org.eclipse.xsd.impl.XSDTypeDefinitionImpl.patch(XSDTypeDefi nitionImpl.java:
262)
at
org.eclipse.xsd.impl.XSDComplexTypeDefinitionImpl.patch(XSDC omplexTypeDefini
tionImpl.java:995)
at
org.eclipse.xsd.impl.XSDConcreteComponentImpl.patch(XSDConcr eteComponentImpl
..java:513)
at
org.eclipse.xsd.impl.XSDNamedComponentImpl.patch(XSDNamedCom ponentImpl.java:
690)
at
org.eclipse.xsd.impl.XSDElementDeclarationImpl.patch(XSDElem entDeclarationIm
pl.java:530)
at
org.eclipse.xsd.impl.XSDConcreteComponentImpl.patch(XSDConcr eteComponentImpl
..java:513)
at org.eclipse.xsd.impl.XSDSchemaImpl.patch(XSDSchemaImpl.java: 1494)
at
org.eclipse.xsd.impl.XSDSchemaImpl.changeAttribute(XSDSchema Impl.java:2240)
at
org.eclipse.xsd.impl.XSDConcreteComponentImpl.eNotify(XSDCon creteComponentIm
pl.java:1205)
at
org.eclipse.xsd.impl.XSDSchemaImpl.setSchemaLocation(XSDSche maImpl.java:842)
at
org.eclipse.xsd.util.XSDResourceImpl.attached(XSDResourceImp l.java:410)
at
org.eclipse.emf.ecore.resource.impl.ResourceImpl$ContentsELi st.inverseAdd(Re
sourceImpl.java:326)
at
org.eclipse.emf.common.notify.impl.NotifyingListImpl.addUniq ue(NotifyingList
Impl.java:233)
at org.eclipse.emf.common.util.BasicEList.add(BasicEList.java:5 70)
at org.eclipse.xsd.util.XSDResourceImpl.doLoad(XSDResourceImpl. java:374)
at
org.eclipse.emf.ecore.resource.impl.ResourceImpl.load(Resour ceImpl.java:881)
at
org.eclipse.emf.ecore.resource.impl.ResourceImpl.load(Resour ceImpl.java:755)
at
org.eclipse.emf.ecore.resource.impl.ResourceSetImpl.demandLo ad(ResourceSetIm
pl.java:220)
at
org.eclipse.emf.ecore.resource.impl.ResourceSetImpl.getResou rce(ResourceSetI
mpl.java:286)
at
org.eclipse.xsd.impl.XSDSchemaImpl.getSchemaForSchema(XSDSch emaImpl.java:681
)
at
org.eclipse.xsd.impl.XSDSchemaImpl.getSchemaForSchema(XSDSch emaImpl.java:238
3)
at
org.eclipse.xsd.impl.XSDComplexTypeDefinitionImpl.handleNewB aseTypeDefinitio
n(XSDComplexTypeDefinitionImpl.java:2011)
at
org.eclipse.xsd.impl.XSDComplexTypeDefinitionImpl.handleReco nciliation(XSDCo
mplexTypeDefinitionImpl.java:2295)
at
org.eclipse.xsd.impl.XSDConcreteComponentImpl.reconcileConte nts(XSDConcreteC
omponentImpl.java:1018)
at
org.eclipse.xsd.impl.XSDConcreteComponentImpl.reconcile(XSDC oncreteComponent
Impl.java:952)
at
org.eclipse.xsd.impl.XSDConcreteComponentImpl.elementChanged (XSDConcreteComp
onentImpl.java:399)
at
org.eclipse.xsd.impl.XSDConcreteComponentImpl.adoptContent(X SDConcreteCompon
entImpl.java:1348)
at
org.eclipse.xsd.impl.XSDSchemaImpl.adoptContent(XSDSchemaImp l.java:1725)
at
org.eclipse.xsd.impl.XSDConcreteComponentImpl.eNotify(XSDCon creteComponentIm
pl.java:1125)
at
org.eclipse.emf.common.notify.impl.NotificationChainImpl.dis patch(Notificati
onChainImpl.java:115)
at
org.eclipse.emf.common.notify.impl.NotificationChainImpl.dis patch(Notificati
onChainImpl.java:103)
at
org.eclipse.emf.common.notify.impl.NotifyingListImpl.addUniq ue(NotifyingList
Impl.java:220)
at org.eclipse.emf.common.util.BasicEList.add(BasicEList.java:5 70)
at
org.eclipse.xsd.impl.XSDConcreteComponentImpl.setListContent AndOrder(XSDConc
reteComponentImpl.java:2075)
at
org.eclipse.xsd.impl.XSDSchemaImpl.handleReconciliation(XSDS chemaImpl.java:1
946)
at
org.eclipse.xsd.impl.XSDConcreteComponentImpl.reconcileConte nts(XSDConcreteC
omponentImpl.java:1018)
at
org.eclipse.xsd.impl.XSDConcreteComponentImpl.reconcile(XSDC oncreteComponent
Impl.java:952)
at
org.eclipse.xsd.impl.XSDConcreteComponentImpl.changeAttribut e(XSDConcreteCom
ponentImpl.java:1232)
at
org.eclipse.xsd.impl.XSDSchemaImpl.changeAttribute(XSDSchema Impl.java:2244)
at
org.eclipse.xsd.impl.XSDConcreteComponentImpl.eNotify(XSDCon creteComponentIm
pl.java:1205)
at
org.eclipse.xsd.impl.XSDConcreteComponentImpl.setElementGen( XSDConcreteCompo
nentImpl.java:2797)
at
org.eclipse.xsd.impl.XSDConcreteComponentImpl.setElement(XSD ConcreteComponen
tImpl.java:2829)
at
org.eclipse.xsd.impl.XSDSchemaImpl.setElement(XSDSchemaImpl. java:2367)
at
com.boo.xml.xsd.WSDLSchemaUtil.createXSDSchema(WSDLSchemaUti l.java:470)
Re: 1999 schema - IndexOutOfBoundsException [message #33116 is a reply to message #33079] Fri, 21 November 2003 11:35 Go to previous message
Eclipse User
Originally posted by: merks.ca.ibm.com

--------------E2EF872CF3FABCC66614C28F
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit

Muruga,

I tried validating the schema with the current code stream using the
XSDWSDLResource that I appended in a previous note with results like this:

-->
file:/D:/sandbox/unpackage2_3.0/eclipse/plugins/org.eclipse. xsd.test/test/AmazonWebServices.wsdl

Error: URI
file:/D:/sandbox/unpackage2_3.0/eclipse/plugins/org.eclipse. xsd.test/test/AmazonWebServices.wsdl
Line 17 Column 9
XSD: The <all> content model with 44 options is too large
Error: URI
file:/D:/sandbox/unpackage2_3.0/eclipse/plugins/org.eclipse. xsd.test/test/AmazonWebServices.wsdl
Line 67 Column 13
XSD: Attribute reference
'http://schemas.xmlsoap.org/soap/encoding/#arrayType' is unresolved

The schema doesn't import the soap encoding namespace, so that doesn't seem
right. (Note that the XSD model can't validate the UPA rule for large <all>
content, so that's the reason for that error.) In any event, I couldn't
reproduce the problem you show below, which looks like a case of one of the
built-in schemas becoming corrupted, and that could have happened from stuff
below the stack that's being shown.

Also note that the older namespace can't really be handled "properly". The XSD
model caches versions of the 2001 files and changes their namespaces in order to
create fake older versions.


Muruga Chinnananchi wrote:

> Hi Ed,
>
> I am getting this is the print stack trace when i tried to parse the schemas
> located in the Amazon wsdl which is located at
> http://soap.amazon.com/schemas/AmazonWebServices.wsdl
>
> I guess i am getting this error because the amazon schema refers to 1999
> schema model, Looks like this is a
> bug to me.Here is the stack trace of it.
>
> java.lang.IndexOutOfBoundsException: index=0, size=0
> at org.eclipse.emf.common.util.BasicEList.get(BasicEList.java:4 98)
> at org.eclipse.xsd.impl.XSDSchemaImpl.patch(XSDSchemaImpl.java: 1479)
> at
> org.eclipse.xsd.impl.XSDSchemaImpl.traverseToRootForPatching (XSDSchemaImpl.j
> ava:1468)
> at
> org.eclipse.xsd.impl.XSDConcreteComponentImpl.changeAttribut e(XSDConcreteCom
> ponentImpl.java:1234)
> at
> org.eclipse.xsd.impl.XSDSchemaImpl.changeAttribute(XSDSchema Impl.java:2244)
> at
> org.eclipse.xsd.impl.XSDConcreteComponentImpl.eNotify(XSDCon creteComponentIm
> pl.java:1205)
> at
> org.eclipse.xsd.impl.XSDConcreteComponentImpl.setElementGen( XSDConcreteCompo
> nentImpl.java:2797)
> at
> org.eclipse.xsd.impl.XSDConcreteComponentImpl.setElement(XSD ConcreteComponen
> tImpl.java:2829)
> at
> org.eclipse.xsd.impl.XSDSchemaImpl.setElement(XSDSchemaImpl. java:2367)
> at
> org.eclipse.xsd.impl.XSDSchemaImpl.createMetaSchema(XSDSchem aImpl.java:502)
> at org.eclipse.xsd.util.XSDResourceImpl.doLoad(XSDResourceImpl. java:348)
> at
> org.eclipse.emf.ecore.resource.impl.ResourceImpl.load(Resour ceImpl.java:881)
> at
> org.eclipse.emf.ecore.resource.impl.ResourceImpl.load(Resour ceImpl.java:755)
> at
> org.eclipse.emf.ecore.resource.impl.ResourceSetImpl.demandLo ad(ResourceSetIm
> pl.java:220)
> at
> org.eclipse.emf.ecore.resource.impl.ResourceSetImpl.getResou rce(ResourceSetI
> mpl.java:286)
> at
> org.eclipse.xsd.impl.XSDSchemaImpl.getSchemaForSchema(XSDSch emaImpl.java:633
> )
> at
> org.eclipse.xsd.impl.XSDSchemaImpl.resolveSimpleTypeDefiniti on(XSDSchemaImpl
> .java:2170)
> at
> org.eclipse.xsd.impl.XSDConcreteComponentImpl.resolveSimpleT ypeDefinition(XS
> DConcreteComponentImpl.java:2340)
> at
> org.eclipse.xsd.impl.XSDConcreteComponentImpl.resolveSimpleT ypeDefinitionURI
> (XSDConcreteComponentImpl.java:2318)
> at
> org.eclipse.xsd.impl.XSDAttributeDeclarationImpl.reconcileAt tributes(XSDAttr
> ibuteDeclarationImpl.java:473)
> at
> org.eclipse.xsd.impl.XSDConcreteComponentImpl.reconcile(XSDC oncreteComponent
> Impl.java:951)
> at
> org.eclipse.xsd.impl.XSDConcreteComponentImpl.elementChanged (XSDConcreteComp
> onentImpl.java:399)
> at
> org.eclipse.xsd.impl.XSDConcreteComponentImpl.adoptContent(X SDConcreteCompon
> entImpl.java:1348)
> at
> org.eclipse.xsd.impl.XSDSchemaImpl.adoptContent(XSDSchemaImp l.java:1725)
> at
> org.eclipse.xsd.impl.XSDConcreteComponentImpl.eNotify(XSDCon creteComponentIm
> pl.java:1125)
> at
> org.eclipse.emf.common.notify.impl.NotificationChainImpl.dis patch(Notificati
> onChainImpl.java:115)
> at
> org.eclipse.emf.common.notify.impl.NotificationChainImpl.dis patch(Notificati
> onChainImpl.java:103)
> at
> org.eclipse.emf.common.notify.impl.NotifyingListImpl.addUniq ue(NotifyingList
> Impl.java:220)
> at org.eclipse.emf.common.util.BasicEList.add(BasicEList.java:5 70)
> at
> org.eclipse.xsd.impl.XSDConcreteComponentImpl.setListContent AndOrder(XSDConc
> reteComponentImpl.java:2075)
> at
> org.eclipse.xsd.impl.XSDSchemaImpl.handleReconciliation(XSDS chemaImpl.java:1
> 946)
> at
> org.eclipse.xsd.impl.XSDConcreteComponentImpl.reconcileConte nts(XSDConcreteC
> omponentImpl.java:1018)
> at
> org.eclipse.xsd.impl.XSDConcreteComponentImpl.reconcile(XSDC oncreteComponent
> Impl.java:952)
> at
> org.eclipse.xsd.impl.XSDConcreteComponentImpl.changeAttribut e(XSDConcreteCom
> ponentImpl.java:1232)
> at
> org.eclipse.xsd.impl.XSDSchemaImpl.changeAttribute(XSDSchema Impl.java:2244)
> at
> org.eclipse.xsd.impl.XSDConcreteComponentImpl.eNotify(XSDCon creteComponentIm
> pl.java:1205)
> at
> org.eclipse.xsd.impl.XSDConcreteComponentImpl.setElementGen( XSDConcreteCompo
> nentImpl.java:2797)
> at
> org.eclipse.xsd.impl.XSDConcreteComponentImpl.setElement(XSD ConcreteComponen
> tImpl.java:2829)
> at
> org.eclipse.xsd.impl.XSDSchemaImpl.setElement(XSDSchemaImpl. java:2367)
> at
> org.eclipse.xsd.impl.XSDSchemaImpl.createMetaSchema(XSDSchem aImpl.java:502)
> at org.eclipse.xsd.util.XSDResourceImpl.doLoad(XSDResourceImpl. java:348)
> at
> org.eclipse.emf.ecore.resource.impl.ResourceImpl.load(Resour ceImpl.java:881)
> at
> org.eclipse.xsd.impl.XSDSchemaDirectiveImpl.resolve(XSDSchem aDirectiveImpl.j
> ava:380)
> at
> org.eclipse.xsd.impl.XSDImportImpl.importSchema(XSDImportImp l.java:488)
> at
> org.eclipse.xsd.impl.XSDSchemaImpl.resolveSchema(XSDSchemaIm pl.java:2055)
> at
> org.eclipse.xsd.impl.XSDSchemaImpl.resolveNamedComponent(XSD SchemaImpl.java:
> 2078)
> at
> org.eclipse.xsd.impl.XSDSchemaImpl.resolveAttributeDeclarati on(XSDSchemaImpl
> .java:2093)
> at
> org.eclipse.xsd.impl.XSDConcreteComponentImpl.resolveAttribu teDeclaration(XS
> DConcreteComponentImpl.java:2450)
> at
> org.eclipse.xsd.impl.XSDAttributeDeclarationImpl.patch(XSDAt tributeDeclarati
> onImpl.java:201)
> at
> org.eclipse.xsd.impl.XSDConcreteComponentImpl.patch(XSDConcr eteComponentImpl
> .java:513)
> at
> org.eclipse.xsd.impl.XSDAttributeUseImpl.patch(XSDAttributeU seImpl.java:748)
> at
> org.eclipse.xsd.impl.XSDConcreteComponentImpl.patch(XSDConcr eteComponentImpl
> .java:513)
> at
> org.eclipse.xsd.impl.XSDNamedComponentImpl.patch(XSDNamedCom ponentImpl.java:
> 690)
> at
> org.eclipse.xsd.impl.XSDTypeDefinitionImpl.patch(XSDTypeDefi nitionImpl.java:
> 262)
> at
> org.eclipse.xsd.impl.XSDComplexTypeDefinitionImpl.patch(XSDC omplexTypeDefini
> tionImpl.java:995)
> at
> org.eclipse.xsd.impl.XSDConcreteComponentImpl.patch(XSDConcr eteComponentImpl
> .java:513)
> at
> org.eclipse.xsd.impl.XSDNamedComponentImpl.patch(XSDNamedCom ponentImpl.java:
> 690)
> at
> org.eclipse.xsd.impl.XSDElementDeclarationImpl.patch(XSDElem entDeclarationIm
> pl.java:530)
> at
> org.eclipse.xsd.impl.XSDConcreteComponentImpl.patch(XSDConcr eteComponentImpl
> .java:513)
> at org.eclipse.xsd.impl.XSDSchemaImpl.patch(XSDSchemaImpl.java: 1494)
> at
> org.eclipse.xsd.impl.XSDSchemaImpl.changeAttribute(XSDSchema Impl.java:2240)
> at
> org.eclipse.xsd.impl.XSDConcreteComponentImpl.eNotify(XSDCon creteComponentIm
> pl.java:1205)
> at
> org.eclipse.xsd.impl.XSDSchemaImpl.setSchemaLocation(XSDSche maImpl.java:842)
> at
> org.eclipse.xsd.util.XSDResourceImpl.attached(XSDResourceImp l.java:410)
> at
> org.eclipse.emf.ecore.resource.impl.ResourceImpl$ContentsELi st.inverseAdd(Re
> sourceImpl.java:326)
> at
> org.eclipse.emf.common.notify.impl.NotifyingListImpl.addUniq ue(NotifyingList
> Impl.java:233)
> at org.eclipse.emf.common.util.BasicEList.add(BasicEList.java:5 70)
> at org.eclipse.xsd.util.XSDResourceImpl.doLoad(XSDResourceImpl. java:374)
> at
> org.eclipse.emf.ecore.resource.impl.ResourceImpl.load(Resour ceImpl.java:881)
> at
> org.eclipse.emf.ecore.resource.impl.ResourceImpl.load(Resour ceImpl.java:755)
> at
> org.eclipse.emf.ecore.resource.impl.ResourceSetImpl.demandLo ad(ResourceSetIm
> pl.java:220)
> at
> org.eclipse.emf.ecore.resource.impl.ResourceSetImpl.getResou rce(ResourceSetI
> mpl.java:286)
> at
> org.eclipse.xsd.impl.XSDSchemaImpl.getSchemaForSchema(XSDSch emaImpl.java:681
> )
> at
> org.eclipse.xsd.impl.XSDSchemaImpl.getSchemaForSchema(XSDSch emaImpl.java:238
> 3)
> at
> org.eclipse.xsd.impl.XSDComplexTypeDefinitionImpl.handleNewB aseTypeDefinitio
> n(XSDComplexTypeDefinitionImpl.java:2011)
> at
> org.eclipse.xsd.impl.XSDComplexTypeDefinitionImpl.handleReco nciliation(XSDCo
> mplexTypeDefinitionImpl.java:2295)
> at
> org.eclipse.xsd.impl.XSDConcreteComponentImpl.reconcileConte nts(XSDConcreteC
> omponentImpl.java:1018)
> at
> org.eclipse.xsd.impl.XSDConcreteComponentImpl.reconcile(XSDC oncreteComponent
> Impl.java:952)
> at
> org.eclipse.xsd.impl.XSDConcreteComponentImpl.elementChanged (XSDConcreteComp
> onentImpl.java:399)
> at
> org.eclipse.xsd.impl.XSDConcreteComponentImpl.adoptContent(X SDConcreteCompon
> entImpl.java:1348)
> at
> org.eclipse.xsd.impl.XSDSchemaImpl.adoptContent(XSDSchemaImp l.java:1725)
> at
> org.eclipse.xsd.impl.XSDConcreteComponentImpl.eNotify(XSDCon creteComponentIm
> pl.java:1125)
> at
> org.eclipse.emf.common.notify.impl.NotificationChainImpl.dis patch(Notificati
> onChainImpl.java:115)
> at
> org.eclipse.emf.common.notify.impl.NotificationChainImpl.dis patch(Notificati
> onChainImpl.java:103)
> at
> org.eclipse.emf.common.notify.impl.NotifyingListImpl.addUniq ue(NotifyingList
> Impl.java:220)
> at org.eclipse.emf.common.util.BasicEList.add(BasicEList.java:5 70)
> at
> org.eclipse.xsd.impl.XSDConcreteComponentImpl.setListContent AndOrder(XSDConc
> reteComponentImpl.java:2075)
> at
> org.eclipse.xsd.impl.XSDSchemaImpl.handleReconciliation(XSDS chemaImpl.java:1
> 946)
> at
> org.eclipse.xsd.impl.XSDConcreteComponentImpl.reconcileConte nts(XSDConcreteC
> omponentImpl.java:1018)
> at
> org.eclipse.xsd.impl.XSDConcreteComponentImpl.reconcile(XSDC oncreteComponent
> Impl.java:952)
> at
> org.eclipse.xsd.impl.XSDConcreteComponentImpl.changeAttribut e(XSDConcreteCom
> ponentImpl.java:1232)
> at
> org.eclipse.xsd.impl.XSDSchemaImpl.changeAttribute(XSDSchema Impl.java:2244)
> at
> org.eclipse.xsd.impl.XSDConcreteComponentImpl.eNotify(XSDCon creteComponentIm
> pl.java:1205)
> at
> org.eclipse.xsd.impl.XSDConcreteComponentImpl.setElementGen( XSDConcreteCompo
> nentImpl.java:2797)
> at
> org.eclipse.xsd.impl.XSDConcreteComponentImpl.setElement(XSD ConcreteComponen
> tImpl.java:2829)
> at
> org.eclipse.xsd.impl.XSDSchemaImpl.setElement(XSDSchemaImpl. java:2367)
> at
> com.boo.xml.xsd.WSDLSchemaUtil.createXSDSchema(WSDLSchemaUti l.java:470)

--------------E2EF872CF3FABCC66614C28F
Content-Type: text/html; charset=us-ascii
Content-Transfer-Encoding: 7bit

<!doctype html public "-//w3c//dtd html 4.0 transitional//en">
<html>
Muruga,
<p>I tried validating the schema with the current code stream using the
XSDWSDLResource that I appended in a previous note with results like this:
<blockquote>--> <A HREF=" file:/D:/sandbox/unpackage2_3.0/eclipse/plugins/org.eclipse. xsd.test/test/AmazonWebServices.wsdl "> file:/D:/sandbox/unpackage2_3.0/eclipse/plugins/org.eclipse. xsd.test/test/AmazonWebServices.wsdl </A>
<br>Error: URI <A HREF=" file:/D:/sandbox/unpackage2_3.0/eclipse/plugins/org.eclipse. xsd.test/test/AmazonWebServices.wsdl "> file:/D:/sandbox/unpackage2_3.0/eclipse/plugins/org.eclipse. xsd.test/test/AmazonWebServices.wsdl </A>
Line 17 Column 9
<br>XSD: The &lt;all> content model with 44 options is too large
<br>Error: URI <A HREF=" file:/D:/sandbox/unpackage2_3.0/eclipse/plugins/org.eclipse. xsd.test/test/AmazonWebServices.wsdl "> file:/D:/sandbox/unpackage2_3.0/eclipse/plugins/org.eclipse. xsd.test/test/AmazonWebServices.wsdl </A>
Line 67 Column 13
<br>XSD: Attribute reference '<A HREF="http://schemas.xmlsoap.org/soap/encoding/#arrayType">http://schemas.xmlsoap.org/soap/encoding/#arrayType</A>'
is unresolved</blockquote>
The schema doesn't import the soap encoding namespace, so that doesn't
seem right.&nbsp; (Note that the XSD model can't validate the UPA rule
for large &lt;all> content, so that's the reason for that error.)&nbsp;
In any event, I couldn't reproduce the problem you show below, which looks
like a case of one of the built-in schemas becoming corrupted, and that
could have happened from stuff below the stack that's being shown.
<p>Also note that the older namespace can't really be handled "properly".&nbsp;
The XSD model caches versions of the 2001 files and changes their namespaces
in order to create fake older versions.
<br>&nbsp;
<p>Muruga Chinnananchi wrote:
<blockquote TYPE=CITE>Hi Ed,
<p>I am getting this is the print stack trace when i tried to parse the
schemas
<br>located in the Amazon wsdl which is located at
<br><a href="http://soap.amazon.com/schemas/AmazonWebServices.wsdl">http://soap.amazon.com/schemas/AmazonWebServices.wsdl</a>
<p>I guess i am getting this error because the amazon schema refers to
1999
<br>schema model, Looks like this is a
<br>bug to me.Here is the stack trace of it.
<p>&nbsp;&nbsp;&nbsp; java.lang.IndexOutOfBoundsException: index=0, size=0
<br>&nbsp;&nbsp;&nbsp; at org.eclipse.emf.common.util.BasicEList.get(BasicEList.java:4 98)
<br>&nbsp;&nbsp;&nbsp; at org.eclipse.xsd.impl.XSDSchemaImpl.patch(XSDSchemaImpl.java: 1479)
<br>&nbsp;&nbsp;&nbsp; at
<br> org.eclipse.xsd.impl.XSDSchemaImpl.traverseToRootForPatching (XSDSchemaImpl.j
<br>ava:1468)
<br>&nbsp;&nbsp;&nbsp; at
<br> org.eclipse.xsd.impl.XSDConcreteComponentImpl.changeAttribut e(XSDConcreteCom
<br>ponentImpl.java:1234)
<br>&nbsp;&nbsp;&nbsp; at
<br> org.eclipse.xsd.impl.XSDSchemaImpl.changeAttribute(XSDSchema Impl.java:2244)
<br>&nbsp;&nbsp;&nbsp; at
<br> org.eclipse.xsd.impl.XSDConcreteComponentImpl.eNotify(XSDCon creteComponentIm
<br>pl.java:1205)
<br>&nbsp;&nbsp;&nbsp; at
<br> org.eclipse.xsd.impl.XSDConcreteComponentImpl.setElementGen( XSDConcreteCompo
<br>nentImpl.java:2797)
<br>&nbsp;&nbsp;&nbsp; at
<br> org.eclipse.xsd.impl.XSDConcreteComponentImpl.setElement(XSD ConcreteComponen
<br>tImpl.java:2829)
<br>&nbsp;&nbsp;&nbsp; at
<br> org.eclipse.xsd.impl.XSDSchemaImpl.setElement(XSDSchemaImpl. java:2367)
<br>&nbsp;&nbsp;&nbsp; at
<br> org.eclipse.xsd.impl.XSDSchemaImpl.createMetaSchema(XSDSchem aImpl.java:502)
<br>&nbsp;&nbsp;&nbsp; at org.eclipse.xsd.util.XSDResourceImpl.doLoad(XSDResourceImpl. java:348)
<br>&nbsp;&nbsp;&nbsp; at
<br> org.eclipse.emf.ecore.resource.impl.ResourceImpl.load(Resour ceImpl.java:881)
<br>&nbsp;&nbsp;&nbsp; at
<br> org.eclipse.emf.ecore.resource.impl.ResourceImpl.load(Resour ceImpl.java:755)
<br>&nbsp;&nbsp;&nbsp; at
<br> org.eclipse.emf.ecore.resource.impl.ResourceSetImpl.demandLo ad(ResourceSetIm
<br>pl.java:220)
<br>&nbsp;&nbsp;&nbsp; at
<br> org.eclipse.emf.ecore.resource.impl.ResourceSetImpl.getResou rce(ResourceSetI
<br>mpl.java:286)
<br>&nbsp;&nbsp;&nbsp; at
<br> org.eclipse.xsd.impl.XSDSchemaImpl.getSchemaForSchema(XSDSch emaImpl.java:633
<br>)
<br>&nbsp;&nbsp;&nbsp; at
<br> org.eclipse.xsd.impl.XSDSchemaImpl.resolveSimpleTypeDefiniti on(XSDSchemaImpl
<br>.java:2170)
<br>&nbsp;&nbsp;&nbsp; at
<br> org.eclipse.xsd.impl.XSDConcreteComponentImpl.resolveSimpleT ypeDefinition(XS
<br>DConcreteComponentImpl.java:2340)
<br>&nbsp;&nbsp;&nbsp; at
<br> org.eclipse.xsd.impl.XSDConcreteComponentImpl.resolveSimpleT ypeDefinitionURI
<br>(XSDConcreteComponentImpl.java:2318)
<br>&nbsp;&nbsp;&nbsp; at
<br> org.eclipse.xsd.impl.XSDAttributeDeclarationImpl.reconcileAt tributes(XSDAttr
<br>ibuteDeclarationImpl.java:473)
<br>&nbsp;&nbsp;&nbsp; at
<br> org.eclipse.xsd.impl.XSDConcreteComponentImpl.reconcile(XSDC oncreteComponent
<br>Impl.java:951)
<br>&nbsp;&nbsp;&nbsp; at
<br> org.eclipse.xsd.impl.XSDConcreteComponentImpl.elementChanged (XSDConcreteComp
<br>onentImpl.java:399)
<br>&nbsp;&nbsp;&nbsp; at
<br> org.eclipse.xsd.impl.XSDConcreteComponentImpl.adoptContent(X SDConcreteCompon
<br>entImpl.java:1348)
<br>&nbsp;&nbsp;&nbsp; at
<br> org.eclipse.xsd.impl.XSDSchemaImpl.adoptContent(XSDSchemaImp l.java:1725)
<br>&nbsp;&nbsp;&nbsp; at
<br> org.eclipse.xsd.impl.XSDConcreteComponentImpl.eNotify(XSDCon creteComponentIm
<br>pl.java:1125)
<br>&nbsp;&nbsp;&nbsp; at
<br> org.eclipse.emf.common.notify.impl.NotificationChainImpl.dis patch(Notificati
<br>onChainImpl.java:115)
<br>&nbsp;&nbsp;&nbsp; at
<br> org.eclipse.emf.common.notify.impl.NotificationChainImpl.dis patch(Notificati
<br>onChainImpl.java:103)
<br>&nbsp;&nbsp;&nbsp; at
<br> org.eclipse.emf.common.notify.impl.NotifyingListImpl.addUniq ue(NotifyingList
<br>Impl.java:220)
<br>&nbsp;&nbsp;&nbsp; at org.eclipse.emf.common.util.BasicEList.add(BasicEList.java:5 70)
<br>&nbsp;&nbsp;&nbsp; at
<br> org.eclipse.xsd.impl.XSDConcreteComponentImpl.setListContent AndOrder(XSDConc
<br>reteComponentImpl.java:2075)
<br>&nbsp;&nbsp;&nbsp; at
<br> org.eclipse.xsd.impl.XSDSchemaImpl.handleReconciliation(XSDS chemaImpl.java:1
<br>946)
<br>&nbsp;&nbsp;&nbsp; at
<br> org.eclipse.xsd.impl.XSDConcreteComponentImpl.reconcileConte nts(XSDConcreteC
<br>omponentImpl.java:1018)
<br>&nbsp;&nbsp;&nbsp; at
<br> org.eclipse.xsd.impl.XSDConcreteComponentImpl.reconcile(XSDC oncreteComponent
<br>Impl.java:952)
<br>&nbsp;&nbsp;&nbsp; at
<br> org.eclipse.xsd.impl.XSDConcreteComponentImpl.changeAttribut e(XSDConcreteCom
<br>ponentImpl.java:1232)
<br>&nbsp;&nbsp;&nbsp; at
<br> org.eclipse.xsd.impl.XSDSchemaImpl.changeAttribute(XSDSchema Impl.java:2244)
<br>&nbsp;&nbsp;&nbsp; at
<br> org.eclipse.xsd.impl.XSDConcreteComponentImpl.eNotify(XSDCon creteComponentIm
<br>pl.java:1205)
<br>&nbsp;&nbsp;&nbsp; at
<br> org.eclipse.xsd.impl.XSDConcreteComponentImpl.setElementGen( XSDConcreteCompo
<br>nentImpl.java:2797)
<br>&nbsp;&nbsp;&nbsp; at
<br> org.eclipse.xsd.impl.XSDConcreteComponentImpl.setElement(XSD ConcreteComponen
<br>tImpl.java:2829)
<br>&nbsp;&nbsp;&nbsp; at
<br> org.eclipse.xsd.impl.XSDSchemaImpl.setElement(XSDSchemaImpl. java:2367)
<br>&nbsp;&nbsp;&nbsp; at
<br> org.eclipse.xsd.impl.XSDSchemaImpl.createMetaSchema(XSDSchem aImpl.java:502)
<br>&nbsp;&nbsp;&nbsp; at org.eclipse.xsd.util.XSDResourceImpl.doLoad(XSDResourceImpl. java:348)
<br>&nbsp;&nbsp;&nbsp; at
<br> org.eclipse.emf.ecore.resource.impl.ResourceImpl.load(Resour ceImpl.java:881)
<br>&nbsp;&nbsp;&nbsp; at
<br> org.eclipse.xsd.impl.XSDSchemaDirectiveImpl.resolve(XSDSchem aDirectiveImpl.j
<br>ava:380)
<br>&nbsp;&nbsp;&nbsp; at
<br> org.eclipse.xsd.impl.XSDImportImpl.importSchema(XSDImportImp l.java:488)
<br>&nbsp;&nbsp;&nbsp; at
<br> org.eclipse.xsd.impl.XSDSchemaImpl.resolveSchema(XSDSchemaIm pl.java:2055)
<br>&nbsp;&nbsp;&nbsp; at
<br> org.eclipse.xsd.impl.XSDSchemaImpl.resolveNamedComponent(XSD SchemaImpl.java:
<br>2078)
<br>&nbsp;&nbsp;&nbsp; at
<br> org.eclipse.xsd.impl.XSDSchemaImpl.resolveAttributeDeclarati on(XSDSchemaImpl
<br>.java:2093)
<br>&nbsp;&nbsp;&nbsp; at
<br> org.eclipse.xsd.impl.XSDConcreteComponentImpl.resolveAttribu teDeclaration(XS
<br>DConcreteComponentImpl.java:2450)
<br>&nbsp;&nbsp;&nbsp; at
<br> org.eclipse.xsd.impl.XSDAttributeDeclarationImpl.patch(XSDAt tributeDeclarati
<br>onImpl.java:201)
<br>&nbsp;&nbsp;&nbsp; at
<br> org.eclipse.xsd.impl.XSDConcreteComponentImpl.patch(XSDConcr eteComponentImpl
<br>.java:513)
<br>&nbsp;&nbsp;&nbsp; at
<br> org.eclipse.xsd.impl.XSDAttributeUseImpl.patch(XSDAttributeU seImpl.java:748)
<br>&nbsp;&nbsp;&nbsp; at
<br> org.eclipse.xsd.impl.XSDConcreteComponentImpl.patch(XSDConcr eteComponentImpl
<br>.java:513)
<br>&nbsp;&nbsp;&nbsp; at
<br> org.eclipse.xsd.impl.XSDNamedComponentImpl.patch(XSDNamedCom ponentImpl.java:
<br>690)
<br>&nbsp;&nbsp;&nbsp; at
<br> org.eclipse.xsd.impl.XSDTypeDefinitionImpl.patch(XSDTypeDefi nitionImpl.java:
<br>262)
<br>&nbsp;&nbsp;&nbsp; at
<br> org.eclipse.xsd.impl.XSDComplexTypeDefinitionImpl.patch(XSDC omplexTypeDefini
<br>tionImpl.java:995)
<br>&nbsp;&nbsp;&nbsp; at
<br> org.eclipse.xsd.impl.XSDConcreteComponentImpl.patch(XSDConcr eteComponentImpl
<br>.java:513)
<br>&nbsp;&nbsp;&nbsp; at
<br> org.eclipse.xsd.impl.XSDNamedComponentImpl.patch(XSDNamedCom ponentImpl.java:
<br>690)
<br>&nbsp;&nbsp;&nbsp; at
<br> org.eclipse.xsd.impl.XSDElementDeclarationImpl.patch(XSDElem entDeclarationIm
<br>pl.java:530)
<br>&nbsp;&nbsp;&nbsp; at
<br> org.eclipse.xsd.impl.XSDConcreteComponentImpl.patch(XSDConcr eteComponentImpl
<br>.java:513)
<br>&nbsp;&nbsp;&nbsp; at org.eclipse.xsd.impl.XSDSchemaImpl.patch(XSDSchemaImpl.java: 1494)
<br>&nbsp;&nbsp;&nbsp; at
<br> org.eclipse.xsd.impl.XSDSchemaImpl.changeAttribute(XSDSchema Impl.java:2240)
<br>&nbsp;&nbsp;&nbsp; at
<br> org.eclipse.xsd.impl.XSDConcreteComponentImpl.eNotify(XSDCon creteComponentIm
<br>pl.java:1205)
<br>&nbsp;&nbsp;&nbsp; at
<br> org.eclipse.xsd.impl.XSDSchemaImpl.setSchemaLocation(XSDSche maImpl.java:842)
<br>&nbsp;&nbsp;&nbsp; at
<br> org.eclipse.xsd.util.XSDResourceImpl.attached(XSDResourceImp l.java:410)
<br>&nbsp;&nbsp;&nbsp; at
<br> org.eclipse.emf.ecore.resource.impl.ResourceImpl$ContentsELi st.inverseAdd(Re
<br>sourceImpl.java:326)
<br>&nbsp;&nbsp;&nbsp; at
<br> org.eclipse.emf.common.notify.impl.NotifyingListImpl.addUniq ue(NotifyingList
<br>Impl.java:233)
<br>&nbsp;&nbsp;&nbsp; at org.eclipse.emf.common.util.BasicEList.add(BasicEList.java:5 70)
<br>&nbsp;&nbsp;&nbsp; at org.eclipse.xsd.util.XSDResourceImpl.doLoad(XSDResourceImpl. java:374)
<br>&nbsp;&nbsp;&nbsp; at
<br> org.eclipse.emf.ecore.resource.impl.ResourceImpl.load(Resour ceImpl.java:881)
<br>&nbsp;&nbsp;&nbsp; at
<br> org.eclipse.emf.ecore.resource.impl.ResourceImpl.load(Resour ceImpl.java:755)
<br>&nbsp;&nbsp;&nbsp; at
<br> org.eclipse.emf.ecore.resource.impl.ResourceSetImpl.demandLo ad(ResourceSetIm
<br>pl.java:220)
<br>&nbsp;&nbsp;&nbsp; at
<br> org.eclipse.emf.ecore.resource.impl.ResourceSetImpl.getResou rce(ResourceSetI
<br>mpl.java:286)
<br>&nbsp;&nbsp;&nbsp; at
<br> org.eclipse.xsd.impl.XSDSchemaImpl.getSchemaForSchema(XSDSch emaImpl.java:681
<br>)
<br>&nbsp;&nbsp;&nbsp; at
<br> org.eclipse.xsd.impl.XSDSchemaImpl.getSchemaForSchema(XSDSch emaImpl.java:238
<br>3)
<br>&nbsp;&nbsp;&nbsp; at
<br> org.eclipse.xsd.impl.XSDComplexTypeDefinitionImpl.handleNewB aseTypeDefinitio
<br>n(XSDComplexTypeDefinitionImpl.java:2011)
<br>&nbsp;&nbsp;&nbsp; at
<br> org.eclipse.xsd.impl.XSDComplexTypeDefinitionImpl.handleReco nciliation(XSDCo
<br>mplexTypeDefinitionImpl.java:2295)
<br>&nbsp;&nbsp;&nbsp; at
<br> org.eclipse.xsd.impl.XSDConcreteComponentImpl.reconcileConte nts(XSDConcreteC
<br>omponentImpl.java:1018)
<br>&nbsp;&nbsp;&nbsp; at
<br> org.eclipse.xsd.impl.XSDConcreteComponentImpl.reconcile(XSDC oncreteComponent
<br>Impl.java:952)
<br>&nbsp;&nbsp;&nbsp; at
<br> org.eclipse.xsd.impl.XSDConcreteComponentImpl.elementChanged (XSDConcreteComp
<br>onentImpl.java:399)
<br>&nbsp;&nbsp;&nbsp; at
<br> org.eclipse.xsd.impl.XSDConcreteComponentImpl.adoptContent(X SDConcreteCompon
<br>entImpl.java:1348)
<br>&nbsp;&nbsp;&nbsp; at
<br> org.eclipse.xsd.impl.XSDSchemaImpl.adoptContent(XSDSchemaImp l.java:1725)
<br>&nbsp;&nbsp;&nbsp; at
<br> org.eclipse.xsd.impl.XSDConcreteComponentImpl.eNotify(XSDCon creteComponentIm
<br>pl.java:1125)
<br>&nbsp;&nbsp;&nbsp; at
<br> org.eclipse.emf.common.notify.impl.NotificationChainImpl.dis patch(Notificati
<br>onChainImpl.java:115)
<br>&nbsp;&nbsp;&nbsp; at
<br> org.eclipse.emf.common.notify.impl.NotificationChainImpl.dis patch(Notificati
<br>onChainImpl.java:103)
<br>&nbsp;&nbsp;&nbsp; at
<br> org.eclipse.emf.common.notify.impl.NotifyingListImpl.addUniq ue(NotifyingList
<br>Impl.java:220)
<br>&nbsp;&nbsp;&nbsp; at org.eclipse.emf.common.util.BasicEList.add(BasicEList.java:5 70)
<br>&nbsp;&nbsp;&nbsp; at
<br> org.eclipse.xsd.impl.XSDConcreteComponentImpl.setListContent AndOrder(XSDConc
<br>reteComponentImpl.java:2075)
<br>&nbsp;&nbsp;&nbsp; at
<br> org.eclipse.xsd.impl.XSDSchemaImpl.handleReconciliation(XSDS chemaImpl.java:1
<br>946)
<br>&nbsp;&nbsp;&nbsp; at
<br> org.eclipse.xsd.impl.XSDConcreteComponentImpl.reconcileConte nts(XSDConcreteC
<br>omponentImpl.java:1018)
<br>&nbsp;&nbsp;&nbsp; at
<br> org.eclipse.xsd.impl.XSDConcreteComponentImpl.reconcile(XSDC oncreteComponent
<br>Impl.java:952)
<br>&nbsp;&nbsp;&nbsp; at
<br> org.eclipse.xsd.impl.XSDConcreteComponentImpl.changeAttribut e(XSDConcreteCom
<br>ponentImpl.java:1232)
<br>&nbsp;&nbsp;&nbsp; at
<br> org.eclipse.xsd.impl.XSDSchemaImpl.changeAttribute(XSDSchema Impl.java:2244)
<br>&nbsp;&nbsp;&nbsp; at
<br> org.eclipse.xsd.impl.XSDConcreteComponentImpl.eNotify(XSDCon creteComponentIm
<br>pl.java:1205)
<br>&nbsp;&nbsp;&nbsp; at
<br> org.eclipse.xsd.impl.XSDConcreteComponentImpl.setElementGen( XSDConcreteCompo
<br>nentImpl.java:2797)
<br>&nbsp;&nbsp;&nbsp; at
<br> org.eclipse.xsd.impl.XSDConcreteComponentImpl.setElement(XSD ConcreteComponen
<br>tImpl.java:2829)
<br>&nbsp;&nbsp;&nbsp; at
<br> org.eclipse.xsd.impl.XSDSchemaImpl.setElement(XSDSchemaImpl. java:2367)
<br>&nbsp;&nbsp;&nbsp; at
<br> com.boo.xml.xsd.WSDLSchemaUtil.createXSDSchema(WSDLSchemaUti l.java:470) </blockquote>
</html>

--------------E2EF872CF3FABCC66614C28F--
Re: 1999 schema - IndexOutOfBoundsException [message #580796 is a reply to message #33079] Fri, 21 November 2003 11:35 Go to previous message
Ed Merks is currently offline Ed Merks
Messages: 26066
Registered: July 2009
Senior Member
--------------E2EF872CF3FABCC66614C28F
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit

Muruga,

I tried validating the schema with the current code stream using the
XSDWSDLResource that I appended in a previous note with results like this:

-->
file:/D:/sandbox/unpackage2_3.0/eclipse/plugins/org.eclipse. xsd.test/test/AmazonWebServices.wsdl

Error: URI
file:/D:/sandbox/unpackage2_3.0/eclipse/plugins/org.eclipse. xsd.test/test/AmazonWebServices.wsdl
Line 17 Column 9
XSD: The <all> content model with 44 options is too large
Error: URI
file:/D:/sandbox/unpackage2_3.0/eclipse/plugins/org.eclipse. xsd.test/test/AmazonWebServices.wsdl
Line 67 Column 13
XSD: Attribute reference
'http://schemas.xmlsoap.org/soap/encoding/#arrayType' is unresolved

The schema doesn't import the soap encoding namespace, so that doesn't seem
right. (Note that the XSD model can't validate the UPA rule for large <all>
content, so that's the reason for that error.) In any event, I couldn't
reproduce the problem you show below, which looks like a case of one of the
built-in schemas becoming corrupted, and that could have happened from stuff
below the stack that's being shown.

Also note that the older namespace can't really be handled "properly". The XSD
model caches versions of the 2001 files and changes their namespaces in order to
create fake older versions.


Muruga Chinnananchi wrote:

> Hi Ed,
>
> I am getting this is the print stack trace when i tried to parse the schemas
> located in the Amazon wsdl which is located at
> http://soap.amazon.com/schemas/AmazonWebServices.wsdl
>
> I guess i am getting this error because the amazon schema refers to 1999
> schema model, Looks like this is a
> bug to me.Here is the stack trace of it.
>
> java.lang.IndexOutOfBoundsException: index=0, size=0
> at org.eclipse.emf.common.util.BasicEList.get(BasicEList.java:4 98)
> at org.eclipse.xsd.impl.XSDSchemaImpl.patch(XSDSchemaImpl.java: 1479)
> at
> org.eclipse.xsd.impl.XSDSchemaImpl.traverseToRootForPatching (XSDSchemaImpl.j
> ava:1468)
> at
> org.eclipse.xsd.impl.XSDConcreteComponentImpl.changeAttribut e(XSDConcreteCom
> ponentImpl.java:1234)
> at
> org.eclipse.xsd.impl.XSDSchemaImpl.changeAttribute(XSDSchema Impl.java:2244)
> at
> org.eclipse.xsd.impl.XSDConcreteComponentImpl.eNotify(XSDCon creteComponentIm
> pl.java:1205)
> at
> org.eclipse.xsd.impl.XSDConcreteComponentImpl.setElementGen( XSDConcreteCompo
> nentImpl.java:2797)
> at
> org.eclipse.xsd.impl.XSDConcreteComponentImpl.setElement(XSD ConcreteComponen
> tImpl.java:2829)
> at
> org.eclipse.xsd.impl.XSDSchemaImpl.setElement(XSDSchemaImpl. java:2367)
> at
> org.eclipse.xsd.impl.XSDSchemaImpl.createMetaSchema(XSDSchem aImpl.java:502)
> at org.eclipse.xsd.util.XSDResourceImpl.doLoad(XSDResourceImpl. java:348)
> at
> org.eclipse.emf.ecore.resource.impl.ResourceImpl.load(Resour ceImpl.java:881)
> at
> org.eclipse.emf.ecore.resource.impl.ResourceImpl.load(Resour ceImpl.java:755)
> at
> org.eclipse.emf.ecore.resource.impl.ResourceSetImpl.demandLo ad(ResourceSetIm
> pl.java:220)
> at
> org.eclipse.emf.ecore.resource.impl.ResourceSetImpl.getResou rce(ResourceSetI
> mpl.java:286)
> at
> org.eclipse.xsd.impl.XSDSchemaImpl.getSchemaForSchema(XSDSch emaImpl.java:633
> )
> at
> org.eclipse.xsd.impl.XSDSchemaImpl.resolveSimpleTypeDefiniti on(XSDSchemaImpl
> .java:2170)
> at
> org.eclipse.xsd.impl.XSDConcreteComponentImpl.resolveSimpleT ypeDefinition(XS
> DConcreteComponentImpl.java:2340)
> at
> org.eclipse.xsd.impl.XSDConcreteComponentImpl.resolveSimpleT ypeDefinitionURI
> (XSDConcreteComponentImpl.java:2318)
> at
> org.eclipse.xsd.impl.XSDAttributeDeclarationImpl.reconcileAt tributes(XSDAttr
> ibuteDeclarationImpl.java:473)
> at
> org.eclipse.xsd.impl.XSDConcreteComponentImpl.reconcile(XSDC oncreteComponent
> Impl.java:951)
> at
> org.eclipse.xsd.impl.XSDConcreteComponentImpl.elementChanged (XSDConcreteComp
> onentImpl.java:399)
> at
> org.eclipse.xsd.impl.XSDConcreteComponentImpl.adoptContent(X SDConcreteCompon
> entImpl.java:1348)
> at
> org.eclipse.xsd.impl.XSDSchemaImpl.adoptContent(XSDSchemaImp l.java:1725)
> at
> org.eclipse.xsd.impl.XSDConcreteComponentImpl.eNotify(XSDCon creteComponentIm
> pl.java:1125)
> at
> org.eclipse.emf.common.notify.impl.NotificationChainImpl.dis patch(Notificati
> onChainImpl.java:115)
> at
> org.eclipse.emf.common.notify.impl.NotificationChainImpl.dis patch(Notificati
> onChainImpl.java:103)
> at
> org.eclipse.emf.common.notify.impl.NotifyingListImpl.addUniq ue(NotifyingList
> Impl.java:220)
> at org.eclipse.emf.common.util.BasicEList.add(BasicEList.java:5 70)
> at
> org.eclipse.xsd.impl.XSDConcreteComponentImpl.setListContent AndOrder(XSDConc
> reteComponentImpl.java:2075)
> at
> org.eclipse.xsd.impl.XSDSchemaImpl.handleReconciliation(XSDS chemaImpl.java:1
> 946)
> at
> org.eclipse.xsd.impl.XSDConcreteComponentImpl.reconcileConte nts(XSDConcreteC
> omponentImpl.java:1018)
> at
> org.eclipse.xsd.impl.XSDConcreteComponentImpl.reconcile(XSDC oncreteComponent
> Impl.java:952)
> at
> org.eclipse.xsd.impl.XSDConcreteComponentImpl.changeAttribut e(XSDConcreteCom
> ponentImpl.java:1232)
> at
> org.eclipse.xsd.impl.XSDSchemaImpl.changeAttribute(XSDSchema Impl.java:2244)
> at
> org.eclipse.xsd.impl.XSDConcreteComponentImpl.eNotify(XSDCon creteComponentIm
> pl.java:1205)
> at
> org.eclipse.xsd.impl.XSDConcreteComponentImpl.setElementGen( XSDConcreteCompo
> nentImpl.java:2797)
> at
> org.eclipse.xsd.impl.XSDConcreteComponentImpl.setElement(XSD ConcreteComponen
> tImpl.java:2829)
> at
> org.eclipse.xsd.impl.XSDSchemaImpl.setElement(XSDSchemaImpl. java:2367)
> at
> org.eclipse.xsd.impl.XSDSchemaImpl.createMetaSchema(XSDSchem aImpl.java:502)
> at org.eclipse.xsd.util.XSDResourceImpl.doLoad(XSDResourceImpl. java:348)
> at
> org.eclipse.emf.ecore.resource.impl.ResourceImpl.load(Resour ceImpl.java:881)
> at
> org.eclipse.xsd.impl.XSDSchemaDirectiveImpl.resolve(XSDSchem aDirectiveImpl.j
> ava:380)
> at
> org.eclipse.xsd.impl.XSDImportImpl.importSchema(XSDImportImp l.java:488)
> at
> org.eclipse.xsd.impl.XSDSchemaImpl.resolveSchema(XSDSchemaIm pl.java:2055)
> at
> org.eclipse.xsd.impl.XSDSchemaImpl.resolveNamedComponent(XSD SchemaImpl.java:
> 2078)
> at
> org.eclipse.xsd.impl.XSDSchemaImpl.resolveAttributeDeclarati on(XSDSchemaImpl
> .java:2093)
> at
> org.eclipse.xsd.impl.XSDConcreteComponentImpl.resolveAttribu teDeclaration(XS
> DConcreteComponentImpl.java:2450)
> at
> org.eclipse.xsd.impl.XSDAttributeDeclarationImpl.patch(XSDAt tributeDeclarati
> onImpl.java:201)
> at
> org.eclipse.xsd.impl.XSDConcreteComponentImpl.patch(XSDConcr eteComponentImpl
> .java:513)
> at
> org.eclipse.xsd.impl.XSDAttributeUseImpl.patch(XSDAttributeU seImpl.java:748)
> at
> org.eclipse.xsd.impl.XSDConcreteComponentImpl.patch(XSDConcr eteComponentImpl
> .java:513)
> at
> org.eclipse.xsd.impl.XSDNamedComponentImpl.patch(XSDNamedCom ponentImpl.java:
> 690)
> at
> org.eclipse.xsd.impl.XSDTypeDefinitionImpl.patch(XSDTypeDefi nitionImpl.java:
> 262)
> at
> org.eclipse.xsd.impl.XSDComplexTypeDefinitionImpl.patch(XSDC omplexTypeDefini
> tionImpl.java:995)
> at
> org.eclipse.xsd.impl.XSDConcreteComponentImpl.patch(XSDConcr eteComponentImpl
> .java:513)
> at
> org.eclipse.xsd.impl.XSDNamedComponentImpl.patch(XSDNamedCom ponentImpl.java:
> 690)
> at
> org.eclipse.xsd.impl.XSDElementDeclarationImpl.patch(XSDElem entDeclarationIm
> pl.java:530)
> at
> org.eclipse.xsd.impl.XSDConcreteComponentImpl.patch(XSDConcr eteComponentImpl
> .java:513)
> at org.eclipse.xsd.impl.XSDSchemaImpl.patch(XSDSchemaImpl.java: 1494)
> at
> org.eclipse.xsd.impl.XSDSchemaImpl.changeAttribute(XSDSchema Impl.java:2240)
> at
> org.eclipse.xsd.impl.XSDConcreteComponentImpl.eNotify(XSDCon creteComponentIm
> pl.java:1205)
> at
> org.eclipse.xsd.impl.XSDSchemaImpl.setSchemaLocation(XSDSche maImpl.java:842)
> at
> org.eclipse.xsd.util.XSDResourceImpl.attached(XSDResourceImp l.java:410)
> at
> org.eclipse.emf.ecore.resource.impl.ResourceImpl$ContentsELi st.inverseAdd(Re
> sourceImpl.java:326)
> at
> org.eclipse.emf.common.notify.impl.NotifyingListImpl.addUniq ue(NotifyingList
> Impl.java:233)
> at org.eclipse.emf.common.util.BasicEList.add(BasicEList.java:5 70)
> at org.eclipse.xsd.util.XSDResourceImpl.doLoad(XSDResourceImpl. java:374)
> at
> org.eclipse.emf.ecore.resource.impl.ResourceImpl.load(Resour ceImpl.java:881)
> at
> org.eclipse.emf.ecore.resource.impl.ResourceImpl.load(Resour ceImpl.java:755)
> at
> org.eclipse.emf.ecore.resource.impl.ResourceSetImpl.demandLo ad(ResourceSetIm
> pl.java:220)
> at
> org.eclipse.emf.ecore.resource.impl.ResourceSetImpl.getResou rce(ResourceSetI
> mpl.java:286)
> at
> org.eclipse.xsd.impl.XSDSchemaImpl.getSchemaForSchema(XSDSch emaImpl.java:681
> )
> at
> org.eclipse.xsd.impl.XSDSchemaImpl.getSchemaForSchema(XSDSch emaImpl.java:238
> 3)
> at
> org.eclipse.xsd.impl.XSDComplexTypeDefinitionImpl.handleNewB aseTypeDefinitio
> n(XSDComplexTypeDefinitionImpl.java:2011)
> at
> org.eclipse.xsd.impl.XSDComplexTypeDefinitionImpl.handleReco nciliation(XSDCo
> mplexTypeDefinitionImpl.java:2295)
> at
> org.eclipse.xsd.impl.XSDConcreteComponentImpl.reconcileConte nts(XSDConcreteC
> omponentImpl.java:1018)
> at
> org.eclipse.xsd.impl.XSDConcreteComponentImpl.reconcile(XSDC oncreteComponent
> Impl.java:952)
> at
> org.eclipse.xsd.impl.XSDConcreteComponentImpl.elementChanged (XSDConcreteComp
> onentImpl.java:399)
> at
> org.eclipse.xsd.impl.XSDConcreteComponentImpl.adoptContent(X SDConcreteCompon
> entImpl.java:1348)
> at
> org.eclipse.xsd.impl.XSDSchemaImpl.adoptContent(XSDSchemaImp l.java:1725)
> at
> org.eclipse.xsd.impl.XSDConcreteComponentImpl.eNotify(XSDCon creteComponentIm
> pl.java:1125)
> at
> org.eclipse.emf.common.notify.impl.NotificationChainImpl.dis patch(Notificati
> onChainImpl.java:115)
> at
> org.eclipse.emf.common.notify.impl.NotificationChainImpl.dis patch(Notificati
> onChainImpl.java:103)
> at
> org.eclipse.emf.common.notify.impl.NotifyingListImpl.addUniq ue(NotifyingList
> Impl.java:220)
> at org.eclipse.emf.common.util.BasicEList.add(BasicEList.java:5 70)
> at
> org.eclipse.xsd.impl.XSDConcreteComponentImpl.setListContent AndOrder(XSDConc
> reteComponentImpl.java:2075)
> at
> org.eclipse.xsd.impl.XSDSchemaImpl.handleReconciliation(XSDS chemaImpl.java:1
> 946)
> at
> org.eclipse.xsd.impl.XSDConcreteComponentImpl.reconcileConte nts(XSDConcreteC
> omponentImpl.java:1018)
> at
> org.eclipse.xsd.impl.XSDConcreteComponentImpl.reconcile(XSDC oncreteComponent
> Impl.java:952)
> at
> org.eclipse.xsd.impl.XSDConcreteComponentImpl.changeAttribut e(XSDConcreteCom
> ponentImpl.java:1232)
> at
> org.eclipse.xsd.impl.XSDSchemaImpl.changeAttribute(XSDSchema Impl.java:2244)
> at
> org.eclipse.xsd.impl.XSDConcreteComponentImpl.eNotify(XSDCon creteComponentIm
> pl.java:1205)
> at
> org.eclipse.xsd.impl.XSDConcreteComponentImpl.setElementGen( XSDConcreteCompo
> nentImpl.java:2797)
> at
> org.eclipse.xsd.impl.XSDConcreteComponentImpl.setElement(XSD ConcreteComponen
> tImpl.java:2829)
> at
> org.eclipse.xsd.impl.XSDSchemaImpl.setElement(XSDSchemaImpl. java:2367)
> at
> com.boo.xml.xsd.WSDLSchemaUtil.createXSDSchema(WSDLSchemaUti l.java:470)

--------------E2EF872CF3FABCC66614C28F
Content-Type: text/html; charset=us-ascii
Content-Transfer-Encoding: 7bit

<!doctype html public "-//w3c//dtd html 4.0 transitional//en">
<html>
Muruga,
<p>I tried validating the schema with the current code stream using the
XSDWSDLResource that I appended in a previous note with results like this:
<blockquote>--> <A HREF=" file:/D:/sandbox/unpackage2_3.0/eclipse/plugins/org.eclipse. xsd.test/test/AmazonWebServices.wsdl "> file:/D:/sandbox/unpackage2_3.0/eclipse/plugins/org.eclipse. xsd.test/test/AmazonWebServices.wsdl </A>
<br>Error: URI <A HREF=" file:/D:/sandbox/unpackage2_3.0/eclipse/plugins/org.eclipse. xsd.test/test/AmazonWebServices.wsdl "> file:/D:/sandbox/unpackage2_3.0/eclipse/plugins/org.eclipse. xsd.test/test/AmazonWebServices.wsdl </A>
Line 17 Column 9
<br>XSD: The &lt;all> content model with 44 options is too large
<br>Error: URI <A HREF=" file:/D:/sandbox/unpackage2_3.0/eclipse/plugins/org.eclipse. xsd.test/test/AmazonWebServices.wsdl "> file:/D:/sandbox/unpackage2_3.0/eclipse/plugins/org.eclipse. xsd.test/test/AmazonWebServices.wsdl </A>
Line 67 Column 13
<br>XSD: Attribute reference '<A HREF="http://schemas.xmlsoap.org/soap/encoding/#arrayType">http://schemas.xmlsoap.org/soap/encoding/#arrayType</A>'
is unresolved</blockquote>
The schema doesn't import the soap encoding namespace, so that doesn't
seem right.&nbsp; (Note that the XSD model can't validate the UPA rule
for large &lt;all> content, so that's the reason for that error.)&nbsp;
In any event, I couldn't reproduce the problem you show below, which looks
like a case of one of the built-in schemas becoming corrupted, and that
could have happened from stuff below the stack that's being shown.
<p>Also note that the older namespace can't really be handled "properly".&nbsp;
The XSD model caches versions of the 2001 files and changes their namespaces
in order to create fake older versions.
<br>&nbsp;
<p>Muruga Chinnananchi wrote:
<blockquote TYPE=CITE>Hi Ed,
<p>I am getting this is the print stack trace when i tried to parse the
schemas
<br>located in the Amazon wsdl which is located at
<br><a href="http://soap.amazon.com/schemas/AmazonWebServices.wsdl">http://soap.amazon.com/schemas/AmazonWebServices.wsdl</a>
<p>I guess i am getting this error because the amazon schema refers to
1999
<br>schema model, Looks like this is a
<br>bug to me.Here is the stack trace of it.
<p>&nbsp;&nbsp;&nbsp; java.lang.IndexOutOfBoundsException: index=0, size=0
<br>&nbsp;&nbsp;&nbsp; at org.eclipse.emf.common.util.BasicEList.get(BasicEList.java:4 98)
<br>&nbsp;&nbsp;&nbsp; at org.eclipse.xsd.impl.XSDSchemaImpl.patch(XSDSchemaImpl.java: 1479)
<br>&nbsp;&nbsp;&nbsp; at
<br> org.eclipse.xsd.impl.XSDSchemaImpl.traverseToRootForPatching (XSDSchemaImpl.j
<br>ava:1468)
<br>&nbsp;&nbsp;&nbsp; at
<br> org.eclipse.xsd.impl.XSDConcreteComponentImpl.changeAttribut e(XSDConcreteCom
<br>ponentImpl.java:1234)
<br>&nbsp;&nbsp;&nbsp; at
<br> org.eclipse.xsd.impl.XSDSchemaImpl.changeAttribute(XSDSchema Impl.java:2244)
<br>&nbsp;&nbsp;&nbsp; at
<br> org.eclipse.xsd.impl.XSDConcreteComponentImpl.eNotify(XSDCon creteComponentIm
<br>pl.java:1205)
<br>&nbsp;&nbsp;&nbsp; at
<br> org.eclipse.xsd.impl.XSDConcreteComponentImpl.setElementGen( XSDConcreteCompo
<br>nentImpl.java:2797)
<br>&nbsp;&nbsp;&nbsp; at
<br> org.eclipse.xsd.impl.XSDConcreteComponentImpl.setElement(XSD ConcreteComponen
<br>tImpl.java:2829)
<br>&nbsp;&nbsp;&nbsp; at
<br> org.eclipse.xsd.impl.XSDSchemaImpl.setElement(XSDSchemaImpl. java:2367)
<br>&nbsp;&nbsp;&nbsp; at
<br> org.eclipse.xsd.impl.XSDSchemaImpl.createMetaSchema(XSDSchem aImpl.java:502)
<br>&nbsp;&nbsp;&nbsp; at org.eclipse.xsd.util.XSDResourceImpl.doLoad(XSDResourceImpl. java:348)
<br>&nbsp;&nbsp;&nbsp; at
<br> org.eclipse.emf.ecore.resource.impl.ResourceImpl.load(Resour ceImpl.java:881)
<br>&nbsp;&nbsp;&nbsp; at
<br> org.eclipse.emf.ecore.resource.impl.ResourceImpl.load(Resour ceImpl.java:755)
<br>&nbsp;&nbsp;&nbsp; at
<br> org.eclipse.emf.ecore.resource.impl.ResourceSetImpl.demandLo ad(ResourceSetIm
<br>pl.java:220)
<br>&nbsp;&nbsp;&nbsp; at
<br> org.eclipse.emf.ecore.resource.impl.ResourceSetImpl.getResou rce(ResourceSetI
<br>mpl.java:286)
<br>&nbsp;&nbsp;&nbsp; at
<br> org.eclipse.xsd.impl.XSDSchemaImpl.getSchemaForSchema(XSDSch emaImpl.java:633
<br>)
<br>&nbsp;&nbsp;&nbsp; at
<br> org.eclipse.xsd.impl.XSDSchemaImpl.resolveSimpleTypeDefiniti on(XSDSchemaImpl
<br>.java:2170)
<br>&nbsp;&nbsp;&nbsp; at
<br> org.eclipse.xsd.impl.XSDConcreteComponentImpl.resolveSimpleT ypeDefinition(XS
<br>DConcreteComponentImpl.java:2340)
<br>&nbsp;&nbsp;&nbsp; at
<br> org.eclipse.xsd.impl.XSDConcreteComponentImpl.resolveSimpleT ypeDefinitionURI
<br>(XSDConcreteComponentImpl.java:2318)
<br>&nbsp;&nbsp;&nbsp; at
<br> org.eclipse.xsd.impl.XSDAttributeDeclarationImpl.reconcileAt tributes(XSDAttr
<br>ibuteDeclarationImpl.java:473)
<br>&nbsp;&nbsp;&nbsp; at
<br> org.eclipse.xsd.impl.XSDConcreteComponentImpl.reconcile(XSDC oncreteComponent
<br>Impl.java:951)
<br>&nbsp;&nbsp;&nbsp; at
<br> org.eclipse.xsd.impl.XSDConcreteComponentImpl.elementChanged (XSDConcreteComp
<br>onentImpl.java:399)
<br>&nbsp;&nbsp;&nbsp; at
<br> org.eclipse.xsd.impl.XSDConcreteComponentImpl.adoptContent(X SDConcreteCompon
<br>entImpl.java:1348)
<br>&nbsp;&nbsp;&nbsp; at
<br> org.eclipse.xsd.impl.XSDSchemaImpl.adoptContent(XSDSchemaImp l.java:1725)
<br>&nbsp;&nbsp;&nbsp; at
<br> org.eclipse.xsd.impl.XSDConcreteComponentImpl.eNotify(XSDCon creteComponentIm
<br>pl.java:1125)
<br>&nbsp;&nbsp;&nbsp; at
<br> org.eclipse.emf.common.notify.impl.NotificationChainImpl.dis patch(Notificati
<br>onChainImpl.java:115)
<br>&nbsp;&nbsp;&nbsp; at
<br> org.eclipse.emf.common.notify.impl.NotificationChainImpl.dis patch(Notificati
<br>onChainImpl.java:103)
<br>&nbsp;&nbsp;&nbsp; at
<br> org.eclipse.emf.common.notify.impl.NotifyingListImpl.addUniq ue(NotifyingList
<br>Impl.java:220)
<br>&nbsp;&nbsp;&nbsp; at org.eclipse.emf.common.util.BasicEList.add(BasicEList.java:5 70)
<br>&nbsp;&nbsp;&nbsp; at
<br> org.eclipse.xsd.impl.XSDConcreteComponentImpl.setListContent AndOrder(XSDConc
<br>reteComponentImpl.java:2075)
<br>&nbsp;&nbsp;&nbsp; at
<br> org.eclipse.xsd.impl.XSDSchemaImpl.handleReconciliation(XSDS chemaImpl.java:1
<br>946)
<br>&nbsp;&nbsp;&nbsp; at
<br> org.eclipse.xsd.impl.XSDConcreteComponentImpl.reconcileConte nts(XSDConcreteC
<br>omponentImpl.java:1018)
<br>&nbsp;&nbsp;&nbsp; at
<br> org.eclipse.xsd.impl.XSDConcreteComponentImpl.reconcile(XSDC oncreteComponent
<br>Impl.java:952)
<br>&nbsp;&nbsp;&nbsp; at
<br> org.eclipse.xsd.impl.XSDConcreteComponentImpl.changeAttribut e(XSDConcreteCom
<br>ponentImpl.java:1232)
<br>&nbsp;&nbsp;&nbsp; at
<br> org.eclipse.xsd.impl.XSDSchemaImpl.changeAttribute(XSDSchema Impl.java:2244)
<br>&nbsp;&nbsp;&nbsp; at
<br> org.eclipse.xsd.impl.XSDConcreteComponentImpl.eNotify(XSDCon creteComponentIm
<br>pl.java:1205)
<br>&nbsp;&nbsp;&nbsp; at
<br> org.eclipse.xsd.impl.XSDConcreteComponentImpl.setElementGen( XSDConcreteCompo
<br>nentImpl.java:2797)
<br>&nbsp;&nbsp;&nbsp; at
<br> org.eclipse.xsd.impl.XSDConcreteComponentImpl.setElement(XSD ConcreteComponen
<br>tImpl.java:2829)
<br>&nbsp;&nbsp;&nbsp; at
<br> org.eclipse.xsd.impl.XSDSchemaImpl.setElement(XSDSchemaImpl. java:2367)
<br>&nbsp;&nbsp;&nbsp; at
<br> org.eclipse.xsd.impl.XSDSchemaImpl.createMetaSchema(XSDSchem aImpl.java:502)
<br>&nbsp;&nbsp;&nbsp; at org.eclipse.xsd.util.XSDResourceImpl.doLoad(XSDResourceImpl. java:348)
<br>&nbsp;&nbsp;&nbsp; at
<br> org.eclipse.emf.ecore.resource.impl.ResourceImpl.load(Resour ceImpl.java:881)
<br>&nbsp;&nbsp;&nbsp; at
<br> org.eclipse.xsd.impl.XSDSchemaDirectiveImpl.resolve(XSDSchem aDirectiveImpl.j
<br>ava:380)
<br>&nbsp;&nbsp;&nbsp; at
<br> org.eclipse.xsd.impl.XSDImportImpl.importSchema(XSDImportImp l.java:488)
<br>&nbsp;&nbsp;&nbsp; at
<br> org.eclipse.xsd.impl.XSDSchemaImpl.resolveSchema(XSDSchemaIm pl.java:2055)
<br>&nbsp;&nbsp;&nbsp; at
<br> org.eclipse.xsd.impl.XSDSchemaImpl.resolveNamedComponent(XSD SchemaImpl.java:
<br>2078)
<br>&nbsp;&nbsp;&nbsp; at
<br> org.eclipse.xsd.impl.XSDSchemaImpl.resolveAttributeDeclarati on(XSDSchemaImpl
<br>.java:2093)
<br>&nbsp;&nbsp;&nbsp; at
<br> org.eclipse.xsd.impl.XSDConcreteComponentImpl.resolveAttribu teDeclaration(XS
<br>DConcreteComponentImpl.java:2450)
<br>&nbsp;&nbsp;&nbsp; at
<br> org.eclipse.xsd.impl.XSDAttributeDeclarationImpl.patch(XSDAt tributeDeclarati
<br>onImpl.java:201)
<br>&nbsp;&nbsp;&nbsp; at
<br> org.eclipse.xsd.impl.XSDConcreteComponentImpl.patch(XSDConcr eteComponentImpl
<br>.java:513)
<br>&nbsp;&nbsp;&nbsp; at
<br> org.eclipse.xsd.impl.XSDAttributeUseImpl.patch(XSDAttributeU seImpl.java:748)
<br>&nbsp;&nbsp;&nbsp; at
<br> org.eclipse.xsd.impl.XSDConcreteComponentImpl.patch(XSDConcr eteComponentImpl
<br>.java:513)
<br>&nbsp;&nbsp;&nbsp; at
<br> org.eclipse.xsd.impl.XSDNamedComponentImpl.patch(XSDNamedCom ponentImpl.java:
<br>690)
<br>&nbsp;&nbsp;&nbsp; at
<br> org.eclipse.xsd.impl.XSDTypeDefinitionImpl.patch(XSDTypeDefi nitionImpl.java:
<br>262)
<br>&nbsp;&nbsp;&nbsp; at
<br> org.eclipse.xsd.impl.XSDComplexTypeDefinitionImpl.patch(XSDC omplexTypeDefini
<br>tionImpl.java:995)
<br>&nbsp;&nbsp;&nbsp; at
<br> org.eclipse.xsd.impl.XSDConcreteComponentImpl.patch(XSDConcr eteComponentImpl
<br>.java:513)
<br>&nbsp;&nbsp;&nbsp; at
<br> org.eclipse.xsd.impl.XSDNamedComponentImpl.patch(XSDNamedCom ponentImpl.java:
<br>690)
<br>&nbsp;&nbsp;&nbsp; at
<br> org.eclipse.xsd.impl.XSDElementDeclarationImpl.patch(XSDElem entDeclarationIm
<br>pl.java:530)
<br>&nbsp;&nbsp;&nbsp; at
<br> org.eclipse.xsd.impl.XSDConcreteComponentImpl.patch(XSDConcr eteComponentImpl
<br>.java:513)
<br>&nbsp;&nbsp;&nbsp; at org.eclipse.xsd.impl.XSDSchemaImpl.patch(XSDSchemaImpl.java: 1494)
<br>&nbsp;&nbsp;&nbsp; at
<br> org.eclipse.xsd.impl.XSDSchemaImpl.changeAttribute(XSDSchema Impl.java:2240)
<br>&nbsp;&nbsp;&nbsp; at
<br> org.eclipse.xsd.impl.XSDConcreteComponentImpl.eNotify(XSDCon creteComponentIm
<br>pl.java:1205)
<br>&nbsp;&nbsp;&nbsp; at
<br> org.eclipse.xsd.impl.XSDSchemaImpl.setSchemaLocation(XSDSche maImpl.java:842)
<br>&nbsp;&nbsp;&nbsp; at
<br> org.eclipse.xsd.util.XSDResourceImpl.attached(XSDResourceImp l.java:410)
<br>&nbsp;&nbsp;&nbsp; at
<br> org.eclipse.emf.ecore.resource.impl.ResourceImpl$ContentsELi st.inverseAdd(Re
<br>sourceImpl.java:326)
<br>&nbsp;&nbsp;&nbsp; at
<br> org.eclipse.emf.common.notify.impl.NotifyingListImpl.addUniq ue(NotifyingList
<br>Impl.java:233)
<br>&nbsp;&nbsp;&nbsp; at org.eclipse.emf.common.util.BasicEList.add(BasicEList.java:5 70)
<br>&nbsp;&nbsp;&nbsp; at org.eclipse.xsd.util.XSDResourceImpl.doLoad(XSDResourceImpl. java:374)
<br>&nbsp;&nbsp;&nbsp; at
<br> org.eclipse.emf.ecore.resource.impl.ResourceImpl.load(Resour ceImpl.java:881)
<br>&nbsp;&nbsp;&nbsp; at
<br> org.eclipse.emf.ecore.resource.impl.ResourceImpl.load(Resour ceImpl.java:755)
<br>&nbsp;&nbsp;&nbsp; at
<br> org.eclipse.emf.ecore.resource.impl.ResourceSetImpl.demandLo ad(ResourceSetIm
<br>pl.java:220)
<br>&nbsp;&nbsp;&nbsp; at
<br> org.eclipse.emf.ecore.resource.impl.ResourceSetImpl.getResou rce(ResourceSetI
<br>mpl.java:286)
<br>&nbsp;&nbsp;&nbsp; at
<br> org.eclipse.xsd.impl.XSDSchemaImpl.getSchemaForSchema(XSDSch emaImpl.java:681
<br>)
<br>&nbsp;&nbsp;&nbsp; at
<br> org.eclipse.xsd.impl.XSDSchemaImpl.getSchemaForSchema(XSDSch emaImpl.java:238
<br>3)
<br>&nbsp;&nbsp;&nbsp; at
<br> org.eclipse.xsd.impl.XSDComplexTypeDefinitionImpl.handleNewB aseTypeDefinitio
<br>n(XSDComplexTypeDefinitionImpl.java:2011)
<br>&nbsp;&nbsp;&nbsp; at
<br> org.eclipse.xsd.impl.XSDComplexTypeDefinitionImpl.handleReco nciliation(XSDCo
<br>mplexTypeDefinitionImpl.java:2295)
<br>&nbsp;&nbsp;&nbsp; at
<br> org.eclipse.xsd.impl.XSDConcreteComponentImpl.reconcileConte nts(XSDConcreteC
<br>omponentImpl.java:1018)
<br>&nbsp;&nbsp;&nbsp; at
<br> org.eclipse.xsd.impl.XSDConcreteComponentImpl.reconcile(XSDC oncreteComponent
<br>Impl.java:952)
<br>&nbsp;&nbsp;&nbsp; at
<br> org.eclipse.xsd.impl.XSDConcreteComponentImpl.elementChanged (XSDConcreteComp
<br>onentImpl.java:399)
<br>&nbsp;&nbsp;&nbsp; at
<br> org.eclipse.xsd.impl.XSDConcreteComponentImpl.adoptContent(X SDConcreteCompon
<br>entImpl.java:1348)
<br>&nbsp;&nbsp;&nbsp; at
<br> org.eclipse.xsd.impl.XSDSchemaImpl.adoptContent(XSDSchemaImp l.java:1725)
<br>&nbsp;&nbsp;&nbsp; at
<br> org.eclipse.xsd.impl.XSDConcreteComponentImpl.eNotify(XSDCon creteComponentIm
<br>pl.java:1125)
<br>&nbsp;&nbsp;&nbsp; at
<br> org.eclipse.emf.common.notify.impl.NotificationChainImpl.dis patch(Notificati
<br>onChainImpl.java:115)
<br>&nbsp;&nbsp;&nbsp; at
<br> org.eclipse.emf.common.notify.impl.NotificationChainImpl.dis patch(Notificati
<br>onChainImpl.java:103)
<br>&nbsp;&nbsp;&nbsp; at
<br> org.eclipse.emf.common.notify.impl.NotifyingListImpl.addUniq ue(NotifyingList
<br>Impl.java:220)
<br>&nbsp;&nbsp;&nbsp; at org.eclipse.emf.common.util.BasicEList.add(BasicEList.java:5 70)
<br>&nbsp;&nbsp;&nbsp; at
<br> org.eclipse.xsd.impl.XSDConcreteComponentImpl.setListContent AndOrder(XSDConc
<br>reteComponentImpl.java:2075)
<br>&nbsp;&nbsp;&nbsp; at
<br> org.eclipse.xsd.impl.XSDSchemaImpl.handleReconciliation(XSDS chemaImpl.java:1
<br>946)
<br>&nbsp;&nbsp;&nbsp; at
<br> org.eclipse.xsd.impl.XSDConcreteComponentImpl.reconcileConte nts(XSDConcreteC
<br>omponentImpl.java:1018)
<br>&nbsp;&nbsp;&nbsp; at
<br> org.eclipse.xsd.impl.XSDConcreteComponentImpl.reconcile(XSDC oncreteComponent
<br>Impl.java:952)
<br>&nbsp;&nbsp;&nbsp; at
<br> org.eclipse.xsd.impl.XSDConcreteComponentImpl.changeAttribut e(XSDConcreteCom
<br>ponentImpl.java:1232)
<br>&nbsp;&nbsp;&nbsp; at
<br> org.eclipse.xsd.impl.XSDSchemaImpl.changeAttribute(XSDSchema Impl.java:2244)
<br>&nbsp;&nbsp;&nbsp; at
<br> org.eclipse.xsd.impl.XSDConcreteComponentImpl.eNotify(XSDCon creteComponentIm
<br>pl.java:1205)
<br>&nbsp;&nbsp;&nbsp; at
<br> org.eclipse.xsd.impl.XSDConcreteComponentImpl.setElementGen( XSDConcreteCompo
<br>nentImpl.java:2797)
<br>&nbsp;&nbsp;&nbsp; at
<br> org.eclipse.xsd.impl.XSDConcreteComponentImpl.setElement(XSD ConcreteComponen
<br>tImpl.java:2829)
<br>&nbsp;&nbsp;&nbsp; at
<br> org.eclipse.xsd.impl.XSDSchemaImpl.setElement(XSDSchemaImpl. java:2367)
<br>&nbsp;&nbsp;&nbsp; at
<br> com.boo.xml.xsd.WSDLSchemaUtil.createXSDSchema(WSDLSchemaUti l.java:470) </blockquote>
</html>

--------------E2EF872CF3FABCC66614C28F--
Previous Topic:1999 schema - IndexOutOfBoundsException
Next Topic:How to run validation on xsd resource
Goto Forum:
  


Current Time: Tue Sep 23 12:21:13 GMT 2014

Powered by FUDForum. Page generated in 0.03785 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software