You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@xmlbeans.apache.org by "Matt Bucknam (JIRA)" <xm...@xml.apache.org> on 2008/07/17 17:27:32 UTC
[jira] Created: (XMLBEANS-377) exception in thread "main"
org.apache.xmlbeans.SchemaTypeLoaderException: Simple type does not have a
recognized variety
exception in thread "main" org.apache.xmlbeans.SchemaTypeLoaderException: Simple type does not have a recognized variety
------------------------------------------------------------------------------------------------------------------------
Key: XMLBEANS-377
URL: https://issues.apache.org/jira/browse/XMLBEANS-377
Project: XMLBeans
Issue Type: Bug
Components: Tools
Affects Versions: TBD
Environment: Ubuntu 8.0.4, jdk1.5.14, XMLBeans 2.4.0
Reporter: Matt Bucknam
I'm having the same issue as with XMLBEANS-356. I can provide more information if necessary but hope that something similar to what fixed that issue will fix this too. The schema fragment that does not work is:
<xs:complexType name="AngleMeasureType">
<xs:annotation>
<xs:documentation>An angle measurement, with an associated error bound. The units on the error bound are assumed to be the same as those on the measurement.</xs:documentation>
</xs:annotation>
<xs:complexContent>
<xs:extension base="xxxxx:DecimalType">
<xs:attribute name="angleUOM" type="xxxxx:AngleUOMType">
<xs:annotation>
<xs:documentation>A unit of measurement assigned to this angle.</xs:documentation>
</xs:annotation>
</xs:attribute>
</xs:extension>
</xs:complexContent>
</xs:complexType>
Similar to the suggested workaround given in XMLBEANS-356, if I change the xs:complexContent to xs:simpleContent and recompile the schema, I can use it just fine. But, also similar to XMLBEANS-356, I am a consumer of the schema and am not able to easily change it. If a sample xsd and java program to duplicate the problem are necessary or more information please let me know and I'll try to provide. The fragment is part of a very large complex set of schemas and is proprietary so I am trying to be diligent in what I post.
Thanks.
--
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
[jira] Commented: (XMLBEANS-377) exception in thread "main"
org.apache.xmlbeans.SchemaTypeLoaderException: Simple type does not have a
recognized variety
Posted by "Radu Preotiuc-Pietro (JIRA)" <xm...@xml.apache.org>.
[ https://issues.apache.org/jira/browse/XMLBEANS-377?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12615823#action_12615823 ]
Radu Preotiuc-Pietro commented on XMLBEANS-377:
-----------------------------------------------
Matt,
You are leaving out one important piece of information: is the base type of the extension, DecimalType, a complex type with simple content or a simple type?
1. If complex type with simple content and you are getting the same exception, then isn't this a duplicate of XMLBEANS-356? Have you tried running your Schema with XMLBeans 2.4.0? It should work.
2. If simple type, you should get something like the following when trying to compile the Schema:
error: src-ct.1: Type 'DecimalType@test/namespace2' is being used as the base type for a complexContent definition. To do this the base type must be a complex type.
which is correct according to http://www.w3.org/TR/xmlschema-1/#src-ct, point 1.
> exception in thread "main" org.apache.xmlbeans.SchemaTypeLoaderException: Simple type does not have a recognized variety
> ------------------------------------------------------------------------------------------------------------------------
>
> Key: XMLBEANS-377
> URL: https://issues.apache.org/jira/browse/XMLBEANS-377
> Project: XMLBeans
> Issue Type: Bug
> Components: Tools
> Affects Versions: TBD
> Environment: Ubuntu 8.0.4, jdk1.5.14, XMLBeans 2.4.0
> Reporter: Matt Bucknam
>
> I'm having the same issue as with XMLBEANS-356. I can provide more information if necessary but hope that something similar to what fixed that issue will fix this too. The schema fragment that does not work is:
> <xs:complexType name="AngleMeasureType">
> <xs:annotation>
> <xs:documentation>An angle measurement, with an associated error bound. The units on the error bound are assumed to be the same as those on the measurement.</xs:documentation>
> </xs:annotation>
> <xs:complexContent>
> <xs:extension base="xxxxx:DecimalType">
> <xs:attribute name="angleUOM" type="xxxxx:AngleUOMType">
> <xs:annotation>
> <xs:documentation>A unit of measurement assigned to this angle.</xs:documentation>
> </xs:annotation>
> </xs:attribute>
> </xs:extension>
> </xs:complexContent>
> </xs:complexType>
> Similar to the suggested workaround given in XMLBEANS-356, if I change the xs:complexContent to xs:simpleContent and recompile the schema, I can use it just fine. But, also similar to XMLBEANS-356, I am a consumer of the schema and am not able to easily change it. If a sample xsd and java program to duplicate the problem are necessary or more information please let me know and I'll try to provide. The fragment is part of a very large complex set of schemas and is proprietary so I am trying to be diligent in what I post.
> Thanks.
--
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
[jira] Updated: (XMLBEANS-377) exception in thread "main"
org.apache.xmlbeans.SchemaTypeLoaderException: Simple type does not have a
recognized variety
Posted by "Cezar Andrei (JIRA)" <xm...@xml.apache.org>.
[ https://issues.apache.org/jira/browse/XMLBEANS-377?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Cezar Andrei updated XMLBEANS-377:
----------------------------------
Luis,
Can you attach the schema you're using, the code snippet you get the exception and the classpath. Thx.
> exception in thread "main" org.apache.xmlbeans.SchemaTypeLoaderException: Simple type does not have a recognized variety
> ------------------------------------------------------------------------------------------------------------------------
>
> Key: XMLBEANS-377
> URL: https://issues.apache.org/jira/browse/XMLBEANS-377
> Project: XMLBeans
> Issue Type: Bug
> Components: Tools
> Affects Versions: TBD
> Environment: Ubuntu 8.0.4, jdk1.5.14, XMLBeans 2.4.0
> Reporter: Matt Bucknam
>
> I'm having the same issue as with XMLBEANS-356. I can provide more information if necessary but hope that something similar to what fixed that issue will fix this too. The schema fragment that does not work is:
> <xs:complexType name="AngleMeasureType">
> <xs:annotation>
> <xs:documentation>An angle measurement, with an associated error bound. The units on the error bound are assumed to be the same as those on the measurement.</xs:documentation>
> </xs:annotation>
> <xs:complexContent>
> <xs:extension base="xxxxx:DecimalType">
> <xs:attribute name="angleUOM" type="xxxxx:AngleUOMType">
> <xs:annotation>
> <xs:documentation>A unit of measurement assigned to this angle.</xs:documentation>
> </xs:annotation>
> </xs:attribute>
> </xs:extension>
> </xs:complexContent>
> </xs:complexType>
> Similar to the suggested workaround given in XMLBEANS-356, if I change the xs:complexContent to xs:simpleContent and recompile the schema, I can use it just fine. But, also similar to XMLBEANS-356, I am a consumer of the schema and am not able to easily change it. If a sample xsd and java program to duplicate the problem are necessary or more information please let me know and I'll try to provide. The fragment is part of a very large complex set of schemas and is proprietary so I am trying to be diligent in what I post.
> Thanks.
--
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
[jira] Commented: (XMLBEANS-377) exception in thread "main"
org.apache.xmlbeans.SchemaTypeLoaderException: Simple type does not have a
recognized variety
Posted by "Luis Barragan (JIRA)" <xm...@xml.apache.org>.
[ https://issues.apache.org/jira/browse/XMLBEANS-377?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12758189#action_12758189 ]
Luis Barragan commented on XMLBEANS-377:
----------------------------------------
Is there any update on this issue?
I am getting the same error message "SchemaTypeLoaderException: Simple type does not have a recognized variety" but in my case it seems to be related to a substitution group.
<xsd:complexType name="IdentifierType">
<xsd:complexContent>
<xsd:extension base="qq:IdentifierType">
<xsd:attribute name="mandatory" type="xsd:boolean"/>
<xsd:attribute name="order" type="xsd:int"/>
</xsd:extension>
</xsd:complexContent>
</xsd:complexType>
"qq:IdentifierType" refers to a type defined in another schema.
So I get the error while getting a new instance of IdenfierType:
IdentifierType.Factory.newInstance();
> exception in thread "main" org.apache.xmlbeans.SchemaTypeLoaderException: Simple type does not have a recognized variety
> ------------------------------------------------------------------------------------------------------------------------
>
> Key: XMLBEANS-377
> URL: https://issues.apache.org/jira/browse/XMLBEANS-377
> Project: XMLBeans
> Issue Type: Bug
> Components: Tools
> Affects Versions: TBD
> Environment: Ubuntu 8.0.4, jdk1.5.14, XMLBeans 2.4.0
> Reporter: Matt Bucknam
>
> I'm having the same issue as with XMLBEANS-356. I can provide more information if necessary but hope that something similar to what fixed that issue will fix this too. The schema fragment that does not work is:
> <xs:complexType name="AngleMeasureType">
> <xs:annotation>
> <xs:documentation>An angle measurement, with an associated error bound. The units on the error bound are assumed to be the same as those on the measurement.</xs:documentation>
> </xs:annotation>
> <xs:complexContent>
> <xs:extension base="xxxxx:DecimalType">
> <xs:attribute name="angleUOM" type="xxxxx:AngleUOMType">
> <xs:annotation>
> <xs:documentation>A unit of measurement assigned to this angle.</xs:documentation>
> </xs:annotation>
> </xs:attribute>
> </xs:extension>
> </xs:complexContent>
> </xs:complexType>
> Similar to the suggested workaround given in XMLBEANS-356, if I change the xs:complexContent to xs:simpleContent and recompile the schema, I can use it just fine. But, also similar to XMLBEANS-356, I am a consumer of the schema and am not able to easily change it. If a sample xsd and java program to duplicate the problem are necessary or more information please let me know and I'll try to provide. The fragment is part of a very large complex set of schemas and is proprietary so I am trying to be diligent in what I post.
> Thanks.
--
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
[jira] Commented: (XMLBEANS-377) exception in thread "main"
org.apache.xmlbeans.SchemaTypeLoaderException: Simple type does not have a
recognized variety
Posted by "Radu Preotiuc-Pietro (JIRA)" <xm...@xml.apache.org>.
[ https://issues.apache.org/jira/browse/XMLBEANS-377?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12651226#action_12651226 ]
Radu Preotiuc-Pietro commented on XMLBEANS-377:
-----------------------------------------------
Matt,
Could you
1. make sure that you are using XmlBeans 2.4.0 at both compile-time and runtime?
2. try the Schema in XMLBEANS-356 and confirm that it works for you?
2. give me a stand-alone, compilable Schema, so that we can both try exactly the same test?
Because if I include the snippet from you in a larger Schema, it works for me, so either the problem is not captured in the fragment you posted, or I don't know what's going on...
> exception in thread "main" org.apache.xmlbeans.SchemaTypeLoaderException: Simple type does not have a recognized variety
> ------------------------------------------------------------------------------------------------------------------------
>
> Key: XMLBEANS-377
> URL: https://issues.apache.org/jira/browse/XMLBEANS-377
> Project: XMLBeans
> Issue Type: Bug
> Components: Tools
> Affects Versions: TBD
> Environment: Ubuntu 8.0.4, jdk1.5.14, XMLBeans 2.4.0
> Reporter: Matt Bucknam
>
> I'm having the same issue as with XMLBEANS-356. I can provide more information if necessary but hope that something similar to what fixed that issue will fix this too. The schema fragment that does not work is:
> <xs:complexType name="AngleMeasureType">
> <xs:annotation>
> <xs:documentation>An angle measurement, with an associated error bound. The units on the error bound are assumed to be the same as those on the measurement.</xs:documentation>
> </xs:annotation>
> <xs:complexContent>
> <xs:extension base="xxxxx:DecimalType">
> <xs:attribute name="angleUOM" type="xxxxx:AngleUOMType">
> <xs:annotation>
> <xs:documentation>A unit of measurement assigned to this angle.</xs:documentation>
> </xs:annotation>
> </xs:attribute>
> </xs:extension>
> </xs:complexContent>
> </xs:complexType>
> Similar to the suggested workaround given in XMLBEANS-356, if I change the xs:complexContent to xs:simpleContent and recompile the schema, I can use it just fine. But, also similar to XMLBEANS-356, I am a consumer of the schema and am not able to easily change it. If a sample xsd and java program to duplicate the problem are necessary or more information please let me know and I'll try to provide. The fragment is part of a very large complex set of schemas and is proprietary so I am trying to be diligent in what I post.
> Thanks.
--
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
[jira] Commented: (XMLBEANS-377) exception in thread "main"
org.apache.xmlbeans.SchemaTypeLoaderException: Simple type does not have a
recognized variety
Posted by "Matt Bucknam (JIRA)" <xm...@xml.apache.org>.
[ https://issues.apache.org/jira/browse/XMLBEANS-377?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12616013#action_12616013 ]
Matt Bucknam commented on XMLBEANS-377:
---------------------------------------
Radu,
Thanks for looking at this. It appears to be number 1. from your comment but it does not work when compiling the schema against XMLBeans 2.4.0 (latest stable release I got from the website). Here is the xsd for DecimalType:
<xs:complexType name="DecimalType">
<xs:annotation>
<xs:documentation>A decimal value that has limited associated metadata</xs:documentation>
</xs:annotation>
<xs:simpleContent>
<xs:extension base="xs:decimal">
<xs:annotation>
<xs:documentation>A decimal value that has limited associated metadata</xs:documentation>
</xs:annotation>
<xs:attribute ref="ucore:errorBound">
<xs:annotation>
<xs:documentation>This describes the error bound associated with the value. At the moment, it is a single number that represents the uncertainty in terms of + or - from the number.</xs:documentation>
</xs:annotation>
</xs:attribute>
<xs:attributeGroup ref="ICISM:SecurityAttributesOptionGroup"/>
</xs:extension>
</xs:simpleContent>
</xs:complexType>
It doesn't seem to me that DecimalType has simpleContent though. Even though it is declared as such. Please let me know if I can provide more information. It's not out of the question that this schema could be wrong -- it is very nested and complicated and using it is a pain in the *** even with XMLBeans...
> exception in thread "main" org.apache.xmlbeans.SchemaTypeLoaderException: Simple type does not have a recognized variety
> ------------------------------------------------------------------------------------------------------------------------
>
> Key: XMLBEANS-377
> URL: https://issues.apache.org/jira/browse/XMLBEANS-377
> Project: XMLBeans
> Issue Type: Bug
> Components: Tools
> Affects Versions: TBD
> Environment: Ubuntu 8.0.4, jdk1.5.14, XMLBeans 2.4.0
> Reporter: Matt Bucknam
>
> I'm having the same issue as with XMLBEANS-356. I can provide more information if necessary but hope that something similar to what fixed that issue will fix this too. The schema fragment that does not work is:
> <xs:complexType name="AngleMeasureType">
> <xs:annotation>
> <xs:documentation>An angle measurement, with an associated error bound. The units on the error bound are assumed to be the same as those on the measurement.</xs:documentation>
> </xs:annotation>
> <xs:complexContent>
> <xs:extension base="xxxxx:DecimalType">
> <xs:attribute name="angleUOM" type="xxxxx:AngleUOMType">
> <xs:annotation>
> <xs:documentation>A unit of measurement assigned to this angle.</xs:documentation>
> </xs:annotation>
> </xs:attribute>
> </xs:extension>
> </xs:complexContent>
> </xs:complexType>
> Similar to the suggested workaround given in XMLBEANS-356, if I change the xs:complexContent to xs:simpleContent and recompile the schema, I can use it just fine. But, also similar to XMLBEANS-356, I am a consumer of the schema and am not able to easily change it. If a sample xsd and java program to duplicate the problem are necessary or more information please let me know and I'll try to provide. The fragment is part of a very large complex set of schemas and is proprietary so I am trying to be diligent in what I post.
> Thanks.
--
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