AnsweredAssumed Answered

Wrong ELF class: ELFCLASS32 after JDK upgrade on 64-bit RedHat 6.5

Question asked by Karine Slkuni Employee on Feb 28, 2017

Hi All,

 

I successfully installed G&L 7.0.1 on RedHat 6.5 and wanted to upgrade it to P02.

 

I upgraded JDK (using upgradeJDK.tar), then executed patch.sh which failed with the following error:

 

Preparing to the ear file for deployment at Tue Feb 28 13:17:21 EST 2017
-- Expanding the CURRENTLY deployed ear to filesystem for further checks to apply patch.
Caught: java.lang.UnsatisfiedLinkError: /usr/lib/jvm/java-1.7.0-openjdk-1.7.0.0.x86_64/jre/lib/amd64/libnet.so: libgconf-2.so.4: wrong ELF class: ELFCLASS32
java.lang.UnsatisfiedLinkError: /usr/lib/jvm/java-1.7.0-openjdk-1.7.0.0.x86_64/jre/lib/amd64/libnet.so: libgconf-2.so.4: wrong ELF class: ELFCLASS32
        at CustomizeACM.run(CustomizeACM.groovy:19)
An error occured in the customizeACM command : error code 1
Step failed! See /home/oracle/Aveksa_7.0.1_P02/logs/7.0.1_P02_2017-02-28-1317.log for more information.

There is a mismatch between the class ELFCLASS32 (32-bit) and 64-bit RedHat - no idea how it could happen and how to fix the issue.

 

acm cannot be started too (Exception in thread "main" java.lang.UnsatisfiedLinkError: /usr/lib/jvm/java-1.7.0-openjdk-1.7.0.0.x86_64/jre/lib/amd64/libnet.so: libgconf-2.so.4: wrong ELF class: ELFCLASS32)

 

Below a couple of outputs to show OS version and java path.

 

# cat /etc/redhat-release
Red Hat Enterprise Linux Server release 6.5 (Santiago)

# uname -r
2.6.32-431.el6.x86_64

# ll /usr/lib/jvm/java-1.7.0-openjdk-1.7.0.0.x86_64
total 43796
-r--r--r-- 1 root root     1503 Nov  1 14:44 ASSEMBLY_EXCEPTION
drwxr-xr-x 2 root root     4096 Nov  1 14:44 bin
drwxr-xr-x 3 root root     4096 Nov  1 14:46 include
lrwxrwxrwx 1 root root       46 Feb 28 12:35 java-1.7.0-openjdk-1.7.0.0.x86_64 -> /usr/lib/jvm/java-1.7.0-openjdk-1.7.0.0.x86_64
drwxr-xr-x 4 root root     4096 Nov  1 14:44 jre
drwxr-xr-x 3 root root     4096 Nov  1 14:46 lib
-r--r--r-- 1 root root    19263 Nov  1 14:44 LICENSE
drwxr-xr-x 4 root root     4096 Nov  1 14:46 man
-rw-r--r-- 1 root root       80 Nov  1 14:46 release
-rw-r--r-- 1 root root 44565963 Nov  1 14:46 src.zip
-r--r--r-- 1 root root   172264 Nov  1 14:44 THIRD_PARTY_README

 

**********************************************************

The issue has been resolved after we installed missing 64-bit java libraries.

@Abdelrahman: thank you very much for your support!

**********************************************************

Thanks,

Karine

Outcomes