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
Contributor
lostdragon
Posts: 34
Registered: ‎10-03-2012
My Device: 9300
Accepted Solution

application attemps to access secure api

Hello

Iam trying to run my application on my phone, it is running fine on the simulator. When I run it on my phone it gives me an error saying "application attemps to access secure api"
Thank you in advance
Developer
peter_strange
Posts: 19,610
Registered: ‎07-14-2008
My Device: Not Specified

Re: application attempts to access secure api

You need to sign your app if you want to run it on a real device. 

 

You will find more on signing here:

https://developer.blackberry.com/java/documentation/code_signing_1977871_11.html

 

If you search the forum you will find this problem has affected other people, for example here:

http://supportforums.blackberry.com/t5/Java-Development/App-trying-to-access-a-secure-API/m-p/189075...

 

 

 

Contributor
lostdragon
Posts: 34
Registered: ‎10-03-2012
My Device: 9300

Re: application attemps to access secure api

Hello peter, I have looked at your links, and signed my application, but I still get the same error. Could there be any other reason for this error
Developer
peter_strange
Posts: 19,610
Registered: ‎07-14-2008
My Device: Not Specified

Re: application attempts to access secure api

Go to Options->Device->Application Management, press menu key, select modules, find your module(s), click on them and check the Signer IDs.  Should say RBB, RCR, RRT.  If it doesn't, then you have not put the signed version on the phone. 

Contributor
lostdragon
Posts: 34
Registered: ‎10-03-2012
My Device: 9300

Re: application attemps to access secure api

My eclipse doesn't have the options menu
Contributor
lostdragon
Posts: 34
Registered: ‎10-03-2012
My Device: 9300

Re: application attemps to access secure api

Sorry about that.
You meant on my phone. On my modules I have RCR RBB, but not RRT.
Developer
simon_hain
Posts: 16,282
Registered: ‎07-29-2008
My Device: Z10 LE, Z30, Passport

Re: application attemps to access secure api

clean the build, compile, sign, make sure that you load the signed file.
----------------------------------------------------------
feel free to press the like button on the right side to thank the user that helped you.
please mark posts as solved if you found a solution.
@SimonHain on twitter
Contributor
lostdragon
Posts: 34
Registered: ‎10-03-2012
My Device: 9300

Re: application attemps to access secure api

My RRT key is still not getting signed. Is there a special way to sign this key
Contributor
lostdragon
Posts: 34
Registered: ‎10-03-2012
My Device: 9300

Re: application attemps to access secure api

On eclipse the key is signed. But on my modules only rcr and rbb are signed
Developer
peter_strange
Posts: 19,610
Registered: ‎07-14-2008
My Device: Not Specified

Re: application attempts to access secure API

I do my signing separately from Eclipse, so I don't how you set it up in Eclipse.  But the location that does the signing needs to have the three signing keys available.  Did you get three?