Katalon 7.9.1 katalon fails working with web service and data files

In my Katalon Studio 7.9.1 on Mac, I made a Test Case script

import javax.xml.xpath.XPathConstants
import javax.xml.namespace.QName

URL u1 = XPathConstants.class.getResource("/" + XPathConstants.class.getName().replaceAll("\\.", "/") + ".class");
System.out.println(u1);

URL u2 = QName.class.getResource("/" + QName.class.getName().replaceAll("\\.", "/") + ".class");
System.out.println(u2);

println XPathConstants.NODE

When I ran this, I got the following message:

2021-03-19 23:49:37.824 INFO  c.k.katalon.core.main.TestCaseExecutor   - --------------------
2021-03-19 23:49:37.828 INFO  c.k.katalon.core.main.TestCaseExecutor   - START Test Cases/TCc
2021-03-19 23:49:39.103 DEBUG testcase.TCc                             - 1: u1 = XPathConstants.getResource("/" + getName().replaceAll("\.", "/") + ".class")
2021-03-19 23:49:39.120 DEBUG testcase.TCc                             - 2: out.println(u1)
jar:file:/Applications/Katalon%20Studio.app/Contents/Eclipse/jre/Contents/Home/lib/rt.jar!/javax/xml/xpath/XPathConstants.class
2021-03-19 23:49:39.162 DEBUG testcase.TCc                             - 3: u2 = QName.getResource("/" + getName().replaceAll("\.", "/") + ".class")
2021-03-19 23:49:39.188 DEBUG testcase.TCc                             - 4: out.println(u2)
jar:file:/Applications/Katalon%20Studio.app/Contents/Eclipse/configuration/resources/lib/stax-api-1.0.1.jar!/javax/xml/namespace/QName.class
2021-03-19 23:49:39.190 DEBUG testcase.TCc                             - 5: println(NODE)
{http://www.w3.org/1999/XSL/Transform}NODE
2021-03-19 23:49:39.207 INFO  c.k.katalon.core.main.TestCaseExecutor   - END Test Cases/TCc


This message tells me that javax.xml.namespace.QName class is loaded from jar:file:/Applications/Katalon%20Studio.app/Contents/Eclipse/configuration/resources/lib/stax-api-1.0.1.jar! file.

I believe that the QName class should not be loaded from stax-api-1.0.1,jar. It should be loaded from the rt.jar just as the XPathConstants class is loaded from the rt.jar. This is a bug mistakenly introduced in Katalon Studio 7.9.x.

@ThanhTo, @duyluong

Are you aware of this serious bug?


Once I enountered a similar issue as this. See


@mathiasduarte99

Please try removing the stax-api-1.0.1.jar out of your Katalon’s installation directory.

1 Like