Uploaded image for project: 'XMLBeans'
  1. XMLBeans
  2. XMLBEANS-356

xception in thread "main" org.apache.xmlbeans.SchemaTypeLoaderException: Simple type does not have a recognized variety (schemaorg_apache_xmlbeans.system.sF1DBD93096C623A6A85C0BCA912AE262.nameelementd068elemtype) - code 8

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • Version 2.3
    • Version 2.3.1
    • None
    • None

    Description

      Attached schema compiles fine. However, when trying to create the top level element in the document the following exception occurs:

      Exception in thread "main" org.apache.xmlbeans.SchemaTypeLoaderException: Simple type does not have a recognized variety (schemaorg_apache_xmlbeans.system.sF1DBD93096C623A6A85C0BCA912AE262.nameelementd068elemtype) - code 8
      at org.apache.xmlbeans.impl.schema.SchemaTypeSystemImpl$XsbReader.finishLoadingType(SchemaTypeSystemImpl.java:2659)
      at org.apache.xmlbeans.impl.schema.SchemaTypeSystemImpl.resolveHandle(SchemaTypeSystemImpl.java:3507)
      at org.apache.xmlbeans.SchemaComponent$Ref.getComponent(SchemaComponent.java:104)
      at org.apache.xmlbeans.SchemaType$Ref.get(SchemaType.java:872)
      at org.apache.xmlbeans.impl.schema.SchemaPropertyImpl.getType(SchemaPropertyImpl.java:92)
      at org.apache.xmlbeans.impl.schema.SchemaTypeImpl.createElementType(SchemaTypeImpl.java:965)
      at org.apache.xmlbeans.impl.values.XmlObjectBase.create_element_user(XmlObjectBase.java:893)
      at org.apache.xmlbeans.impl.store.Xobj.getUser(Xobj.java:1657)
      at org.apache.xmlbeans.impl.store.Cur.getUser(Cur.java:2654)
      at org.apache.xmlbeans.impl.store.Xobj.insertElement(Xobj.java:2099)
      at org.apache.xmlbeans.impl.store.Xobj.add_element_user(Xobj.java:2179)
      at schema.impl.NameElementDocumentImpl.addNewNameElement(Unknown Source)
      at test.XBeanTest.main(XBeanTest.java:13)

      Attachments

        1. TestSchema.xsd
          1 kB
          Alex Rykov
        2. XBeanTest.java
          0.3 kB
          Alex Rykov

        Issue Links

          Activity

            People

              Unassigned Unassigned
              arykov Alex Rykov
              Votes:
              1 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: