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

Web and WebWorks Development

Reply
Highlighted
New Developer
Posts: 13
Registered: ‎04-27-2010
My Device: Curve 8900
My Carrier: Vodafone
Accepted Solution

Module attempts to access a secure API - even after code signing

I just successfully registered my signing codes with my BlackBerry Widget Packager tool, packaged a widget with it, loaded it onto my device, and I still get the error message shown in the title.

 

I am only attempting to access the locate method, which is fairly standard in many apps.

 

Does anyone have any idea what's going wrong?

Retired
Posts: 3,708
Registered: ‎10-16-2008
My Device: Z10
My Carrier: Rogers

Re: Module attempts to access a secure API - even after code signing

Which version of the BlackBerry OS do you have running on your device?

Tim Neil
Director, Application Platform & Tools Product Management
Follow me on Twitter
New Developer
Posts: 13
Registered: ‎04-27-2010
My Device: Curve 8900
My Carrier: Vodafone

Re: Module attempts to access a secure API - even after code signing

I am running the latest version - I only updated about 10 days ago.  Well, I assume there hasn't been a new release since then.

Retired
Posts: 3,708
Registered: ‎10-16-2008
My Device: Z10
My Carrier: Rogers

Re: Module attempts to access a secure API - even after code signing

By latest version, do you mean the latest version of 5.0?

 

The reason I ask is that there are updates provided for older operating systems from the carriers as well.  I just want to ensure you are running OS version 5.0 on your device.

Tim Neil
Director, Application Platform & Tools Product Management
Follow me on Twitter
New Developer
Posts: 13
Registered: ‎04-27-2010
My Device: Curve 8900
My Carrier: Vodafone

Re: Module attempts to access a secure API - even after code signing

I am using v5.0.0.592 (Platform 5.2.0.58). 

Retired
Posts: 3,708
Registered: ‎10-16-2008
My Device: Z10
My Carrier: Rogers

Re: Module attempts to access a secure API - even after code signing

When running the widget packager and the Signature Tool appears, does it show that the application is successfully signed for all the keys?

Tim Neil
Director, Application Platform & Tools Product Management
Follow me on Twitter
New Developer
Posts: 13
Registered: ‎04-27-2010
My Device: Curve 8900
My Carrier: Vodafone

Re: Module attempts to access a secure API - even after code signing

[ Edited ]

Edit:  A ha!  I just ran the signaturetool.jar and it opened up a console for me to add and sign .cod files - I'll test it, but I think this has cracked it!

 

 

Hi there,

 

No, it doesn't say anything about the keys, actually.  I notice that in my file structure, bbwp.exe is in a different folder from the signature tool.  There is a bbwp.jar file in the bin folder, with the signature tool.  Does this arrangement perhaps need to be changed? 

 

Thanks for staying with me on this Smiley Happy

New Contributor
Posts: 4
Registered: ‎05-11-2010
My Device: BlackBerry Tour
My Carrier: Sprint

Re: Module attempts to access a secure API - even after code signing

Hi,

    I just met the same problem: attempts to access a secure API.

    I developed my widget in Visual Studio .NET 2008 with BlackBerry Plugin, and built the solution in Release Signed configuration. Per my understanding, the .cod was signed automatically while being built. so why did I still encounter this issue?

Device: BlackBerry Tour

Development Env.: Windows 7 Home Premium 32

Visual Studio.NET 2008

 

Thanks,

 

Gunther

New Contributor
Posts: 4
Registered: ‎05-11-2010
My Device: BlackBerry Tour
My Carrier: Sprint

Re: Module attempts to access a secure API - even after code signing

Hi,

    I just met the same problem: attempts to access a secure API.

    I developed my widget in Visual Studio .NET 2008 with BlackBerry Plugin, and built the solution in Release Signed configuration. Per my understanding, the .cod was signed automatically while being built. so why did I still encounter this issue?

Device: BlackBerry Tour

Development Env.: Windows 7 Home Premium 32

Visual Studio.NET 2008

 

Thanks,

 

Gunther

Retired
Posts: 3,708
Registered: ‎10-16-2008
My Device: Z10
My Carrier: Rogers

Re: Module attempts to access a secure API - even after code signing

If you are running the RTM version of the Visual Studio plug-in and not the beta it should work fine on Win7.  Some issues we found in the Beta was around UAC protection of the directories where the BlackBerry Widget SDK are located.

 

Can you confirm your version of the Visual Studio Plugin?

 

Also, if you "Run As Administrator" for launching Visual Studio does it make a difference?

Tim Neil
Director, Application Platform & Tools Product Management
Follow me on Twitter