Failing sporadically with "ResourceException"

Hello,

my tests are failing sporadically with “RescourceException” if run from CLI over Jenkins.
Project is alwasy checked out freshly from SVN, so the “\bin”-Directory does not exist before execution.

C:\Jenkins\workspace\XyzProject (EXEC)>“C:\Jenkins\workspace\Checkout Katalon Instance\katalon.exe” -noSplash -runMode=console -projectPath=“C:\Jenkins\workspace\XyzProject (EXEC)\TestProject\XyzProject.prj” -retry=0 -testSuitePath=“Test Suites/Suites/Suite1” -executionProfile=“default” -browserType=“Chrome”
Opening project file: C:\Jenkins\workspace\XyzProject (EXEC)\TestProject\XyzProject.prj
Starting Groovy-Eclipse compiler resolver. Specified compiler level: unspecified
166 2.4.7.xx-201611170128-e46 = ACTIVE
org.eclipse.core.internal.resources.ResourceException: Resource ‘/C%%Jenkins%workspace%XyzProject (EXEC)%TestProject%XyzProject.prj/bin’ already exists.
at org.eclipse.core.internal.resources.Resource.checkDoesNotExist(Resource.java:314)
at org.eclipse.core.internal.resources.Resource.checkDoesNotExist(Resource.java:301)
at org.eclipse.core.internal.resources.Folder.assertCreateRequirements(Folder.java:30)
at org.eclipse.core.internal.resources.Folder.create(Folder.java:93)
at org.eclipse.core.internal.resources.Folder.create(Folder.java:121)
at com.kms.katalon.groovy.util.GroovyUtil.initGroovyProjectClassPath(GroovyUtil.java:238)
at com.kms.katalon.groovy.util.GroovyUtil.initGroovyProject(GroovyUtil.java:154)
at com.kms.katalon.groovy.util.GroovyUtil.openGroovyProject(GroovyUtil.java:660)
at com.kms.katalon.dal.fileservice.manager.ProjectFileServiceManager.openProject(ProjectFileServiceManager.java:79)
at com.kms.katalon.dal.fileservice.dataprovider.ProjectFileServiceDataProvider.openProject(ProjectFileServiceDataProvider.java:24)
at com.kms.katalon.controller.ProjectController.openProject(ProjectController.java:99)
at com.kms.katalon.execution.console.ConsoleMain.getProject(ConsoleMain.java:313)
at com.kms.katalon.execution.console.ConsoleMain.findProject(ConsoleMain.java:218)
at com.kms.katalon.execution.console.ConsoleMain.launch(ConsoleMain.java:121)
at com.kms.katalon.console.application.Application.runConsole(Application.java:76)
at com.kms.katalon.core.application.Application.runConsole(Application.java:80)
at com.kms.katalon.core.application.Application.start(Application.java:63)
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)

Please fix this asap

Our test sometimes fails by same error, too. We run our tests in azure DevOps integration.

1 Like

bumping this in the hopes that there might be some workaround or response. Our error message when running using Azure DevOps Pipeline:

2020-02-20T15:03:30.7280241Z Opening project file: d:\a\1\s/Shobosso/Shobosso238.prj
2020-02-20T15:03:30.7958900Z
2020-02-20T15:03:31.0211040Z
2020-02-20T15:03:32.3583523Z org.eclipse.core.internal.resources.ResourceException: Resource ‘/d%%a%1%s%Shobosso%Shobosso238.prj/bin’ already exists.
2020-02-20T15:03:32.3585574Z at org.eclipse.core.internal.resources.Resource.checkDoesNotExist(Resource.java:314)
2020-02-20T15:03:32.3586558Z at org.eclipse.core.internal.resources.Resource.checkDoesNotExist(Resource.java:301)
2020-02-20T15:03:32.4025660Z at org.eclipse.core.internal.resources.Folder.assertCreateRequirements(Folder.java:30)
2020-02-20T15:03:32.4027058Z at org.eclipse.core.internal.resources.Folder.create(Folder.java:93)
2020-02-20T15:03:32.4027717Z at org.eclipse.core.internal.resources.Folder.create(Folder.java:121)
2020-02-20T15:03:32.4028366Z at com.kms.katalon.groovy.util.GroovyUtil.initGroovyProjectClassPath(GroovyUtil.java:245)
2020-02-20T15:03:32.4029021Z at com.kms.katalon.groovy.util.GroovyUtil.initGroovyProject(GroovyUtil.java:160)
2020-02-20T15:03:32.4029646Z at com.kms.katalon.controller.ProjectController.openProject(ProjectController.java:174)
2020-02-20T15:03:32.4030285Z at com.kms.katalon.execution.console.ConsoleMain.getProject(ConsoleMain.java:542)
2020-02-20T15:03:32.4030984Z at com.kms.katalon.execution.console.ConsoleMain.findProject(ConsoleMain.java:436)
2020-02-20T15:03:32.4031605Z at com.kms.katalon.execution.console.ConsoleMain.launch(ConsoleMain.java:264)
2020-02-20T15:03:32.4032339Z at com.kms.katalon.console.application.Application.runConsole(Application.java:71)
2020-02-20T15:03:32.4033130Z at com.kms.katalon.core.application.Application.runConsole(Application.java:99)
2020-02-20T15:03:32.4033751Z at com.kms.katalon.core.application.Application.start(Application.java:74)
2020-02-20T15:03:32.4034368Z at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
2020-02-20T15:03:32.4035032Z at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:134)
2020-02-20T15:03:32.4035716Z at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:104)
2020-02-20T15:03:32.4036344Z at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:388)
2020-02-20T15:03:32.4037076Z at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:243)
2020-02-20T15:03:32.4037685Z at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
2020-02-20T15:03:32.4038312Z at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
2020-02-20T15:03:32.4038959Z at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
2020-02-20T15:03:32.4039576Z at java.lang.reflect.Method.invoke(Method.java:498)
2020-02-20T15:03:32.4040170Z at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:673)
2020-02-20T15:03:32.4040749Z at org.eclipse.equinox.launcher.Main.basicRun(Main.java:610)
2020-02-20T15:03:32.4041331Z at org.eclipse.equinox.launcher.Main.run(Main.java:1519)

@rie.ota, @jeanie.conner

Please let us know your Katalon Studio/Katalon Studio Runtime Engine version?

Hi, thanks for your response. We’re using 7.2.3.

@jeanie.conner

Please delete the bin folder and try again.

Btw, the issue may come when you start multiple Katalon Studio Runtime Engine processes at the same time and the same project location but we currently doesn’t support it. You should clone your project to an another folder before launching when running Runtime Engine for multiple tasks to prevent the above issue.

Thanks

Hi,
We’re running Katalon as part of a Azure Devops Pipeline process and as such we do not have the ability to delete the bin folder.

We are using the Katalon Studio Task in Azure Devops Pipeline which downloads the specified version of Katalon, and Azure Devops Pipeline has freshly checking out the test project from github each time (and we have not saved the bin folder anywhere in github). We don’t have a license to run Katalon Studio Engine in parallel and are just trying to launch one test suite.

Thanks!

@jeanie.conner

Please delete the bin folder in github and put it in .gitignore file.

Hi,
Like I mentioned in my above reply, we are not saving the bin folder in our github project.
Thanks.

  • Jeanie
1 Like

We’re still seeing this problem in Azure DevOps pipeline… We are running several azure devops pipeline tasks of test suites consecutively (NOT in parallel) and I only see this error with the first pipeline task that we try to run - it always works fine with any consecutive azure devops pipline tasks on the same agent.

I have confirmed the bin folder is not being saved in github, and I have also added a powershell command in my pipeline to delete that folder before the launch of the katalon task, in case it somehow managed to exist. But nothing seems to fix the problem… I’m currently using v7.3.0 of runtime engine. @sanja.msg and @qsbetatest did you guys ever resolve this problem? @duyluong any other ideas?
Thanks.

  • Jeanie

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.