aspose file tools*
The moose likes BlackBerry and the fly likes Verification error on Blackberry 8100 Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Mobile » BlackBerry
Bookmark "Verification error on Blackberry 8100" Watch "Verification error on Blackberry 8100" New topic
Author

Verification error on Blackberry 8100

Rita Smith
Greenhorn

Joined: Mar 29, 2005
Posts: 10
Hi,
I'm new to blackberry development and please forgive me if this is a very dumb question.
When I start the app on the device pearl 8100, I get "Error starting appname: Module 'appname' has verification error 2124 at offset 1841". I have looked at the known issues from Blackbery which links this error to setting the Midlet as private. But my midlet has public access. I have also searched in google and have not found any answer to this error. Can anyone please help me?

If I run the app on the emulator, I get JVM error 104: uncaught exception and then when I say continue, it gives the same verification error as above.


thanks,
RS
george vortman
Greenhorn

Joined: Sep 14, 2006
Posts: 8
Make sure that you are signing anything that needs to be signed. Some RIM api's need a signature otherwise you will get a verification error.
Rita Smith
Greenhorn

Joined: Mar 29, 2005
Posts: 10
Thanks for your reply George. I didn't have any restricted APIs. Hence there was no need for a signature. The problem was obfuscation. When I loaded an unobfuscated build, the verification error went away and the app worked fine.

-RS
Eduardo Marques
Ranch Hand

Joined: Feb 19, 2005
Posts: 231
Looks like there's some code not passing through the bytecode preverifier.
Are you using Sun's WTK?


Eduardo Marques
Get ready for your SCMAD certification at J2MECertificate.com - See what all the buzz is about ...
Rita Smith
Greenhorn

Joined: Mar 29, 2005
Posts: 10
Yes. I am using Sun's WTK. After creating the jad and jar, I convert it to the cod for Blackberry suing blackberry tools.

-Rita
Eduardo Marques
Ranch Hand

Joined: Feb 19, 2005
Posts: 231
It is hard to say, since I am not familiar with Blackberry tools, but the error you mentioned seems to imply that the Java bytecode has not been properly transformed through the WTK preverifier or has maybe been corrupted by the format conversion.
[ April 16, 2007: Message edited by: Eduardo Marques ]
gokul sukumar
Greenhorn

Joined: Apr 15, 2008
Posts: 1
Hi guys,

i am also working on blackberry 8100. when i obfcuscate the jad/jar & convert to COD file.it has converted sucessfully.

when i am launching that COD file to my handset. it gives an Error starting <appname>: Module '<appname>' has verification error 1044 at offset 6ccc".

As Rita given suggestion i tried with unobfcuscated jad/jar generation. That time i was getting error as like this "CGX.cCanvas: Error!: Missing stack map at label: 30".

Can anyone help on this error..

Thanks in advance
Parth Mehta
Greenhorn

Joined: Mar 02, 2007
Posts: 7
Hi everyone,
I had a similar problem with my MIDlet suite, but i have solved the problem. It seems that you are making the very same mistake that I was. You are using the WTK to preverify your code and generate the JAR. BIG mistake. use the rapc command directly on your source code. Let Blackberry do the preverification / JAR generation for you. This will 100% solve your problem.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Verification error on Blackberry 8100