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

Testing and Deployment

Reply
New Contributor
chrisliaw
Posts: 3
Registered: ‎12-21-2011
My Device: Torch 9810

App worked on 9930 but when run on 9810 -> attempt access secure API

Anybody faced this problem before?

 

I've developed painstakingly a small app in few weeks and now it seems good as it runs well on 9930. I've requested signing key from RIM and installed all 3 in the Eclipse.

 

When I turned on device security, 9930 runs no problem. However same app when run on 9810 with device security turned on, it throws me error that my app is attempting to access secure API and refused to start.

 

I owned a 9810 with version 7.0 Bundle 1355 (v7.0.0.261, Platform 5.0.0.469) while for Eclipse I'm using Blackberry JRE 7.0.0 which maps to net.rim.ejde.componentpack7.0.0_7.0.0.33.

 

All signing was done inside Eclipse.

 

I've uploaded the app into my real 9810 device it behave exactly the same as simulator.

 

Anyone can help please?

 

Thanks!

New Contributor
chrisliaw
Posts: 3
Registered: ‎12-21-2011
My Device: Torch 9810

Re: App worked on 9930 but when run on 9810 -> attempt access secure API

Finally I've figured out what causes the secure API exception --> Unified Search component

 

I've a unified search component implemented and works fabously in simulator.

 

But when uploaded to real device, it will have verifyerror.

 

I've take the pain to remove all unified search component from the project and suddenly wholla!! IT CAN RUN NOW! WOW!

 

Anyway, I would still love to have the unified search integration works. Any workaround or fix?

BlackBerry Development Advisor
MSohm
Posts: 14,753
Registered: ‎07-09-2008
My Device: BlackBerry Passport

Re: App worked on 9930 but when run on 9810 -> attempt access secure API

Please post the event log from the BlackBerry Smartphone taken after launching your application (with unified search included).  You can extract an eventlog using the following command:

 

javaloader -u eventlog > log.txt

Mark Sohm
BlackBerry Development Advisor

Please refrain from posting new questions in solved threads.
Problem solved? Click the Accept As Solution button.
Found a bug? Report it using Issue Tracker
New Contributor
chrisliaw
Posts: 3
Registered: ‎12-21-2011
My Device: Torch 9810

Re: App worked on 9930 but when run on 9810 -> attempt access secure API

Please find the following:

 

guid:0x97C9F5F641D25E5F time: Fri Jan 06 19:56:07 2012  severity:0 type:2 app:smileyfrustrated:ystem data:VM:LINK GTD
guid:0x97C9F5F641D25E5F time: Fri Jan 06 19:56:07 2012  severity:0 type:2 app:smileyfrustrated:ystem data:module 19538 cannot reference net.rim.device.api.unifiedsearch.searchables.adapters.RegisterableDataSource
guid:0x97C9F5F641D25E5F time: Fri Jan 06 19:56:07 2012  severity:0 type:2 app:smileyfrustrated:ystem data:Module 'GTD-2' attempts to access a secure API.
guid:0x97C9F5F641D25E5F time: Fri Jan 06 19:56:07 2012  severity:0 type:2 app:smileyfrustrated:ystem data:Linker error: 'VerifyError' for GTD
guid:0xA9D098450BA333E9 time: Fri Jan 06 19:56:11 2012  severity:0 type:2 app:HomeScreen App data:Error starting GTD: Module 'GTD-2' attempts to access a secure API.
Traceback:
No detail message
net_rim_cldc-12(4E241B11)
 EventLogger
 logStackTrace
 0xF64
net_rim_bb_ribbon_app-2(4E242226)
 RibbonLauncherImpl
 launch
 0x3011
net_rim_bb_ribbon_app-2(4E242226)
 RibbonLauncherImpl
 launch
 0x304A
net_rim_bb_ribbon_app-2(4E242226)
 RibbonLauncherImpl
 launch
 0xC4A
net_rim_bb_ribbon_app-1(4E242226)
 HomeScreen
 trackwheelUnclick
 0x2D5D
net_rim_cldc-16(4E241B11)
 Screen
 dispatchTouchEvent
 0x856
net_rim_cldc-17(4E241B11)
 UiEngineImpl
 sendClickUnclick
 0x6144
net_rim_cldc-17(4E241B11)
 UiEngineImpl
 processMessage
 0x6A07
net_rim_cldc-10(4E241B11)
 Application
 doProcessNextMessage
 0x34D3
net_rim_cldc-10(4E241B11)
 Application
 processNextMessage
 0x2265
net_rim_cldc-10(4E241B11)
 Application
 enterEventDispatcher
 0x218B
net_rim_bb_ribbon_app-1(4E242226)
 RibbonLauncherApp
 main
 0x7C2F

 

Thanks!

 

BlackBerry Development Advisor
MSohm
Posts: 14,753
Registered: ‎07-09-2008
My Device: BlackBerry Passport

Re: App worked on 9930 but when run on 9810 -> attempt access secure API

This looks like a match to this issue:  https://www.blackberry.com/jira/browse/JAVAAPI-2213

Mark Sohm
BlackBerry Development Advisor

Please refrain from posting new questions in solved threads.
Problem solved? Click the Accept As Solution button.
Found a bug? Report it using Issue Tracker