dizzzz / jing-trang

Automatically exported from code.google.com/p/jing-trang
Other
0 stars 0 forks source link

jing (20091111) java.lang.RuntimeException: recover after botch #168

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?

1. run jing schema.rng jing_bug.xml

What is the expected output? What do you see instead?

I expected to possibly see some error messages and an indication of whether
the document was valid or not. I got the following stack trace instead:

jing_bug.xml:16:49: error: value of attribute "ref" is invalid; must be equal 
to "EMPLOYER-CITY", "EMPLOYER-GENERAL-INDUSTRIES", "EMPLOYER-INDUSTRY-NAICS", 
"EMPLOYER-INDUSTRY-SIC", "EMPLOYER-STATE", "EMPLOYER-ZIP" or "UNION-NAME"
Exception in thread "main" java.lang.RuntimeException: recover after botch
        at com.thaiopensource.relaxng.pattern.RecoverAfterFunction.caseOther(RecoverAfterFunction.java:11)
        at com.thaiopensource.relaxng.pattern.RecoverAfterFunction.caseOther(RecoverAfterFunction.java:3)
        at com.thaiopensource.relaxng.pattern.AbstractPatternFunction.caseNotAllowed(AbstractPatternFunction.java:9)
        at com.thaiopensource.relaxng.pattern.NotAllowedPattern.apply(NotAllowedPattern.java:16)
        at com.thaiopensource.relaxng.pattern.RecoverAfterFunction.caseChoice(RecoverAfterFunction.java:15)
        at com.thaiopensource.relaxng.pattern.RecoverAfterFunction.caseChoice(RecoverAfterFunction.java:3)
        at com.thaiopensource.relaxng.pattern.ChoicePattern.apply(ChoicePattern.java:24)
        at com.thaiopensource.relaxng.pattern.RecoverAfterFunction.caseChoice(Re
coverAfterFunction.java:15)
        at com.thaiopensource.relaxng.pattern.RecoverAfterFunction.caseChoice(RecoverAfterFunction.java:3)
        at com.thaiopensource.relaxng.pattern.ChoicePattern.apply(ChoicePattern.java:24)
        at com.thaiopensource.relaxng.pattern.PatternMemo.applyForPatternMemo(PatternMemo.java:228)
        at com.thaiopensource.relaxng.pattern.PatternMemo.recoverAfter(PatternMemo.java:196)
        at com.thaiopensource.relaxng.pattern.PatternMatcher.matchAttributeValue(PatternMatcher.java:165)
        at com.thaiopensource.relaxng.sax.PatternValidator.startElement(PatternValidator.java:38)
        at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.startElement(AbstractSAXParser.java:501)
        at com.sun.org.apache.xerces.internal.parsers.AbstractXMLDocumentParser.emptyElement(AbstractXMLDocumentParser.java:179)
        at com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.scanStartElement(XMLNSDocumentScannerImpl.java:377)
        at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$FragmentContentDriver.next(XMLDocumentFragmentScannerImpl.java:2756)
        at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(XMLDocumentScannerImpl.java:648)
        at com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.next(XMLNSDocumentScannerImpl.java:140)
        at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:511)
        at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:808)
        at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:737)
        at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser.java:119)
        at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1205)
        at com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$JAXPSAXParser.parse(SAXParserImpl.java:522)
        at com.thaiopensource.validate.ValidationDriver.validate(ValidationDriver.java:160)
        at com.thaiopensource.relaxng.util.Driver.doMain(Driver.java:154)
        at com.thaiopensource.relaxng.util.Driver.main(Driver.java:35)

What version of the product are you using? On what operating system?

jing-20091111

Please provide any additional information below.

Original issue reported on code.google.com by dan.sp...@gmail.com on 27 Mar 2013 at 8:42

Attachments:

GoogleCodeExporter commented 8 years ago
This looks like a bug to me.

Original comment by j...@jclark.com on 28 Mar 2013 at 12:17

GoogleCodeExporter commented 8 years ago

Original comment by j...@jclark.com on 29 Mar 2013 at 2:13

GoogleCodeExporter commented 8 years ago
Fixed in r2362.

Original comment by j...@jclark.com on 30 Mar 2013 at 1:24

GoogleCodeExporter commented 8 years ago
Wow. Thanks!

Original comment by dan.sp...@gmail.com on 30 Mar 2013 at 1:40