java: fatal: /sapmnt/SOL/exe/libjperflib.so: wrong ELF class: ELF CLASS64 When Running SAP Configtool.sh On Solaris SparcV9 (Doc ID 2182762.1)

Last updated on SEPTEMBER 14, 2016

Applies to:

JDBC - Version 11.2.0.4.0 and later
Information in this document applies to any platform.

Symptoms

Invoking the XMANAGER BROADCAST, running configtool.sh gives the error:
PerfTimes : loadNativeLayer: loading jperflib failed. /sapmnt/SOL/exe/libjperflib.so: ld.so.1: java: fatal: /sapmnt/SOL/exe/libjperflib.so: wrong ELF class: ELF CLASS64 (Possible cause: architecture word width mismatch)


Configtool.sh:


Complete error stack:

PerfTimes : loadNativeLayer: loading jperflib failed. /sapmnt/SOL/exe/libjperfli
b.so: ld.so.1: java: fatal: /sapmnt/SOL/exe/libjperflib.so: wrong ELF class: ELF
CLASS64 (Possible cause: architecture word width mismatch)
com.sap.engine.frame.core.configuration.ConfigurationException: Error while connecting to DB.
  at com.sap.engine.core.configuration.impl.persistence.rdbms.DBConnectionPool.createConnection(DBConnectionPool.java:360)
  at com.sap.engine.core.configuration.impl.persistence.rdbms.DBConnectionPool.(DBConnectionPool.java:125)
  at com.sap.engine.core.configuration.impl.persistence.rdbms.PersistenceHandler.(PersistenceHandler.java:38)
  at com.sap.engine.core.configuration.impl.cache.ConfigurationCache.(ConfigurationCache.java:149)
  at com.sap.engine.core.configuration.bootstrap.ConfigurationManagerBootstrapImpl.init(ConfigurationManagerBootstrapImpl.java:236)
  at com.sap.engine.core.configuration.bootstrap.ConfigurationManagerBootstrapImpl.(ConfigurationManagerBootstrapImpl.java:49)
  at com.sap.engine.configtool.visual.ConfigTool.loadClusterData(ConfigTool.java:99)
  at com.sap.engine.configtool.visual.ConfigTool.initScan(ConfigTool.java:87)
  at com.sap.engine.configtool.visual.ConfigTool.(ConfigTool.java:82)
  at com.sap.engine.configtool.visual.ConfigTool.main(ConfigTool.java:961)
  at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
  at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
  at java.lang.reflect.Method.invoke(Method.java:597)
  at com.sap.engine.offline.OfflineToolStart.main(OfflineToolStart.java:81)
Caused by: com.sap.sql.log.OpenSQLException: Could not load class oracle.jdbc.driver.OracleDriver.
  at com.sap.sql.log.Syslog.createAndLogOpenSQLException(Syslog.java:106)
  at com.sap.sql.jdbc.NativeConnectionFactory.createNativeConnection(NativeConnectionFactory.java:143)
  at com.sap.sql.connect.OpenSQLDataSourceImpl.createPooledConnection(OpenSQLDataSourceImpl.java:608)
  at com.sap.sql.connect.OpenSQLDataSourceImpl.getPooledConnection(OpenSQLDataSourceImpl.java:285)
  at com.sap.engine.core.configuration.impl.persistence.rdbms.DBConnectionPool.createConnection(DBConnectionPool.java:302)
  ... 14 more
Caused by: java.lang.ClassNotFoundException: oracle.jdbc.driver.OracleDriver
  at com.sap.engine.offline.FileClassLoader.findClass(FileClassLoader.java:691)
  at com.sap.engine.offline.FileClassLoader.loadClass(FileClassLoader.java:600)
  at com.sap.engine.offline.FileClassLoader.loadClass(FileClassLoader.java:578)
  at java.lang.Class.forName0(Native Method)
  at java.lang.Class.forName(Class.java:170)
  at com.sap.sql.jdbc.NativeConnectionFactory.createNativeConnection(NativeConnectionFactory.java:134)
  ... 17 more


ERROR
-----------------------
wrong ELF class: ELF CLASS64 (Possible cause: architecture word width mismatch)




STEPS
-----------------------
The issue can be reproduced at will with the following steps:
1. Upgrade Java during patch cluster.
2. Try go invoke XMANAGER BROADCAST, running configtool.sh




Cause

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