4 Replies Latest reply: May 28, 2009 9:45 AM by 807581 RSS

    Facing a problem in running MEP mobile client on real BLACKBERRY STORM

    807581
      I have developed an application based on MEP and the mobile client works fine in a real PALM OS smart phone. It also works fine in a BLACKBERRY STORM simulator. However, it does not work in the real device. At the time of mep initialization code execution I get the following message :

      "The application <name> has attempted to open local content. would u like to allow this?" The device keeps on asking the same question even after pressing Yes button.

      Code:

      private void initialize() {
      Thread t = new Thread(new Runnable() {

      public void run() {
      SyncManager syncUserCredentialMgr = new SyncManager(".cel");
      BusinessObjectStorage boUserCredentialStorage = syncUserCredentialMgr.getBusinessObjectStorage();

      SyncManager syncTimelineMgr = new SyncManager(".tln");
      BusinessObjectStorage boTimelineStorage = syncTimelineMgr.getBusinessObjectStorage();

      }
      });
      t.run();
      }

      I am not sure whether this is MEP specific or a device specific. I would really appreciate your answers.
        • 1. Re: Facing a problem in running MEP mobile client on real BLACKBERRY STORM
          807581
          The MEP client library uses JSR-75 for file system support. If you don't sign your application then it runs in the "untrusted 3rd party" security domain on your device which means that the JVM is supposed to prompt for permission to access the file system. Different mobile JVMs vary in how strictly they follow this requirement. For example, we've seen that the IBM J9 VM (on both Palm OS and WinMo) will offer the option to grant blanket permissions. Others, such as the Nokia E61 doesn't. The behavior seems to vary on BB depending on the model of the phone. The 8830s that we test on allow blanket permissions even though the app is "untrusted 3rd party". When you test your code in the simulator, it is usually running in the "Manufacturer" security domain, so all permissions are granted. Please look in the BB developer forums for information about signing Java apps on the Storm.

          --Ryan                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               
          • 2. Re: Facing a problem in running MEP mobile client on real BLACKBERRY STORM
            807581
            Great info, very useful to me, Thanks for share.








            -----------------------------------
            [java contactor|http://www.softsea.com/review/Java-Contactor.html]
            • 3. Re: Facing a problem in running MEP mobile client on real BLACKBERRY STORM
              807581
              I'd like to add that if you keep answering yes to the prompts -- you'll get quite a few -- you should be able to get through them.
              • 4. Re: Facing a problem in running MEP mobile client on real BLACKBERRY STORM
                807581
                We followed Ryan's instructions to bank of blackberry to sign our application. As per BB's procedure, we have paid $20 to get the signing tool and we have been successfully signing all our applications and running in the real storm. The following link gives more information about buying:

                http://na.blackberry.com/eng/developers/javaappdev/codekeys.jsp