Webrequest gives error after update to 11.0.1

After updating from 10.1.1 to 11.0.1 I get an error when executing testcases.

The error occurs when a request is sent from a TestCase.

Somehow the request works when I click the ‘Play‘-button in the Object Repository

In my testcase I send a request to log the start of a testcase

Testcase:

import static com.kms.katalon.core.testobject.ObjectRepository.findTestObject

import com.kms.katalon.core.testobject.ResponseObject
import com.kms.katalon.core.webservice.keyword.WSBuiltInKeywords as WS

import internal.GlobalVariable as GlobalVariable

ResponseObject response = WS.sendRequest(findTestObject(‘Webservices/Log_message’, [(‘apikey’) : GlobalVariable.apikey_requests
, (‘message’) : var_melding]))

data_object = {
}

WS.verifyElementText(response, ‘Response.Status’, ‘OK’)

Error log in Katalon:

=============== ROOT CAUSE =====================
Caused by: java.lang.ClassNotFoundException: org.apache.commons.configuration2.ex.ConfigurationException

For trouble shooting, please visit: Troubleshoot common exceptions | Katalon Docs

03-03-2026 02:15:14 p.m. Test Cases/Modules/WebserviceRequests/BasisRequests/Log message

Elapsed time: 1,053s

Test Cases/Modules/WebserviceRequests/BasisRequests/Log message FAILED.
Reason:
com.kms.katalon.core.exception.StepFailedException: Unable to send request (Root cause: java.lang.NoClassDefFoundError: org/apache/commons/configuration2/ex/ConfigurationException
at com.github.markusbernhardt.proxy.ProxySearch.addStrategy(ProxySearch.java:149)
at com.kms.katalon.network.apache.services.HttpProxyConfigurator.getProxySelector(HttpProxyConfigurator.java:187)
at com.kms.katalon.network.apache.services.HttpProxyConfigurator.configureProxyAuth(HttpProxyConfigurator.java:147)
at com.kms.katalon.core.webservice.common.HttpUtil.sendRequest(HttpUtil.java:144)
at com.kms.katalon.core.webservice.common.BasicRequestor.send(BasicRequestor.java:56)
at com.kms.katalon.core.webservice.helper.WebServiceCommonHelper.sendRequest(WebServiceCom

1 Like

Hi @p.bos,

ClassNotFoundException / NoClassDefFoundError: org.apache.commons.configuration2.ex.ConfigurationException

Your error seems to point to a classpath issue triggered by proxy auto-configuration during execution, belongs to Apache Commons Configuration 2 (the commons-configuration2 library).

Quick workaround can be to set Preferences → Proxy to No proxy (if you don’t need one) or Manual proxy (if you’re behind a corporate proxy).

Further fix is to add commons-configuration2-<version>.jar (and any missing dependencies) into Drivers/ and restart. If still failing, test with all custom plugins disabled to rule out incompatible libraries post-KS 11 runtime upgrade.

Learn how to migrate from v10 to v11 here: Migrate Katalon Studio from 10.x to 11.x | Katalon Docs.

Hope this can help. Thanks

2 Likes

Katalon Studio 11.0.1 upgrade breaks WS.sendRequest due to proxy auto-config changes relying on Apache Commons Configuration 2 (missing ConfigurationException class), triggered by BrowserMob proxy detection during HTTP requests.​

Quick Proxy Fix

Preferences > Katalon > Proxy → Select No Proxy or Disable BrowserMob proxy checkbox. Save; restart Studio. Test request in Object Repo (works as it bypasses proxy selector).​

If proxy needed:

  • Downgrade to 10.4.x via Help > Check for Updates > Rollback.
  • Tools > Update WebDrivers (ensures Selenium 4.25+ compat).
  • CLI: Add --no-proxy or set Dhttp.proxyHost=no in katalon.ini.​

Code Workaround

Wrap in try-catch suppressing proxy:

import com.kms.katalon.core.testobject.ResponseObject
import com.kms.katalon.core.webservice.keyword.WSBuiltInKeywords as WS
import static com.kms.katalon.core.testobject.ObjectRepository.findTestObject

System.setProperty('proxySet', 'false')  // Disable proxy
ResponseObject response = WS.sendRequest(findTestObject('Webservices/Log_message', [('apikey'): GlobalVariable.apikey_requests, ('message'): var_melding]))
WS.verifyElementText(response, 'Response.Status', 'OK')
2 Likes

After upgrading from Katalon Studio 10.1.1 to 11.0.1, sending a WebService request from a Test Case fails with NoClassDefFoundError / ClassNotFoundException for org.apache.commons.configuration2.ex.ConfigurationException. The request still succeeds when run from the Object Repository GUI “Play” button.

Cause (most likely)

The stack shows ProxySearch.addStrategy → HttpProxyConfigurator → HttpUtil. Katalon’s HTTP/proxy configuration code depends on Apache Commons Configuration (commons-configuration2). The error means that the commons-configuration2 class isn’t on the runtime classpath when executing the Test Case. The discrepancy between Object Repository (works) and Test Case (fails) usually indicates a classpath difference at runtime caused by:

  • A missing required jar (commons-configuration2 and possibly its transitive dependencies) in the runtime classpath used for Test Case execution, or

  • A conflicting/duplicate or incompatible jar placed in the project’s Drivers/Plugins locations that overrides or removes the correct dependency after the upgrade.

SOlution is simple
Add jars to Drivers and restart Katalon

1 Like

Thanks all for the quick responses.

I added ‘commons-configuration2-2.13.0.jar‘ tot the resources\lib directory and now it works perfectly!