java.lang.LinkageError - Issue Accessing Excel Data Files in Katalon

Hi Team,

We are encountering the following issue when trying to access data files in Excel format.

We have tested with multiple Java versions (8 and above), but the issue persists.
Our current Katalon Studio version is 10.4.1.

Additionally, when we include the xercesImpl-2.12.2.jar file, the test suite runs with the below error. Without it, the execution ends immediately and displays “Done.”

Could you please help us investigate this issue?

Reason:

java.lang.LinkageError: loader constraint violation in interface itable initialization for class org.apache.xerces.dom.NodeImpl: when selecting method ‘org.w3c.dom.NodeList org.w3c.dom.Node.getChildNodes()’ the class loader ‘bootstrap’ for super interface org.w3c.dom.Node, and the class loader org.codehaus.groovy.tools.RootLoader @6e6c3152 of the selected method’s abstract class, org.apache.xerces.dom.NodeImpl have different Class objects for the type org.w3c.dom.NodeList used in the signature (org.w3c.dom.Node is in module java.xml of loader ‘bootstrap’; org.apache.xerces.dom.NodeImpl is in unnamed module of loader org.codehaus.groovy.tools.RootLoader @6e6c3152, parent loader ‘app’)

Thanks,

NEC

2 Likes

Hi NEC,

Thank you for reaching out and for sharing these detailed observations. I’ve passed this matter to our Katalon Support Team, who will be able to investigate it further and assist you directly.

You should be hearing back from them shortly.

Best regards,
Bella

Hi NEC,

Let me break down the issues below for more details:

  1. Access data files in Excel format

I understand that you would like to work with Excel data files, hence, I’d like to introduce the Excel Keywords plugin that supports reading, writing, and comparing Excel files. Have you got a chance to try it out yet?

  1. Adding xercesImpl-2.12.2.jar

Can you help to share details about why you want to use this jar file? Currently, Katalon Studio 10.4.1 uses built-in XML libraries from the Java platform module**java.xml**. When you add xercesImpl-2.12.2.jar, it creates a duplicate XML parsing library. If you don’t really need it, please remove this jar file and try Excel Keywords plugin above.

Also, Katalon Studio includes a bundled Java Runtime Environment (JRE) that comes with the application. When you download and install Katalon Studio on Windows, it automatically includes everything needed to run. Hence, you don’t need to use other Java versions unless your library jar file requires specific Java version.

Since you’re our paid users, feel free to submit a ticket on our Katalon Support Portal and our Support Agent will help you out.

Need a quick answer while you wait? You can ask our new Support Assistant chat agent, available 24/7 to help answer common questions instantly. Visit it here: Katalon Support Assistant

Hi Kim,

  1. Yes we have tried using the list of data in the excel format and it will be read in a sequential on each execution. We will try to use ExceKeywords.
  2. Without xercesImpl-2.12.2.jar we could not run Test cases / test suite (Current Katalon Version 10.4.1) It just ends with “Done”.
  3. We will submit the ticket to support portal.

Hi Kim,

We have uninstalled and reinstalled Katalon Studio version 10.4.1, and the test cases are now running successfully.

The exact root cause of the issue during the automatic upgrade from version 10.3.2 to 10.4.1 is unclear. However, after removing the leftover folders:

C:\Users\Katalon Studio
C:\Users\AppData\Local\KatalonStudio\

and performing a clean installation of version 10.4.1, the issue was resolved and the test cases executed successfully.

Thanks,

NEC

1 Like