[prev in list] [next in list] [prev in thread] [next in thread] 

List:       xmlbeans-dev
Subject:    [jira] Commented: (XMLBEANS-356) xception in thread "main"
From:       "Wouter Heessen (JIRA)" <xmlbeans-dev () xml ! apache ! org>
Date:       2008-01-17 13:31:36
Message-ID: 10190106.1200576696243.JavaMail.jira () brutus
[Download RAW message or body]


    [ https://issues.apache.org/jira/browse/XMLBEANS-356?page=com.atlassian.jira.plugi \
n.system.issuetabpanels:comment-tabpanel&focusedCommentId=12559920#action_12559920 ] 

Wouter Heessen commented on XMLBEANS-356:
-----------------------------------------

There is a problem with the XSB file generation. 
Also the dumpxsb tool complains about the "Unknown simple type variety":

%dumpxsb nameelementd068elemtype.xsb 

nameelementd068elemtype.xsb
  Magic cookie: da7ababe
  Major version: 2
  Minor version: 24
  Release number: 0
  Filetype: FILETYPE_SCHEMATYPE
  String pool (8):
    1 = "nameelement33abdoctype"
    2 = "nametype2f61type"
    3 = "nameelementelement"
    4 = "schema.NameElementDocument$NameElement"
    5 = "schema.impl.NameElementDocumentImpl$NameElementImpl"
    6 = "string504dtype"
    7 = "TestSchema.xsd"
  Name: (null)
  Outer type: nameelement33abdoctype
  Depth: 6
  Base type: nametype2f61type
  Derivation type: DT_EXTENSION
  Container field:
    Reftype: FIELD_GLOBAL
    Handle: nameelementelement
  Java class name: schema.NameElementDocument$NameElement
  Java impl class name: schema.impl.NameElementDocumentImpl$NameElementImpl
  Anonymous types (0):
  Anonymous union member ordinal: 0
  Flags: 0
  Complex variety: SIMPLE_CONTENT
  Content based on type: string504dtype
  Attribute model (0):
    Wildcard set: QNameSet+()
    Wildcard process: NOT_WILDCARD
  Attribute properties (0):
  Simple type variety: Unknown simple variety (0)
  Facets (0):
  Whitespace rule: WS_UNSPECIFIED
  Patterns (0):
  Enumeration values (0):
  Base enum type: null
Unknown simple type variety
Exception in thread "main" java.lang.IllegalStateException: Unknown simple type \
                variety
        at org.apache.xmlbeans.impl.tool.XsbDumper.error(XsbDumper.java:149)
        at org.apache.xmlbeans.impl.tool.XsbDumper.dumpTypeFileData(XsbDumper.java:1009)
                
        at org.apache.xmlbeans.impl.tool.XsbDumper.dumpAll(XsbDumper.java:300)
        at org.apache.xmlbeans.impl.tool.XsbDumper.dump(XsbDumper.java:135)
        at org.apache.xmlbeans.impl.tool.XsbDumper.dump(XsbDumper.java:129)
        at org.apache.xmlbeans.impl.tool.XsbDumper.dump(XsbDumper.java:89)
        at org.apache.xmlbeans.impl.tool.XsbDumper.main(XsbDumper.java:60)


> xception in thread "main" org.apache.xmlbeans.SchemaTypeLoaderException: Simple \
> type does not have a recognized variety \
> (schemaorg_apache_xmlbeans.system.sF1DBD93096C623A6A85C0BCA912AE262.nameelementd068elemtype) \
>                 - code 8
> ------------------------------------------------------------------------------------ \
> -----------------------------------------------------------------------------------------------------------------------------------------
>  
> Key: XMLBEANS-356
> URL: https://issues.apache.org/jira/browse/XMLBEANS-356
> Project: XMLBeans
> Issue Type: Bug
> Affects Versions:  Version 2.3
> Reporter: Alex Rykov
> Attachments: TestSchema.xsd, XBeanTest.java
> 
> 
> 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)

-- 
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: dev-unsubscribe@xmlbeans.apache.org
For additional commands, e-mail: dev-help@xmlbeans.apache.org


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic