Blocked ConnectionFactory: trying to access the api.

Problem:

1. my application uses the ConnectionFactory class for 5.0.x and 6.0.x platforms.

2. one of the testers reported that the Bold 9700 v5.0.0.169 (Platform 5.1.0.30), it cannot start application. Shows applications message " Application trying to access the api blocked ' where is the name of the application. Also, Tester reported that the previous version of application (where ConnectionFactory served) starts correctly.

3. I'm sure asking signed correctly, because I was able to install it on several Bold 9700 DeviceAnywhere devices. The only difference I found is that these devices have v5.0.0.174 (Platform 5.1.0.146).

Can anyone confirm that this is a bug in the previous OS 5.0.x? Is it okay for me to suggest the update of the device to the customer?

How the application has been installed?  If they use the WAP browser, read on...

The JAD file used during the download of applications using the Explorer lists the COD file sizes.  These are the sizes previously signed, which tools do not update after signatures have been applied.  In most cases, this won't matter, but some WAP Gateways carrier truncates the COD file based on the size specified in the JAD file, which cuts the signatures for the application.

Tags: BlackBerry Developers

Similar Questions

  • application trying to access the api blocked

    Hello

    IAM trying to run my app on my phone, it works fine on the Simulator. When I run it on my phone it gives me an error saying "application is trying to access the api secure."
    Thanks in advance

    You must sign your application if you want to run it on a real device.

    You can find more on signature here:

    https://developer.BlackBerry.com/Java/documentation/code_signing_1977871_11.html

    If you search the forum, you will find that this problem has affected other people, for example here:

    http://supportforums.BlackBerry.com/T5/Java-development/app-trying-to-access-a-secure-API/m-p/189075...

  • error: "module tries to access the API blocked" even if it is signed

    Hello

    I have a request I have compile for various brand (image and some const are different) using the same code base.

    My problem is that the code event and the process of compiling/signature is the same, SOME fail version to run on the device for pointing out the error "module attempts to access secure APIs"

    I found the various page talking about the same problem:

    I checked that the jad got the hash and SignatureTool reported cod signed (it's not DB-00717, I check the csl).

    I think that my problem is DTS 55471

    "DTS 55471: cannot load the signed file.
    If the addition of a signature causes the data to a .cod file section be more than 65536 bytes (2 ^ 16) in size, the application file signatory does not report an error, and cannot load the .cod on a security file. Impact: In rare cases, a .cod file signed by the signing tool does not work on a safe device.
    Solution: Increase or decrease the size of the file. "

    So, my questions are the following:

    • How can I detect that cod got a too big 'data' section (ideally using a lot) without installing it on the device?
    • How can I actually change the size of compiled cod "section of data" otherwise than by trying and error? (I had 32 version of the application using the same code)

    Technical info:

    • Tested on BB 9500 Storm OS 4.7.0.141 device
    • Compiled with JDE 4.2.1 4.6 and 4.7.
    • Signed with JDE 4.2.1 SignatureTool

    I look forward to the advice / tips

    Christophe

    During this time, because it's a bug to know, I tried to connect with a newer JDE SignatureTool cod.

    With the JDE 6.0.0 (dl RIM date 23/05/2011).

    I could sign and execute my cod (same as before ounces) on the 9500!

    So, the solution is: use the JDE 6.0.0 signatureTool

    Sorry, I do not tried before posting. I hope that this post will help someone.

    Kind regards

  • Module tries to access the API blocked

    I was complains about customers that they can not install our application go to App World, they are "error at startup AppNameHere: Module ' AppNameHere-1' attempts to access a secure API.»»

    The app is signed correctly and works on devices 6 + OS (tested on Bold 9780 and Torch 9800) but gives this error on OS 5 devices (tested on 9000 "BOLD"). I tried to install App World, installation of Web of .jad, and use development tools and it always gives me this error no matter how I sign it. The application USED to work on the OS 5 but then I started to use net.rim.json.org packages that are not available on OS 5. I fixed by following this: http://stackoverflow.com/questions/10010484/net-rim-json-org-not-found but now I am getting this new error.

    I'm puzzled.

    No idea why this is happening?

    I finally fixed that thanks to Simon

    The problem was that I was using Blackberry JRE 7.0.0 to compile and I believe that this * was * work until I tried to use 'net.rim.device.api.util.ByteArrayUtilities', which does not appear in OS5. (This is just my hypothesis as to why it mysteriously stopped working)

    Steps to fix:

    I had to write my own "ByteArrayUtilities.byteArrayToHex ()" (fly on here) after using JDE 5.0

    In addition,

    I don't think you can use org.json.me in OS5. Looks like it has been created in the OS6. See the docs http://www.blackberry.com/developers/docs/5.0.0api/index.html OS5

    This is where I received my initial error in OS5, so I've included this https://github.com/upictec/org.json.me in my project and it included as a custom package, so it does not interfere with OS6.

  • Using a GUI API I got on the blackberry site - error: "tried of BlackBerry to access the api secure."

    Hello
    This is so the API, I downloaded and imported into my project->
    http://www.BlackBerry.com/knowledgecenterpublic/livelink.exe/fetch/2000/348583/800332/800505/800608/...

    When I run it, I get "Error trying to access the api Module secure"

    It says its taken in charge for OS 4.2 and I think, so execute me on my blackberry 9900 OS 5 should work,
    I've been on these forums before and after the solutions, I ordered the signature of the key codes and signed the project as well.

    This is what appears in the signature box, just code until I run it:

    It compiles without error, but it still does not work.
    What I'm doing wrong exactly? Any help would be appreciated!
    Khalique - Amina

    Hey everybody,
    Anyone else who has this problem with these particular CBC of the advanced downloadable user interface files.
    Make sure the following is in place.

    Your JRE version is important.
    If you test on a device that is older than 7.1

    Change your JRE in a right click on the JRE and selecting the right JRE for your device. [some of you may need to download the right JRE].
    I installed the plugin for eclipse blackberry, so he automatically gave me all the available JRE. I just had to change.
    After that I changed it, I have not the reddest comments when I signed the code.
    AND
    It worked fine, no error message popping up for ' api access blocked attempts to.
    If anyone has questions and is the same problem. Please ask. I've spent hours on it, and I'd be happy to help you if I've been unclear!
    Take care!

  • Cannot access the API blocked

    I created a web application bb factory using the web works for Visual Studio plugin. I tried to install the application and got the error cannot access the api blocked. I researched and found that the fact of not having signed app can cause this error. I followed the instructions that comes with the plugin on the signing of the app.

    • In Microsoft® Visual Studio®, on the Tools menu, click on install BlackBerry signing key.
    • Navigate to the folder that contains the file signing key (.csi).
    • Click OK.
    • Type the PIN registration and the password for the private key.
    • Click Save.
    • When the success dialog box appears, click on exit.

    When I try to install the application, I get the same error message. Do not install the key and sign the application correctly? Help, please

    Have you installed all the three keys?

  • I am trying to access the security settings in my Apple ID, but due to too many attempts to answer my questions of security, this option is blocked. How can I unlock it?

    I am trying to access the security settings in my Apple ID, but due to too many failed attempts to answer my questions of security, this option is blocked. How can I unlock it?

    You can see this page if your identifier Apple is locked to see how to solve this problem.

    https://support.Apple.com/en-us/HT204106

    If you cannot solve this way, please contact support at the link below!

    https://getsupport.Apple.com/

  • Application module tries to access the secure API

    Hi all.

    We are new to Blackberry Java development and have some problems with it.

    We use the same BlackBerry Bold 9000 and OS worm Simulator. 5.0 in Eclipse JDE.

    The JDE version is 5.0.0

    We signed HelloWorldDemo with tool of power, provided by BB. It worked fine on the Simulator AND the device.

    Then we signed our own application, based on PictureScrollFieldDemo.

    The thing is, on the simulator of OUR application works fine, but when we try to run on the device, it failed with an error that says something like this: "Application module tries to access the secure API."

    After that many times we tried to remove the code all potentially dangerous and recompile the application. After that it stopped working at all (when you click on the application menu, ABSOLUTELY nothing happens).

    Then, we decided to try to launch PictureScrollFieldDemo, the sample provided by BlackBerry. Also, it did not work

    Finally, the HelloWorldDemo has stopped working or the other...

    During all this madness, we rebooted the unit several times.

    Please help, appreciate any advice.

    Thanks in advance, geezmo.

    You should have received 3 keys, RBB, CPR and RRT. You imported all 3 when you have been setting up the signature tool?

  • Trying to access the electronic books in the library of our audience. Downloaded the software, but I get an error saying: the current version of the security of MP's 2.5.0.0 and I need 2.

    Trying to access the electronic books in the library of our audience. Downloaded the software, (Overdrive Media Console) but I get an error saying: the current version of the security of MP's 2.5.0.0 and I need 2.5.0.1. How to do only what I can read ebooks? People have suggested using IE, but I prefer to much HELP Firefox!

    Try to update the media player while using Internet Explorer. Windows Updates site uses ActiveX to perform "duties. Firefox does not support ActiveX.

  • Journ.E touch - blank page while trying to access the virtual store

    After resetting the account and update the virtual store.
    I get a blank page while trying to access the online store.

    I went to update firmaware. always blank page.

    Hello

    Try to do a RESET on Journ.e
    Use a pointed object, like a pen, drag the left reset button first, then right and press in and hold the power button for about 2 seconds light up your DAY. E TOUCH.

  • I have an error was encountered trying to access the battery

    I have an error was encountered trying to access the battery

    Hello

    There seems to be several users facing this problem with HP laptops.

    If you use an HP laptop, please see the following thread.

    an error occurred trying to access the battery - Microsoft Answers:
    http://answers.Microsoft.com/en-us/Windows/Forum/Windows_7-performance/an-error-was-encountered-trying-to-access-the/5c4f34b5-9f8e-4509-9560-96e60720e24e

    Let us know if that helps.

    Concerning

  • Trying to access the website of DNSchanger for desire but I keep get explore cannot connect.

    Question of dooesday DNSC

    trying to access the website of DNSchanger of desire but I keep getting explore cannot connect a does that mean I'm infected

    Hello

    If you run MSE or an other major antivirus programs, so you have protection.

    The site is probably just delayed due to heavy access.

    Check this thread:

    http://answers.Microsoft.com/en-us/protect/Forum/protect_start/DNS-changer-virus/88be0bb0-da0f-4688-97fe-6089e637c5a4

    I hope this helps.

    Rob Brown - Microsoft MVP<- profile="" -="" windows="" expert="" -="" consumer="" :="" bicycle=""><- mark="" twain="" said="" it="">

  • Trying to access the camera Pentax Optio S, getting a "the drivers for this device are not installed. (Code 28) »

    Trying to access the photos that are on my camera, not on my drive of camera memory.

    Hello

    1. what operating system do you use?

    2 did you change on your computer?

    I suggest you to follow the links and check out them.

    Hardware devices do not work or are not detected in Windows

    http://support.Microsoft.com/mats/hardware_device_problems/

    If you use windows7, I suggest you follow the link and check. Updated a hardware driver that is not working properly

    http://Windows.Microsoft.com/en-us/Windows7/update-a-driver-for-hardware-that-isn ' t-work correctly

    Device Manager error code 28: Troubleshooting

    http://support.Microsoft.com/kb/310123

    Note: Applicable to Windows 7

  • five out of six times (approximately) to start outlook express 6, it crashes while trying to access the first message

    five out of six times (approximately) to start outlook express 6, it crashes while trying to access the first message. This happens several times, and each time the first message (even) appears in the Inbox, even if the process is not complete. sometimes clear the cache, or cleaning IE temp. the files seems to help - but not always.

    It's VERY frustrating!

    Do a household.
     
    1: do not archive mail in the receipt or sent items box. Create your own user-defined folders and move messages you want to put in them. Empty the deleted items folder daily. Although the dbx files have a theoretical capacity of 2 GB, I recommend all a 300 MB max for less risk of corruption.
     
    Information on the maximum size of the .dbx files that are used by Outlook Express:
    http://support.Microsoft.com/?kbid=903095
     
    2: after you're done, followed by compacting your folders manually while working * off * and do it often.
     
    Click Outlook Express at the top of the the folder tree so no folders are open. Then: File | Work offline (or double-click on work online in the status bar). File | Folder | Compact all folders. Don't touch anything until the compacting is completed.
     
    3: disable analysis in your e-mail anti-virus program. It is a redundant layer of protection that devours the processors and causes a multitude of problems such as time-outs and account setting changes. Your up-to-date A / V program will continue to protect you sufficiently. For more information, see:
    http://www.oehelp.com/OETips.aspx#3
     
    For some programs, turning it off is not enough. You may need to uninstall and reinstall in custom Mode and remove the analysis when e-mail messages.
  • I'm trying to access the functions tells me windows explore stopped workingI

    original title: Explore Windows crash

    Unable to access any windows especially update function, which is where I am responsible for the problem. I'm trying to access the functions tells me windows Explorer has stopped working

    Hello

    What antivirus/antispyware/security products do you have on the machine? Be one you have NEVER
    on this machine, including those you have uninstalled (they leave leftovers behind which can cause
    strange problems).

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

    Follow these steps:

    Start - type this in the search box-> find COMMAND at the top and RIGHT CLICK – RUN AS ADMIN

    Enter this at the command prompt - sfc/scannow

    How to analyze the log file entries that the Microsoft Windows Resource Checker (SFC.exe) program
    generates in Windows Vista cbs.log
    http://support.Microsoft.com/kb/928228

    Also run CheckDisk, so we cannot exclude as much as possible of the corruption.

    How to run the check disk at startup in Vista
    http://www.Vistax64.com/tutorials/67612-check-disk-Chkdsk.html

    ==========================================

    After the foregoing:

    How to troubleshoot a problem by performing a clean boot in Windows Vista
    http://support.Microsoft.com/kb/929135
    How to troubleshoot performance issues in Windows Vista
    http://support.Microsoft.com/kb/950685

    Optimize the performance of Microsoft Windows Vista
    http://support.Microsoft.com/kb/959062
    To see everything that is in charge of startup - wait a few minutes with nothing to do - then right-click
    Taskbar - the Task Manager process - take a look at stored by - Services - this is a quick way
    reference (if you have a small box at the bottom left - show for all users, then check that).

    How to check and change Vista startup programs
    http://www.Vistax64.com/tutorials/79612-startup-programs-enable-disable.html

    A quick check to see that load method 2 is - using MSCONFIG then put a list of
    those here.
    --------------------------------------------------------------------

    Tools that should help you:

    Process Explorer - free - find out which files, key of registry and other objects processes have opened.
    What DLLs they have loaded and more. This exceptionally effective utility will show you even who has
    each process.
    http://TechNet.Microsoft.com/en-us/Sysinternals/bb896653.aspx

    Autoruns - free - see what programs are configured to start automatically when you start your system
    and you log in. Autoruns also shows you the full list of registry and file locations where applications can
    Configure auto-start settings.
    http://TechNet.Microsoft.com/en-us/sysinternals/bb963902.aspx
    Process Monitor - Free - monitor the system files, registry, process, thread and DLL real-time activity.
    http://TechNet.Microsoft.com/en-us/Sysinternals/bb896645.aspx

    There are many excellent free tools from Sysinternals
    http://TechNet.Microsoft.com/en-us/Sysinternals/default.aspx

    -Free - WhatsInStartUP this utility displays the list of all applications that are loaded automatically
    When Windows starts. For each request, the following information is displayed: Type of startup (registry/Startup folder), Command - Line String, the product name, Version of the file, the name of the company;
    Location in the registry or the file system and more. It allows you to easily disable or remove unwanted
    a program that runs in your Windows startup.
    http://www.NirSoft.NET/utils/what_run_in_startup.html

    There are many excellent free tools to NirSoft
    http://www.NirSoft.NET/utils/index.html

    Window Watcher - free - do you know what is running on your computer? Maybe not. The window
    Watcher says it all, reporting of any window created by running programs, if the window
    is visible or not.
    http://www.KarenWare.com/PowerTools/ptwinwatch.asp

    Many excellent free tools and an excellent newsletter at Karenware
    http://www.KarenWare.com/

    ===========================================

    Vista and Windows 7 updated drivers love then here's how update the most important.

    This is my generic how updates of appropriate driver:

    This utility, it is easy see which versions are loaded:

    -Free - DriverView utility displays the list of all device drivers currently loaded on your system.
    For each driver in the list, additional useful information is displayed: load address of the driver,
    Description, version, product name, company that created the driver and more.
    http://www.NirSoft.NET/utils/DriverView.html

    For drivers, visit manufacturer of emergency system and of the manufacturer of the device that are the most common.
    Control Panel - device - Graphics Manager - note the brand and complete model
    your video card - double - tab of the driver - write version information. Now, click on update
    Driver (this can do nothing as MS is far behind the certification of drivers) - then right-click.
    Uninstall - REBOOT it will refresh the driver stack.

    Repeat this for network - card (NIC), Wifi network, sound, mouse, and keyboard if 3rd party
    with their own software and drivers and all other main drivers that you have.

    Now in the system manufacturer (Dell, HP, Toshiba as examples) site (in a restaurant), peripheral
    Site of the manufacturer (Realtek, Intel, Nvidia, ATI, for example) and get their latest versions. (Look for
    BIOS, Chipset and software updates on the site of the manufacturer of the system here.)

    Download - SAVE - go to where you put them - right click - RUN AD ADMIN - REBOOT after
    each installation.

    Always check in the Device Manager - drivers tab to be sure the version you actually install
    presents itself. This is because some restore drivers before the most recent is installed (sound card drivers
    in particular that) so to install a driver - reboot - check that it is installed and repeat as
    necessary.

    Repeat to the manufacturers - BTW in the DO NOT RUN THEIR SCANNER device - check
    manually by model.

    Look at the sites of the manufacturer for drivers - and the manufacturer of the device manually.
    http://pcsupport.about.com/od/driverssupport/HT/driverdlmfgr.htm

    How to install a device driver in Vista Device Manager
    http://www.Vistax64.com/tutorials/193584-Device-Manager-install-driver.html

    If you update the drivers manually, then it's a good idea to disable the facilities of driver under Windows
    Updates, that leaves about Windows updates but it will not install the drivers that will be generally
    older and cause problems. If updates offers a new driver and then HIDE it (right click on it), then
    get new manually if you wish.

    How to disable automatic driver Installation in Windows Vista - drivers
    http://www.AddictiveTips.com/Windows-Tips/how-to-disable-automatic-driver-installation-in-Windows-Vista/
    http://TechNet.Microsoft.com/en-us/library/cc730606 (WS.10) .aspx

    ===========================================

    Refer to these discussions because many more excellent advice however don't forget to check your antivirus
    programs, the main drivers and BIOS update and also solve the problems with the cleanboot method
    first.

    Problems with the overall speed of the system and performance
    http://support.Microsoft.com/GP/slow_windows_performance/en-us

    Performance and Maintenance Tips
    http://social.answers.Microsoft.com/forums/en-us/w7performance/thread/19e5d6c3-BF07-49ac-a2fa-6718c988f125

    Explorer Windows stopped working
    http://social.answers.Microsoft.com/forums/en-us/w7performance/thread/6ab02526-5071-4DCC-895F-d90202bad8b3

    Hope these helps.

    Rob Brown - MS MVP - Windows Desktop Experience: Bike - Mark Twain said it right.

Maybe you are looking for