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 ji...@apache.org on 2004/04/12 23:27:48 UTC
[jira] Updated: (XERCERJ-484) Second call to parse reports errors
The following issue has been updated:
Updater: Serge Knystautas (mailto:sergek@lokitech.com)
Date: Mon, 12 Apr 2004 2:26 PM
Changes:
Attachment changed from bugData.zip
---------------------------------------------------------------------
For a full history of the issue, see:
http://issues.apache.org/jira/browse/XERCERJ-484?page=history
---------------------------------------------------------------------
View the issue:
http://issues.apache.org/jira/browse/XERCERJ-484
Here is an overview of the issue:
---------------------------------------------------------------------
Key: XERCERJ-484
Summary: Second call to parse reports errors
Type: Bug
Status: Closed
Resolution: FIXED
Project: Xerces2-J
Assignee: Xerces-J Developers Mailing List
Reporter: George Cristian Bina
Created: Mon, 14 Oct 2002 9:21 AM
Updated: Mon, 12 Apr 2004 2:26 PM
Environment: Operating System: All
Platform: Other
Description:
Calling parse on a document reports that the document is valid (correct)
Calling again parse on the same document reports validation errors.
I will attach a zip with the XML, XSL and a java class to reproduce this.
Here you can see the output as I get it:
First call to parse - no errors
Second call to parse - errors!!!
org.xml.sax.SAXParseException: cvc-datatype-valid.1.2.1: '0t0' is not a
valid 'decimal' value.
at org.apache.xerces.util.ErrorHandlerWrapper.createSAXParseException
(Unknown Source)
at org.apache.xerces.util.ErrorHandlerWrapper.error(Unknown Source)
at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source)
at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source)
at
org.apache.xerces.impl.xs.XMLSchemaValidator$XSIErrorReporter.reportError
(Unknown Source)
at org.apache.xerces.impl.xs.XMLSchemaValidator.reportSchemaError
(Unknown Source)
at org.apache.xerces.impl.xs.XMLSchemaValidator.elementLocallyValidType
(Unknown Source)
at org.apache.xerces.impl.xs.XMLSchemaValidator.processElementContent
(Unknown Source)
at org.apache.xerces.impl.xs.XMLSchemaValidator.handleEndElement
(Unknown Source)
at org.apache.xerces.impl.xs.XMLSchemaValidator.endElement(Unknown
Source)
at org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanEndElement
(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.DTDConfiguration.parse(Unknown Source)
at org.apache.xerces.parsers.DTDConfiguration.parse(Unknown Source)
at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
at BugXerces.main(BugXerces.java:32)
org.xml.sax.SAXParseException: cvc-type.3.1.3: The value '0 0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0t0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0t0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0t0 0
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
0 0t0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0t0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
0 0 0 0 0' of element 'FlashAdc' is not valid.
at org.apache.xerces.util.ErrorHandlerWrapper.createSAXParseException
(Unknown Source)
at org.apache.xerces.util.ErrorHandlerWrapper.error(Unknown Source)
at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source)
at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source)
at
org.apache.xerces.impl.xs.XMLSchemaValidator$XSIErrorReporter.reportError
(Unknown Source)
at org.apache.xerces.impl.xs.XMLSchemaValidator.reportSchemaError
(Unknown Source)
at org.apache.xerces.impl.xs.XMLSchemaValidator.elementLocallyValidType
(Unknown Source)
at org.apache.xerces.impl.xs.XMLSchemaValidator.processElementContent
(Unknown Source)
at org.apache.xerces.impl.xs.XMLSchemaValidator.handleEndElement
(Unknown Source)
at org.apache.xerces.impl.xs.XMLSchemaValidator.endElement(Unknown
Source)
at org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanEndElement
(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.DTDConfiguration.parse(Unknown Source)
at org.apache.xerces.parsers.DTDConfiguration.parse(Unknown Source)
at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
at BugXerces.main(BugXerces.java:32)
org.xml.sax.SAXParseException: cvc-datatype-valid.1.2.1: '0t0' is not a
valid 'decimal' value.
at org.apache.xerces.util.ErrorHandlerWrapper.createSAXParseException
(Unknown Source)
at org.apache.xerces.util.ErrorHandlerWrapper.error(Unknown Source)
at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source)
at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source)
at
org.apache.xerces.impl.xs.XMLSchemaValidator$XSIErrorReporter.reportError
(Unknown Source)
at org.apache.xerces.impl.xs.XMLSchemaValidator.reportSchemaError
(Unknown Source)
at
org.apache.xerces.impl.xs.XMLSchemaValidator.elementLocallyValidComplexType
(Unknown Source)
at org.apache.xerces.impl.xs.XMLSchemaValidator.elementLocallyValidType
(Unknown Source)
at org.apache.xerces.impl.xs.XMLSchemaValidator.processElementContent
(Unknown Source)
at org.apache.xerces.impl.xs.XMLSchemaValidator.handleEndElement
(Unknown Source)
at org.apache.xerces.impl.xs.XMLSchemaValidator.endElement(Unknown
Source)
at org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanEndElement
(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.DTDConfiguration.parse(Unknown Source)
at org.apache.xerces.parsers.DTDConfiguration.parse(Unknown Source)
at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
at BugXerces.main(BugXerces.java:32)
org.xml.sax.SAXParseException: cvc-complex-type.2.2: Element 'Channel0' must
have no element [children], and the value must be valid.
at org.apache.xerces.util.ErrorHandlerWrapper.createSAXParseException
(Unknown Source)
at org.apache.xerces.util.ErrorHandlerWrapper.error(Unknown Source)
at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source)
at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source)
at
org.apache.xerces.impl.xs.XMLSchemaValidator$XSIErrorReporter.reportError
(Unknown Source)
at org.apache.xerces.impl.xs.XMLSchemaValidator.reportSchemaError
(Unknown Source)
at
org.apache.xerces.impl.xs.XMLSchemaValidator.elementLocallyValidComplexType
(Unknown Source)
at org.apache.xerces.impl.xs.XMLSchemaValidator.elementLocallyValidType
(Unknown Source)
at org.apache.xerces.impl.xs.XMLSchemaValidator.processElementContent
(Unknown Source)
at org.apache.xerces.impl.xs.XMLSchemaValidator.handleEndElement
(Unknown Source)
at org.apache.xerces.impl.xs.XMLSchemaValidator.endElement(Unknown
Source)
at org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanEndElement
(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.DTDConfiguration.parse(Unknown Source)
at org.apache.xerces.parsers.DTDConfiguration.parse(Unknown Source)
at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
at BugXerces.main(BugXerces.java:32)
org.xml.sax.SAXParseException: cvc-datatype-valid.1.2.1: '0t0' is not a
valid 'decimal' value.
at org.apache.xerces.util.ErrorHandlerWrapper.createSAXParseException
(Unknown Source)
at org.apache.xerces.util.ErrorHandlerWrapper.error(Unknown Source)
at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source)
at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source)
at
org.apache.xerces.impl.xs.XMLSchemaValidator$XSIErrorReporter.reportError
(Unknown Source)
at org.apache.xerces.impl.xs.XMLSchemaValidator.reportSchemaError
(Unknown Source)
at
org.apache.xerces.impl.xs.XMLSchemaValidator.elementLocallyValidComplexType
(Unknown Source)
at org.apache.xerces.impl.xs.XMLSchemaValidator.elementLocallyValidType
(Unknown Source)
at org.apache.xerces.impl.xs.XMLSchemaValidator.processElementContent
(Unknown Source)
at org.apache.xerces.impl.xs.XMLSchemaValidator.handleEndElement
(Unknown Source)
at org.apache.xerces.impl.xs.XMLSchemaValidator.endElement(Unknown
Source)
at org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanEndElement
(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.DTDConfiguration.parse(Unknown Source)
at org.apache.xerces.parsers.DTDConfiguration.parse(Unknown Source)
at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
at BugXerces.main(BugXerces.java:32)
org.xml.sax.SAXParseException: cvc-complex-type.2.2: Element 'Channel1' must
have no element [children], and the value must be valid.
at org.apache.xerces.util.ErrorHandlerWrapper.createSAXParseException
(Unknown Source)
at org.apache.xerces.util.ErrorHandlerWrapper.error(Unknown Source)
at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source)
at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source)
at
org.apache.xerces.impl.xs.XMLSchemaValidator$XSIErrorReporter.reportError
(Unknown Source)
at org.apache.xerces.impl.xs.XMLSchemaValidator.reportSchemaError
(Unknown Source)
at
org.apache.xerces.impl.xs.XMLSchemaValidator.elementLocallyValidComplexType
(Unknown Source)
at org.apache.xerces.impl.xs.XMLSchemaValidator.elementLocallyValidType
(Unknown Source)
at org.apache.xerces.impl.xs.XMLSchemaValidator.processElementContent
(Unknown Source)
at org.apache.xerces.impl.xs.XMLSchemaValidator.handleEndElement
(Unknown Source)
at org.apache.xerces.impl.xs.XMLSchemaValidator.endElement(Unknown
Source)
at org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanEndElement
(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.DTDConfiguration.parse(Unknown Source)
at org.apache.xerces.parsers.DTDConfiguration.parse(Unknown Source)
at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
at BugXerces.main(BugXerces.java:32)
org.xml.sax.SAXParseException: cvc-datatype-valid.1.2.1: '73t82' is not a
valid 'decimal' value.
at org.apache.xerces.util.ErrorHandlerWrapper.createSAXParseException
(Unknown Source)
at org.apache.xerces.util.ErrorHandlerWrapper.error(Unknown Source)
at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source)
at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source)
at
org.apache.xerces.impl.xs.XMLSchemaValidator$XSIErrorReporter.reportError
(Unknown Source)
at org.apache.xerces.impl.xs.XMLSchemaValidator.reportSchemaError
(Unknown Source)
at
org.apache.xerces.impl.xs.XMLSchemaValidator.elementLocallyValidComplexType
(Unknown Source)
at org.apache.xerces.impl.xs.XMLSchemaValidator.elementLocallyValidType
(Unknown Source)
at org.apache.xerces.impl.xs.XMLSchemaValidator.processElementContent
(Unknown Source)
at org.apache.xerces.impl.xs.XMLSchemaValidator.handleEndElement
(Unknown Source)
at org.apache.xerces.impl.xs.XMLSchemaValidator.endElement(Unknown
Source)
at org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanEndElement
(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.DTDConfiguration.parse(Unknown Source)
at org.apache.xerces.parsers.DTDConfiguration.parse(Unknown Source)
at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
at BugXerces.main(BugXerces.java:32)
org.xml.sax.SAXParseException: cvc-complex-type.2.2: Element 'Channel2' must
have no element [children], and the value must be valid.
at org.apache.xerces.util.ErrorHandlerWrapper.createSAXParseException
(Unknown Source)
at org.apache.xerces.util.ErrorHandlerWrapper.error(Unknown Source)
at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source)
at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source)
at
org.apache.xerces.impl.xs.XMLSchemaValidator$XSIErrorReporter.reportError
(Unknown Source)
at org.apache.xerces.impl.xs.XMLSchemaValidator.reportSchemaError
(Unknown Source)
at
org.apache.xerces.impl.xs.XMLSchemaValidator.elementLocallyValidComplexType
(Unknown Source)
at org.apache.xerces.impl.xs.XMLSchemaValidator.elementLocallyValidType
(Unknown Source)
at org.apache.xerces.impl.xs.XMLSchemaValidator.processElementContent
(Unknown Source)
at org.apache.xerces.impl.xs.XMLSchemaValidator.handleEndElement
(Unknown Source)
at org.apache.xerces.impl.xs.XMLSchemaValidator.endElement(Unknown
Source)
at org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanEndElement
(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.DTDConfiguration.parse(Unknown Source)
at org.apache.xerces.parsers.DTDConfiguration.parse(Unknown Source)
at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
at BugXerces.main(BugXerces.java:32)
org.xml.sax.SAXParseException: cvc-datatype-valid.1.2.1: '229t982' is not a
valid 'decimal' value.
at org.apache.xerces.util.ErrorHandlerWrapper.createSAXParseException
(Unknown Source)
at org.apache.xerces.util.ErrorHandlerWrapper.error(Unknown Source)
at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source)
at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source)
at
org.apache.xerces.impl.xs.XMLSchemaValidator$XSIErrorReporter.reportError
(Unknown Source)
at org.apache.xerces.impl.xs.XMLSchemaValidator.reportSchemaError
(Unknown Source)
at
org.apache.xerces.impl.xs.XMLSchemaValidator.elementLocallyValidComplexType
(Unknown Source)
at org.apache.xerces.impl.xs.XMLSchemaValidator.elementLocallyValidType
(Unknown Source)
at org.apache.xerces.impl.xs.XMLSchemaValidator.processElementContent
(Unknown Source)
at org.apache.xerces.impl.xs.XMLSchemaValidator.handleEndElement
(Unknown Source)
at org.apache.xerces.impl.xs.XMLSchemaValidator.endElement(Unknown
Source)
at org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanEndElement
(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.DTDConfiguration.parse(Unknown Source)
at org.apache.xerces.parsers.DTDConfiguration.parse(Unknown Source)
at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
at BugXerces.main(BugXerces.java:32)
org.xml.sax.SAXParseException: cvc-complex-type.2.2: Element 'Channel3' must
have no element [children], and the value must be valid.
at org.apache.xerces.util.ErrorHandlerWrapper.createSAXParseException
(Unknown Source)
at org.apache.xerces.util.ErrorHandlerWrapper.error(Unknown Source)
at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source)
at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source)
at
org.apache.xerces.impl.xs.XMLSchemaValidator$XSIErrorReporter.reportError
(Unknown Source)
at org.apache.xerces.impl.xs.XMLSchemaValidator.reportSchemaError
(Unknown Source)
at
org.apache.xerces.impl.xs.XMLSchemaValidator.elementLocallyValidComplexType
(Unknown Source)
at org.apache.xerces.impl.xs.XMLSchemaValidator.elementLocallyValidType
(Unknown Source)
at org.apache.xerces.impl.xs.XMLSchemaValidator.processElementContent
(Unknown Source)
at org.apache.xerces.impl.xs.XMLSchemaValidator.handleEndElement
(Unknown Source)
at org.apache.xerces.impl.xs.XMLSchemaValidator.endElement(Unknown
Source)
at org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanEndElement
(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.DTDConfiguration.parse(Unknown Source)
at org.apache.xerces.parsers.DTDConfiguration.parse(Unknown Source)
at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
at BugXerces.main(BugXerces.java:32)
---------------------------------------------------------------------
JIRA INFORMATION:
This message is automatically generated by JIRA.
If you think it was sent incorrectly contact one of the administrators:
http://issues.apache.org/jira/secure/Administrators.jspa
If you want more information on JIRA, or have a bug to report see:
http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: xerces-j-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-j-dev-help@xml.apache.org