Forum Discussion

Srikanth9864's avatar
Srikanth9864
New Contributor
20 days ago

TestComplete Support Plugin Compatibility Issue

Environment.
- TestComplete Support Jenkins Plugin version: 2.10
- Jenkins version: 2.555.1
- Java version: 21.0.7

 

This are Console logs generated once the build is completed.

[TestComplete] Test runner exit code: 0.

[TestComplete] [WARNING] Unable to publish test results (xml data is empty)

The TestComplete plugin throws a ClassNotFoundException for 
javax.xml.bind.DatatypeConverter when running on Java 21. 
This causes all TestComplete jobs to fail.

java.lang.ClassNotFoundException: javax.xml.bind.DatatypeConverter
    at java.base/java.net.URLClassLoader.findClass(URLClassLoader.java:445)
Caused: java.lang.NoClassDefFoundError: javax/xml/bind/DatatypeConverter
    at PluginClassLoader for TestComplete//com.smartbear.jenkins.plugins.testcomplete.parser.LogNodeUtils.startTimeToTimestamp(LogNodeUtils.java:425)
    at PluginClassLoader for TestComplete//com.smartbear.jenkins.plugins.testcomplete.parser.LogParser2.convertSummaryToXML(LogParser2.java:216)
    at PluginClassLoader for TestComplete//com.smartbear.jenkins.plugins.testcomplete.parser.LogParser2.parse(LogParser2.java:278)

In the attached screen we are unable to view Graph and Test complete test results as previously.

7 Replies

    • Tony9's avatar
      Tony9
      Occasional Contributor

       

      how is this going? did SB resolve the problems? I hit this issue too. can someone share the progress here, thanks a lot.

      • Srikanth9864's avatar
        Srikanth9864
        New Contributor

        No the smartbear didn't solve it, it keep this issue as awaiting fix.

  • scot1967's avatar
    scot1967
    Icon for Champion Level 3 rankChampion Level 3

    Hi Srikanth9864, ๐Ÿ‘‹๐Ÿผ

    From my searches I think this is a known Java compatibility issue, not a TestComplete bug or misconfiguration.  However, a support ticket would be worth submitting to verify and make the support team aware of the problem.

    The short answer: Java 21 + TestComplete plugin 2.10 is a broken combination for result publishing. Java 17 is the safer choice until SmartBear ships a fix.

    For reference on the Java/JAXB compatibility issue: https://www.aviator.co/blog/java-version-upgrade/

    Which Java version is better, 17 or 21?

    Both are great, but Java 17 is an LTS release and thus the safer default for enterprise environments. Java 21 is also an LTS and includes more recent features like virtual threads. Choose based on your support needs and plan.

    For SmartBear's current Jenkins integration requirements: https://support.smartbear.com/testcomplete/docs/working-with/integration/jenkins/index.html

    ... If you find my posts helpful drop me a Like๐Ÿ‘ Be sure to mark the post as the Solutionโœ… when you get one to help others out and to credit the one who helped you. ๐Ÿ˜Ž

  • siho's avatar
    siho
    Occasional Visitor

    I fixed this for us by replacing the deprecated JAXB DatatypeConverter with java.time. Until they provide an official fix, you can give it a try: