On Tue, May 2, 2017 at 12:54 PM, Jan Tosovsky <[email protected]> wrote:
> Dear All, > > when implementing fix https://issues.apache.org/jira/browse/XERCESJ-1102 > I've found several failing tests: > > xerces\>build test > > schema.config.AllTests (7 failures) > dom.dom3.Test (org.w3c.dom.ls.LSException: The version is required in the > XML declaration ...) > > Are these known issues? Or is it somehow related to my configuration (Win > 10/Oracle JDK 1.8)? Running 'build.bat test' with: C:\vcs\svn\apache\xerces-j\trunk\xerces-java-trunk>mvn -version Apache Maven 3.5.0 (ff8f5e7444045639af65f6095c62210b5713f426; 2017-04-03T12:39:06-07:00) Maven home: C:\Java\apache-maven-3.5.0\bin\.. Java version: 1.7.0_80, vendor: Oracle Corporation Java home: C:\Program Files\Java\jdk1.7.0_80\jre Default locale: en_US, platform encoding: Cp1252 OS name: "windows 8.1", version: "6.3", arch: "amd64", family: "windows" I get: <SNIP> [java] There were 7 failures: [java] 1) testSetTrueDocument(schema.config.IgnoreXSIType_C_C_Test)junit.framework.AssertionFailedError: {validity} was <partial> but it should have been <none> expected:<0> but was:<1> [java] at schema.config.BaseTest.assertValidationAttempted(Unknown Source) [java] at schema.config.IgnoreXSIType_C_C_Test.checkTrueResult(Unknown Source) [java] at schema.config.IgnoreXSIType_C_C_Test.testSetTrueDocument(Unknown Source) [java] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [java] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) [java] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) [java] at schema.config.AllTests.main(Unknown Source) [java] 2) testSetTrueFragment(schema.config.IgnoreXSIType_C_C_Test)junit.framework.AssertionFailedError: {validity} was <partial> but it should have been <none> expected:<0> but was:<1> [java] at schema.config.BaseTest.assertValidationAttempted(Unknown Source) [java] at schema.config.IgnoreXSIType_C_C_Test.checkTrueResult(Unknown Source) [java] at schema.config.IgnoreXSIType_C_C_Test.testSetTrueFragment(Unknown Source) [java] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [java] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) [java] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) [java] at schema.config.AllTests.main(Unknown Source) [java] 3) testSetTrueDocument(schema.config.IgnoreXSIType_C_AC_Test)junit.framework.AssertionFailedError: {validity} was <partial> but it should have been <none> expected:<0> but was:<1> [java] at schema.config.BaseTest.assertValidationAttempted(Unknown Source) [java] at schema.config.IgnoreXSIType_C_AC_Test.checkTrueResult(Unknown Source) [java] at schema.config.IgnoreXSIType_C_AC_Test.testSetTrueDocument(Unknown Source) [java] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [java] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) [java] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) [java] at schema.config.AllTests.main(Unknown Source) [java] 4) testSetTrueFragment(schema.config.IgnoreXSIType_C_AC_Test)junit.framework.AssertionFailedError: {validity} was <partial> but it should have been <none> expected:<0> but was:<1> [java] at schema.config.BaseTest.assertValidationAttempted(Unknown Source) [java] at schema.config.IgnoreXSIType_C_AC_Test.checkTrueResult(Unknown Source) [java] at schema.config.IgnoreXSIType_C_AC_Test.testSetTrueFragment(Unknown Source) [java] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [java] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) [java] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) [java] at schema.config.AllTests.main(Unknown Source) [java] 5) testSetTrueDocument(schema.config.IgnoreXSIType_C_CA_Test)junit.framework.AssertionFailedError: {validity} was <partial> but it should have been <none> expected:<0> but was:<1> [java] at schema.config.BaseTest.assertValidationAttempted(Unknown Source) [java] at schema.config.IgnoreXSIType_C_CA_Test.checkTrueResult(Unknown Source) [java] at schema.config.IgnoreXSIType_C_CA_Test.testSetTrueDocument(Unknown Source) [java] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [java] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) [java] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) [java] at schema.config.AllTests.main(Unknown Source) [java] 6) testSetTrueFragment(schema.config.IgnoreXSIType_C_CA_Test)junit.framework.AssertionFailedError: {validity} was <partial> but it should have been <none> expected:<0> but was:<1> [java] at schema.config.BaseTest.assertValidationAttempted(Unknown Source) [java] at schema.config.IgnoreXSIType_C_CA_Test.checkTrueResult(Unknown Source) [java] at schema.config.IgnoreXSIType_C_CA_Test.testSetTrueFragment(Unknown Source) [java] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [java] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) [java] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) [java] at schema.config.AllTests.main(Unknown Source) [java] 7) testUsingOnlyGrammarPool(schema.config.UseGrammarPoolOnly_True_Test)junit.framework.AssertionFailedError: {validity} was <partial> but it should have been <none> expected:<0> but was:<1> [java] at schema.config.BaseTest.assertValidationAttempted(Unknown Source) [java] at schema.config.UseGrammarPoolOnly_True_Test.testUsingOnlyGrammarPool(Unknown Source) [java] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [java] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) [java] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) [java] at schema.config.AllTests.main(Unknown Source) [java] [java] FAILURES!!! [java] Tests run: 72, Failures: 7, Errors: 0 [java] [echo] Running schema.annotations.AllTests ... [java] ......................................... [java] ...................................... [java] Time: 0.637 [java] [java] OK (79 tests) [java] [echo] Running jaxp.PropertyTest ... [java] done. [echo] Running jaxp.JAXPSpecTest ... [java] Running JAXPSpecTest.testSchemaLanguageSAX [java] JAXPSpecTest.testSchemaLanguageSAX Passed [java] Running JAXPSpecTest.testSchemaSourceSAX [java] JAXPSpecTest.testSchemaSourceSAX Passed [java] Running JAXPSpecTest.testSchemaLanguageDOM [java] JAXPSpecTest.testSchemaLanguageDOM Passed [java] Running JAXPSpecTest.testSchemaSourceDOM [java] JAXPSpecTest.testSchemaSourceDOM Passed [echo] Running xinclude.Test ... [java] All XInclude Tests Passed [echo] Running dom.registry.Test ... [java] Running dom.registry.Test... [echo] Running dom.dom3.Test ... [java] Running dom.dom3.Test... [java] org.w3c.dom.ls.LSException: The version is required in the XML declaration. [java] done! [java] at org.apache.xerces.parsers.DOMParserImpl.parseURI(Unknown Source) [java] at dom.dom3.Test.main(Unknown Source) [java] Caused by: :data/personal.dtd:file:///C:/vcs/svn/apache/xerces-j/trunk/xerces-java-trunk/data/personal.dtd:file:///C:/vcs/svn/apache/xerces-j/trunk/xerces-java-trunk/data/personal.dtd:1:23:22:The version is required in the XML declaration. [java] at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source) [java] at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source) [java] at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source) [java] at org.apache.xerces.impl.XMLScanner.reportFatalError(Unknown Source) [java] at org.apache.xerces.impl.XMLScanner.scanXMLDeclOrTextDecl(Unknown Source) [java] at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanXMLDeclOrTextDecl(Unknown Source) [java] at org.apache.xerces.impl.XMLDocumentScannerImpl$XMLDeclDispatcher.dispatch(Unknown Source) [java] at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source) [java] at org.apache.xerces.impl.xs.opti.SchemaParsingConfig.parse(Unknown Source) [java] at org.apache.xerces.impl.xs.opti.SchemaParsingConfig.parse(Unknown Source) [java] at org.apache.xerces.impl.xs.opti.SchemaDOMParser.parse(Unknown Source) [java] at org.apache.xerces.impl.xs.traversers.XSDHandler.getSchemaDocument(Unknown Source) [java] at org.apache.xerces.impl.xs.traversers.XSDHandler.parseSchema(Unknown Source) [java] at org.apache.xerces.impl.xs.XMLSchemaLoader.loadSchema(Unknown Source) [java] at org.apache.xerces.impl.xs.XMLSchemaValidator.findSchemaGrammar(Unknown Source) [java] at org.apache.xerces.impl.xs.XMLSchemaValidator.handleStartElement(Unknown Source) [java] at org.apache.xerces.impl.xs.XMLSchemaValidator.startElement(Unknown Source) [java] at org.apache.xerces.impl.dtd.XMLDTDValidator.startElement(Unknown Source) [java] at org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanStartElement(Unknown Source) [java] at org.apache.xerces.impl.XMLNSDocumentScannerImpl$NSContentDispatcher.scanRootElementHook(Unknown Source) [java] at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown Source) [java] at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source) [java] at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source) [java] at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source) [java] at org.apache.xerces.parsers.XMLParser.parse(Unknown Source) [java] ... 2 more BUILD SUCCESSFUL Total time: 32 seconds Looks like the same with Java 8. Gary > > Thanks, > > Jan > > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [email protected] > For additional commands, e-mail: [email protected] > > -- E-Mail: [email protected] | [email protected] Java Persistence with Hibernate, Second Edition <https://www.amazon.com/gp/product/1617290459/ref=as_li_tl?ie=UTF8&camp=1789&creative=9325&creativeASIN=1617290459&linkCode=as2&tag=garygregory-20&linkId=cadb800f39946ec62ea2b1af9fe6a2b8> <http:////ir-na.amazon-adsystem.com/e/ir?t=garygregory-20&l=am2&o=1&a=1617290459> JUnit in Action, Second Edition <https://www.amazon.com/gp/product/1935182021/ref=as_li_tl?ie=UTF8&camp=1789&creative=9325&creativeASIN=1935182021&linkCode=as2&tag=garygregory-20&linkId=31ecd1f6b6d1eaf8886ac902a24de418%22> <http:////ir-na.amazon-adsystem.com/e/ir?t=garygregory-20&l=am2&o=1&a=1935182021> Spring Batch in Action <https://www.amazon.com/gp/product/1935182951/ref=as_li_tl?ie=UTF8&camp=1789&creative=9325&creativeASIN=1935182951&linkCode=%7B%7BlinkCode%7D%7D&tag=garygregory-20&linkId=%7B%7Blink_id%7D%7D%22%3ESpring+Batch+in+Action> <http:////ir-na.amazon-adsystem.com/e/ir?t=garygregory-20&l=am2&o=1&a=1935182951> Blog: http://garygregory.wordpress.com Home: http://garygregory.com/ Tweet! http://twitter.com/GaryGregory
