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


Thank you for visiting the BlackBerry Support Community Forums.

BlackBerry will be closing the BlackBerry Support Community Forums Device Forums on April 1st (Developers, see below)

BlackBerry remains committed to providing excellent customer support to our customers. We are delighted to direct you to the CrackBerry Forums, a well-established and thorough support channel, for continued BlackBerry support. Please visit http://forums.crackberry.com or http://crackberry.com/ask. You can also continue to visit BlackBerry Support or the BlackBerry Knowledge Base for official support options available for your BlackBerry Smartphone.

"When we launched CrackBerry.com 10 years ago, we set out to make it a fun and useful destination where BlackBerry Smartphone owners could share their excitement and learn to unleash the full potential of their BlackBerry. A decade later, the CrackBerry community is as active and passionate as ever and I know our knowledgeable members and volunteers will be excited to welcome and assist more BlackBerry owners with their questions."

- Kevin Michaluk, Founder, CrackBerry.com

Developers, for more information about the BlackBerry Developer Community please review Join the Conversation on the BlackBerry Developer Community Forums found on Inside BlackBerry.


Reply
Developer
Posts: 73
Registered: ‎07-16-2009
My Device: Bold

ERROR: module attemps to access secure API, BUT application signed.

Only a few days ago my software application was reviewed and Approved at the BlackBerry App World.

Downloads to date, 500 approx.

Problems reported by users: 3, not so bad, haha.

ERROR: "module attemps to access secure API."

Whaatt ??!!! My application is signed, of course. Repeat, revised and approved by RIM.

 

So I do not understand what could be the problem.

 

The users who have reported these problem: Bold 9700 with OS 5.0.0.296 Curve 8330 with OS 4.5.0.175 Bold 9000 with OS 4.6

 

Any idea?

 

Thank you very much.

 

Eduardo

BlackBerry Development Advisor
Posts: 15,889
Registered: ‎07-09-2008
My Device: BlackBerry PRIV
My Carrier: Bell

Re: ERROR: module attemps to access secure API, BUT application signed.

Open your cod file in the SignatureTool.  What keys does it show that it was signed from?

 

Are you able to obtain an event log from one of these users after they have opened the application?  If so, please post the "no sig from..." lines of the event log that refer to your application.  You can view the event log by holding Alt and pressing LGLG on the home screen or by using javaloader with the following command:

 

javaloader -u eventlog > mylog.txt

Mark Sohm
BlackBerry Development Advisor

Please refrain from posting new questions in solved threads.
Problem solved? Click the Accept As Solution button.
Developer
Posts: 73
Registered: ‎07-16-2009
My Device: Bold

Re: ERROR: module attemps to access secure API, BUT application signed.

 

Hello @Mark,

 

Unfortunately I don't have control over user devices and honestly I think they don't have the ability to send me the events file (with javaloader.exe) I believe they only want to use my application.

Anyway I found this text in a document titled BlackBerry Signing Authority Tool: Release Notes and Known Issues List.

 


"SDR 55471: Inability to load signed file


If adding a signature(s) causes the data section of a .cod file to exceed 65536 bytes (2^16) in size, the File Signer application does not report an error, and the .cod file cannot be loaded onto a secure device.
Impact: In rare cases, a .cod file signed by the Signature Tool will not run on a secure device.


Workaround: Increase or decrease the size of the file. "

 

 

I think this is the problem. BUT the solution is ridiculous...

 

How can I change the size of a file sent to the App World? I can't, I can't.

 

 

Thanks again.

 

 

 

Developer
Posts: 212
Registered: ‎07-18-2008
My Device: Storm 9550

Re: ERROR: module attemps to access secure API, BUT application signed.

you need the eventlog to find out what is exactly the API that was accessed. You dont need Javaloader. The users could copy the evenlog to an email manually (open eventlog as described and the menu has "copy eventlog" or similar) and then paste it into an email. Did you sign the application yourself? With which code signing keys? Increasing the size could be done by putting an image into it but then it must be submitted again to appworld.
If your problem was solved, please mark answer as "Accepted solution"
If your want to thank, click the "kudo" symbol
___________
visit me: http://mobilejavadevelopment.blogspot.com/
visit the Berlin BlackBerry Developer Group: http://berlinblackberrydevelopers.blogspot.com/
Developer
Posts: 73
Registered: ‎07-16-2009
My Device: Bold

Re: ERROR: module attemps to access secure API, BUT application signed.

I finally got some EventLog of users and I see that the error is another that I supposed.

 

(My app is MiniPaintFree)

 

 

"a Java Exception - RuntimeException - 27/12 12:29:19
| Error starting MiniPaintFree: Module 'MiniPaintFree' attempts to access a secure API.
| net_rim_bb_framework_api-1
|  ApplicationEntryPoint
...
¿ System - Error starting MiniPaintFree: Module 'MiniPaintFree'
attempts to access a secure API. - 27/12 12:29:19
¿ System - Linker error: 'VerifyError' for MiniPaintFree - 27/12 12:29:19
¿ System - Module 'MiniPaintFree' attempts to access a secure API. -
27/12 12:29:19
¿ System - module 10243 cannot reference
net.rim.device.api.system.PersistentObject - 27/12 12:29:19
¿ System - VM:LINK MiniPaintFree - 27/12 12:29:18
...
¿ System - module MiniPaintFree missing RRT signature - 27/12 12:28:36
¿ System - CMM: MiniPaintFree(10243) no sig from 0x33 - 27/12 12:28:36
¿ System - Linker error: 'VerifyError' for MiniPaintFree - 27/12 12:28:34
¿ System - Module 'MiniPaintFree' attempts to access a secure API. -
27/12 12:28:34
¿ System - module 10243 cannot reference
net.rim.device.api.system.PersistentObject - 27/12 12:28:34
¿ System - CMM: MiniPaintFree(10243) no sig from 0x545252 - 27/12 12:28:34
¿ System - VM:LINK MiniPaintFree - 27/12 12:28:33
¿ System - CMM: MiniPaintFree(10243) no sig from 0x33 - 27/12 12:28:29
¿ System - CMM: boltbb160(9674) no sig from 0x33 - 27/12 12:28:29
¿ System - CMM: GoogleMaps(9567) no sig from 0x33 - 27/12 12:28:29
¿ System - CMM: com_plazmic_theme_puresoundtour(9435) no sig from 0x3 "

 

 

 

Developer
Posts: 212
Registered: ‎07-18-2008
My Device: Storm 9550

Re: ERROR: module attemps to access secure API, BUT application signed.

It seems you want to use PersistentStore, which is signed API and needs the RRT signature. I think it must be signed before submission to AppWorld. Did you check with signature tool as suggested?
If your problem was solved, please mark answer as "Accepted solution"
If your want to thank, click the "kudo" symbol
___________
visit me: http://mobilejavadevelopment.blogspot.com/
visit the Berlin BlackBerry Developer Group: http://berlinblackberrydevelopers.blogspot.com/
Highlighted
Developer
Posts: 73
Registered: ‎07-16-2009
My Device: Bold

Re: ERROR: module attemps to access secure API, BUT application signed.

As I was saying in my original post my app is signed. My app was revised and then approved by the Store Managers, in the App World. They require that the app is signed.

The curious, only a few percent of users have this problem, only one of fifty.

 

 

Thanks.

BlackBerry Development Advisor
Posts: 15,889
Registered: ‎07-09-2008
My Device: BlackBerry PRIV
My Carrier: Bell

Re: ERROR: module attemps to access secure API, BUT application signed.

Does the SignatureTool show that RRT signing has been applied, or is it missing from the list?

 

Support - Signing does not apply the RIM Runtime signature key
Article Number: DB-00717

http://www.blackberry.com/knowledgecenterpublic/livelink.exe/fetch/2000/348583/800901/Support_-_Sign...

Mark Sohm
BlackBerry Development Advisor

Please refrain from posting new questions in solved threads.
Problem solved? Click the Accept As Solution button.
Developer
Posts: 73
Registered: ‎07-16-2009
My Device: Bold

Re: ERROR: module attemps to access secure API, BUT application signed.

@Mark,

 

My app is signed. They have the RRT, RCR, RBB signatures. Here are the screenshots:

 

minipaint-sig-1.png

 

 

These are the COD files that I put in App Store.

 

minipaint-sig-2.png

 

 

Something more,

 

A see (and I think) that  Article Number: DB-00717 apply only for JDE, I'm using eclipse.

 

By the way,

 

Can an unsigned application be installed in 99% of devices/OS  and fail only 1%?

 

I don't think so, and, this is the problem with my app.

 

 

Thanks for your time.

 


 


BlackBerry Development Advisor
Posts: 15,889
Registered: ‎07-09-2008
My Device: BlackBerry PRIV
My Carrier: Bell

Re: ERROR: module attempts to access secure API, BUT application signed.

The files look to be signed.  You are correct in that if a file wasn't signed, it would trigger an error on a BlackBerry smartphones.

 

Does this only occur when the application is downloaded through BlackBerry App World or are these users installing using some other means?  Are the file size values specified in your JAD file correct?  I've seen issues where COD files can be truncated by a WAP gateway if the file size is larger than what is listed in the JAD file.

Mark Sohm
BlackBerry Development Advisor

Please refrain from posting new questions in solved threads.
Problem solved? Click the Accept As Solution button.