Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Verification error on Blackberry 8100

 
Rita Smith
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 8
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 231
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Looks like there's some code not passing through the bytecode preverifier.
Are you using Sun's WTK?
 
Rita Smith
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 231
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic