[ 
https://issues.apache.org/jira/browse/XERCESJ-1575?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Mukul Gandhi updated XERCESJ-1575:
----------------------------------
    Fix Version/s: 2.12.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
>            Assignee: Mukul Gandhi
>             Fix For: 2.12.0
>
>   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 was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: j-dev-unsubscr...@xerces.apache.org
For additional commands, e-mail: j-dev-h...@xerces.apache.org

Reply via email to