Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » XML Schema Definition (XSD) » 1999 schema - IndexOutOfBoundsException
1999 schema - IndexOutOfBoundsException [message #580778] Fri, 21 November 2003 02:41
Eclipse UserFriend
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)
Previous Topic:Allowed children of a XSDSimpleTypeDefinition
Next Topic:1999 schema - IndexOutOfBoundsException
Goto Forum:
  


Current Time: Thu Apr 25 22:12:35 GMT 2024

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

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

Back to the top