AFX Connector test capability fails with java.lang.NoClassDefFoundError in RSA Governance & Lifecycle
8 months ago
Article Number
000071971
Applies To
  • RSA Governance & Lifecycle 8.0
Issue
An attempt to test a capability of a new connector may fail with the following error, observed on the UI and logged in the corresponding connector log file <AFX_HOME>/esb/logs/esb.AFX-CONN-<connector-name>.log:
Cause: java.lang.NoClassDefFoundError - <path-to-a-class>
The class path shown in the above error depends on the connector type and the capability being tested.  For example, the following class paths have been reported:
  • LDAP Connector
java.lang.NoClassDefFoundError - com/aveksa/LdapVerb'. 
  • RESTful Web Service connector:
    java.lang.NoClassDefFoundError - com/jayway/jsonpath/internal/path/ArrayIndexOperation
    java.lang.NoClassDefFoundError - com/jayway/jsonpath/Predicate
  • Google Apps connector:
    java.lang.NoClassDefFoundError - com/google/api/client/repackaged/com/google/common/base/Splitter
Cause
This is an intermittent issue dependent on class loading order.
Resolution

This is a known issue caused by class loader mechanism in an underlying component of AFX Server.  While the specific scenarios noted in this article have been resolved in RSA Governance & Lifecycle 8.0.0 P02, the java.lang.NoClassDefFoundError errors may still show up intermittently in later patch levels up to and including RSA Governance & Lifecycle 8.0.0 P07.  This issue is completely resolved in the following version/patch:

  • RSA Governance & Lifecycle 8.0.0 P08

For patch levels prior to P08, follow the workaround (listed below) if this error is observed in the connector logs.

 

Workaround
Restart the AFX services