Hello,
I'm struggling with this exception:
com.pmease.quickbuild.persistence.UnsupportedAgentOperationException: This operation is not supported at agent side.
Does it mean, that some classes/methods can be used/invoked only on QuickBuild server?
This script works as expected on the QB machine, but fails during runtime on any build agent.
groovy:
import com.pmease.quickbuild.BuildEngine
import com.pmease.quickbuild.BuildRequest
import com.pmease.quickbuild.*;
import com.pmease.quickbuild.model.*;
import com.pmease.quickbuild.entitymanager.*;
build.variableValues.put("NEW_VAR_1","")
build.variableValues.put("NEW_VAR_2","default")
system.buildManager.save(build)
Failing line of code:
system.buildManager.save(build)
Stack trace:
at com.pmease.quickbuild.util.ExceptionUtils.wrapException(ExceptionUtils.java:87)
at com.pmease.quickbuild.DefaultScriptEngine.evaluate(DefaultScriptEngine.java:321)
at com.pmease.quickbuild.DefaultScriptEngine.evaluate(DefaultScriptEngine.java:74)
at com.pmease.quickbuild.plugin.basis.ScriptStep.run(ScriptStep.java:49)
at com.pmease.quickbuild.plugin.basis.ScriptStep$$EnhancerByCGLIB$$11a38774.CGLIB$run$1(<generated>)
at com.pmease.quickbuild.plugin.basis.ScriptStep$$EnhancerByCGLIB$$11a38774$$FastClassByCGLIB$$ab98bbc9.invoke(<generated>)
at net.sf.cglib.proxy.MethodProxy.invokeSuper(MethodProxy.java:215)
at com.pmease.quickbuild.DefaultScriptEngine$Interpolator.intercept(DefaultScriptEngine.java:261)
at com.pmease.quickbuild.plugin.basis.ScriptStep$$EnhancerByCGLIB$$11a38774.run(<generated>)
at com.pmease.quickbuild.stepsupport.Step.doExecute(Step.java:656)
at com.pmease.quickbuild.stepsupport.Step.execute(Step.java:570)
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:129)
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:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at java.lang.Thread.run(Thread.java:745)
Caused by: com.pmease.quickbuild.QuickbuildException: com.pmease.quickbuild.persistence.UnsupportedAgentOperationException: This operation is not supported at agent side.
at com.pmease.quickbuild.persistence.AgentSession.saveOrUpdate(AgentSession.java:416)
at com.pmease.quickbuild.entitymanager.impl.AbstractEntityManager.save(AbstractEntityManager.java:101)
at com.pmease.quickbuild.entitymanager.impl.DefaultBuildManager.save(DefaultBuildManager.java:384)
at com.pmease.quickbuild.persistence.SessionInterceptor.invoke(SessionInterceptor.java:54)
at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:42)
at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:108)
at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:116)
at script1607337509491532754439.run(script1607337509491532754439.groovy:28)
at com.pmease.quickbuild.plugin.basis.BasisPlugin$32.evaluate(BasisPlugin.java:382)
at com.pmease.quickbuild.DefaultScriptEngine.evaluate(DefaultScriptEngine.java:305)
at com.pmease.quickbuild.DefaultScriptEngine.evaluate(DefaultScriptEngine.java:74)
at com.pmease.quickbuild.plugin.basis.ScriptStep.run(ScriptStep.java:49)
at com.pmease.quickbuild.plugin.basis.ScriptStep$$EnhancerByCGLIB$$11a38774.CGLIB$run$1(<generated>)
at com.pmease.quickbuild.plugin.basis.ScriptStep$$EnhancerByCGLIB$$11a38774$$FastClassByCGLIB$$ab98bbc9.invoke(<generated>)
at net.sf.cglib.proxy.MethodProxy.invokeSuper(MethodProxy.java:215)
at com.pmease.quickbuild.DefaultScriptEngine$Interpolator.intercept(DefaultScriptEngine.java:261)
at com.pmease.quickbuild.plugin.basis.ScriptStep$$EnhancerByCGLIB$$11a38774.run(<generated>)
at com.pmease.quickbuild.stepsupport.Step.doExecute(Step.java:656)
at com.pmease.quickbuild.stepsupport.Step.execute(Step.java:570)
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:129)
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:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at java.lang.Thread.run(Thread.java:745)
at com.pmease.quickbuild.plugin.basis.BasisPlugin$32.evaluate(BasisPlugin.java:406)
at com.pmease.quickbuild.DefaultScriptEngine.evaluate(DefaultScriptEngine.java:305)
... 18 more
- solved #2
- replies 1
- views 2346
- stars 0