My Oracle Support Banner

"gradle codegen" Command in API Toolkit Fails With Error "java.lang.NoSuchFieldError: FOREX_DEAL" (Doc ID 2747953.1)

Last updated on JANUARY 29, 2021

Applies to:

Oracle Banking Digital Experience - Version 20.1.0.0.0 and later
Information in this document applies to any platform.

Symptoms

When attempting to run "gradle codegen" command in APIToolkit,
the following error occurs.

ERROR
-----------------------
e.getCause()==java.lang.NoSuchFieldError: FOREX_DEAL
java.util.concurrent.ExecutionException: java.lang.NoSuchFieldError: FOREX_DEAL
  at java.util.concurrent.FutureTask.report(FutureTask.java:122)
  at java.util.concurrent.FutureTask.get(FutureTask.java:192)
  at com.ofss.digx.codegen.controller.CodegenController.generateTierFiles(CodegenController.java:391)
  at com.ofss.digx.codegen.controller.CodegenController.generateOBDXCode(CodegenController.java:214)
  at com.ofss.digx.codegen.controller.CodegenController.generateCode(CodegenController.java:99)
  at com.ofss.digx.codegen.view.Codegen.generate(Codegen.java:118)
  at com.ofss.digx.codegen.view.CodegenMain.main(CodegenMain.java:26)
Caused by: java.lang.NoSuchFieldError: FOREX_DEAL
  at com.ofss.digx.codegen1820.impl.helper.OBDXTransactions.(OBDXTransactions.java:24)
  at com.ofss.digx.codegen1820.impl.generator.OBDXApprovalAssemblerGenericGenerator.getCodeBlockForMethod(OBDXApprovalAssemblerGenericGenerator.java:68)
  at com.ofss.digx.codegen.controller.CodegenController.generateTierClassFiles(CodegenController.java:596)
  at com.ofss.digx.codegen.controller.CodegenController.generateTierClassFiles(CodegenController.java:568)
  at com.ofss.digx.codegen.controller.CodegenController.access$000(CodegenController.java:82)
  at com.ofss.digx.codegen.controller.CodegenController$1.call(CodegenController.java:366)
  at com.ofss.digx.codegen.controller.CodegenController$1.call(CodegenController.java:360)
  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:748)


STEPS
-----------------------
The issue can be reproduced at will with the following steps:
1. Follow the API Extensibility Toolkit (https://docs.oracle.com/cd/F30659_01/tech_docs/Oracle Banking Digital Experience Extensibility API Toolkit Guide.pdf)
2. Execute the gradle tasks
3. When the "gradle codegen" command is executed the error occurs.

Changes

 

Cause

To view full details, sign in with your My Oracle Support account.

Don't have a My Oracle Support account? Click to get started!


In this Document
Symptoms
Changes
Cause
Solution
References


My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.