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
New Contributor
lukevanin
Posts: 4
Registered: ‎05-25-2012
My Device: Developer
My Carrier: Vodacom
Accepted Solution

Signature errors and "...attempt to access secure API" error

We have a very simple WebWorks Smart Phone app which opens an external URL on startup. The app works when deployed to a device using the JavaLoader to install the COD from the StandardInstall directory, but it does not run when installed using a JAD file from the OTAInstall directory (using JavaLoader or downloaded with the browser).

 

The error message displayed on startup is: "Error starting d6x102xdc6ff029cb2aedf9ecc1cc45a5fb474d: Module 'd6x102xdc6ff029cb2aedf9ecc1cc45a5fb474d' attempts to access a secure API."

 

Inspecting the event log shows two apparent signature errors:

guid:0x97C9F5F641D25E5F time: Fri May 25 15:38:00 2012 severity:0 type:2 app:smileyfrustrated:ystem data:CMM: d6x102xdc6ff029cb2aedf9ecc1cc45a5fb474d(5376) no sig from 0x545252

....

guid:0x97C9F5F641D25E5F time: Fri May 25 15:38:03 2012 severity:0 type:2 app:smileyfrustrated:ystem data:CMM: d6x102xdc6ff029cb2aedf9ecc1cc45a5fb474d(5376) no sig from 0x414252


Other posts on this forum indicate that the error is due to missing signatures. We have installed three signatures using signature tool:

client-RBB-xxxxxxxxxx.csi

client-RCR-xxxxxxxxxx.csi

client-RRT-xxxxxxxxxx.csi 

 

The installation is confirmed by running signature tool on each of these files, which displays the message: "The Signature Tool has already been registered with this signer. If you are attempting to register with the same signature twice you will overwrite the previous registration" :

 

The application is built using bbwp, then signed using signature tool with recursion on the output directory, eg:

C:\Program Files\Java\jdk1.6.0_26\jre\bin\java.exe -jar c:\Program Files\Research In Motion\BlackBerry WebWorks SDK 2.3.1.5\bin\SignatureTool.jar -a -c -C -p ... -r c:\temp\_546ade8eae214e950293e490c8eda702/output/d6x102xdc6ff029cb2aedf9ecc1cc45a5fb474d

 

No errors are reported from bbwp or signature tool. Running signature tool on each of the COD files in the OTAInstall directory displays an empty window, clicking the Request button displays a message: "No signatures required".

 

Our web server is configured with the necessary mime types for COD and JAD files.

 

All of the above appears to indicate that the necessary signatures are installed, that the COD files are being signed, but somehow the signatures are not being recognized when the app is deployed onto the handset.

 

We are using Java JDK 1.6 on Windows 7 (32-bit). The device we are testing this on is a BlackBerry Curve 8520 with OS 5.0 Bundle 1096 (v5.0.0.592, Platform 5.2.0.64).


Below are copies of the config.xml, index.html, event log.

 

Config.xml:

<?xml version="1.0" encoding="UTF-8" ?>
<widget xmlns="http://www.w3.org/ns/widgets"
xmlns:rim="http://www.blackberry.com/ns/widgets"
version="2.0"
rm:header="RIM-Widget: rim/widget">

<author href="http://www.d6technology.com" rim:copyright="Copyright D6 Technology">D6 Technology</author>

<rim:navigation mode="focus" />

<name>King Edward VII School</name>

<description>King Edward VII School</description>

<content src="index.html" />

<icon src="icon.png" />

<rim:smileytongue:ermissions>
<rim:smileytongue:ermit>access_shared</rim:smileytongue:ermit>
</rim:smileytongue:ermissions>

<access uri="http://d6communicator.com" subdomains="true" />

</widget>

 

Index.html:

<html>
<head>
<meta name="viewport" content="height=device-height,width=device-width,user-scalable=no" />
<script type="text/javascript">
function redirect() {
document.location.href = "http://mobi.d6communicator.com/102";
}
</script>
</head>

<body onLoad="redirect()">
<p>loading...</p>
</body>
</html>

 

Event log:

 

guid:0x97C9F5F641D25E5F time: Thu Jan 01 02:00:00 1970 severity:0 type:2 app:smileyfrustrated:ystem data:JVM:INFOp=293e80a8,a='5.0.0.592',o='5.2.0.64',h=8c000f03
guid:0x7D52B2987EC80054 time: Fri May 25 15:37:47 2012 severity:0 type:2 app:net.rim.fd data:FDOf
guid:0x1A77581FBCC4EC23 time: Fri May 25 15:37:47 2012 severity:0 type:2 app:net.rim.browser data:WPTCP-S TCP-WiFi:bb,js,ss,bg,em,http://live.vodafone.com/
guid:0x316C1626A9DDC375 time: Fri May 25 15:37:47 2012 severity:0 type:2 app:net.rim.tcp data:smileysurprised:pen
guid:0x3B91E1630F0745BC time: Fri May 25 15:37:47 2012 severity:0 type:2 app:net.rim.tunnel data:smileysurprised:pen-MagicRudyAPN.rim
guid:0x3B91E1630F0745BC time: Fri May 25 15:37:47 2012 severity:0 type:2 app:net.rim.tunnel data:smileyfrustrated:Tac-MagicRudyAPN.rim
guid:0x1A77581FBCC4EC23 time: Fri May 25 15:37:48 2012 severity:0 type:2 app:net.rim.browser data:load time: 1641
guid:0x1A77581FBCC4EC23 time: Fri May 25 15:37:48 2012 severity:0 type:2 app:net.rim.browser data:Brtd 1742 828
guid:0x3B91E1630F0745BC time: Fri May 25 15:37:48 2012 severity:0 type:2 app:net.rim.tunnel data:Clos-MagicRudyAPN.rim
guid:0x316C1626A9DDC375 time: Fri May 25 15:37:48 2012 severity:0 type:2 app:net.rim.tcp data:clos
guid:0x1A77581FBCC4EC23 time: Fri May 25 15:37:48 2012 severity:0 type:2 app:net.rim.browser data:WPTCP-S TCP-WiFi:bb,js,ss,bg,em,http://www.vodafone.com/
guid:0x316C1626A9DDC375 time: Fri May 25 15:37:48 2012 severity:0 type:2 app:net.rim.tcp data:smileysurprised:pen
guid:0x3B91E1630F0745BC time: Fri May 25 15:37:48 2012 severity:0 type:2 app:net.rim.tunnel data:smileysurprised:pen-MagicRudyAPN.rim
guid:0x3B91E1630F0745BC time: Fri May 25 15:37:48 2012 severity:0 type:2 app:net.rim.tunnel data:smileyfrustrated:Tac-MagicRudyAPN.rim
guid:0xB247BA8FCCE09BFE time: Fri May 25 15:37:48 2012 severity:0 type:2 app:net.rim.udp data:smileysurprised:pen
guid:0x109F36E312864507 time: Fri May 25 15:37:48 2012 severity:0 type:2 app:net.rim.dns data:smileyvery-happy:nsQ 1
guid:0x109F36E312864507 time: Fri May 25 15:37:49 2012 severity:0 type:2 app:net.rim.dns data:smileyvery-happy:nsR 1
guid:0x109F36E312864507 time: Fri May 25 15:37:49 2012 severity:0 type:2 app:net.rim.dns data:RetQ
guid:0x3B91E1630F0745BC time: Fri May 25 15:37:49 2012 severity:0 type:2 app:net.rim.tunnel data:Clos-MagicRudyAPN.rim
guid:0xB247BA8FCCE09BFE time: Fri May 25 15:37:49 2012 severity:0 type:2 app:net.rim.udp data:clos
guid:0x1A77581FBCC4EC23 time: Fri May 25 15:37:50 2012 severity:0 type:2 app:net.rim.browser data:load time: 1570
guid:0x1A77581FBCC4EC23 time: Fri May 25 15:37:50 2012 severity:0 type:2 app:net.rim.browser data:Brtd 1617 896
guid:0x1A77581FBCC4EC23 time: Fri May 25 15:37:50 2012 severity:0 type:2 app:net.rim.browser data:WPTCP-S TCP-WiFi:bb,js,ss,bg,em,http://www.vodafone.com/ppc.html
guid:0x1A77581FBCC4EC23 time: Fri May 25 15:37:51 2012 severity:0 type:2 app:net.rim.browser data:load time: 648
guid:0x1A77581FBCC4EC23 time: Fri May 25 15:37:51 2012 severity:0 type:2 app:net.rim.browser data:WPTCP-S TCP-WiFi:bb,js,ss,bg,em,http://192.168.1.144/cic/download/102//blackberry/OTAInstall/d6x102xdc6ff029cb2aedf9ecc1cc45a5fb474d...
guid:0x316C1626A9DDC375 time: Fri May 25 15:37:51 2012 severity:0 type:2 app:net.rim.tcp data:smileysurprised:pen
guid:0x3B91E1630F0745BC time: Fri May 25 15:37:51 2012 severity:0 type:2 app:net.rim.tunnel data:smileysurprised:pen-MagicRudyAPN.rim
guid:0x3B91E1630F0745BC time: Fri May 25 15:37:51 2012 severity:0 type:2 app:net.rim.tunnel data:smileyfrustrated:Tac-MagicRudyAPN.rim
guid:0x1A77581FBCC4EC23 time: Fri May 25 15:37:51 2012 severity:0 type:2 app:net.rim.browser data:load time: 445
guid:0x1A77581FBCC4EC23 time: Fri May 25 15:37:51 2012 severity:0 type:2 app:net.rim.browser data:Bafd
guid:0x1A77581FBCC4EC23 time: Fri May 25 15:37:51 2012 severity:0 type:2 app:net.rim.browser data:Brtd 508 381
guid:0x1A77581FBCC4EC23 time: Fri May 25 15:37:53 2012 severity:0 type:2 app:net.rim.browser data:Brtd 3234 69635
guid:0x3B91E1630F0745BC time: Fri May 25 15:37:53 2012 severity:0 type:2 app:net.rim.tunnel data:Clos-MagicRudyAPN.rim
guid:0x316C1626A9DDC375 time: Fri May 25 15:37:53 2012 severity:0 type:2 app:net.rim.tcp data:clos
guid:0x97C9F5F641D25E5F time: Fri May 25 15:37:55 2012 severity:0 type:2 app:smileyfrustrated:ystem data:CMM: add d6x102xdc6ff029cb2aedf9ecc1cc45a5fb474d(5376)
guid:0x97C9F5F641D25E5F time: Fri May 25 15:37:55 2012 severity:0 type:2 app:smileyfrustrated:ystem data:CMM: add d6x102xdc6ff029cb2aedf9ecc1cc45a5fb474d-1(5384)
guid:0x97C9F5F641D25E5F time: Fri May 25 15:37:55 2012 severity:0 type:2 app:smileyfrustrated:ystem data:CMM: add d6x102xdc6ff029cb2aedf9ecc1cc45a5fb474d-2(5412)
guid:0x97C9F5F641D25E5F time: Fri May 25 15:37:55 2012 severity:0 type:2 app:smileyfrustrated:ystem data:CMM: add d6x102xdc6ff029cb2aedf9ecc1cc45a5fb474d-3(5416)
guid:0x97C9F5F641D25E5F time: Fri May 25 15:37:55 2012 severity:0 type:2 app:smileyfrustrated:ystem data:CMM: add d6x102xdc6ff029cb2aedf9ecc1cc45a5fb474d-4(5477)
guid:0x97C9F5F641D25E5F time: Fri May 25 15:37:56 2012 severity:0 type:2 app:smileyfrustrated:ystem data:VM:+RR!net_rim_bb_browser_daemon RX=21.8M,RF=26.8M,FF=152.9M,OF=489K,OS=9.4M,ON=126.9K,OR=0,FR=1K,TR=3.7K,RR=0,IS=19K RA=12.4M,RS=9.4M,RN=66.9K TA=1.5M,TS=0,TN=17.5K PA=0,PS=0,PN=7K R0=55.2M,1=800.2K,2=20K,3=86.6K,4=1M,7=277.9K,8=6K,9=10.3M,10=16.4K,11=51.5K,12=270.2K,13=19.1K,15=371K,20=3.9K,21=524,22=62.8K,23=72.2K,24=16.5K
guid:0x97C9F5F641D25E5F time: Fri May 25 15:37:56 2012 severity:0 type:2 app:smileyfrustrated:ystem data:VM:-RRnet_rim_bb_browser_daemon RX=21.8M,RF=27.2M,FF=152.6M,OF=489K,OS=9M,ON=126.9K,OR=0,FR=1K,TR=3.7K,RR=0,IS=19K RA=12M,RS=9M,RN=65.3K TA=1.8M,TS=0,TN=19.1K PA=0,PS=0,PN=7K R0=55.2M,1=800.2K,2=20K,3=86.6K,4=1M,7=277.9K,8=6K,9=10M,10=16.4K,11=51.5K,12=270.2K,13=19.1K,15=371K,20=3.9K,21=524,22=62.8K,23=72.2K,24=16.5K
guid:0x97C9F5F641D25E5F time: Fri May 25 15:37:56 2012 severity:0 type:2 app:smileyfrustrated:ystem data:CMM: d6x102xdc6ff029cb2aedf9ecc1cc45a5fb474d(5376) no sig from 0x33
guid:0x97C9F5F641D25E5F time: Fri May 25 15:38:00 2012 severity:0 type:2 app:smileyfrustrated:ystem data:VM:LINK d6x102xdc6ff029cb2aedf9ecc1cc45a5fb474d
guid:0x97C9F5F641D25E5F time: Fri May 25 15:38:00 2012 severity:0 type:2 app:smileyfrustrated:ystem data:CMM: d6x102xdc6ff029cb2aedf9ecc1cc45a5fb474d(5376) no sig from 0x545252
guid:0x97C9F5F641D25E5F time: Fri May 25 15:38:00 2012 severity:0 type:2 app:smileyfrustrated:ystem data:module 5376 cannot reference net.rim.device.api.system.RuntimeStore
guid:0x97C9F5F641D25E5F time: Fri May 25 15:38:00 2012 severity:0 type:2 app:smileyfrustrated:ystem data:Module 'd6x102xdc6ff029cb2aedf9ecc1cc45a5fb474d' attempts to access a secure API.
guid:0x97C9F5F641D25E5F time: Fri May 25 15:38:00 2012 severity:0 type:2 app:smileyfrustrated:ystem data:Linker error: 'VerifyError' for d6x102xdc6ff029cb2aedf9ecc1cc45a5fb474d
guid:0x97C9F5F641D25E5F time: Fri May 25 15:38:02 2012 severity:0 type:2 app:smileyfrustrated:ystem data:CMM: d6x102xdc6ff029cb2aedf9ecc1cc45a5fb474d(5376) no sig from 0x33
guid:0xED7944AEBD0C4AE2 time: Fri May 25 15:38:02 2012 severity:2 type:2 app:Application Control data:IvHS
guid:0x1A77581FBCC4EC23 time: Fri May 25 15:38:02 2012 severity:0 type:2 app:net.rim.browser data:JAD 900
guid:0x97C9F5F641D25E5F time: Fri May 25 15:38:03 2012 severity:0 type:2 app:smileyfrustrated:ystem data:CMM: d6x102xdc6ff029cb2aedf9ecc1cc45a5fb474d(5376) no sig from 0x414252
guid:0x1A77581FBCC4EC23 time: Fri May 25 15:38:03 2012 severity:0 type:2 app:net.rim.browser data:WPTCP-S TCP-WiFi:bb,js,ss,bg,em,http://live.vodafone.com/
guid:0x316C1626A9DDC375 time: Fri May 25 15:38:04 2012 severity:0 type:2 app:net.rim.tcp data:smileysurprised:pen
guid:0x3B91E1630F0745BC time: Fri May 25 15:38:04 2012 severity:0 type:2 app:net.rim.tunnel data:smileysurprised:pen-MagicRudyAPN.rim
guid:0x3B91E1630F0745BC time: Fri May 25 15:38:04 2012 severity:0 type:2 app:net.rim.tunnel data:smileyfrustrated:Tac-MagicRudyAPN.rim
guid:0x1A77581FBCC4EC23 time: Fri May 25 15:38:06 2012 severity:0 type:2 app:net.rim.browser data:load time: 2836
guid:0x1A77581FBCC4EC23 time: Fri May 25 15:38:06 2012 severity:0 type:2 app:net.rim.browser data:Brtd 2875 828
guid:0x3B91E1630F0745BC time: Fri May 25 15:38:06 2012 severity:0 type:2 app:net.rim.tunnel data:Clos-MagicRudyAPN.rim
guid:0x316C1626A9DDC375 time: Fri May 25 15:38:06 2012 severity:0 type:2 app:net.rim.tcp data:clos
guid:0x1A77581FBCC4EC23 time: Fri May 25 15:38:06 2012 severity:0 type:2 app:net.rim.browser data:WPTCP-S TCP-WiFi:bb,js,ss,bg,em,http://www.vodafone.com/
guid:0x316C1626A9DDC375 time: Fri May 25 15:38:06 2012 severity:0 type:2 app:net.rim.tcp data:smileysurprised:pen
guid:0x3B91E1630F0745BC time: Fri May 25 15:38:06 2012 severity:0 type:2 app:net.rim.tunnel data:smileysurprised:pen-MagicRudyAPN.rim
guid:0x3B91E1630F0745BC time: Fri May 25 15:38:06 2012 severity:0 type:2 app:net.rim.tunnel data:smileyfrustrated:Tac-MagicRudyAPN.rim
guid:0x7D52B2987EC80054 time: Fri May 25 15:38:07 2012 severity:0 type:2 app:net.rim.fd data:FDOn 0
guid:0x3B91E1630F0745BC time: Fri May 25 15:38:07 2012 severity:0 type:2 app:net.rim.tunnel data:Clos-MagicRudyAPN.rim
guid:0x316C1626A9DDC375 time: Fri May 25 15:38:07 2012 severity:0 type:2 app:net.rim.tcp data:clos
guid:0x1A77581FBCC4EC23 time: Fri May 25 15:38:07 2012 severity:0 type:2 app:net.rim.browser data:load time: 453
guid:0xDCC3165DB06A81D6 time: Fri May 25 15:38:07 2012 severity:0 type:2 app:net.rim.wlan.cm data:CMIC
guid:0x1A77581FBCC4EC23 time: Fri May 25 15:38:08 2012 severity:0 type:2 app:net.rim.browser data:Brtd 1399 898
guid:0x3B91E1630F0745BC time: Fri May 25 15:38:08 2012 severity:0 type:2 app:net.rim.tunnel data:Clos-MagicRudyAPN.rim
guid:0x316C1626A9DDC375 time: Fri May 25 15:38:08 2012 severity:0 type:2 app:net.rim.tcp data:clos
guid:0xED7944AEBD0C4AE2 time: Fri May 25 15:38:14 2012 severity:2 type:2 app:Application Control data:IvHG
guid:0xED7944AEBD0C4AE2 time: Fri May 25 15:38:14 2012 severity:2 type:2 app:Application Control data:IvHG
guid:0xED7944AEBD0C4AE2 time: Fri May 25 15:38:14 2012 severity:2 type:2 app:Application Control data:IvHG
guid:0xED7944AEBD0C4AE2 time: Fri May 25 15:38:14 2012 severity:2 type:2 app:Application Control data:IvHG
guid:0xED7944AEBD0C4AE2 time: Fri May 25 15:38:14 2012 severity:2 type:2 app:Application Control data:IvHG
guid:0x97C9F5F641D25E5F time: Fri May 25 15:38:14 2012 severity:0 type:2 app:smileyfrustrated:ystem data:VM:LINK d6x102xdc6ff029cb2aedf9ecc1cc45a5fb474d
guid:0x97C9F5F641D25E5F time: Fri May 25 15:38:14 2012 severity:0 type:2 app:smileyfrustrated:ystem data:module 5376 cannot reference net.rim.device.api.system.RuntimeStore
guid:0x97C9F5F641D25E5F time: Fri May 25 15:38:14 2012 severity:0 type:2 app:smileyfrustrated:ystem data:Module 'd6x102xdc6ff029cb2aedf9ecc1cc45a5fb474d' attempts to access a secure API.
guid:0x97C9F5F641D25E5F time: Fri May 25 15:38:14 2012 severity:0 type:2 app:smileyfrustrated:ystem data:Linker error: 'VerifyError' for d6x102xdc6ff029cb2aedf9ecc1cc45a5fb474d
guid:0x97C9F5F641D25E5F time: Fri May 25 15:38:14 2012 severity:0 type:2 app:smileyfrustrated:ystem data:Error starting d6x102xdc6ff029cb2aedf9ecc1cc45a5fb474d: Module 'd6x102xdc6ff029cb2aedf9ecc1cc45a5fb474d' attempts to access a secure API.
guid:0x9C3CD62E3320B498 time: Fri May 25 15:38:14 2012 severity:1 type:3 app:Java Exception data:
RuntimeException
Error starting d6x102xdc6ff029cb2aedf9ecc1cc45a5fb474d: Module 'd6x102xdc6ff029cb2aedf9ecc1cc45a5fb474d' attempts to access a secure API.
net_rim_bb_framework_api-1(4BCA1C67)
ApplicationEntryPoint
run
0x147F
net_rim_bb_ribbon_app-3(4BCA1F39)
ApplicationEntry
invoke
0x4D8
net_rim_bb_ribbon_app-1(4BCA1F39)
RibbonLauncherImpl
<private>
0x5E6D
net_rim_bb_ribbon_app-1(4BCA1F39)
RibbonLauncherImpl
launch
0x3AA4
net_rim_bb_ribbon_app(4BCA1F39)
ApplicationMenu
trackwheelClick
0xA78
net_rim_bb_ribbon_app(4BCA1F39)
ApplicationMenu
navigationClick
0xA98
net_rim_cldc-12(4BCA1C15)
Screen
dispatchNavigationEvent
0x71D6
net_rim_cldc-13(4BCA1C15)
UiEngineImpl
processMessage
0x743B
net_rim_cldc-8(4BCA1C15)
Application
<private>
0x29CF
net_rim_cldc-8(4BCA1C15)
Application
processNextMessage
0x1AE3
net_rim_cldc-8(4BCA1C15)
Application
enterEventDispatcher
0x1A20
net_rim_bb_ribbon_app-1(4BCA1F39)
RibbonLauncherApp
main
0x3202
guid:0x97C9F5F641D25E5F time: Fri May 25 15:38:18 2012 severity:0 type:2 app:smileyfrustrated:ystem data:JVM:INFOp=293e80a8,a='5.0.0.592',o='5.2.0.64',h=8c000f03

Please use plain text.
BlackBerry Development Advisor
twindsor
Posts: 792
Registered: ‎07-15-2008
My Device: Z10
My Carrier: Bell

Re: Signature errors and "...attempt to access secure API" error

Why do you not just sign with the WebWorks tools themselves?

 

I think you are only signing one set of files. And since you don't have the .cso and .csl files in the output directory, the signature tool doesn't know what signatures to test for.

 

If those files are available in the other directory, then you can copy them over to the one that is not signed.

Tim Windsor
Application Development Advisor II
Please use plain text.
New Contributor
lukevanin
Posts: 4
Registered: ‎05-25-2012
My Device: Developer
My Carrier: Vodacom

Re: Signature errors and "...attempt to access secure API" error

Thanks for replying Tim.

 

The process is part of a CI environment, hence the reason for running the signature tool directly. bbwp didn't work for us since it has an issue where if it fails during the signing process it doesn't exit, but rather waits for some use input, which interferes with the automation. Signing using bbwp and the -g option produces the same results and errors as using signature tool directly. 

 

The .csi and .cso files are available in the StandardInstall directory, but not the OTAInstall directory, as you said. I tried copying the .csl and .cso files from StandardInstall to OTAInstall, and then running signature tool, but it does not seem to have solved the problem.

 

Loading the .cod files into the signature tool gui displays 5 lines for the primary cod name. The first three entries "RRT", "RBB", and "RCR" are shown with a green "Signed" status, and have a category of "Required". two other entries RCI and "3", are shown as "Not Required". I'm not sure if this is relevant but other forum posts seem to indicate that this is normal.

 

I have used signature tool on each individual .cod (without the -r option) and it reports no signatures are required.

 

Is it possible that the .csl or .cso files are missing a requirement?

 

xxx.csl

52424200=RIM Blackberry Apps API
52525400=RIM Runtime API
52435200=RIM Crypto API - RIM

 

xxx.cso

33000000=RIMAPPSA2
52424200=RIM Blackberry Apps API
52435200=RIM Crypto API - RIM
52434900=RIM Crypto API - Internal

Please use plain text.
BlackBerry Development Advisor
twindsor
Posts: 792
Registered: ‎07-15-2008
My Device: Z10
My Carrier: Bell

Re: Signature errors and "...attempt to access secure API" error

Is that code you posted earlier all that's in the build? For some reason, it's picking up the 33000000=RIMAPPSA2 key as well to sign your code with, and there's no way that a 3rd party app should require or be using that key. 

Tim Windsor
Application Development Advisor II
Please use plain text.
New Contributor
lukevanin
Posts: 4
Registered: ‎05-25-2012
My Device: Developer
My Carrier: Vodacom

Re: Signature errors and "...attempt to access secure API" error

[ Edited ]

The posted code is all that is included in the bundle. 

 

I manually removed the line "33000000=RIMAPPSA2" from the .cso file and then signed the application. When the application runs it shows the same error, but the log file appears to be slightly different in that it does not refer to any specific signatures in the error messages.

 

Log file:

guid:0x97C9F5F641D25E5F time: Thu Jan 01 02:00:00 1970 severity:0 type:2 app:smileyfrustrated:ystem data:JVM:INFOp=293e80a8,a='5.0.0.592',o='5.2.0.64',h=8c000f03
guid:0x97C9F5F641D25E5F time: Tue Jun 05 12:46:24 2012 severity:0 type:2 app:smileyfrustrated:ystem data:VM:LINK d6x80x5eb0f0ad298dd67a21dc74be0323b592
guid:0x97C9F5F641D25E5F time: Tue Jun 05 12:46:24 2012 severity:0 type:2 app:smileyfrustrated:ystem data:module 5777 cannot reference net.rim.device.api.system.PersistentObject
guid:0x97C9F5F641D25E5F time: Tue Jun 05 12:46:24 2012 severity:0 type:2 app:smileyfrustrated:ystem data:Module 'd6x80x5eb0f0ad298dd67a21dc74be0323b592-1' attempts to access a secure API.
guid:0x97C9F5F641D25E5F time: Tue Jun 05 12:46:24 2012 severity:0 type:2 app:smileyfrustrated:ystem data:Linker error: 'VerifyError' for d6x80x5eb0f0ad298dd67a21dc74be0323b592
guid:0x97C9F5F641D25E5F time: Tue Jun 05 12:46:25 2012 severity:0 type:2 app:smileyfrustrated:ystem data:Error starting d6x80x5eb0f0ad298dd67a21dc74be0323b592: Module 'd6x80x5eb0f0ad298dd67a21dc74be0323b592-1' attempts to access a secure API.
guid:0x9C3CD62E3320B498 time: Tue Jun 05 12:46:25 2012 severity:1 type:3 app:Java Exception data:
RuntimeException
Error starting d6x80x5eb0f0ad298dd67a21dc74be0323b592: Module 'd6x80x5eb0f0ad298dd67a21dc74be0323b592-1' attempts to access a secure API.
net_rim_bb_framework_api-1(4BCA1C67)
ApplicationEntryPoint
run
0x147F
net_rim_bb_ribbon_app-3(4BCA1F39)
ApplicationEntry
invoke
0x4D8
net_rim_bb_ribbon_app-1(4BCA1F39)
RibbonLauncherImpl
<private>
0x5E6D
net_rim_bb_ribbon_app-1(4BCA1F39)
RibbonLauncherImpl
launch
0x3AA4
net_rim_bb_ribbon_app(4BCA1F39)
ApplicationMenu
trackwheelClick
0xA78
net_rim_bb_ribbon_app(4BCA1F39)
ApplicationMenu
navigationClick
0xA98
net_rim_cldc-12(4BCA1C15)
Screen
dispatchNavigationEvent
0x71D6
net_rim_cldc-13(4BCA1C15)
UiEngineImpl
processMessage
0x743B
net_rim_cldc-8(4BCA1C15)
Application
<private>
0x29CF
net_rim_cldc-8(4BCA1C15)
Application
processNextMessage
0x1AE3
net_rim_cldc-8(4BCA1C15)
Application
enterEventDispatcher
0x1A20
net_rim_bb_ribbon_app-1(4BCA1F39)
RibbonLauncherApp
main
0x3202
guid:0x97C9F5F641D25E5F time: Tue Jun 05 12:46:29 2012 severity:0 type:2 app:smileyfrustrated:ystem data:JVM:INFOp=293e80a8,a='5.0.0.592',o='5.2.0.64',h=8c000f03


 

Not sure if this is helpful, but I used "JavaLoader dir -d -s -1" to list the dependencies:

 

d6x80x5eb0f0ad298dd67a21dc74be0323b592
d6x80x5eb0f0ad298dd67a21dc74be0323b592-1
d6x80x5eb0f0ad298dd67a21dc74be0323b592-2
d6x80x5eb0f0ad298dd67a21dc74be0323b592-3
d6x80x5eb0f0ad298dd67a21dc74be0323b592-4
Depends on:
net_rim_cldc
net_rim_bb_browser_field2_api
net_rim_os
net_rim_bb_web_jse_api
net_rim_networkapi
net_rim_bb_browser_field_api
net_rim_xml_org
net_rim_bbapi_push
net_rim_xml
net_rim_bbapi_browser


Please use plain text.
New Contributor
lukevanin
Posts: 4
Registered: ‎05-25-2012
My Device: Developer
My Carrier: Vodacom

Re: Signature errors and "...attempt to access secure API" error

[ Edited ]

I apologise for replying to my own post, but I think I may have found the cause of the problem. 

 

The hint was in the error log: 

Error starting d6x80x5eb0f0ad298dd67a21dc74be0323b592: Module 'd6x80x5eb0f0ad298dd67a21dc74be0323b592-1' attempts to access a secure API.

 

It seems that each .cod file requires corresponding .cso and .csl files. The OTAInstall directory contains multiple, consecutively numbered .cod files. Each of these files requires a pair of corresponding .cso and .csl files with the same file name as the .cod file.


For example, for an application with the name "app", the OTAInstall directory may contain multiple .cod files, ie:

app.cod, app-1.cod, app-2.cod, up to app-n.cod. The same directory must then contain app.cso, app.csl, app-1.cso, app-1.csl, app-2.cso, app-2.csl, up to app-n.cso, app-n.csl. 

 

This appears to be undocumented behaviour in bbwp.

 

Is anyone in the community able to answer why bbwp does not create these files? Is there any documentation that can confirm this requirement? Is there another prescribed method for building apps which mitigates these problems?

 

 

Please use plain text.
BlackBerry Development Advisor
twindsor
Posts: 792
Registered: ‎07-15-2008
My Device: Z10
My Carrier: Bell

Re: Signature errors and "...attempt to access secure API" error

I don't understand why you don't just sign the files with bbwp? If you pass in the -g parameter followed by your signature, it will sign it for you.

 

Or you could try signing the cod file in the standard directory and expanding it into it's constituent cod files for ease of signing.

Tim Windsor
Application Development Advisor II
Please use plain text.