Current build with JDK11 is failing

Issue #1064 resolved
Denis Konovalyenko created an issue

[INFO] Okapi Filter for OpenXML ........................... FAILURE [01:02 min]

[INFO] Okapi Step for Splitting/Joining a TTX File ........ FAILURE [ 2.495 s]

[ERROR] Tests run: 3, Failures: 0, Errors: 2, Skipped: 0, Time elapsed: 0.647 s <<< FAILURE! - in net.sf.okapi.filters.openxml.TestXMLSerializer
[ERROR] testAttrQuoting(net.sf.okapi.filters.openxml.TestXMLSerializer)  Time elapsed: 0.299 s  <<< ERROR!
javax.xml.bind.DataBindingException: 
javax.xml.bind.JAXBException: Implementation of JAXB-API has not been found on module path or classpath.
 - with linked exception:
[java.lang.ClassNotFoundException: com.sun.xml.bind.v2.ContextFactory]
    at net.sf.okapi.filters.openxml.TestXMLSerializer.testAttrQuoting(TestXMLSerializer.java:59)
Caused by: javax.xml.bind.JAXBException: Implementation of JAXB-API has not been found on module path or classpath.
    at net.sf.okapi.filters.openxml.TestXMLSerializer.testAttrQuoting(TestXMLSerializer.java:59)
Caused by: java.lang.ClassNotFoundException: com.sun.xml.bind.v2.ContextFactory
    at net.sf.okapi.filters.openxml.TestXMLSerializer.testAttrQuoting(TestXMLSerializer.java:59)

[ERROR] test(net.sf.okapi.filters.openxml.TestXMLSerializer)  Time elapsed: 0.017 s  <<< ERROR!
javax.xml.bind.DataBindingException: 
javax.xml.bind.JAXBException: Implementation of JAXB-API has not been found on module path or classpath.
 - with linked exception:
[java.lang.ClassNotFoundException: com.sun.xml.bind.v2.ContextFactory]
    at net.sf.okapi.filters.openxml.TestXMLSerializer.test(TestXMLSerializer.java:43)
Caused by: javax.xml.bind.JAXBException: Implementation of JAXB-API has not been found on module path or classpath.
    at net.sf.okapi.filters.openxml.TestXMLSerializer.test(TestXMLSerializer.java:43)
Caused by: java.lang.ClassNotFoundException: com.sun.xml.bind.v2.ContextFactory
    at net.sf.okapi.filters.openxml.TestXMLSerializer.test(TestXMLSerializer.java:43)

[ERROR] Tests run: 2, Failures: 0, Errors: 2, Skipped: 0, Time elapsed: 1.511 s <<< FAILURE! - in net.sf.okapi.steps.ttxsplitter.TTXSplitterTest
[ERROR] testSplitThenJoinSegmented(net.sf.okapi.steps.ttxsplitter.TTXSplitterTest)  Time elapsed: 0.995 s  <<< ERROR!
javax.xml.bind.DataBindingException: 
javax.xml.bind.JAXBException: Implementation of JAXB-API has not been found on module path or classpath.
 - with linked exception:
[java.lang.ClassNotFoundException: com.sun.xml.bind.v2.ContextFactory]
    at net.sf.okapi.steps.ttxsplitter.TTXSplitterTest.splitThenJoin(TTXSplitterTest.java:86)
    at net.sf.okapi.steps.ttxsplitter.TTXSplitterTest.testSplitThenJoinSegmented(TTXSplitterTest.java:40)
Caused by: javax.xml.bind.JAXBException: Implementation of JAXB-API has not been found on module path or classpath.
    at net.sf.okapi.steps.ttxsplitter.TTXSplitterTest.splitThenJoin(TTXSplitterTest.java:86)
    at net.sf.okapi.steps.ttxsplitter.TTXSplitterTest.testSplitThenJoinSegmented(TTXSplitterTest.java:40)
Caused by: java.lang.ClassNotFoundException: com.sun.xml.bind.v2.ContextFactory
    at net.sf.okapi.steps.ttxsplitter.TTXSplitterTest.splitThenJoin(TTXSplitterTest.java:86)
    at net.sf.okapi.steps.ttxsplitter.TTXSplitterTest.testSplitThenJoinSegmented(TTXSplitterTest.java:40)

[ERROR] testSplitThenJoinNotSegmented(net.sf.okapi.steps.ttxsplitter.TTXSplitterTest)  Time elapsed: 0.345 s  <<< ERROR!
javax.xml.bind.DataBindingException: 
javax.xml.bind.JAXBException: Implementation of JAXB-API has not been found on module path or classpath.
 - with linked exception:
[java.lang.ClassNotFoundException: com.sun.xml.bind.v2.ContextFactory]
    at net.sf.okapi.steps.ttxsplitter.TTXSplitterTest.splitThenJoin(TTXSplitterTest.java:86)
    at net.sf.okapi.steps.ttxsplitter.TTXSplitterTest.testSplitThenJoinNotSegmented(TTXSplitterTest.java:47)
Caused by: javax.xml.bind.JAXBException: Implementation of JAXB-API has not been found on module path or classpath.
    at net.sf.okapi.steps.ttxsplitter.TTXSplitterTest.splitThenJoin(TTXSplitterTest.java:86)
    at net.sf.okapi.steps.ttxsplitter.TTXSplitterTest.testSplitThenJoinNotSegmented(TTXSplitterTest.java:47)
Caused by: java.lang.ClassNotFoundException: com.sun.xml.bind.v2.ContextFactory
    at net.sf.okapi.steps.ttxsplitter.TTXSplitterTest.splitThenJoin(TTXSplitterTest.java:86)
    at net.sf.okapi.steps.ttxsplitter.TTXSplitterTest.testSplitThenJoinNotSegmented(TTXSplitterTest.java:47)

The abovementioned failures are from this job in our CI.

For more info on the history of this behaviour please refer to the failing pipelines list here.

Comments (4)

  1. Denis Konovalyenko reporter

    Here are more details from the manual run:

    java.lang.NoClassDefFoundError: javax/xml/bind/JAXBException
        at org.xmlunit.builder.Input.fromJaxb(Input.java:157)
        at org.xmlunit.builder.Input.from(Input.java:148)
        at org.xmlunit.builder.DiffBuilder.getSource(DiffBuilder.java:139)
        at org.xmlunit.builder.DiffBuilder.compare(DiffBuilder.java:124)
        at org.xmlunit.matchers.CompareMatcher.<init>(CompareMatcher.java:107)
        at org.xmlunit.matchers.CompareMatcher.isSimilarTo(CompareMatcher.java:133)
        at net.sf.okapi.filters.openxml.TestXMLSerializer.testAttrQuoting(TestXMLSerializer.java:59)
    ...
    Caused by: java.lang.ClassNotFoundException: javax.xml.bind.JAXBException
        at java.base/jdk.internal.loader.BuiltinClassLoader.loadClass(BuiltinClassLoader.java:581)
        at java.base/jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(ClassLoaders.java:178)
        at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:521)
        ... 33 more
    

    Will add the required JAXB implementation to the dependencies and open a PR…

  2. Log in to comment