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

Pat Lynch updated XERCESJ-1629:
-------------------------------

    Attachment: npe-demo.tar

This tar file contains a schema within a Maven project that, when built with 
the maven package goal will reproduce the problem.


> NullPointerException when validating XML 1.1 Schema with XML-Maven-Plugin
> -------------------------------------------------------------------------
>
>                 Key: XERCESJ-1629
>                 URL: https://issues.apache.org/jira/browse/XERCESJ-1629
>             Project: Xerces2-J
>          Issue Type: Bug
>          Components: JAXP (javax.xml.validation)
>    Affects Versions: 2.11.0
>            Reporter: Pat Lynch
>         Attachments: npe-demo.tar
>
>
> When validating a specific schema, NullPointerException is thrown (trace 
> below).
> Caused by: java.lang.NullPointerException
>         at java.util.StringTokenizer.<init>(StringTokenizer.java:199)
>         at java.util.StringTokenizer.<init>(StringTokenizer.java:221)
>         at 
> org.apache.xerces.impl.dv.xs.XSSimpleTypeDecl.getActualValue(Unknown Source)
>         at org.apache.xerces.impl.dv.xs.XSSimpleTypeDecl.validate(Unknown 
> Source)
>         at 
> org.apache.xerces.impl.xs.util.XSTypeHelper.isValueValidForASimpleType(Unknown
>  Source)
>         at 
> org.apache.xerces.impl.xs.util.XSTypeHelper.isAtomicValueValidForAnUnion(Unknown
>  Source)
>         at 
> org.apache.xerces.impl.xs.XMLSchemaValidator.addDefaultAttributes(Unknown 
> Source)
>         at 
> org.apache.xerces.impl.xs.XMLSchemaValidator.handleStartElement(Unknown 
> Source)
>         at org.apache.xerces.impl.xs.XMLSchemaValidator.startElement(Unknown 
> Source)
>         at 
> org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanStartElement(Unknown 
> Source)
>         at 
> org.apache.xerces.impl.XMLNSDocumentScannerImpl$NSContentDispatcher.scanRootElementHook(Unknown
>  Source)
>         at 
> org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown
>  Source)
>         at 
> org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown 
> Source)
>         at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
>         at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
>         at 
> org.apache.xerces.jaxp.validation.StreamValidatorHelper.validate(Unknown 
> Source)
>         at org.apache.xerces.jaxp.validation.ValidatorImpl.validate(Unknown 
> Source)
>         at javax.xml.validation.Validator.validate(Unknown Source)
>         at org.codehaus.mojo.xml.ValidateMojo.validate(ValidateMojo.java:149)



--
This message was sent by Atlassian JIRA
(v6.1.5#6160)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to