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.
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.
Joined: Mar 29, 2005
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.
Yes. I am using Sun's WTK. After creating the jad and jar, I convert it to the cod for Blackberry suing blackberry tools.
Joined: Feb 19, 2005
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 ]
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’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link: http://aspose.com