Skip to content

Instantly share code, notes, and snippets.

@markstein
Created August 9, 2013 12:57
Show Gist options
  • Select an option

  • Save markstein/6193430 to your computer and use it in GitHub Desktop.

Select an option

Save markstein/6193430 to your computer and use it in GitHub Desktop.
Start with INSTANCE
The first initialization was wrong with this ErrorMessage:
java.lang.ExceptionInInitializerError
The error message by every next acces:
The first initialization was wrong with this ErrorMessage:
at de.mosst.spielwiese.no_class_def_found_error.Tester.main(Tester.java:9)
Caused by: java.lang.RuntimeException: RuntimeException by instance with field
at de.mosst.spielwiese.no_class_def_found_error.SingeltonClass_with_INSTANCE_as_field.<init>(SingeltonClass_with_INSTANCE_as_field.java:8)
at de.mosst.spielwiese.no_class_def_found_error.SingeltonClass_with_INSTANCE_as_field.<clinit>(SingeltonClass_with_INSTANCE_as_field.java:5)
... 1 more
java.lang.NoClassDefFoundError: Could not initialize class de.mosst.spielwiese.no_class_def_found_error.SingeltonClass_with_INSTANCE_as_field
Start with getInstance()
at de.mosst.spielwiese.no_class_def_found_error.Tester.main(Tester.java:16)
The first initialization was wrong with this ErrorMessage:
java.lang.RuntimeException: RuntimeException by instance with getInstanceO_Method
at de.mosst.spielwiese.no_class_def_found_error.SingeltonClass_with_getInstanceO_Method.<init>(SingeltonClass_with_getInstanceO_Method.java:8)
at de.mosst.spielwiese.no_class_def_found_error.SingeltonClass_with_getInstanceO_Method.getInstance(SingeltonClass_with_getInstanceO_Method.java:13)
at de.mosst.spielwiese.no_class_def_found_error.Tester.main(Tester.java:26)
~~~~~~~~~~~~~~~~~~~~~~
The first initialization was wrong with this ErrorMessage:
java.lang.RuntimeException: RuntimeException by instance with getInstanceO_Method
at de.mosst.spielwiese.no_class_def_found_error.SingeltonClass_with_getInstanceO_Method.<init>(SingeltonClass_with_getInstanceO_Method.java:8)
at de.mosst.spielwiese.no_class_def_found_error.SingeltonClass_with_getInstanceO_Method.getInstance(SingeltonClass_with_getInstanceO_Method.java:13)
at de.mosst.spielwiese.no_class_def_found_error.Tester.main(Tester.java:33)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment