java.lang.RuntimeException: Unexpected exception during cast.

Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Samebug tips

,

If you want to access functions/variables of a class from a different class they can't be private. The modifier private means that a function/variable can only be accessed from within the same class. Try the default, protected or public modifier.

,

When a member (Variables, methods, and constructors) is private, it is only accessible within the same class as it is declared. Attempting to access or instantiate it from another class would throw java.lang.IllegalAccessException exception.

Solutions on the web

via Google Groups by xybrek via StackOverflow, 3 months ago
Unexpected exception during cast.
via Google Groups by Unicate via StackOverflow, 3 months ago
Unexpected exception during cast.
via Stack Overflow by migea
, 2 years ago
java.lang.IllegalAccessException: Class com.google.apphosting.utils.c learcast.ClearCast$CasterImpl can not access a member of class com.google.appeng ine.tools.development.agent.$Proxy0 with modifiers "public"
at sun.reflect.Reflection.ensureMemberAccess(Reflection.java:101)
at java.lang.reflect.AccessibleObject.slowCheckMemberAccess(AccessibleObject.java:295)
at java.lang.reflect.AccessibleObject.checkAccess(AccessibleObject.java:287)
at com.google.apphosting.utils.clearcast.ClearCast$CasterImpl.cast(ClearCast.java:383)
at com.google.apphosting.utils.clearcast.ClearCast.staticCast(ClearCast.java:252)
at com.google.apphosting.utils.clearcast.ClearCast.staticCast(ClearCast.java:263)
at com.google.appengine.tools.development.agent.AppEngineDevAgent.premain(AppEngineDevAgent.java:61)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:483)
at sun.instrument.InstrumentationImpl.loadClassAndStartAgent(InstrumentationImpl.java:386)

Users with the same issue

3 times, 1 month ago
Once, 2 months ago
Once, 2 months ago
Once, 3 months ago
Once, 3 months ago

Write tip

Know the solutions? Share your knowledge to help other developers to debug faster.