NullPointerException when executing via RuntimeEngine

Hello,

I have some problems executing a collection test suite from a Jenkins job, using katalon docker image
We are using a custom built image in order to inject some data (proxy and such)

With an image based on katalon:7.2.5, the collection is executed nicely from Jenkins
With an image based on katalon7.7.2 I come across a Null Pointer Exception (logs below)

The only difference between the two is the version of the official katalon image we base our custom one on.

Here are some logs with the stack trace:

INFO: Katalon Version: 7.7.2
INFO: Command-line arguments: --propertiesFile=/katalon/console.properties -projectPath=. -apiKey=******** -testSuiteCollectionPath=Test Suites/Remote --config -proxy.option=MANUAL_CONFIG -proxy.server.type=HTTP -proxy.excludes=****** -proxy.server.address=***** -proxy.server.port=8080 -proxy.username=*****-proxy.password=********
[...]
Start check license task
chromedriver is located at default location: /opt/katalonstudio/configuration/resources/drivers/chromedriver_linux64/chromedriver. In case your browser is updated to a newer version, please use this command to update chromdriver: --config -webui.autoUpdateDrivers=true
java.lang.NullPointerException
at com.kms.katalon.execution.launcher.TestSuiteCollectionConsoleLauncher.buildLauncher(TestSuiteCollectionConsoleLauncher.java:215)
at com.kms.katalon.execution.launcher.TestSuiteCollectionConsoleLauncher.buildSubLaunchers(TestSuiteCollectionConsoleLauncher.java:141)
at com.kms.katalon.execution.launcher.TestSuiteCollectionConsoleLauncher.newInstance(TestSuiteCollectionConsoleLauncher.java:83)
at com.kms.katalon.execution.console.entity.TestSuiteCollectionLauncherOptionParser.getConsoleLauncher(TestSuiteCollectionLauncherOptionParser.java:94)
at com.kms.katalon.execution.console.ConsoleExecutor.execute(ConsoleExecutor.java:74)
at com.kms.katalon.execution.console.ConsoleMain.launch(ConsoleMain.java:352)
at com.kms.katalon.console.application.ConsoleApplicationStarter.start(ConsoleApplicationStarter.java:37)
at com.kms.katalon.application.Application.runConsole(Application.java:125)
at com.kms.katalon.application.Application.start(Application.java:88)
at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:134)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:104)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:388)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:243)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:673)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:610)
at org.eclipse.equinox.launcher.Main.run(Main.java:1519)
at org.eclipse.equinox.launcher.Main.main(Main.java:1492)

All launchers terminated

Thank you for your help !

Hi @laurent.mangin,

Can you share the error log file that was printed at this line:

INFO: Error log: ...

We need this file for further investigation.

Hi @duyluong ,

Here it is :katalon.log (5.2 KB)

Hi @laurent.mangin,

One of the test suites in the test suite collection could not be found. Can you share your project with only test suite folders in the private chat?

Problem was a relocation of a test suite while the corresponding .ts file was not updated, causing a NPE at runtime.

1 Like

Could you please advise on how I can identify the particular test suite that’s erred?