Troubleshooting
Problem
Receive the following error while configuring new event action handler: Unable to load event handler class from either associated code module or system classpath
Symptom
- Upon completing the last step of configuring new event action handler wizard, CPE ACCE displays error "Unable to load event handler class from either associated code module or system classpath: com.ibm.filenet.edu.SampleActionHandler".
- The class com.ibm.filenet.edu.SampleActionHandler is verified to exist in the provided code module .class file. The Java source code contains:
package com.ibm.filenet.edu;
public class SampleActionHandler implements EventActionHandler {
Cause
Wrong/incompatible version of JRE was specified when compiling the event action handler.
Diagnosing The Problem
p8_server_error.log contains the following:
DBBC84D3 CMOD FNRCE0000W - WARN content element content is not a valid Java class file CodeModuleToCItem:0:0:application/java-byte-code:SampleActionHandler.class:state=BD: java.lang.UnsupportedClassVersionError: JVMCFRE003 bad major version; class=com/ibm/filenet/edu/SampleActionHandler, offset=6
DBBC84D3 EVNT FNRCV0017E - ERROR Error initializing handler com.ibm.filenet.edu.SampleActionHandler
com.filenet.api.exception.EngineRuntimeException: FNRCV0017E: EVENT_CM_CLASS_FORMAT: The Java Runtime Environment detected a format error when trying to define Code Module class com.ibm.filenet.edu.SampleActionHandler from content element 0. Either the Code Module content element does not contain a Java class file, or the Java class file was compiled with a newer version of Java than that of the application server Java Runtime Environment. Message was: JVMCFRE003 bad major version; class=com/ibm/filenet/edu/SampleActionHandler, offset=6
at com.filenet.apiimpl.util.classloader.CodeModuleClassLoader.getRawClassFromClassElement(CodeModuleClassLoader.java:687)
Resolving The Problem
Set the Java compatibility level down to 1.6 instead of 1.7 or 1.8.
Was this topic helpful?
Document Information
Modified date:
17 June 2018
UID
swg21700055