Composer: NoClassDefFoundError: Could Not Initialize Class Org.codehaus.groovy.runtime.InvokerHelper

(Doc ID 2369877.1)

Last updated on MAY 09, 2018

Applies to:

Oracle Business Process Management Suite - Version 12.2.1.2.0 and later
Information in this document applies to any platform.

Goal

 Code editor of the script task does not work.
1. 'Check code' button fails to work in any scenario.
  It generates error even if the editor is empty and when a valid code is present.

2. It also generates the same exception on deploying any project from BPM Composer

Error seen in the UI:
------------------------------
Error(1,1) : java.lang.NoClassDefFoundError: Could not initialize class
org.codehaus.groovy.runtime.InvokerHelper


Error in the logs:
------------------
java.lang.RuntimeException: java.lang.NoClassDefFoundError: Could not initialize class org.codehaus.groovy.runtime.InvokerHelper
at org.codehaus.groovy.control.CompilationUnit.convertUncaughtExceptionToCompilationError(CompilationUnit.java:1091)
at org.codehaus.groovy.control.CompilationUnit.applyToPrimaryClassNodes(CompilationUnit.java:1069)
at org.codehaus.groovy.control.CompilationUnit.doPhaseOperation(CompilationUnit.java:591)
at org.codehaus.groovy.control.CompilationUnit.processPhaseOperations(CompilationUnit.java:569)
at org.codehaus.groovy.control.CompilationUnit.compile(CompilationUnit.java:546)
at oracle.bpm.scripting.groovy.compiler.GroovyCompilerImpl.compile(GroovyCompilerImpl.java:94)
at oracle.bpm.scripting.groovy.compiler.GroovyCompilerImpl.compile(GroovyCompilerImpl.java:71)
at oracle.bpm.scripting.groovy.compiler.GroovyCompilerImpl.buildJar(GroovyCompilerImpl.java:64)
at oracle.bpm.scripting.groovy.runtime.ScriptRunner.<init>(ScriptRunner.java:105)
at oracle.bpm.project.compiler.BPMNProcessScriptRunner.<init>(BPMNProcessScriptRunner.java:45)
at oracle.bpm.project.compiler.BPMNProcessScriptRunner.create(BPMNProcessScriptRunner.java:68)
at oracle.bpm.bpmn.engine.model.runtime.scripting.ScriptRunnerFactory.createScriptRunner(ScriptRunnerFactory.java:42)
at oracle.bpm.bpmn.engine.map.builder.BPMNCubeMap.load(BPMNCubeMap.java:147)
at oracle.bpm.bpmn.engine.map.builder.BPMNCubeMapFactory.create(BPMNCubeMapFactory.java:54)
at oracle.bpm.bpmn.engine.model.BPMNProcess.buildMaps(BPMNProcess.java:130)
at com.collaxa.cube.engine.core.BaseCubeProcess.loadRuntimeModel(BaseCubeProcess.java:343)
at com.collaxa.cube.engine.core.BaseCubeProcess.load(BaseCubeProcess.java:303)
     ...
 ...
at weblogic.work.ExecuteThread.run(ExecuteThread.java:346)
Caused by: java.lang.NoClassDefFoundError: Could not initialize class org.codehaus.groovy.runtime.InvokerHelper
at org.codehaus.groovy.runtime.DefaultGroovyMethods.newInstance(DefaultGroovyMethods.java:15640)
at oracle.bpm.scripting.groovy.transformations.log.LogASTTransformation.createLoggingStrategy(LogASTTransformation.java:215)
at oracle.bpm.scripting.groovy.transformations.log.LogASTTransformation.visit(LogASTTransformation.java:55)
at org.codehaus.groovy.transform.ASTTransformationVisitor.visitClass(ASTTransformationVisitor.java:134)
at org.codehaus.groovy.transform.ASTTransformationVisitor$2.call(ASTTransformationVisitor.java:178)
at org.codehaus.groovy.control.CompilationUnit.applyToPrimaryClassNodes(CompilationUnit.java:1055)
... 98 more



Solution

Sign In with your My Oracle Support account

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

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms