[
https://issues.apache.org/jira/browse/XERCESJ-1575?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Michael Glavassevich updated XERCESJ-1575:
------------------------------------------
Fix Version/s: (was: 2.11.0)
> NPE when parsing XML Schema with 1.1 validation
> -----------------------------------------------
>
> Key: XERCESJ-1575
> URL: https://issues.apache.org/jira/browse/XERCESJ-1575
> Project: Xerces2-J
> Issue Type: Bug
> Affects Versions: 2.11.0
> Reporter: Radu Coravu
> Original Estimate: 2h
> Remaining Estimate: 2h
>
> I'm using the Xerces-J 2.11.0-xml-schema-1.1-beta kit available on site so
> maybe the problem has already been fixed.
> When parsing the XML Schema with Schema 1.1 validation:
> <schema xmlns="http://www.w3.org/2001/XMLSchema"
> xmlns:pn="http://CytometryML/ACS/person_name"
> xmlns:about="http://CytometryML/ACS/about"
> targetNamespace="http://CytometryML/ACS/person_name"
> elementFormDefault="qualified" attributeFormDefault="unqualified">
>
>
> <complexType name="Person_Name_Long_Type" id="Person_Name_Long_Type">
> <sequence>
> <element name="Formatted_Name" type="anyType"
> minOccurs="0"/>
> <element name="Legal_Name" type="anyType"
> minOccurs="0"/>
> <element name="Qualification" type="anyType"
> minOccurs="0" maxOccurs="2"/>
> </sequence>
> </complexType>
>
>
> <complexType name="Person_Name_Type" id="Person_Name_Type">
> <complexContent>
> <restriction base="pn:Person_Name_Long_Type">
> <sequence>
> <element name="Qualification"
> type="anyType" minOccurs="0" maxOccurs="2"/>
> </sequence>
> </restriction>
> </complexContent>
> </complexType>
>
> </schema>
> The following NPE is encountered:
> java.lang.NullPointerException
> at
> org.apache.xerces.impl.xs.models.XSDFACM.optimizeForDFABase(XSDFACM.java:1478)
> at
> org.apache.xerces.impl.xs.models.XSDFACM.optimizeStates(XSDFACM.java:1462)
> at org.apache.xerces.impl.xs.models.XS11CMRestriction.addState(Unknown
> Source)
> at
> org.apache.xerces.impl.xs.models.XS11CMRestriction.matchElementInBase(Unknown
> Source)
> at org.apache.xerces.impl.xs.models.XS11CMRestriction.check(Unknown
> Source)
> at org.apache.xerces.impl.xs.XS11Constraints.typeSubsumption(Unknown
> Source)
> at
> org.apache.xerces.impl.xs.XSConstraints.fullSchemaChecking(XSConstraints.java:469)
> at org.apache.xerces.impl.xs.XMLSchemaLoader.loadGrammar(Unknown Source)
> at
> org.apache.xerces.parsers.XMLGrammarPreparserXerces.preparseGrammar(XMLGrammarPreparserXerces.java:210)
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]