Cynosure.X International LLC

: :

Add Comment | Related Links | TrackBack
Related Content

Possible Cause of java.lang.VerifyError

Today I encountered a "Force Close" dialog while improving my "Memory Watch" Android app. The error message shown in "Dalvik Debug Monitor" says, "java.lang.VerifyError: cynosurex.lang.EnhancedBoolean". And that was it. That was quite vague. EnhancedBoolean class came out of the "CI Class Package" and it a fairly simple class.

After a bit of code reading, it occurred to me that EnhancedBoolean class calls upon EnhancedInteger class. I had forgotten to include EnhancedInteger class in the Android app package.

Once I have included EnhancedInteger in the package, the "Memory Watcher" app ran without any problems.

Chieh Cheng
Mon, 02 Aug 2010 23:16:43 +0000

Found another case of java.lang.VerifyError today. I found this problem on Android 1.5 (API Level 3). If you call an non-existing method, it throws a java.lang.VerifyError. In my example, I called ActivityManager.getMemoryClass ().

On Android 2.1 (API Level 7), java.lang.NoSuchMethodError would be thrown--for example, call Display.getRotation ()--which seems to make more sense.

Unfortunately, unlike the java.lang.NoSuchMethodError, the java.lang.VerifyError is non-catchable at run-time. At this time, I found no way around this problem. Looks like Android 1.5 verifies all the methods prior to letting your software run.

Chieh Cheng
Thu, 12 Aug 2010 23:09:16 +0000

Add Comment | Related Links | TrackBack
Related Content

Did your message disappear? Read the Forums FAQ.

Add Comment

Spam Control | * indicates required field
Your Name: *
E-mail:
Remember Me!
Comment: *
File attachment is optional. Please do not attach a file to your submission unless it is relevent.
Attach File:
(20 MB Max)
Spam Protection: * Answer of 3 + 7?
Click button only once, please!

TrackBack

TrackBack only accepted from WebSite-X Suite web sites. Do not submit TrackBacks from other sites.

Send Ping | TrackBack URL | Spam Control

No TrackBacks yet. TrackBack can be used to link this thread to your weblog, or link your weblog to this thread. In addition, TrackBack can be used as a form of remote commenting. Rather than posting the comment directly on this thread, you can posts it on your own weblog. Then have your weblog sends a TrackBack ping to the TrackBack URL, so that your post would show up here.

Messages, files, and images copyright by respective owners.

Products | Services
Forums | Latest | RSS
Library | Search | Wiki
Help | Licenses

Login | Register

39 Users Online

Hacking Digital Cameras
Fun for Photographers



Amazon Associate

Copyright © 1996 - 2024. All Rights Reserved.