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


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: 37
Registered: ‎03-12-2009
My Device: Not Specified
Accepted Solution

Module attempts to access a secure API - after reinstalling Signature Keys ...

Hi,

 

Ater a problem I need to reinstall my eclipse + jde plugin, due to this reinstallation I also need to ask for new .csi files in order to also resinstall the Signature Keys.

After receiving the 3 new csi files, the signature keys has been correctly installed.

Now I have no problem when I execute a "Build and Sign Blackberry Widget Project", I receive each time a "BUILD SUCCESS " result.

 

The problem is when I execute the widget on a real device, after launch the application each time I get an "Module attempts to access a secure API" then the application failed.

 

Device : Storm 2 9529 ver. 5.0.0.306 (platform )

 

For your information before my new installtion of the eclipse + JDE the builded widget with the previous keys and previous eclipse run well on the same device as above.

I did not modify my source code, I just try to check if the application always run with the new keys and the new eclipse +JDE.

 

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 - after reinstalling Signature Keys ...

Hi geoffre,

 

A couple of questions...

 

When you are performing your build and sign, is the User Interface of the signing tool popping up?  

 

Does it show that all the points were successfully signed?

 

Do you receive an email stating that the application was successfully signed?

 

Thanks

Tim Neil
Director, Application Platform & Tools Product Management
Follow me on Twitter
Developer
Posts: 37
Registered: ‎03-12-2009
My Device: Not Specified

Re: Module attempts to access a secure API - after reinstalling Signature Keys ...

Tim,

 

Below my answers :

 

When you are performing your build and sign, is the User Interface of the signing tool popping up?  

Yes, the signature tool windows is open during the building process.

 

Does it show that all the points were successfully signed?

Difficult to answer, as the signature tool window disappear quickly. But at first sight, all seems to be correct.

 

Do you receive an email stating that the application was successfully signed?

Yes, I receive 10 "Successful Code Signing Request" confirmations mails. And I have 10 cod files compiled in the build\OTAInstall directory of my project.

 

Thanks.

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

Re: Module attempts to access a secure API - after reinstalling Signature Keys ...

What I have done by accident in the past was when I re-installed I changed what my default workspace was.. So when I was building my project, it was putting the signed binaries in a different directory.

 

What I ended up doing was copying old unsigned cods to the device instead of my signed ones.  Can you double check that your workspace output paths haven't changed after your re-install?

Tim Neil
Director, Application Platform & Tools Product Management
Follow me on Twitter
Developer
Posts: 37
Registered: ‎03-12-2009
My Device: Not Specified

Re: Module attempts to access a secure API - after reinstalling Signature Keys ...

Tim,

 

I check the configuration of my widget project.

 

- I check in menu Project/Properties/Resource, location attribut of the project is the correct folder.

- I also check in menu Project/Properties/Blackberry Widget, Output folder is also correct.

 

 

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

Re: Module attempts to access a secure API - after reinstalling Signature Keys ...

Please post a screen capture of the SignatureTool with your COD file open in it.  You can manually start SignatureTool and open your widget cod file to see what it was signed with and what code signing keys are installed.

 

The event log on the BlackBerry Smartphone will show what key is missing.  You can extract the event log from the BlackBerry Smartphone using javaloader (command shown below) or by holding the Alt key and pressing lglg from the Home Screen.  Please post a snippet of your event log from the time you tried to run your application.

 

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: 37
Registered: ‎03-12-2009
My Device: Not Specified

Re: Module attempts to access a secure API - after reinstalling Signature Keys ...

Please find attach the element below :

 

Signature tool with the COD files of the OTAInstall folder :

 

3007i408ADE2406E57476

 

----------------------------------------

Element of the log files of my blackberry storm 9520 (name of my widget is SWGWidget):

 


guid:0x9E1837BCC1E53D3 time: Wed Aug 25 16:06:30 2010  severity:5 type:2 app:net.rim.http data:Hcmr
guid:0x1A77581FBCC4EC23 time: Wed Aug 25 16:06:30 2010  severity:5 type:2 app:net.rim.browser data:Hbos
guid:0x316C1626A9DDC375 time: Wed Aug 25 16:06:30 2010  severity:5 type:2 app:net.rim.tcp data:TXsb   574
guid:0x316C1626A9DDC375 time: Wed Aug 25 16:06:30 2010  severity:5 type:2 app:net.rim.tcp data:TXss
guid:0x1A77581FBCC4EC23 time: Wed Aug 25 16:06:30 2010  severity:5 type:2 app:net.rim.browser data:Haos
guid:0x97C9F5F641D25E5F time: Wed Aug 25 16:06:31 2010  severity:0 type:2 appSmiley Frustratedystem data:CMM: add SWGWidget(8638)
guid:0x97C9F5F641D25E5F time: Wed Aug 25 16:06:31 2010  severity:0 type:2 appSmiley Frustratedystem data:CMM: add SWGWidget-1(8641)
guid:0x97C9F5F641D25E5F time: Wed Aug 25 16:06:31 2010  severity:0 type:2 appSmiley Frustratedystem data:CMM: add SWGWidget-2(8644)
guid:0x97C9F5F641D25E5F time: Wed Aug 25 16:06:31 2010  severity:0 type:2 appSmiley Frustratedystem data:CMM: add SWGWidget-3(8647)
guid:0x97C9F5F641D25E5F time: Wed Aug 25 16:06:31 2010  severity:0 type:2 appSmiley Frustratedystem data:CMM: add SWGWidget-4(8650)
guid:0x97C9F5F641D25E5F time: Wed Aug 25 16:06:31 2010  severity:0 type:2 appSmiley Frustratedystem data:CMM: add SWGWidget-5(8634)
guid:0x97C9F5F641D25E5F time: Wed Aug 25 16:06:31 2010  severity:0 type:2 appSmiley Frustratedystem data:CMM: add SWGWidget-6(8631)
guid:0x97C9F5F641D25E5F time: Wed Aug 25 16:06:31 2010  severity:0 type:2 appSmiley Frustratedystem data:CMM: add SWGWidget-7(8628)
guid:0x97C9F5F641D25E5F time: Wed Aug 25 16:06:31 2010  severity:0 type:2 appSmiley Frustratedystem data:CMM: add SWGWidget-8(8625)
guid:0x97C9F5F641D25E5F time: Wed Aug 25 16:06:31 2010  severity:0 type:2 appSmiley Frustratedystem data:CMM: add SWGWidget-9(8622)
guid:0x97C9F5F641D25E5F time: Wed Aug 25 16:06:32 2010  severity:0 type:2 appSmiley Frustratedystem data:VM:+RR!net_rim_bb_browser_daemon RX=54.9M,RF=74.8M,FF=140.5M,OF=973.2K,OS=16.9M,ON=135.7K,OR=0,FR=44.9K,TR=43.8K,RR=1,IS=8.5K RA=19.9M,RS=16.9M,RN=88.1K TA=378.9K,TS=0,TN=1.6K PA=0,PS=0,PN=10.8K R0=58.1M,1=740.2K,2=15K,3=90.6K,4=1.9M,7=220.2K,8=3K,9=18.1M,10=16.2K,11=51.2K,12=272.6K,13=28.1K,15=194.4K,17=524,20=4.7K,21=524,22=59.5K,23=105.4K,24=16.5K
guid:0x97C9F5F641D25E5F time: Wed Aug 25 16:06:32 2010  severity:0 type:2 appSmiley Frustratedystem data:VM:-RRnet_rim_bb_browser_daemon RX=54.9M,RF=75.2M,FF=140.2M,OF=973.2K,OS=16.5M,ON=135.7K,OR=0,FR=44.9K,TR=43.8K,RR=1,IS=8.5K RA=19.5M,RS=16.5M,RN=86.2K TA=726.9K,TS=0,TN=3.5K PA=0,PS=0,PN=10.8K R0=58.1M,1=740.2K,2=15K,3=90.6K,4=1.9M,7=220.2K,8=3K,9=17.7M,10=16.2K,11=51.2K,12=272.6K,13=28.1K,15=194.4K,17=524,20=4.7K,21=524,22=59.5K,23=105.4K,24=16.5K
guid:0x97C9F5F641D25E5F time: Wed Aug 25 16:06:32 2010  severity:0 type:2 appSmiley Frustratedystem data:CMM: SWGWidget(8638) no sig from 0x33
guid:0x97C9F5F641D25E5F time: Wed Aug 25 16:06:36 2010  severity:0 type:2 appSmiley Frustratedystem data:VM:LINK SWGWidget
guid:0x97C9F5F641D25E5F time: Wed Aug 25 16:06:37 2010  severity:0 type:2 appSmiley Frustratedystem data:CMM: SWGWidget(8638) no sig from 0x545252
guid:0x97C9F5F641D25E5F time: Wed Aug 25 16:06:37 2010  severity:0 type:2 appSmiley Frustratedystem data:module 8638 cannot reference net.rim.device.api.system.Display
guid:0x97C9F5F641D25E5F time: Wed Aug 25 16:06:37 2010  severity:0 type:2 appSmiley Frustratedystem data:Module 'SWGWidget' attempts to access a secure API.
guid:0x97C9F5F641D25E5F time: Wed Aug 25 16:06:37 2010  severity:0 type:2 appSmiley Frustratedystem data:Linker error: 'VerifyError' for SWGWidget
guid:0x75487BEA7FF3BCAC time: Wed Aug 25 16:06:39 2010  severity:4 type:2 app:ThemeReader dataSmiley Frustratedtart theme search
guid:0x75487BEA7FF3BCAC time: Wed Aug 25 16:06:39 2010  severity:4 type:2 app:ThemeReader data:End theme search
guid:0x38E29AD8D1B8DE63 time: Wed Aug 25 16:06:40 2010  severity:4 type:2 app:net.rim.link data:Evnt-user
guid:0x38E29AD8D1B8DE63 time: Wed Aug 25 16:06:40 2010  severity:4 type:2 app:net.rim.link data:Actn-none
guid:0x38E29AD8D1B8DE63 time: Wed Aug 25 16:06:40 2010  severity:4 type:2 app:net.rim.link data:Wait-active
guid:0x60714307F914D8D5 time: Wed Aug 25 16:06:40 2010  severity:5 type:2 app:net.rim.scan data:Evnt-user actvty
guid:0x60714307F914D8D5 time: Wed Aug 25 16:06:40 2010  severity:5 type:2 app:net.rim.scan data:Actn-user actvty
guid:0x60714307F914D8D5 time: Wed Aug 25 16:06:40 2010  severity:5 type:2 app:net.rim.scan data:Wait-idle
guid:0x97C9F5F641D25E5F time: Wed Aug 25 16:06:40 2010  severity:0 type:2 appSmiley Frustratedystem data:CMM: SWGWidget(8638) no sig from 0x33
guid:0x1A77581FBCC4EC23 time: Wed Aug 25 16:06:42 2010  severity:0 type:2 app:net.rim.browser data:JAD 900
guid:0x97C9F5F641D25E5F time: Wed Aug 25 16:06:45 2010  severity:0 type:2 appSmiley Frustratedystem data:CMM: SWGWidget(8638) no sig from 0x414252
guid:0x3B91E1630F0745BC time: Wed Aug 25 16:06:46 2010  severity:0 type:2 app:net.rim.tunnel data:Clos-MagicRudyAPN.rim
guid:0x316C1626A9DDC375 time: Wed Aug 25 16:06:46 2010  severity:0 type:2 app:net.rim.tcp data:clos 6349/552342
guid:0x31C71AB2B9FEABD4 time: Wed Aug 25 16:06:46 2010  severity:5 type:2 app:net.rim.wlan.cpd data:CPKD
guid:0xE9E9618B950856BD time: Wed Aug 25 16:06:47 2010  severity:5 type:2 app:net.rim.simat data:IDLE
guid:0xDCC3165DB06A81D6 time: Wed Aug 25 16:06:47 2010  severity:0 type:2 app:net.rim.wlan.cm data:CMIC
guid:0x97C9F5F641D25E5F time: Wed Aug 25 16:06:50 2010  severity:0 type:2 appSmiley Frustratedystem data:VM:LINK SWGWidget
guid:0x97C9F5F641D25E5F time: Wed Aug 25 16:06:51 2010  severity:0 type:2 appSmiley Frustratedystem data:module 8638 cannot reference net.rim.device.api.system.Display
guid:0x97C9F5F641D25E5F time: Wed Aug 25 16:06:51 2010  severity:0 type:2 appSmiley Frustratedystem data:Module 'SWGWidget' attempts to access a secure API.
guid:0x97C9F5F641D25E5F time: Wed Aug 25 16:06:51 2010  severity:0 type:2 appSmiley Frustratedystem data:Linker error: 'VerifyError' for SWGWidget
guid:0x97C9F5F641D25E5F time: Wed Aug 25 16:06:51 2010  severity:0 type:2 appSmiley Frustratedystem data:Error starting SWGWidget: Module 'SWGWidget' attempts to access a secure API.
guid:0x9C3CD62E3320B498 time: Wed Aug 25 16:06:51 2010  severity:1 type:3 app:Java Exception data:
    RuntimeException
    Error starting SWGWidget: Module 'SWGWidget' attempts to access a secure API.
    net_rim_bb_framework_api-1(4ACFBA3F)
     ApplicationEntryPoint
     run
     0x36F9
    net_rim_bb_ribbon_app-3(4ACFC357)
     ApplicationEntry
     invoke
     0x4D8
    net_rim_bb_ribbon_app-1(4ACFC357)
     RibbonLauncherImpl
     <private>
     0x778B
    net_rim_bb_ribbon_app-1(4ACFC357)
     RibbonLauncherImpl
     launch
     0x56EB
    net_rim_bb_ribbon_app(4ACFC357)
     ApplicationMenu
     trackwheelClick
     0xA4A
    net_rim_bb_ribbon_app(4ACFC357)
     ApplicationMenu
     navigationClick
     0xA6A
    net_rim_cldc-12(4ACFB9EC)
     Screen
     dispatchTouchEvent
     0x6A76
    net_rim_cldc-13(4ACFB9EC)
     UiEngineImpl
     processMessage
     0x7B29
    net_rim_cldc-8(4ACFB9EC)
     Application
     <private>
     0x2ABF
    net_rim_cldc-8(4ACFB9EC)
     Application
     processNextMessage
     0x1C69
    net_rim_cldc-8(4ACFB9EC)
     Application
     enterEventDispatcher
     0x1BA6
    net_rim_bb_ribbon_app-1(4ACFC357)
     RibbonLauncherApp
     main
     0x5030
guid:0xE9E9618B950856BD time: Wed Aug 25 16:07:25 2010  severity:5 type:2 app:net.rim.simat data:IDLE
guid:0x97C9F5F641D25E5F time: Wed Aug 25 16:07:41 2010  severity:0 type:2 appSmiley Frustratedystem data:CMM: SWGWidget-1(8641) no sig from 0x33
guid:0x97C9F5F641D25E5F time: Wed Aug 25 16:07:41 2010  severity:0 type:2 appSmiley Frustratedystem data:CMM: SWGWidget-1(8641) no sig from 0x414252
guid:0x97C9F5F641D25E5F time: Wed Aug 25 16:07:41 2010  severity:0 type:2 appSmiley Frustratedystem data:CMM: SWGWidget-2(8644) no sig from 0x33
guid:0x97C9F5F641D25E5F time: Wed Aug 25 16:07:41 2010  severity:0 type:2 appSmiley Frustratedystem data:CMM: SWGWidget-2(8644) no sig from 0x414252
guid:0x97C9F5F641D25E5F time: Wed Aug 25 16:07:42 2010  severity:0 type:2 appSmiley Frustratedystem data:CMM: SWGWidget-3(8647) no sig from 0x33
guid:0x97C9F5F641D25E5F time: Wed Aug 25 16:07:42 2010  severity:0 type:2 appSmiley Frustratedystem data:CMM: SWGWidget-3(8647) no sig from 0x414252
guid:0x97C9F5F641D25E5F time: Wed Aug 25 16:07:42 2010  severity:0 type:2 appSmiley Frustratedystem data:CMM: SWGWidget-4(8650) no sig from 0x33
guid:0x97C9F5F641D25E5F time: Wed Aug 25 16:07:42 2010  severity:0 type:2 appSmiley Frustratedystem data:CMM: SWGWidget-4(8650) no sig from 0x414252
guid:0x97C9F5F641D25E5F time: Wed Aug 25 16:07:42 2010  severity:0 type:2 appSmiley Frustratedystem data:CMM: SWGWidget-5(8634) no sig from 0x33
guid:0x97C9F5F641D25E5F time: Wed Aug 25 16:07:42 2010  severity:0 type:2 appSmiley Frustratedystem data:CMM: SWGWidget-5(8634) no sig from 0x414252
guid:0x97C9F5F641D25E5F time: Wed Aug 25 16:07:42 2010  severity:0 type:2 appSmiley Frustratedystem data:CMM: SWGWidget-6(8631) no sig from 0x33
guid:0x97C9F5F641D25E5F time: Wed Aug 25 16:07:42 2010  severity:0 type:2 appSmiley Frustratedystem data:CMM: SWGWidget-6(8631) no sig from 0x414252
guid:0x97C9F5F641D25E5F time: Wed Aug 25 16:07:42 2010  severity:0 type:2 appSmiley Frustratedystem data:CMM: SWGWidget-7(8628) no sig from 0x33
guid:0x97C9F5F641D25E5F time: Wed Aug 25 16:07:42 2010  severity:0 type:2 appSmiley Frustratedystem data:CMM: SWGWidget-7(8628) no sig from 0x414252
guid:0x97C9F5F641D25E5F time: Wed Aug 25 16:07:42 2010  severity:0 type:2 appSmiley Frustratedystem data:CMM: SWGWidget-8(8625) no sig from 0x33
guid:0x97C9F5F641D25E5F time: Wed Aug 25 16:07:42 2010  severity:0 type:2 appSmiley Frustratedystem data:CMM: SWGWidget-8(8625) no sig from 0x414252
guid:0x97C9F5F641D25E5F time: Wed Aug 25 16:07:42 2010  severity:0 type:2 appSmiley Frustratedystem data:CMM: SWGWidget-9(8622) no sig from 0x33
guid:0x97C9F5F641D25E5F time: Wed Aug 25 16:07:42 2010  severity:0 type:2 appSmiley Frustratedystem data:CMM: SWGWidget-9(8622) no sig from 0x414252
guid:0xE9E9618B950856BD time: Wed Aug 25 16:07:46 2010  severity:5 type:2 app:net.rim.simat data:IDLE
guid:0xDAA64EAD4E49C5D5 time: Wed Aug 25 16:07:59 2010  severity:0 type:2 app:net.rim.usb.pwd data:CbDs
guid:0x5D41D4729582C2DA time: Wed Aug 25 16:07:59 2010  severity:0 type:2 app:RootRegister data:usbConnectionStateChange:4
guid:0x647E5DBBC34B5549 time: Wed Aug 25 16:07:59 2010  severity:0 type:2 app:net.rim.clock data:-CHG
guid:0x5D41D4729582C2DA time: Wed Aug 25 16:07:59 2010  severity:0 type:2 app:RootRegister dataSmiley Frustratedwitch Mode to MS on disconnect
guid:0x5D41D4729582C2DA time: Wed Aug 25 16:08:00 2010  severity:0 type:2 app:RootRegister data:fs 4 already mounted as system/
guid:0x5D41D4729582C2DA time: Wed Aug 25 16:08:00 2010  severity:0 type:2 app:RootRegister data:fs 2 status=0xb
guid:0x5D41D4729582C2DA time: Wed Aug 25 16:08:00 2010  severity:0 type:2 app:RootRegister data:UMT2
guid:0x5D41D4729582C2DA time: Wed Aug 25 16:08:00 2010  severity:0 type:2 app:RootRegister data:mount 2 store/ rc=0
guid:0x5D41D4729582C2DA time: Wed Aug 25 16:08:00 2010  severity:0 type:2 app:RootRegister data:MNT2
g

 

 

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

Re: Module attempts to access a secure API - after reinstalling Signature Keys ...

It looks like only 1 of the 3 csi files has been installed (RBB).  You should also seen entries for RRT and RCR in the SignatureTool window.  The application also requires signing with the RRT key, which is why it is failing to launch.

 

Try installing the other 2 csi files and signing your application again.

Mark Sohm
BlackBerry Development Advisor

Please refrain from posting new questions in solved threads.
Problem solved? Click the Accept As Solution button.
Developer
Posts: 37
Registered: ‎03-12-2009
My Device: Not Specified

Re: Module attempts to access a secure API - after reinstalling Signature Keys ...

Mark,

 

I tried to install the other keys but now I have the following message when I register the RCR keys :

 

Unable to register client 'xxxxxxx' because there are no more registration attempts. If you have already registered with this server, then you must contact RIM to register additional users.

 

I already got this message the last time, so I will be obliged to ask the support to send me 3 new CSI (Smiley Sad).

 

 

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

Re: Module attempts to access a secure API - after reinstalling Signature Keys ...

Sounds like you'll need to request another set of csi files.

 

Before installing your new keys delete all of the sigtool.csk, sigtool.db and sigtool.set files on your PC.  This will clear out your previous code signing keys.

 

Then make sure to install all 3 csi files in the same manor to ensure that all are installed in the same development tool.

Mark Sohm
BlackBerry Development Advisor

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