Error :”Fatal initialization error. wrong ELF class” when starting SAP Collector

If the SAP collector fails to start with the below error in the collector.log file in the collector installation directory.

Error: SEVERE r3collector [main] Fatal initialization error. R3 Collector will terminate.

java.lang.ExceptionInInitializerError: JCO.classInitialize(): Could not load middleware layer ‘com.sap.mw.jco.rfc.MiddlewareRFC’ JCO.nativeInit(): Could not initialize dynamic link library sapjcorfc [/opt/MercuryDiagnostics/Collector/nanny/solaris/bin/libsapj
corfc.so: ld.so.1: java: fatal: /opt/MercuryDiagnostics/Collector/nanny/solaris/bin/libsapjc orfc.so: wrong ELF class: ELFCLASS64

Collector is installed on a 64bit Solaris machine and pointed to a 64bit SAPJco driver due to which this error occurs.

Verify that the JCO driver is a 32 bit version. Switch to a 32bit JCO driver for the SAPJco. The collector for Solaris was compiled on a 32bit machine, so the connecting drivers should be 32bit as well. The
collector and 32-bit SAPJco will work on the 64bit environment.

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s