Your browser was unable to load all of the resources. They may have been blocked by your firewall, proxy or browser configuration.
Press Ctrl+F5 or Ctrl+Shift+R to have your browser try again.

Unexpected error after changing the type of a repository. #4454

drdt ·

I have been using a file-system repository in my builds as a temporary solution to a challenge copying files between jobs.
Now we have implemented a QuickBuild repository and it seems to work fine EXCEPT...
When I rolled this out to production, all of my builds got this error (in System Log) and will not start:

2022-11-29 11:03:03,754 [pool-2-thread-224712] ERROR com.pmease.quickbuild.DefaultBuildEngine - Error processing build request.
java.lang.RuntimeException: Error executing check condition job.
at com.pmease.quickbuild.CheckConditionTask.reduce(CheckConditionTask.java:39)
at com.pmease.quickbuild.CheckConditionTask.reduce(CheckConditionTask.java:16)
at com.pmease.quickbuild.grid.GridTaskFuture.get(GridTaskFuture.java:168)
at com.pmease.quickbuild.DefaultBuildEngine.process(DefaultBuildEngine.java:407)
at com.pmease.quickbuild.DefaultBuildEngine.access$000(DefaultBuildEngine.java:152)
at com.pmease.quickbuild.DefaultBuildEngine$2.run(DefaultBuildEngine.java:1289)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
at java.lang.Thread.run(Thread.java:750)
Caused by: java.lang.ClassCastException

I believe this is because the type of my 'harness files' repository has changed, and it is not able to make a comparison of changes since the previous build. I would expect it to see the type of the repository has changed, and therefore know it needs to rebuild.

  • replies 2
  • views 130
  • stars 0
drdt ·

I then tried to force the build to run, and I got this error in the Checkout step, confirming my suspicion:

ERROR - Step 'master>1. Prepare workspace>checkout (harness files)' is failed.
java.lang.ClassCastException: com.pmease.quickbuild.plugin.scm.filesystem.FileSystemRevision cannot be cast to com.pmease.quickbuild.dependency.DependencyRevision
at com.pmease.quickbuild.dependency.QuickbuildRepository.getRevision(QuickbuildRepository.java:162)
at com.pmease.quickbuild.dependency.QuickbuildRepository$$EnhancerByCGLIB$$c2334a41.CGLIB$getRevision$7( )
at com.pmease.quickbuild.dependency.QuickbuildRepository$$EnhancerByCGLIB$$c2334a41$$FastClassByCGLIB$$31f72d08.invoke( )
at net.sf.cglib.proxy.MethodProxy.invokeSuper(MethodProxy.java:228)
at com.pmease.quickbuild.DefaultScriptEngine$Interpolator.intercept(DefaultScriptEngine.java:267)
at com.pmease.quickbuild.dependency.QuickbuildRepository$$EnhancerByCGLIB$$c2334a41.getRevision( )
at com.pmease.quickbuild.dependency.QuickbuildRepository.getRevision(QuickbuildRepository.java:51)
at com.pmease.quickbuild.dependency.QuickbuildRepository$$EnhancerByCGLIB$$c2334a41.CGLIB$getRevision$8( )
at com.pmease.quickbuild.dependency.QuickbuildRepository$$EnhancerByCGLIB$$c2334a41$$FastClassByCGLIB$$31f72d08.invoke( )
at net.sf.cglib.proxy.MethodProxy.invokeSuper(MethodProxy.java:228)
at com.pmease.quickbuild.DefaultScriptEngine$Interpolator.intercept(DefaultScriptEngine.java:267)
at com.pmease.quickbuild.dependency.QuickbuildRepository$$EnhancerByCGLIB$$c2334a41.getRevision( )
at com.pmease.quickbuild.repositorysupport.Repository.getRevision(Repository.java:505)
at com.pmease.quickbuild.dependency.QuickbuildRepository$$EnhancerByCGLIB$$c2334a41.CGLIB$getRevision$48( )
at com.pmease.quickbuild.dependency.QuickbuildRepository$$EnhancerByCGLIB$$c2334a41$$FastClassByCGLIB$$31f72d08.invoke( )
at net.sf.cglib.proxy.MethodProxy.invokeSuper(MethodProxy.java:228)
at com.pmease.quickbuild.DefaultScriptEngine$Interpolator.intercept(DefaultScriptEngine.java:267)
at com.pmease.quickbuild.dependency.QuickbuildRepository$$EnhancerByCGLIB$$c2334a41.getRevision( )
at com.pmease.quickbuild.repositorysupport.Repository.getChangesSince(Repository.java:571)
at com.pmease.quickbuild.dependency.QuickbuildRepository$$EnhancerByCGLIB$$c2334a41.CGLIB$getChangesSince$62( )
at com.pmease.quickbuild.dependency.QuickbuildRepository$$EnhancerByCGLIB$$c2334a41$$FastClassByCGLIB$$31f72d08.invoke( )
at net.sf.cglib.proxy.MethodProxy.invokeSuper(MethodProxy.java:228)
at com.pmease.quickbuild.DefaultScriptEngine$Interpolator.intercept(DefaultScriptEngine.java:267)
at com.pmease.quickbuild.dependency.QuickbuildRepository$$EnhancerByCGLIB$$c2334a41.getChangesSince( )
at com.pmease.quickbuild.repositorysupport.Repository.getChanges(Repository.java:450)
at com.pmease.quickbuild.dependency.QuickbuildRepository$$EnhancerByCGLIB$$c2334a41.CGLIB$getChanges$40( )
at com.pmease.quickbuild.dependency.QuickbuildRepository$$EnhancerByCGLIB$$c2334a41$$FastClassByCGLIB$$31f72d08.invoke( )
at net.sf.cglib.proxy.MethodProxy.invokeSuper(MethodProxy.java:228)
at com.pmease.quickbuild.DefaultScriptEngine$Interpolator.intercept(DefaultScriptEngine.java:267)
at com.pmease.quickbuild.dependency.QuickbuildRepository$$EnhancerByCGLIB$$c2334a41.getChanges( )
at com.pmease.quickbuild.repositorysupport.Repository.getChanges(Repository.java:418)
at com.pmease.quickbuild.dependency.QuickbuildRepository$$EnhancerByCGLIB$$c2334a41.CGLIB$getChanges$41( )
at com.pmease.quickbuild.dependency.QuickbuildRepository$$EnhancerByCGLIB$$c2334a41$$FastClassByCGLIB$$31f72d08.invoke( )
at net.sf.cglib.proxy.MethodProxy.invokeSuper(MethodProxy.java:228)
at com.pmease.quickbuild.DefaultScriptEngine$Interpolator.intercept(DefaultScriptEngine.java:267)
at com.pmease.quickbuild.dependency.QuickbuildRepository$$EnhancerByCGLIB$$c2334a41.getChanges( )
at com.pmease.quickbuild.repositorysupport.CheckoutStep.run(CheckoutStep.java:75)
at com.pmease.quickbuild.repositorysupport.CheckoutStep$$EnhancerByCGLIB$$89fcab2a.CGLIB$run$2( )
at com.pmease.quickbuild.repositorysupport.CheckoutStep$$EnhancerByCGLIB$$89fcab2a$$FastClassByCGLIB$$d0941d02.invoke( )
at net.sf.cglib.proxy.MethodProxy.invokeSuper(MethodProxy.java:228)
at com.pmease.quickbuild.DefaultScriptEngine$Interpolator.intercept(DefaultScriptEngine.java:267)
at com.pmease.quickbuild.repositorysupport.CheckoutStep$$EnhancerByCGLIB$$89fcab2a.run( )
at com.pmease.quickbuild.stepsupport.Step.doExecute(Step.java:677)
at com.pmease.quickbuild.stepsupport.Step.execute(Step.java:577)
at com.pmease.quickbuild.stepsupport.StepExecutionJob.executeStepAwareJob(StepExecutionJob.java:31)
at com.pmease.quickbuild.stepsupport.StepAwareJob.executeBuildAwareJob(StepAwareJob.java:56)
at com.pmease.quickbuild.BuildAwareJob.execute(BuildAwareJob.java:77)
at com.pmease.quickbuild.grid.GridJob.run(GridJob.java:131)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
at java.lang.Thread.run(Thread.java:750)

I had to run another build to clean the error, but this looks bad to my users.
Can this be fixed so that after such a change, a new build is forced with some warning about "unable to calculate changes"?

robinshen ADMIN ·