Katalon gives error while running test suite in dockers integration with Gitlab

docker run -t --rm -v “$(pwd)”:/katalon/katalon/source katalonstudio/katalon katalonc.sh -browserType=“Chrome” -statusDelay=${statusDelay} -retry=${retry} -retryFailedTestCases=${retryFailedTestCases} -executionProfile=“default” -projectPath=’/katalon/katalon/source/sample.prj’ -testSuitePath="${testSuitePath}" -apiKey=${apiKey} --config -proxy.auth.option=NO_PROXY -proxy.system.option=NO_PROXY -proxy.system.applyToDesiredCapabilities=true

I have purchased a license though, but don’t know is it correct or not. Another point is, I’m trying to use dind service for dockers, is it okay to use it with Katalon docker image?

I’m using this command to run docker and the pipeline always fail with the error stated below: there are 2 types of error, on before checking the license and one after it:

  1. First error before checking licensing step:

Tue Oct 20 06:47:20 UTC 2020
Java Model Exception: Java Model Status [2 [in BasePage [in BasePage.groovy [in com.pages [in Keywords [in %katalon%katalon%source%sample.prj]]]]] does not exist]
at org.eclipse.jdt.internal.core.JavaElement.newNotPresentException(JavaElement.java:557)
at org.eclipse.jdt.internal.core.JavaElement.openWhenClosed(JavaElement.java:599)
at org.eclipse.jdt.internal.core.JavaElement.getElementInfo(JavaElement.java:317)
at org.eclipse.jdt.internal.core.JavaElement.getElementInfo(JavaElement.java:303)
at org.eclipse.jdt.internal.core.JavaElement.getChildren(JavaElement.java:258)
at org.eclipse.jdt.internal.core.JavaElement.getChildrenOfType(JavaElement.java:272)
at org.eclipse.jdt.internal.core.SourceType.getMethods(SourceType.java:420)
at com.kms.katalon.util.jdt.JDTUtil.findMethod(JDTUtil.java:47)
at com.kms.katalon.custom.parser.CustomKeywordParser.findJavadoc(CustomKeywordParser.java:299)
at com.kms.katalon.custom.parser.CustomKeywordParser.collectMethodJavadocs(CustomKeywordParser.java:292)
at com.kms.katalon.custom.parser.CustomKeywordParser.parseCustomKeywordFile(CustomKeywordParser.java:278)
at com.kms.katalon.custom.parser.CustomKeywordParser.parseProjectCustomKeywords(CustomKeywordParser.java:81)
at com.kms.katalon.controller.KeywordController.parseAllCustomKeywords(KeywordController.java:152)
at com.kms.katalon.activation.plugin.service.PluginService.refreshProjectClasspath(PluginService.java:402)
at com.kms.katalon.activation.plugin.service.PluginService.reloadPlugins(PluginService.java:231)
at com.kms.katalon.activation.plugin.handler.ConsoleModeReloadPluginsHandler.reload(ConsoleModeReloadPluginsHandler.java:22)
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 com.kms.katalon.execution.console.ConsoleMain.reloadPlugins(ConsoleMain.java:384)
at com.kms.katalon.execution.console.ConsoleMain.launch(ConsoleMain.java:311)
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)

  1. Error after checking the license step:

Start check license task
com.kms.katalon.execution.exception.ExecutionException: java.lang.NullPointerException
at com.kms.katalon.execution.console.entity.TestSuiteLauncherOptionParser.getConsoleLauncher(TestSuiteLauncherOptionParser.java:266)
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)
Caused by: java.lang.NullPointerException
at com.kms.katalon.execution.entity.TestSuiteExecutedEntity.setTestSuite(TestSuiteExecutedEntity.java:96)
at com.kms.katalon.execution.entity.TestSuiteExecutedEntity.(TestSuiteExecutedEntity.java:81)
at com.kms.katalon.execution.console.entity.TestSuiteLauncherOptionParser.buildRunConfig(TestSuiteLauncherOptionParser.java:285)
at com.kms.katalon.execution.console.entity.TestSuiteLauncherOptionParser.getConsoleLauncher(TestSuiteLauncherOptionParser.java:263)
… 18 more

All launchers terminated

  • ret_code=2
  • exit 2
    Cleaning up file based variables
    ERROR: Job failed: exit code 1

Can some please help me in this? It’s really urgent.

1 Like

Yah saw this error too when using katalon docker image 7.7.2

Hi Nathaniel,

Any idea how to resolve it?

Hi @nathaniel.s.thompson, @gandhirk,

For the first issue, you can ignore it because it will not affect your test.

Did the second issue still happen in v7.7.2?

Hi @duyluong,

Yes, still happening. I check it today and still the same. what should I do?
Please help me.

Hi @gandhirk,

Can you share the full console log in private chat?

No idea how to resolve it, we are just using an older version at the moment.

Thanks Nathaniel. I’m send the details to Duy Luong, if we can solve it, then I’ll write down here.

hallo @gandhirk

any update about this issue?

Hi @Alwan_Firdaus,

Does this happen when you run on your local machine or with Gitlab only? If yes, please run again on your local machine and share the log file.

hallo @duyluong

in katalon 7.3.5 and 7.7.2 with jenkins, Start getting machine ID on Linux and licenseType=ENTERPRISE…

this is a few line of log

    java.lang.NullPointerException
    at com.kms.katalon.util.jdt.JDTUtil.findMethod(JDTUtil.java:47)
    at com.kms.katalon.custom.parser.CustomKeywordParser.findJavadoc(CustomKeywordParser.java:299)
    at com.kms.katalon.custom.parser.CustomKeywordParser.collectMethodJavadocs(CustomKeywordParser.java:292)
    at com.kms.katalon.custom.parser.CustomKeywordParser.parseCustomKeywordFile(CustomKeywordParser.java:278)
    at com.kms.katalon.custom.parser.CustomKeywordParser.parseProjectCustomKeywords(CustomKeywordParser.java:81)

@Alwan_Firdaus

Can you share the full log? Btw, the error will be fixed in the next release.

@duyluong

the report generate just this two file

Screen Shot 2020-11-13 at 18.20.31

@duyluong

this is the full log i get from console

java.lang.NullPointerException
	at com.kms.katalon.util.jdt.JDTUtil.findMethod(JDTUtil.java:47)
	at com.kms.katalon.custom.parser.CustomKeywordParser.findJavadoc(CustomKeywordParser.java:299)
	at com.kms.katalon.custom.parser.CustomKeywordParser.collectMethodJavadocs(CustomKeywordParser.java:292)
	at com.kms.katalon.custom.parser.CustomKeywordParser.parseCustomKeywordFile(CustomKeywordParser.java:278)
	at com.kms.katalon.custom.parser.CustomKeywordParser.parseProjectCustomKeywords(CustomKeywordParser.java:81)
	at com.kms.katalon.controller.KeywordController.parseAllCustomKeywords(KeywordController.java:152)
	at com.kms.katalon.activation.plugin.service.PluginService.refreshProjectClasspath(PluginService.java:402)
	at com.kms.katalon.activation.plugin.service.PluginService.reloadPlugins(PluginService.java:231)
	at com.kms.katalon.activation.plugin.handler.ConsoleModeReloadPluginsHandler.reload(ConsoleModeReloadPluginsHandler.java:22)
	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 com.kms.katalon.execution.console.ConsoleMain.reloadPlugins(ConsoleMain.java:384)
	at com.kms.katalon.execution.console.ConsoleMain.launch(ConsoleMain.java:311)
	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)

Still feel this issue is present in some capacity, I can’t run dynamic test suites using the Katalon Runtime Engine on Jenkins, leveraging Katalon’s docker container: Is Katalon Dynamic Test Suite broken for Katalon runtimeengine?