IBM Support

Unable to load event handler class error when adding a Code Module to an Event Action

Troubleshooting


Problem

In FileNet Content Engine FileNet Enterprise Manager (FEM) adding a Code Module to an Event Action returns an Unable to load event handler class error.

Symptom

When adding a Code Module in FEM first, then trying to create an event action using the Code Module, the following error is returned:

Unable to load event handler class from either associated code module
or system classpath: <event handler class>.
--------
Error Code: 0
Error Source: FileNet.Api

Error Code: 0x80004005
Minor Error Code: 0x00000a94

However, adding a code module while creating the event action is successful.

Cause

The Code Module Document MIME type and Content Element MIME type must both be set correctly.

Environment

P8 CE 5.1

Resolving The Problem

If the Code Module document is added prior to creating the event action, the error occurs if the Document MIME Type does not match the Content Element MIME type. If the Document MIME type is set to application/java-byte-code or application/java-archive, the Content Element was have the MIME type set to application/java-byte-code or application/java-archive. When the Code Module document is added, there is a field to set the Document MIME Type. To set the Content Element MIME type, do the following:

  1. Select the check the box for the Content Element

  2. Click on the "Change MIME type" button

  3. Set the MIME type to match the Document MIME type setting

  4. The option to change the Content Element MIME type is also be available when checking in the Code Module document.
[{"Product":{"code":"SSNW2F","label":"FileNet P8 Platform"},"Business Unit":{"code":"BU053","label":"Cloud & Data Platform"},"Component":"Content Engine","Platform":[{"code":"PF002","label":"AIX"},{"code":"PF010","label":"HP-UX"},{"code":"PF016","label":"Linux"},{"code":"PF027","label":"Solaris"},{"code":"PF033","label":"Windows"}],"Version":"5.1","Edition":"","Line of Business":{"code":"LOB45","label":"Automation"}}]

Document Information

More support for:
FileNet P8 Platform

Software version:
5.1

Operating system(s):
AIX, HP-UX, Linux, Solaris, Windows

Document number:
508543

Modified date:
17 June 2018

UID

swg21671727