Skip to content

AWS Blu Age L3 Workshop: Unable to execute the groovy script "TRANREPT"

0

Hi, currently I'm doing a step (Execution -> Test -> Online-> User features -> Transaction report) of the AWS Blu Age Level 3 Self-Paced Troubleshooting Workshop with version 4.2.0 of Blu Age velocity. When retrieving the transaction report, I receive a confirmation message on the screen: 'Monthly report submitted for printing...'. However TRANSACT.BKUP, TRANSACT.DALY, and TRANREPT files are not created in the working directory.

Below are the logs. I could not find the reason this error. Could someone please help to solve this problem ?

Start date: [2023-04-01] End date: [2023-04-30] 2025-02-14_10-24-07-708 | [JOB] TRANREPT-REPROC - Started 2025-02-14T09:24:07.731Z ERROR 2676 --- [ Thread-18] c.n.b.g.r.job.support.GroovyJobExecutor : Unable to execute the groovy script "TRANREPT".

groovy.lang.MissingPropertyException: No such property: programResults for class: functions at org.codehaus.groovy.runtime.ScriptBytecodeAdapter.unwrap(ScriptBytecodeAdapter.java:67) at org.codehaus.groovy.vmplugin.v8.IndyGuardsFiltersAndSignatures.unwrap(IndyGuardsFiltersAndSignatures.java:163) at org.codehaus.groovy.vmplugin.v8.IndyInterface.fromCache(IndyInterface.java:321) at TRANREPT$_run_closure1.doCall(TRANREPT.groovy:50) at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77) at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.base/java.lang.reflect.Method.invoke(Method.java:568) at org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:343) at groovy.lang.MetaMethod.doMethodInvoke(MetaMethod.java:328) at org.codehaus.groovy.runtime.metaclass.ClosureMetaClass.invokeMethod(ClosureMetaClass.java:279) at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1008) at groovy.lang.Closure.call(Closure.java:433) at groovy.lang.Closure.call(Closure.java:422) at org.codehaus.groovy.runtime.DefaultGroovyMethods.with(DefaultGroovyMethods.java:369) at org.codehaus.groovy.runtime.DefaultGroovyMethods.with(DefaultGroovyMethods.java:314) at org.codehaus.groovy.runtime.dgm$914.doMethodInvoke(Unknown Source) at org.codehaus.groovy.vmplugin.v8.IndyInterface.fromCache(IndyInterface.java:321) at TRANREPT.run(TRANREPT.groovy:24) at com.netfective.bluage.gapwalk.rt.utils.GroovyScriptRunnerPlus.evaluate(Unknown Source) at com.netfective.bluage.gapwalk.rt.job.support.GroovyJobExecutor.run(Unknown Source) at java.base/java.lang.Thread.run(Thread.java:840)

2025-02-14T09:24:07.739Z INFO 2676 --- [ Thread-18] c.n.b.g.r.job.support.DefaultJobContext : Job [591877066] - starting final operation 2025-02-14T09:24:07.742Z INFO 2676 --- [ Thread-18] c.n.b.g.r.job.support.DefaultJobContext : End of job [591877066] 2025-02-14T09:24:07.743Z INFO 2676 --- [ Thread-18] c.n.b.g.rt.script.ScriptControlTower : Removed jobExecutor [c5368a1b-145f-492f-9d9c-757bac414ba5] from Script Control Tower. 2025-02-14T09:24:07.743Z INFO 2676 --- [ Thread-18] c.n.b.g.rt.script.ScriptControlTower : Remaining jobExecutors:0

asked 2 years ago280 views

1 Answer
4

The error you're encountering is due to a missing property called "programResults" in the TRANREPT Groovy script. This is a common issue in the Blu Age L3 Workshop when working with version 4.2.0 of Blu Age velocity.

To resolve this problem, you need to add a definition for the programResults variable in your TRANREPT Groovy script. You can do this by adding the following line of code above the location where the error is occurring (likely around line 50 of the TRANREPT.groovy file):

Map programResults = [:]

This will initialize an empty Map called programResults, which should resolve the MissingPropertyException you're seeing.

After making this change, try running the transaction report generation again. This should allow the script to execute without the error, and the TRANSACT.BKUP, TRANSACT.DALY, and TRANREPT files should be created in your working directory.

If you continue to experience issues after making this change, you may need to review the entire TRANREPT Groovy script for any other potential issues or inconsistencies with the workshop version you're using.
Sources
BluAge L3 Workshop Missing Property Exception: programResults when creating transaction report | AWS re:Post

answered 2 years ago

EXPERT

reviewed 2 years ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.