Hello there,
Basic info:
Katalon Version: 9.3.1
Local OS: Windows 10 64bit
Java version: 17.0.7
Intro and insights from searching for similar topics:
We have been using Katalon Runtime Engine (KRE) since version 7.X.
We use Jenkins and GIT with KRE (it’s always up to date, so version 9.3.1 for now).
We also use Wokspace cleanup ([WS-CLEANUP]) before and after the run of automated tests.
We don’t have the “bin” folder in our GIT.
Problem:
We think it started from Katalon Version 9.X.
This error is displayed completely randomly after the step “Opening project file”.
As I mentioned before:
- we don’t have the “bin” folder in GIT
- we use Jenkins with Wokspace cleanup ([WS-CLEANUP]) before and after the test run
The error is displayed even though there isn’t such file or diractory before the test run (in addition, jenkins takes care of it by using WS-CLEANUP)
org.eclipse.core.internal.resources.ResourceException(/c%%jenkins%czsjenkins01%workdir%workspace%katalon-gpk-SMOKE_FULL_develop%katalon-gpk.prj/bin)[374]: java.lang.Exception: Resource '/c%%jenkins%czsjenkins01%workdir%workspace%katalon-gpk-SMOKE_FULL_develop%katalon-gpk.prj/bin' already exists.
at org.eclipse.core.internal.resources.ResourceException.provideStackTrace(ResourceException.java:42)
at org.eclipse.core.internal.resources.ResourceException.<init>(ResourceException.java:38)
at org.eclipse.core.internal.resources.Resource.checkDoesNotExist(Resource.java:309)
at org.eclipse.core.internal.resources.Resource.checkDoesNotExist(Resource.java:296)
at org.eclipse.core.internal.resources.Folder.assertCreateRequirements(Folder.java:33)
at org.eclipse.core.internal.resources.Folder.create(Folder.java:94)
at org.eclipse.core.internal.resources.Folder.create(Folder.java:122)
at com.kms.katalon.groovy.util.GroovyUtil.emptyProjectClasspath(GroovyUtil.java:193)
at com.kms.katalon.groovy.util.GroovyUtil.initGroovyProject(GroovyUtil.java:183)
at com.kms.katalon.controller.ProjectController.openProject(ProjectController.java:222)
at com.kms.katalon.console.handlers.ProjectHandler.getProject(ProjectHandler.java:71)
at com.kms.katalon.console.handlers.ProjectHandler.findProject(ProjectHandler.java:44)
at com.kms.katalon.console.application.ConsoleMain.launch(ConsoleMain.java:141)
at com.kms.katalon.console.application.ConsoleApplicationStarter.start(ConsoleApplicationStarter.java:36)
at com.kms.katalon.application.Application.runConsole(Application.java:137)
at com.kms.katalon.application.Application.start(Application.java:98)
at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:203)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:136)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:104)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:402)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:255)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.base/java.lang.reflect.Method.invoke(Method.java:568)
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:659)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:596)
at org.eclipse.equinox.launcher.Main.run(Main.java:1467)
The whole log from Jenkins
Started by upstream project "katalon-gpk-SMOKE_FULL-scheduler-with-deploy" build number 342
originally caused by:
Started by timer
Obtained Jenkins/Jenkinsfile-SMOKE_FULL from 78e6fb24291b3bc2d4b08d22c3ac1a1dfa10760a
Loading library utils@master
Attempting to resolve master from remote references...
> git --version # timeout=10
> git --version # 'git version 2.30.2'
using GIT_ASKPASS to set credentials Jenkins-GIT
> git ls-remote -h -- XXXXXXXXXX.git # timeout=10
Found match: refs/heads/master revision 95a576fe15acdd0f80796fff6dd34544df77d8ee
The recommended git tool is: NONE
using credential a504bcbe-4bd2-4168-897d-4926c86e203d
> git rev-parse --resolve-git-dir /var/jenkins_home/jobs/katalon-gpk-SMOKE_FULL/branches/develop/workspace@libs/b6240cf8dc7779d75ce6e9085f518cab14ceb82e80b34e81306080bfb2359d51/.git # timeout=10
Fetching changes from the remote Git repository
> git config remote.origin.url XXXXXXXXXX # timeout=10
Fetching without tags
Fetching upstream changes from XXXXXXXXXX.git
> git --version # timeout=10
> git --version # 'git version 2.30.2'
using GIT_ASKPASS to set credentials Jenkins-GIT
> git fetch --no-tags --force --progress -- XXXXXXXXXX.git +refs/heads/*:refs/remotes/origin/* # timeout=10
Checking out Revision 95a576fe15acdd0f80796fff6dd34544df77d8ee (master)
> git config core.sparsecheckout # timeout=10
> git checkout -f 95a576fe15acdd0f80796fff6dd34544df77d8ee # timeout=10
Commit message: "Added gitTagCommit"
> git rev-list --no-walk 95a576fe15acdd0f80796fff6dd34544df77d8ee # timeout=10
[Bitbucket] Notifying commit build result
Loading library katalon@master
Attempting to resolve master from remote references...
> git --version # timeout=10
> git --version # 'git version 2.30.2'
using GIT_ASKPASS to set credentials Jenkins-GIT
> git ls-remote -h -- XXXXXXXXXX.git # timeout=10
Found match: refs/heads/master revision 34da16ff0bbff7b3f2b22b04808cfff24942a7ab
The recommended git tool is: NONE
using credential a504bcbe-4bd2-4168-897d-4926c86e203d
> git rev-parse --resolve-git-dir /var/jenkins_home/jobs/katalon-gpk-SMOKE_FULL/branches/develop/workspace@libs/e2e4523e54c32680bd1c157591db7bf2e4c84fb33a7402353ce2f81246a26320/.git # timeout=10
Fetching changes from the remote Git repository
> git config remote.origin.url XXXXXXXXXX.git # timeout=10
Fetching without tags
Fetching upstream changes from XXXXXXXXXX
> git --version # timeout=10
> git --version # 'git version 2.30.2'
using GIT_ASKPASS to set credentials Jenkins-GIT
> git fetch --no-tags --force --progress -- XXXXXXXXXX
+refs/heads/*:refs/remotes/origin/* # timeout=10
Checking out Revision 34da16ff0bbff7b3f2b22b04808cfff24942a7ab (master)
> git config core.sparsecheckout # timeout=10
> git checkout -f 34da16ff0bbff7b3f2b22b04808cfff24942a7ab # timeout=10
Commit message: "CHANGE;Added automatic releasing fix actualCommit"
> git rev-list --no-walk 34da16ff0bbff7b3f2b22b04808cfff24942a7ab # timeout=10
[Pipeline] Start of Pipeline
[Pipeline] echo
Katalon started with config: [consoleProperties:Jenkins\console-SMOKE_FULL.properties, project:katalon-gpk.prj, defaultBranch:null, lockResourceName:[AT:gpk-at-env-deploy], timeoutMinutes:80]
[Pipeline] properties
[Pipeline] node
Still waiting to schedule task
Waiting for next available executor on ‘VDI10’
Running on VDI10 in c:\jenkins\czsjenkins01\workdir\workspace\katalon-gpk-SMOKE_FULL_develop
[Pipeline] {
[Pipeline] cleanWs
**[WS-CLEANUP] Deleting project workspace...**
**[WS-CLEANUP] Deferred wipeout is used...**
**[WS-CLEANUP] done**
[Pipeline] stage
[Pipeline] { (Checkout)
[Pipeline] checkout
The recommended git tool is: NONE
using credential a504bcbe-4bd2-4168-897d-4926c86e203d
Cloning the remote Git repository
Cloning with configured refspecs honoured and without tags
Cloning repository XXXXXXXXXX.git
> git init c:\jenkins\czsjenkins01\workdir\workspace\katalon-gpk-SMOKE_FULL_develop # timeout=10
Fetching upstream changes from XXXXXXXXXX.git
> git --version # timeout=10
> git --version # 'git version 2.25.0.windows.1'
using GIT_ASKPASS to set credentials Jenkins-GIT
> git fetch --no-tags --force --progress -- XXXXXXXXXX.git +refs/heads/develop:refs/remotes/origin/develop # timeout=10
Avoid second fetch
Checking out Revision 78e6fb24291b3bc2d4b08d22c3ac1a1dfa10760a (develop)
> git config remote.origin.url XXXXXXXXXX.git # timeout=10
> git config --add remote.origin.fetch +refs/heads/develop:refs/remotes/origin/develop # timeout=10
> git config core.sparsecheckout # timeout=10
> git checkout -f 78e6fb24291b3bc2d4b08d22c3ac1a1dfa10760a # timeout=10
Commit message: "Pull request #269: FIX;fix GPK_521 tBody"
> git rev-list --no-walk 78e6fb24291b3bc2d4b08d22c3ac1a1dfa10760a # timeout=10
[Pipeline] }
[Pipeline] // stage
[Pipeline] stage
[Pipeline] { (Loading profile)
[Pipeline] fileExists
[Pipeline] readProperties
[Pipeline] echo
Loaded profile properties (Jenkins\profiles\AT.properties) from workspace: [databaseUrl: XXXXXXXXXX]
[Pipeline] }
[Pipeline] // stage
[Pipeline] stage
[Pipeline] { (Overriding settings)
[Pipeline] echo
Loading project database properties: settings\external\com.kms.katalon.core.db.DatabaseSettings.properties
[Pipeline] readProperties
[Pipeline] echo
Loaded project database settings: [PASSWORD:, SECURE_USER_ACCOUNT:false, CONNECTION_PROPERTIES:{
"connectionProperty": [],
"props": {}
}, DRIVERCLASSNAME:, USER:, SHOW_WARNING:false, URL: XXXXXXXXXX]
[Pipeline] echo
Writing overridden database properties file: settings\external\com.kms.katalon.core.db.DatabaseSettings.properties
[Pipeline] writeFile
[Pipeline] echo
Database URL was overridden to: XXXXXXXXXX
[Pipeline] }
[Pipeline] // stage
[Pipeline] stage
[Pipeline] { (Test)
[Pipeline] timeout
Timeout set to expire in 1 hr 20 min
[Pipeline] {
[Pipeline] lock
Trying to acquire lock on [gpk-at-env-deploy]
Resource [gpk-at-env-deploy] did not exist. Created.
Lock acquired on [gpk-at-env-deploy]
[Pipeline] {
[Pipeline] withCredentials
Masking supported pattern matches of %API_KEY%
[Pipeline] {
[Pipeline] bat
Warning: A secret was passed to "bat" using Groovy String interpolation, which is insecure.
Affected argument(s) used the following variable(s): [API_KEY]
See https://jenkins.io/redirect/groovy-string-interpolation for details.
c:\jenkins\czsjenkins01\workdir\workspace\katalon-gpk-SMOKE_FULL_develop>C:\katalon_engine\katalonc -licenseRelease=true -orgID= XXXXXXXXXX -noSplash -runMode=console -browserType=Chrome -executionProfile="AT" -propertiesFile="c:\jenkins\czsjenkins01\workdir\workspace\katalon-gpk-SMOKE_FULL_develop\Jenkins\console-SMOKE_FULL.properties" -projectPath="c:\jenkins\czsjenkins01\workdir\workspace\katalon-gpk-SMOKE_FULL_develop\katalon-gpk.prj" -apiKey="****" --config -proxy.auth.option=MANUAL_CONFIG -proxy.auth.server.type=HTTPS -proxy.auth.server.address= XXXXXXXXXX -proxy.auth.server.port=8080 -proxy.system.option=MANUAL_CONFIG -proxy.system.server.type=HTTPS -proxy.system.server.address= XXXXXXXXXX -proxy.system.server.port=8080 -proxy.system.applyToDesiredCapabilities=true -proxy.system.excludes=" XXXXXXXXXX" -webui.autoUpdateDrivers=true
Katalon workspace folder is set to default location: C:\Users\JOK_BU~1\AppData\Local\Temp\session-37a345c0
Starting Groovy-Eclipse compiler resolver. Specified compiler level: unspecified
167 org.codehaus.groovy_3.0.17.v202303311542-e2303 ACTIVE
INFO: [Proxy Configurations]
INFO: > Authentication Proxy: { proxyOption=MANUAL_CONFIG, proxyServerType=HTTPS, proxyServerAddress= XXXXXXXXXX, proxyServerPort=8080, username=, password=********, executionList="" }
INFO: > System Proxy: { proxyOption=MANUAL_CONFIG, proxyServerType=HTTPS, proxyServerAddress= XXXXXXXXXX, proxyServerPort=8080, username=, password=********, executionList=" XXXXXXXXXX", isApplyToDesiredCapabilities=true }
Activating...
Start getting machine ID on Windows
Start appending additional signatures
hardwareSerialNumber vmware-42
osDependentUsername jok_builder
End appending additional signatures c3dbc8a0-b131-46be-83e7-0fe04b224eaa__jok_builder
End getting machine ID on Windows XXXXXXXXXX
Start activating offline...
Search for valid offline licenses in folder: C:\Users\Jok_builder\.katalon\license
The number of valid offline licenses: 0
Start activating online...
Start release license task
License released
End release license task
Activated successfully with Katalon Runtime Engine license.
Failed to activate with TestCloud license.
INFO: Katalon Version: 9.3.0
INFO: Command-line arguments: -licenseRelease=true -orgID=378783 -runMode=console -browserType=Chrome -executionProfile=AT -propertiesFile=c:\jenkins\czsjenkins01\workdir\workspace\katalon-gpk-SMOKE_FULL_develop\Jenkins\console-SMOKE_FULL.properties -projectPath=c:\jenkins\czsjenkins01\workdir\workspace\katalon-gpk-SMOKE_FULL_develop\katalon-gpk.prj -apiKey=******** --config -proxy.auth.option=MANUAL_CONFIG -proxy.auth.server.type=HTTPS -proxy.auth.server.address= XXXXXXXXXX -proxy.auth.server.port=8080 -proxy.system.option=MANUAL_CONFIG -proxy.system.server.type=HTTPS -proxy.system.server.address= XXXXXXXXXX -proxy.system.server.port=8080 -proxy.system.applyToDesiredCapabilities=true -proxy.system.excludes= XXXXXXXXXX -webui.autoUpdateDrivers=true
INFO: User working dir: c:\jenkins\czsjenkins01\workdir\workspace\katalon-gpk-SMOKE_FULL_develop
INFO: Error log: C:/Users/Jok_builder/AppData/Local/Temp/session-37a345c0/.metadata/.log
INFO: Katalon KatOne server URL: https://admin.katalon.com
INFO: Katalon TestOps server URL: https://testops.katalon.io
INFO: Katalon Store server URL: https://store.katalon.com
INFO: User home: C:\Users\Jok_builder
INFO: Java vendor: Eclipse Adoptium
INFO: Java version: 17.0.7
INFO: Local OS: Windows 10 64bit
INFO: CPU load: 56%
INFO: Total memory: 12287 MB
INFO: Free memory: 7540 MB
INFO: Machine ID: XXXXXXXXXX
Cleaning up workspace
Opening project file: c:\jenkins\czsjenkins01\workdir\workspace\katalon-gpk-SMOKE_FULL_develop\katalon-gpk.prj
Warning! Please run Katalon execution command outside of the project folder.
org.eclipse.core.internal.resources.ResourceException(/c%%jenkins%czsjenkins01%workdir%workspace%katalon-gpk-SMOKE_FULL_develop%katalon-gpk.prj/bin)[374]: java.lang.Exception: Resource '/c%%jenkins%czsjenkins01%workdir%workspace%katalon-gpk-SMOKE_FULL_develop%katalon-gpk.prj/bin' already exists.
at org.eclipse.core.internal.resources.ResourceException.provideStackTrace(ResourceException.java:42)
at org.eclipse.core.internal.resources.ResourceException.<init>(ResourceException.java:38)
at org.eclipse.core.internal.resources.Resource.checkDoesNotExist(Resource.java:309)
at org.eclipse.core.internal.resources.Resource.checkDoesNotExist(Resource.java:296)
at org.eclipse.core.internal.resources.Folder.assertCreateRequirements(Folder.java:33)
at org.eclipse.core.internal.resources.Folder.create(Folder.java:94)
at org.eclipse.core.internal.resources.Folder.create(Folder.java:122)
at com.kms.katalon.groovy.util.GroovyUtil.emptyProjectClasspath(GroovyUtil.java:193)
at com.kms.katalon.groovy.util.GroovyUtil.initGroovyProject(GroovyUtil.java:183)
at com.kms.katalon.controller.ProjectController.openProject(ProjectController.java:222)
at com.kms.katalon.console.handlers.ProjectHandler.getProject(ProjectHandler.java:71)
at com.kms.katalon.console.handlers.ProjectHandler.findProject(ProjectHandler.java:44)
at com.kms.katalon.console.application.ConsoleMain.launch(ConsoleMain.java:141)
at com.kms.katalon.console.application.ConsoleApplicationStarter.start(ConsoleApplicationStarter.java:36)
at com.kms.katalon.application.Application.runConsole(Application.java:137)
at com.kms.katalon.application.Application.start(Application.java:98)
at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:203)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:136)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:104)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:402)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:255)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.base/java.lang.reflect.Method.invoke(Method.java:568)
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:659)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:596)
at org.eclipse.equinox.launcher.Main.run(Main.java:1467)
Start clean up session
End clean up session
Start release license task
License released
End release license task
All launchers terminated
[Pipeline] }
[Pipeline] // withCredentials
[Pipeline] }
Lock released on resource [gpk-at-env-deploy]
[Pipeline] // lock
[Pipeline] }
[Pipeline] // timeout
[Pipeline] error
[Pipeline] }
[Pipeline] // stage
[Pipeline] junit
Recording test results
None of the test reports contained any result
[Checks API] No suitable checks publisher found.
[Pipeline] archiveArtifacts
Archiving artifacts
‘Reports/**/*.*’ doesn’t match anything, but ‘**/*.*’ does. Perhaps that’s what you mean?
No artifacts found that match the file pattern "Reports/**/*.*,". Configuration error?
**[Pipeline] cleanWs**
**[WS-CLEANUP] Deleting project workspace...**
**[WS-CLEANUP] Deferred wipeout is used...**
**[WS-CLEANUP] done**
[Pipeline] }
[Pipeline] // node
[Pipeline] End of Pipeline
ERROR: Failed to execute tests with code 2
[Bitbucket] Notifying commit build result
[Bitbucket] Build result notified
Finished: FAILURE
Does anyone have the same problem?
Thank you so much
Petr