Thread classes fail to init (Dalvik)

142 views
Skip to first unread message

Tez

unread,
Aug 6, 2012, 8:15:40 AM8/6/12
to android-...@googlegroups.com
Under what circumstances does the VM crash with an error stating that the Thread classes failed to initialize?
Something like the following:

D/dalvikvm(  678): Exception Ljava/lang/NullPointerException; from ClassCache.java:241 not caught locally
W/dalvikvm(  678): Exception Ljava/lang/NullPointerException; thrown while initializing Ljava/lang/ClassCache;
D/dalvikvm(  678): Exception Ljava/lang/ExceptionInInitializerError; thrown from Class.java:784 to AccessController.java:188
D/dalvikvm(  678): Exception Ljava/lang/ExceptionInInitializerError; from AccessController.java:188 not caught locally
W/dalvikvm(  678): Exception Ljava/lang/ExceptionInInitializerError; thrown while initializing Ljava/nio/channels/spi/AbstractInterruptibleChannel;
D/dalvikvm(  678): Exception Ljava/lang/ExceptionInInitializerError; from FileChannelFactory.java:41 not caught locally
W/dalvikvm(  678): Exception Ljava/lang/ExceptionInInitializerError; thrown while initializing Ljava/lang/System;
D/dalvikvm(  678): Exception Ljava/lang/ExceptionInInitializerError; from ThreadGroup.java:254 not caught locally
W/dalvikvm(  678): Exception Ljava/lang/ExceptionInInitializerError; thrown while initializing Ljava/lang/ThreadGroup;

(I know the condition under which this is happening is vague, but I'm using a non-standard VM. Specifically the taintDroid VM. I am executing this on the emulator and this is a known problem and the correction is to execute the VM in portable mode. In the above case, the VM is in standard mode. I have asked questions on that group with no replies. Hence i;m asking here for some more general pointers/answers on the reasons for such a crash, or how something like this may be debugged)

-Earlence

bob

unread,
Aug 6, 2012, 5:18:35 PM8/6/12
to android-...@googlegroups.com

Well, what does line 241 of ClassCache.java say?

Something must be null there that shouldn't be.

Kristopher Micinski

unread,
Aug 6, 2012, 5:19:33 PM8/6/12
to android-...@googlegroups.com
That's platform code... Not code he wrote..

kris
> --
> You received this message because you are subscribed to the Google Groups
> "android-platform" group.
> To view this discussion on the web visit
> https://groups.google.com/d/msg/android-platform/-/ipO3kJ6DQO0J.
> To post to this group, send email to android-...@googlegroups.com.
> To unsubscribe from this group, send email to
> android-platfo...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/android-platform?hl=en.
Reply all
Reply to author
Forward
0 new messages