This error is thrown by the Java Virtual Machine when an exception occurs in the static initializer of a class. You can use the getException() method to obtain the Throwable object that was thrown from the initializer.
public class ExceptionInInitializerError extends LinkageError { // Public Constructors public ExceptionInInitializerError(); public ExceptionInInitializerError(Throwable thrown); public ExceptionInInitializerError(String s); // Public Instance Methods public Throwable getException(); }
Object->Throwable(Serializable)->Error->LinkageError->ExceptionInInitializerError