Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Java Development

Reply
Highlighted
Developer
Posts: 367
Registered: ‎11-25-2009
My Device: Not Specified
Accepted Solution

IllegalArgumentException from SQLiteDemo on CodeSigningKey(int, String)

Hello everyone,

 

I am trying to run the SQLiteDemo on my BlackBerry (5.0) simulator (using JDE Eclipse Plugin). The project will build with no problems. When I try to run the project from the simulator, however, I receive an IllegalArgumentException on CodeSigningKey.get(int, String) at line # 308 of CodeSigningKey.class (of which the source is not found).

 

I am guessing that this comes from the following line of code in SQLiteDemo.java:

 

// Retrieve the code signing key for the XYZ key file
        CodeSigningKey codeSigningKey = CodeSigningKey.get(CodeModuleManager.getModuleHandle( "SQLiteDemo" ), "XYZ");

 

The values of int, String at this point are:

 

moduleHandle = 0

signerId = XYZ

 

I am using the XYZ.key which was provided in the sqlitedemo.zip from BlackBerry. Does anyone know why I am receiving this error?

 

Thanks!

 

 

 

 

 

Developer
Posts: 367
Registered: ‎11-25-2009
My Device: Not Specified

Re: IllegalArgumentException from SQLiteDemo on CodeSigningKey(int, String)

My project was not "Activated for BlackBerry".