java.lang.ExceptionInInitializerError

If you like a tip written by other Samebug users, mark is as helpful! Marks help our algorithm provide you better solutions and also help other users.
tip

This happens sometimes when Android fails to load the necessary libraries when you install an app. Try reinstalling it or telling your client to reinstall it, as it seems to correctly install the libraries and fixes the problem.


rafaelrafael

You have a different solution? A short tip here would help you and many other users who saw this issue last week.

  • Reproduce step: 1.Provison a D/C seprate mapr cluster. 2.Apply M5 license for mapr cluster on MCS UI. 3.Run pi/testDFSIO job on client vm. Problem: Can't run job on MapR 2.1.3 cluster's client vm. java.lang.ExceptionInInitializerError at com.mapr.fs.ShimLoader.load(ShimLoader.java:159) at com.mapr.fs.MapRFileSystem.<clinit>(MapRFileSystem.java:1669) at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Class.java:247) at org.apache.hadoop.conf.Configuration.getClassByName(Configuration.java:1039) at org.apache.hadoop.conf.Configuration.getClass(Configuration.java:1090) at org.apache.hadoop.fs.FileSystem.createFileSystem(FileSystem.java:1493) at org.apache.hadoop.fs.FileSystem.access$100(FileSystem.java:69) at org.apache.hadoop.fs.FileSystem$Cache.getInternal(FileSystem.java:1536) at org.apache.hadoop.fs.FileSystem$Cache.get(FileSystem.java:1518) at org.apache.hadoop.fs.FileSystem.get(FileSystem.java:235) at org.apache.hadoop.fs.FileSystem.get(FileSystem.java:115) at org.apache.hadoop.mapred.JobConf.getWorkingDirectory(JobConf.java:617) at org.apache.hadoop.mapred.FileInputFormat.setInputPaths(FileInputFormat.java:439) at org.apache.hadoop.examples.PiEstimator.estimate(PiEstimator.java:265) at org.apache.hadoop.examples.PiEstimator.run(PiEstimator.java:342) at org.apache.hadoop.util.ToolRunner.run(ToolRunner.java:65) at org.apache.hadoop.examples.PiEstimator.main(PiEstimator.java:351) 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 org.apache.hadoop.util.ProgramDriver$ProgramDescription.invoke(ProgramDriver.java:68) at org.apache.hadoop.util.ProgramDriver.driver(ProgramDriver.java:139) at org.apache.hadoop.examples.ExampleDriver.main(ExampleDriver.java:76) 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 org.apache.hadoop.util.RunJar.main(RunJar.java:197) Caused by: java.lang.reflect.InvocationTargetException 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.mapr.fs.ShimLoader.loadNativeLibrary(ShimLoader.java:244) at com.mapr.fs.ShimLoader.load(ShimLoader.java:146) ... 29 more Caused by: java.lang.UnsatisfiedLinkError: /opt/mapr/lib/libMapRClient.so.1: /opt/mapr/lib/libMapRClient.so.1: wrong ELF class: ELFCLASS32 (Possible cause: architecture word width mismatch) at java.lang.ClassLoader$NativeLibrary.load(Native Method) at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1807) at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1732) at java.lang.Runtime.loadLibrary0(Runtime.java:823) at java.lang.System.loadLibrary(System.java:1028) at com.mapr.fs.shim.LibraryLoader.loadLibrary(LibraryLoader.java:41)
    via by Lirong Mao,
  • Reproduce step: 1.Provison a D/C seprate mapr cluster. 2.Apply M5 license for mapr cluster on MCS UI. 3.Run pi/testDFSIO job on client vm. Problem: Can't run job on MapR 2.1.3 cluster's client vm. java.lang.ExceptionInInitializerError at com.mapr.fs.ShimLoader.load(ShimLoader.java:159) at com.mapr.fs.MapRFileSystem.<clinit>(MapRFileSystem.java:1669) at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Class.java:247) at org.apache.hadoop.conf.Configuration.getClassByName(Configuration.java:1039) at org.apache.hadoop.conf.Configuration.getClass(Configuration.java:1090) at org.apache.hadoop.fs.FileSystem.createFileSystem(FileSystem.java:1493) at org.apache.hadoop.fs.FileSystem.access$100(FileSystem.java:69) at org.apache.hadoop.fs.FileSystem$Cache.getInternal(FileSystem.java:1536) at org.apache.hadoop.fs.FileSystem$Cache.get(FileSystem.java:1518) at org.apache.hadoop.fs.FileSystem.get(FileSystem.java:235) at org.apache.hadoop.fs.FileSystem.get(FileSystem.java:115) at org.apache.hadoop.mapred.JobConf.getWorkingDirectory(JobConf.java:617) at org.apache.hadoop.mapred.FileInputFormat.setInputPaths(FileInputFormat.java:439) at org.apache.hadoop.examples.PiEstimator.estimate(PiEstimator.java:265) at org.apache.hadoop.examples.PiEstimator.run(PiEstimator.java:342) at org.apache.hadoop.util.ToolRunner.run(ToolRunner.java:65) at org.apache.hadoop.examples.PiEstimator.main(PiEstimator.java:351) 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 org.apache.hadoop.util.ProgramDriver$ProgramDescription.invoke(ProgramDriver.java:68) at org.apache.hadoop.util.ProgramDriver.driver(ProgramDriver.java:139) at org.apache.hadoop.examples.ExampleDriver.main(ExampleDriver.java:76) 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 org.apache.hadoop.util.RunJar.main(RunJar.java:197) Caused by: java.lang.reflect.InvocationTargetException 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.mapr.fs.ShimLoader.loadNativeLibrary(ShimLoader.java:244) at com.mapr.fs.ShimLoader.load(ShimLoader.java:146) ... 29 more Caused by: java.lang.UnsatisfiedLinkError: /opt/mapr/lib/libMapRClient.so.1: /opt/mapr/lib/libMapRClient.so.1: wrong ELF class: ELFCLASS32 (Possible cause: architecture word width mismatch) at java.lang.ClassLoader$NativeLibrary.load(Native Method) at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1807) at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1732) at java.lang.Runtime.loadLibrary0(Runtime.java:823) at java.lang.System.loadLibrary(System.java:1028) at com.mapr.fs.shim.LibraryLoader.loadLibrary(LibraryLoader.java:41)
    via by Lirong Mao,
  • JCuda error: undefined symbol: Pointer_buffer
    via Stack Overflow by Rui
    ,
  • IBM WMQ binding transport type JNI error
    via Stack Overflow by user1582639
    ,
  • Spotify lib JLibSpotify
    via Stack Overflow by user3535022
    ,
    • java.lang.ExceptionInInitializerError at com.mapr.fs.ShimLoader.load(ShimLoader.java:159) at com.mapr.fs.MapRFileSystem.<clinit>(MapRFileSystem.java:1669) at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Class.java:247) at org.apache.hadoop.conf.Configuration.getClassByName(Configuration.java:1039) at org.apache.hadoop.conf.Configuration.getClass(Configuration.java:1090) at org.apache.hadoop.fs.FileSystem.createFileSystem(FileSystem.java:1493) at org.apache.hadoop.fs.FileSystem.access$100(FileSystem.java:69) at org.apache.hadoop.fs.FileSystem$Cache.getInternal(FileSystem.java:1536) at org.apache.hadoop.fs.FileSystem$Cache.get(FileSystem.java:1518) at org.apache.hadoop.fs.FileSystem.get(FileSystem.java:235) at org.apache.hadoop.fs.FileSystem.get(FileSystem.java:115) at org.apache.hadoop.mapred.JobConf.getWorkingDirectory(JobConf.java:617) at org.apache.hadoop.mapred.FileInputFormat.setInputPaths(FileInputFormat.java:439) at org.apache.hadoop.examples.PiEstimator.estimate(PiEstimator.java:265) at org.apache.hadoop.examples.PiEstimator.run(PiEstimator.java:342) at org.apache.hadoop.util.ToolRunner.run(ToolRunner.java:65) at org.apache.hadoop.examples.PiEstimator.main(PiEstimator.java:351) 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 org.apache.hadoop.util.ProgramDriver$ProgramDescription.invoke(ProgramDriver.java:68) at org.apache.hadoop.util.ProgramDriver.driver(ProgramDriver.java:139) at org.apache.hadoop.examples.ExampleDriver.main(ExampleDriver.java:76) 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 org.apache.hadoop.util.RunJar.main(RunJar.java:197) Caused by: java.lang.reflect.InvocationTargetException 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.mapr.fs.ShimLoader.loadNativeLibrary(ShimLoader.java:244) at com.mapr.fs.ShimLoader.load(ShimLoader.java:146) ... 29 more Caused by: java.lang.UnsatisfiedLinkError: /opt/mapr/lib/libMapRClient.so.1: /opt/mapr/lib/libMapRClient.so.1: wrong ELF class: ELFCLASS32 (Possible cause: architecture word width mismatch) at java.lang.ClassLoader$NativeLibrary.load(Native Method) at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1807) at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1732) at java.lang.Runtime.loadLibrary0(Runtime.java:823) at java.lang.System.loadLibrary(System.java:1028) at com.mapr.fs.shim.LibraryLoader.loadLibrary(LibraryLoader.java:41)

    Users with the same issue

    Unknown visitor
    Unknown visitor1 times, last one,
    Unknown UserUnknown User
    4 times, last one,
    Unknown visitor
    Unknown visitor1 times, last one,
    ReichReich
    2 times, last one,
    Unknown visitor
    Unknown visitor1 times, last one,
    297 more bugmates