java.lang.ExceptionInInitializerError

SpringSource Issue Tracker | Lirong Mao | 4 years ago
tip
Do you find the tips below useful? Click on the to mark them and say thanks to Rafael Fischer Viola and rafael . Or join the community to write better ones.
  1. 0

    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)

    SpringSource Issue Tracker | 4 years ago | Lirong Mao
    java.lang.ExceptionInInitializerError
  2. 0

    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)

    SpringSource Issue Tracker | 4 years ago | Lirong Mao
    java.lang.ExceptionInInitializerError
  3. 0
    samebug tip
    Caused by fail to load the necessary libraries. Try to reinstall the app.
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0
    samebug tip
    Check if you have the latest version of SQLCipher and look if you loaded the libraries correctly. More info on this comment: https://goo.gl/tQQ5NO
  6. 0
    samebug tip
    If you're using proguard, check if you correctly configured it, otherwise, just disable proguard. More on this here: https://goo.gl/FP500o

  1. iferca 1 times, last 1 month ago
  2. filpgame 1 times, last 1 month ago
  3. Adrien 6 times, last 2 months ago
  4. PKeidel 9 times, last 2 months ago
  5. rafael 3 times, last 4 weeks ago
32 more registered users
63 unregistered visitors
Not finding the right solution?
Take a tour to get the most out of Samebug.

Tired of useless tips?

Automated exception search integrated into your IDE

Root Cause Analysis

  1. 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()
  2. Java RT
    System.loadLibrary
    1. java.lang.ClassLoader$NativeLibrary.load(Native Method)
    2. java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1807)
    3. java.lang.ClassLoader.loadLibrary(ClassLoader.java:1732)
    4. java.lang.Runtime.loadLibrary0(Runtime.java:823)
    5. java.lang.System.loadLibrary(System.java:1028)
    5 frames
  3. com.mapr.fs
    LibraryLoader.loadLibrary
    1. com.mapr.fs.shim.LibraryLoader.loadLibrary(LibraryLoader.java:41)
    1 frame