Constantly getting unable to resolve class xxx when run on Jenkins

Tests integrated Jenkins, github, selenium grid.
Run command is : removed sensitive info
./katalon -noSplash -runMode=console -consoleLog -projectPath=“xxx/Platform.prj” -retry=0 -testSuiteCollectionPath=“Test Suites/Customer E2E Case/E2EQual” -remoteWebDriverType=“Selenium” -executionProfile=“default” -remoteWebDriverUrl=“http://10.xxx.xx.50:4444/wd/hub” -browserType=“Remote” --config -proxy.option=MANUAL_CONFIG -proxy.server.type=HTTP -proxy.server.address= “10.xxx.xxx.125” -proxy.server.port= “443”

.project file has this config:
<buildSpec>

<buildCommand>

<name>org.eclipse.jdt.core.javabuilder</name>
<arguments>
</arguments>
</buildCommand>
</buildSpec>
<natures>
<nature>org.eclipse.jdt.groovy.core.groovyNature</nature>
<nature>org.eclipse.jdt.core.javanature</nature>
</natures>

Part of the log as below, seems it cannot resolve any class:
/%home%xxx%jenkins1%workspace%egQual_Platform_zxl_general-MH6NSWR7OKSXOUJPHMMXOAARZLBRVCCMJIUQH3EWHI3SSOSPU5AA%Platform%Platform.prj/Keywords/aribaui/util/AribaUIHelper.groovy: 8 Groovy:unable to resolve class com.kms.katalon.core.annotation.Keyword
/%home%xxx%jenkins1%workspace%egQual_Platform_zxl_general-MH6NSWR7OKSXOUJPHMMXOAARZLBRVCCMJIUQH3EWHI3SSOSPU5AA%Platform%Platform.prj/Keywords/aribaui/util/AribaUIHelper.groovy: 9 Groovy:unable to resolve class com.kms.katalon.core.checkpoint.Checkpoint

/%home%xxx%jenkins1%workspace%egQual_Platform_zxl_general-MH6NSWR7OKSXOUJPHMMXOAARZLBRVCCMJIUQH3EWHI3SSOSPU5AA%Platform%Platform.prj/Keywords/testutils/RESTValidator.groovy: 1060 Groovy:class com.kms.katalon.core.annotation.Keyword is not an annotation in @com.kms.katalon.core.annotation.Keyword
/%home%xxx%jenkins1%workspace%egQual_Platform_zxl_general-MH6NSWR7OKSXOUJPHMMXOAARZLBRVCCMJIUQH3EWHI3SSOSPU5AA%Platform%Platform.prj/Keywords/testutils/SMHelperUtil.groovy: 6 Groovy:unable to resolve class com.kms.katalon.core.util.KeywordUtil
/%home%xxx%jenkins1%workspace%egQual_Platform_zxl_general-MH6NSWR7OKSXOUJPHMMXOAARZLBRVCCMJIUQH3EWHI3SSOSPU5AA%Platform%Platform.prj/Keywords/testutils/SMHelperUtil.groovy: 7 Groovy:unable to resolve class com.kms.katalon.core.testobject.RequestObject

Hi @zhuxinglun,

Please share us these information:

  • OS of your machine.
  • If you are running Katalon on a Linux machine, please install OpenJDK/ or OpenJRE 8 (not Oracle JDK/JRE).

https://docs.katalon.com/katalon-studio/docs/katalon-studio-for-linux-console-mode.html#execution

Thanks.

Hi @duyluong,

Thanks for your reply,
here is the execution log, tests run on Linux node and it has open jdk installed

debug info*****
/home/xxx/Katalon
openjdk version “1.8.0_45”
OpenJDK Runtime Environment (build 1.8.0_45-b13)
OpenJDK 64-Bit Server VM (build 25.45-b02, mixed mode)

Please upgrade OpenJDK to the latest version and show us the execution log again. Btw, I saw your last post but the framework has detected the JVM is Oracle JDK:

hmmm, curious.
Here is the log Jenkins printed:
!SESSION 2019-04-28 21:08:33.936 -----------------------------------------------
eclipse.buildId=unknown
java.version=1.8.0_45
java.vendor=Oracle Corporation
BootLoader constants: OS=linux, ARCH=x86_64, WS=gtk, NL=en_US

And when I put sh""“java -version”"" command in jenkinsfile, it gave me open jdk information.
Anyway I will upgrade it to OpenJDK latest version and see

Before upgrading, try delete these files:

  • .classpath
  • .project

Any updates on this?

I have removed both the .classpath & .project files from my base directory. However, I am still receiving hundreds of these Groovy: unable to resolve class errors.

1 Like