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
My Carrier: cell c
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
Please use plain text.
Developer
peter_strange
Posts: 19,601
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...

 

 

 

Please use plain text.
Contributor
lostdragon
Posts: 34
Registered: ‎10-03-2012
My Device: 9300
My Carrier: cell c

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
Please use plain text.
Developer
peter_strange
Posts: 19,601
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. 

Please use plain text.
Contributor
lostdragon
Posts: 34
Registered: ‎10-03-2012
My Device: 9300
My Carrier: cell c

Re: application attemps to access secure api

My eclipse doesn't have the options menu
Please use plain text.
Contributor
lostdragon
Posts: 34
Registered: ‎10-03-2012
My Device: 9300
My Carrier: cell c

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.
Please use plain text.
Developer
simon_hain
Posts: 16,010
Registered: ‎07-29-2008
My Device: Z10 LE
My Carrier: O2 Germany

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
Please use plain text.
Contributor
lostdragon
Posts: 34
Registered: ‎10-03-2012
My Device: 9300
My Carrier: cell c

Re: application attemps to access secure api

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

Re: application attemps to access secure api

On eclipse the key is signed. But on my modules only rcr and rbb are signed
Please use plain text.
Developer
peter_strange
Posts: 19,601
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?

Please use plain text.