Skip to Content
avatar image
Former Member

Is it possible to modify 2 variants in BPA at the same time?

Hi experts,

We have two BPA jobs that are scheduled to execute at the same time. However, one of them faces an issue and it happens intermittently (below is the full content of the error log. I highlighted the part which I think is the root cause.

-- JOB RUN STACK TRACE -- com.redwood.scheduler.script.api.ScriptEngineEvaluationException at com.redwood.scheduler.script.java.impl.Java.evaluate(Java.java:87) at com.redwood.scheduler.scriptjobservice.impl.ScriptJob.execute(ScriptJob.java:156) at com.redwood.scheduler.systemjobservice.impl.JobWorker.doWork(JobWorker.java:269) at com.redwood.scheduler.infrastructure.workqueue.Worker.run(Worker.java:81) at java.lang.Thread.run(Thread.java:763) Caused by: com.redwood.scheduler.script.api.ScriptEngineEvaluationException at com.redwood.scheduler.script.java.impl.Java.evaluateJava(Java.java:150) at com.redwood.scheduler.script.java.impl.Java.access$0(Java.java:137) at com.redwood.scheduler.script.java.impl.Java$1.call(Java.java:80) at com.redwood.scheduler.script.java.impl.Java.evaluateCallable(Java.java:118) at com.redwood.scheduler.script.java.impl.Java.evaluate(Java.java:74) ... 4 more Caused by: com.redwood.scheduler.infrastructure.exception.ReplacementException at com.redwood.scheduler.infrastructure.util.ExceptionUtil.wrap(ExceptionUtil.java:259) ... 9 more Caused by: java.lang.reflect.InvocationTargetException at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at com.redwood.scheduler.script.java.impl.Java.evaluateJava(Java.java:146) ... 8 more Caused by: JCS-122034: Object has changed since it was read; update not possible for SAP System ECC at com.redwood.scheduler.model.SchedulerSessionImpl.writeDirtyListLocal(SchedulerSessionImpl.java:1001) at com.redwood.scheduler.model.SchedulerSessionImpl.persist(SchedulerSessionImpl.java:939) at com.redwood.scheduler.custom.Jobdefinition_PD_SAP_ZRNOTBILLED_Script_UpdateVariantexecute(Jobdefinition_PD_SAP_ZRNOTBILLED_Script_UpdateVariant.java:user code 59) at com.redwood.scheduler.custom.Jobdefinition_PD_SAP_ZRNOTBILLED_Script_UpdateVariantStub.jcsExecute(Jobdefinition_PD_SAP_ZRNOTBILLED_Script_UpdateVariantStub.java:52) ... 13 more Caused by: com.redwood.scheduler.model.exception.NoRowsUpdatedException: JCS-102088: No rows were updated in the database while trying to modify SAP System ECC at com.redwood.scheduler.model.BaseSchedulerEntityImpl.handleException(BaseSchedulerEntityImpl.java:590) at com.redwood.scheduler.persistence.impl.LowLevelPersistenceImpl.writeDirtyObjectListRetry(LowLevelPersistenceImpl.java:401) at com.redwood.scheduler.persistence.impl.LowLevelPersistenceImpl.access$0(LowLevelPersistenceImpl.java:245) at com.redwood.scheduler.persistence.impl.LowLevelPersistenceImpl$WriteDirtyObjectListUnitOfWork.execute(LowLevelPersistenceImpl.java:119) at com.redwood.scheduler.persistence.impl.OuterPersistenceUnitOfWorkManager.execute(OuterPersistenceUnitOfWorkManager.java:38) at com.redwood.scheduler.persistence.impl.LowLevelPersistenceImpl.writeDirtyObjectList(LowLevelPersistenceImpl.java:197) at com.redwood.scheduler.cluster.persistence.ClusteredLowLevelPersistence.writeDirtyObjectList(ClusteredLowLevelPersistence.java:67) at com.redwood.scheduler.model.SchedulerSessionImpl.writeDirtyListLocal(SchedulerSessionImpl.java:988) ... 16 more Caused by: com.redwood.scheduler.persistence.api.PersistenceException$NoRowsUpdated: JCS-123100: 0 rows updated in tid=16,880,966 at com.redwood.scheduler.persistence.impl.LowLevelPersistenceImpl.populateAndExecute(LowLevelPersistenceImpl.java:1020) at com.redwood.scheduler.persistence.impl.LowLevelPersistenceImpl.processModificationFinal(LowLevelPersistenceImpl.java:839) at com.redwood.scheduler.persistence.impl.LowLevelPersistenceImpl.processModificationIfPossible(LowLevelPersistenceImpl.java:799) at com.redwood.scheduler.persistence.impl.LowLevelPersistenceImpl.writeDirtyObjectListRetry(LowLevelPersistenceImpl.java:371) ... 22 more

----------------

The process definition that fails is one which executes a script to update the variants stored in BPA. I inserted the script for your reference.

update-variant.txt

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

0 Answers