1
0
-1

It throws the following exception when the Job instance to call getOrderedJobSteps method: 
===================================================== 
Caused by: java.lang.RuntimeException: java.util.concurrent.ExecutionException: java.lang.RuntimeException: unable to access field: id 
at com.avoka.core.groovy.runtime.GroovyScriptRuntime.executeScript(GroovyScriptRuntime.java:199) 
at com.avoka.core.groovy.runtime.GroovyScriptRuntime.executeScript(GroovyScriptRuntime.java:90) 
at com.avoka.fc.core.service.AbstractGroovyService.executeGroovyScript(AbstractGroovyService.java:356) 
at com.avoka.fc.core.service.AbstractGroovyService.executeGroovyScript(AbstractGroovyService.java:306) 
at com.avoka.fc.core.service.impl.GroovyServiceImpl.invokeService(GroovyServiceImpl.java:90) 
... 18 more 
Caused by: java.util.concurrent.ExecutionException: java.lang.RuntimeException: unable to access field: id 
at java.util.concurrent.FutureTask.report(FutureTask.java:122) 
at java.util.concurrent.FutureTask.get(FutureTask.java:206) 
at com.avoka.core.groovy.runtime.GroovyScriptRuntime.executeScript(GroovyScriptRuntime.java:189) 
... 22 more 
Caused by: java.lang.RuntimeException: unable to access field: id 
at org.mvel2.optimizers.impl.refl.nodes.FieldAccessor.getValue(FieldAccessor.java:53) 
at org.mvel2.optimizers.impl.refl.nodes.VariableAccessor.getValue(VariableAccessor.java:37) 
at org.mvel2.optimizers.dynamic.DynamicGetAccessor.getValue(DynamicGetAccessor.java:78) 
at org.mvel2.ast.ASTNode.getReducedValueAccelerated(ASTNode.java:108) 
at org.mvel2.compiler.ExecutableAccessor.getValue(ExecutableAccessor.java:42) 
at org.mvel2.MVEL.executeExpression(MVEL.java:969) 
at com.avoka.core.util.PropertyUtils.getValue(PropertyUtils.java:45) 
at com.avoka.core.util.PropertyComparator.compare(PropertyComparator.java:72) 
at java.util.TimSort.countRunAndMakeAscending(TimSort.java:355) 
at java.util.TimSort.sort(TimSort.java:220) 
at java.util.Arrays.sort(Arrays.java:1438) 
at java.util.List.sort(List.java:478) 
at java.util.Collections.sort(Collections.java:175) 
at com.avoka.fc.core.entity.Job.getOrderedJobSteps(Job.java:196) 
at com.avoka.fc.core.entity.Job$getOrderedJobSteps$2.call(Unknown Source) 
at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:48) 
at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:113) 
at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:117) 
at Script1.GetNoOfDataRepairStep(Script1.groovy:818) 
at Script1.run(Script1.groovy:855) 
... 8 more 
Caused by: java.lang.IllegalArgumentException: Can not set final java.lang.Long field com.avoka.tm.workspace.vo.JobStep.id to com.avoka.fc.core.entity.JobStep 
at sun.reflect.UnsafeFieldAccessorImpl.throwSetIllegalArgumentException(UnsafeFieldAccessorImpl.java:167) 
at sun.reflect.UnsafeFieldAccessorImpl.throwSetIllegalArgumentException(UnsafeFieldAccessorImpl.java:171) 
at sun.reflect.UnsafeFieldAccessorImpl.ensureObj(UnsafeFieldAccessorImpl.java:58) 
at sun.reflect.UnsafeQualifiedObjectFieldAccessorImpl.get(UnsafeQualifiedObjectFieldAccessorImpl.java:38) 
at java.lang.reflect.Field.get(Field.java:393) 
at org.mvel2.optimizers.impl.refl.nodes.FieldAccessor.getValue(FieldAccessor.java:49) 
... 27 more

    CommentAdd your comment...

    2 answers

    1.  
      1
      0
      -1

      Hi Malcolm, thanks for your reply, may I know where to raise a AVT support ticket?

        CommentAdd your comment...
      1.  
        1
        0
        -1

        Hi Alex,

        Can you please raise this as an AVT support issue with plenty of context information so we can assess this issue.

        regards Malcolm Edgar

          CommentAdd your comment...