java.lang.ExceptionInInitializerError

Exception #2896592

Samebug tips0

We couldn't find tips for this exception.

Don't give up yet. Paste your full stack trace to get a solution.

Solutions on the web66

  • via Unknown by Unknown author,
  • via Stack Overflow by Abe
    ,
  • Stack trace

    • java.lang.ExceptionInInitializerError at Bar.main(test.gpp:10) 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.intellij.rt.execution.application.AppMain.main(AppMain.java:120) Caused by: org.codehaus.groovy.runtime.typehandling.GroovyCastException: Cannot cast object 'Foo$__clinit__closure2@26914f6a' with class 'Foo$__clinit__closure2' to class 'groovy.lang.Function1' at org.codehaus.groovy.runtime.typehandling.DefaultTypeTransformation.castToType(DefaultTypeTransformation.java:331) at org.codehaus.groovy.runtime.ScriptBytecodeAdapter.castToType(ScriptBytecodeAdapter.java:599) at Foo.<clinit>(test.gpp) ... 6 more

    Write tip

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

    Users with the same issue

    stigkjstigkj
    Once,
    musketyrmusketyr
    11 times, last one
    derproggerderprogger
    Once,
    johnxflyjohnxfly
    2 times, last one
    jessejesse
    2 times, last one
    11 more bugmates