You Are Here:

Community: Developer Discussion Boards

#1 Old VerifyError 100 - 2008-09-04, 11:11

Join Date: Nov 2005
Posts: 148
nagkumar
Offline
Regular Contributor
Hi,

Would any one tell us when the VerifyError 100 could come. We started seeing this comign on N73 device. The application works fine on every emulator of Nokia including s6O 3rd v1.1 emulators.

Our observation is it some thing related to creating of some anonymous inner class. If we convert this anonymous one to concreate then things seems to work fine..

The one which is resulting in this error is
OkCancelListner lListner = new OkCancelListner();
{
protected final void onOK()
{
ParentMidlet.MIDLET.destroyApp(true);
}
};

If I dont't overide onOK() method this seems to work fine.. I am using Proguard 4.2 for obfuscation.

Raja Nagendra Kumar,
C.T.O
www.tejasoft.com
Reply With Quote

#2 Old Re: VerifyError 100 - 2008-09-05, 18:52

Join Date: Apr 2003
Posts: 6,408
Location: USA, CA
hartti's Avatar
hartti
Offline
Nokia Expert
Please provide more information, like...

Does the un-obfuscated version work? Does the obfuscated version work?
You mention that changing the code makes the application work. Can you show which code you are replacing with which code?

Hartti
Reply With Quote

#3 Old Re: VerifyError 100 - 2008-09-05, 19:04

Join Date: Nov 2005
Posts: 148
nagkumar
Offline
Regular Contributor
Quote:
Originally Posted by hartti View Post
Please provide more information, like...

Does the un-obfuscated version work? Does the obfuscated version work?
You mention that changing the code makes the application work. Can you show which code you are replacing with which code?

Hartti
Hi Hartti,

We could not identify the exact reason, however when we did not use anonymous class it started to work. i.e

Converted

OkCancelListner lListner = new OkCancelListner();
{
protected final void onOK()
{
ParentMidlet.MIDLET.destroyApp(true);
}
};

to concreate class.


public ExitListner extends OkCancelListner
{
protected final void onOK()
{
ParentMidlet.MIDLET.destroyApp(true);
}
}
and used it as

ExitListner lListner = new ExitListner();

The error was observed on a jar which obfuscated using Progaurd 4.2. We tried with 3.8 version, which also had the same error

We could not test unobfuscated as our application was using http://www.bouncycastle.org/java.html api. Unfortunately installing this application without obfuscation would result in install fail error due to they using javax in some places.

Nokia really had very bad JVM impl.. when people use real ooad things. Other one we observed was on 6600 and N70, in some cases, it was giving method not found error, though the method existed as part of the interface. When we casted it explicitly it started to work. Pl. report to right dev team in Nokia so that one is not forced to look for these work arrounds.

Regards,
Nagendra
Last edited by nagkumar : 2008-09-05 at 20:16.
Reply With Quote

#4 Old Re: VerifyError 100 - 2008-09-05, 19:25

Join Date: Apr 2003
Posts: 6,408
Location: USA, CA
hartti's Avatar
hartti
Offline
Nokia Expert
Ok, thanks for your feedback!

Hartti
Reply With Quote
Reply « Previous Thread | Next Thread »
Display Modes
Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules

You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Forum Jump

Rate This

 
Bookmark this page: DeliciousDiggFacebookGoogleYahooStumbleUponRedditDiigoTechnocratiTwitter  Share this page Share this page Print this Page Print this page Invite a friend Invite a friend
京ICP备05048969号    Email Newsletters Press Terms & Conditions Privacy Policy Sitemap Contact Us © 2009 Nokia