You are viewing a plain text version of this content. The canonical link for it is here.
Posted to j-dev@xerces.apache.org by "Mukul Gandhi (JIRA)" <xe...@xml.apache.org> on 2012/07/31 13:02:33 UTC

[jira] [Resolved] (XERCESJ-1575) NPE when parsing XML Schema with 1.1 validation

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

Mukul Gandhi resolved XERCESJ-1575.
-----------------------------------

    Resolution: Fixed
      Assignee: Mukul Gandhi

committed the fix (SVN revision 1367485), and marking the issue as resolved. the fix doesn't seem to break any existing XML Schema 1.1 tests, that i'm aware of. if any of other committers think, that any other change was needed as part of the fix to this issue, this fix may be revisited.
                
> 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
>   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: j-dev-unsubscribe@xerces.apache.org
For additional commands, e-mail: j-dev-help@xerces.apache.org