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 "Simon Sprott (JIRA)" <xe...@xml.apache.org> on 2013/07/31 09:55:48 UTC

[jira] [Closed] (XERCESJ-1612) unhandled null pointer exception parsing XSD 1.1

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

Simon Sprott closed XERCESJ-1612.
---------------------------------

    Resolution: Fixed

The issue was reported on the latest XSD 1.1 Beta built, it seems to have been fixed in the trunk (I'm now working against the trunk build and it works fine).
                
> unhandled null pointer exception parsing XSD 1.1
> ------------------------------------------------
>
>                 Key: XERCESJ-1612
>                 URL: https://issues.apache.org/jira/browse/XERCESJ-1612
>             Project: Xerces2-J
>          Issue Type: Bug
>          Components: XML Schema 1.1 Structures
>    Affects Versions: 2.11.0
>         Environment: schema 1.1 beta - running it cross compiled for .net (but pretty sure the bugs the same in a java only enviroment).
>            Reporter: Simon Sprott
>
> load the sample file 
> http://www.xfront.com/xml-schema-1-1/xml-schema-1-1.zip?v=15
> xml-schema-1-1\examples\error\BookStore.xsd
> using the 1.1 validating parser
>                         XMLSchema11Factory factory = new XMLSchema11Factory();
>                         factory.setErrorHandler(errorHandler);
>                         factory.setResourceResolver(xercesResolver);
>                         Schema schema = factory.newSchema(new Source[] { new StreamSource(new InputStreamAdapter(stream), uri.AbsoluteUri) });
>                         javax.xml.validation.Validator validator = schema.newValidator();
> The codes not complete, but I suspect if you load this file into your xsd 1.1 test harness it will break the same way.
> The issue is in  	org.apache.xerces.impl.xs.traversers.override.DOMOverrideImpl.cloneOverridenSchema()
> The issue is also apparent when loading 
> xml-schema-1-1\examples\override\meeting\conference-calendar.xsd

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
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