The upgrade of my application fails (when it is registered with PhoneLogs)

I use Desktop Manager to install/upgrade the java application, I am writing to you.  My application is configured to run automatically at startup function.

1. when I just install my java application (which means that it is not on the device), it installs and works fine.

2. when I update my application, the phone restarts, fails it application (IE not dΘmarre).  More clearly, if I go to the icon and click on it, nothing happens.

3-if I delete the app, reboot the phone and install the application, it is very good (line with scenario 1 above).

I narrowed down it to 1 line of code that makes the difference:

PhoneLogs.getInstance () .addListener (myPhoneLogListener);

If I don't register my app/process with the PhoneLog, upgrading the app has managed in all scenarios.  I guess that's because one of my 'myPhoneLogListener' objects is in the memory space of the PhoneLog at the time of the upgrade.  Also, my application is running at the time of the upgrade.  The application is still running in the background, intentionally.

I would try an OTA update to see if it behaves differently, but I don't have any private location secure to host my app.

How to make this upgrade work, without requiring the user to quit the application before the upgrade; given that I can't guarantee that users will do, and I don't have to have a bad experience with my application.

I'm writing my own solution for others in the future.

So before in my MAIN() method, I capture all the Exceptions and out in silence.  This was to avoid the dreaded AppError-200 during development.

So I added a try/catch in my MAIN() to write all the Exceptions in the event on the device log, before to leave.  It turns out, I was getting a "ControlledAccessException.

So, I decided to add a Thread.sleep (30000)-30 seconds before trying to run my problematic registration code.

Good news and bad news, it worked.  But that tells me that there are a few occurring in race condition.  Well, I have no other choice.  I hope this helps someone else out there...

Tags: BlackBerry Developers

Similar Questions

  • After the upgrade of windows (Pinball) 10, when working in Lightroom adjustment brush is not making changes, it is there but it does not work.

    After the upgrade of windows (Pinball) 10, when working in Lightroom adjustment brush is not making changes, it is there but it does not work. Also several times when I go to the library to develop fashionable mode, programs stops. I am really frustrated. Help, please.

    Also several times when I go to the library to develop fashionable mode, programs stops.

    It is often a symptom of an incompatibility between LR and your video card.  If the other suggestions don't help you, go to System Preferences > performance and uncheck use Graphics Processor.

  • The server {8BC3F05E-D86B-11D0-A075-00C04FB68820} is not registered with DCOM within the required time.

    This morning when I checked my system log, it was filled with errors, while saying:

    The server {8BC3F05E-D86B-11D0-A075-00C04FB68820} is not registered with DCOM within the required time.

    A quick search of the register revealed that it identifies Windows Management Instrumentation (WMI). I looked, and indeed, he was arrested. When I tried to start it, I got the error message:

    Could not start the Windows Management Instrumentation service on Local computer

    Error 193: 0xc1

    All the help I can find on the subject assumes that the application does not have the required permissions. Nothing has been deliberately changed. I tried to do a restore of the system of the last days at several checkpoints and received messages that it could be done. So, I checked all the required permissions were still in place.

    My operating system is XP Pro SP3 with all updates applied.

    So, I have to say that something broken, perhaps in the framework of an automatic update or another. Now, when I try to run Microsoft Update, it just hangs.

    Maybe there is not enough information here, but I'm looking for more help on troubleshooting. I have the system tools enough to report all the news of trial if necessary.

    Thank you

    Don

    Even if I had run a chkdsk/r on my system disk and he come clean, I have decided to launch a sfc/scannow and found 3 DLLs that were somehow not original. Once these have been restored, the errors have stopped (so far). While it was only 30 minutes, it is the longest, I went all day with no error message. I'm keeping my fingers crossed.

  • Error in windows 2003 Standard Edition with Service Pack 2... The server {00024500-0000-0000-C000-000000000046} is not registered with DCOM within the required time.

    Could someone fix for the error below...

    OS: Windows 2003 Standard Edition with Service Pack 2...

    Event type: error
    Event Source: DCOM
    Event category: no
    Event ID: 10010
    Date: 08/08/2012
    Time: 10:00:31
    User: n/a
    Computer: BP1WHIAP011
    Description:
    The server {00024500-0000-0000-C000-000000000046} is not registered with DCOM within the required time.

    Hello
    For assistance on this issue, you can post your question in the Technet Forums.
    http://social.technet.Microsoft.com/forums/en-us/categories/

  • Unable to launch the live messenger window "application failed to start because its side by side configuration is incorrect."

    Unable to launch window live messenger on Windows vista. The error message is "the application failed to start because its side by side configuration is incorrect. See application for more details event".

    Hello

    they will help you with your questions/problems Messenger when repost you the link below in the Messenger forums

    http://windowslivehelp.com/product.aspx?ProductID=2

  • upgrade vista to 7, fails when you try to uninstall programs, windows setup does not

    Install Windows 7, but Windows Installer does not work.

    Recently, I received my upgrade to 7. I have a new Toshiba running Vista 32 bit. When I try to do the upgrade, I can't go past the part where certain software is uninstalled. The Windows Installer does not work. I'm now waiting to upgrade that I can't because of this. I tried every fix I found, but nothing works. I even tried to download and reinstall the installer, but I get an error code indicating that it does not apply to my computer. I would appreciate a response. I can't believe the issues that I'm with a laptop two month old.

    Hi sdslaw,

    Thanks for posting. Try the following.

    Click Start
    In the search box type 'cmd '.
    In the start 'cmd.exe' menu right click and select RunAs administrator.
    Now type: msiexec/regserver

    I hope this helps!
    Shawn - Support Engineer - MCP, MCDST
    Microsoft Answers Support Engineer
    Visit our Microsoft answers feedback Forum and let us know what you think

  • The mouse pointer does not hide when you type, even with the box checked.

    Hello everyone.  I turned on the check mark in the properties of the mouse "hide the pointer during the strike".  However, the mouse pointer does not hide when typing, but instead remains visible all the time.

    No one knows why this happens?  In previous versions of Windows, the pointer should simply disappear when keystrokes are typed, and then reappear when the mouse is moved.  Is not the case here!

    Thanks for any information!

    System details:

    Windows Vista Ultimate x 64 SP1, 4 GB ram
    Intel Core2 3.16 GHz cpu
    NVIDIA GeForce 8800GT with two monitors
    Aero is enabled.

    Hello

    Welcome to the community of Windows Vista.

    1. what application you are working on when you encountered this problem?

    Hide the mouse pointer option allows you only to remove the mouse curzor of
    the focus in the working window so that the cursor does not cover the text or the pitcure you see.

    Make sure that the curzor of the mouse is placed inside the app as you type, as it does not hide the mouse, if it is outside of the application.

    Change the settings of the mouse
    http://windowshelp.Microsoft.com/Windows/en-us/help/efd700f8-bbc0-4F04-9f78-3bdb4bbf47011033.mspx#EKD

    Kind regards

    Technical support of Microsoft-yama.
    Visit our Microsoft answers feedback Forum and let us know what you think.

  • I bought the upgrade to lightroom from Adobe site 6, regularly paid with credit card, receive e-mail of confirmation of payment and the serial number, just start the program installation insert the serial number provided to me by email and I get this wa

    Bought @I upgraded lightroom to Adobe site 6, regularly paid with credit card, receipt of payment confirmation e-mail and serial number, just start the program installation insert the serial number provided to me by email and I get this warning: COULD NOT VALIDATE THIS serial NUMBER for LIGHTROOM CALL SERVICE since the upgrade I paid I might have a valid serial number thanks

    Have you contacted service the customer the message instructed? Generally, we cannot help with password issues in this forum.

  • When the upgrade of 4501 MCU - failed validation of the image

    When you transfer the image from 4.4 to my MCU 4501 file I receive validation image failed.  I tried to use Firefox and IE9.  Please adivse which can cause this error.

    Thank you

    Package must be decompressed before being transferred

  • IKM SQL file Append-controlled fails when it is used with the Scheduler

    Hello
    We have an interface in our package where we use IKM SQL file Append-controlled. It is supposed to do an insert/truncate a local file destination. This step fails with the error 7000 run with the Scheduler. Looks like some sort of permission error.
    When the package is run manually (in the same location as the Planner), he runs this interface successfully.
    Any suggestions?
    Wwhen the IKM research, it does not say that the "target file must be physically accessible by sunopsis agent." The file is local to the server running the Scheduler; by operating manually also, it is run from the server.
    This is the error to "truncate": step
    7000: null: java.sql.SQLException: file not found: \ < filepath > / < Filename > .tsv
    java.sql.SQLException: file not found: \ < filepath > / < Filename > .tsv

    Any suggestions?
    Thank you
    Elkaïm

    Published by: 784749 on February 1st, 2011 05:47

    HI -.
    Agent ODI connection users that you have provided to the service Windows ODI. If you have not provided one that he would use the native ID (one that was created when installing the OS I think). If you have not provided any newspaper on before its best to provide to a user that has enough previlage.

    -app

  • The user profile Service Service failed when connecting: Windows 7, SBS2011

    Hello

    I've been looking for an answer for the last day and hoping someone can point me in the right direction. I've seen many posts on this problem, but none of them seem to be the same as the situation that I am, if I missed an I'm sorry.
    We have just installed 4 PC with W7 (previous W7 machines there have been no problems) when I try to log on to the domain with one account other than admin I get the message
    "The Service user profile Service does not logon, user profile can not be added"
    These are brand new machines and have not been connected with any account other than the administrator, so there is no .bak in the registry file, etc.
    I checked the accounts by logging in on another pc of W7 'ok' and that's fine.
    Thanks in advance for any help / advice
    Ronnie01

    Hello

    Thank you for contacting Microsoft Community.

    First of all, connect the PC to the workgroup, configure the user account, restart it and try to connect back to the field.

    Response if the issue is not resolved.

  • the host key fingerprint verification failed when converting to a linux machine

    I use the 6.0.0 converter to convert a machine physics linux vm. I get the following error repeatedly. He is always stopped at 3% after 3 minutes

    MSG = "a general error has occurred: # XYZ.mit.edu SSH - 1, 99 - OpenSSH_4.3.

    -> # SSH-1 XYZ.mit.edu, 99 - OpenSSH_4.3

    -> # SSH-1 XYZ.mit.edu, 99 - OpenSSH_4.3

    -> The authenticity of the host that XYZ.mit.edu cannot be established. Welcome to the fingerprint of the key xx:xx:xx:xx:c7:5f:23:34:d7:2 c: 79:7e:77:92:3e:e6 verification failed.

    '--> (return code 1).

    I have spent many hours on this but could not understand it. I tried a Linux physical different and got the same error. I have no problem connecting to the physical machine XYZ.mit.edu outside the converter. The converter contains plink program under C:\Program Files (x 86) \VMware\VMware vCenter Converter Standalone, I can run plink for the physical server XYZ.mit.edu to store the fingerprint in the cache and it connects fine.

    I have no idea whence the SSH-1, 99 - OpenSSH_4.3 in the error message. The physical server XYZ.mit.edu will OpenSSH_5.3p1. Here is the/etc/ssh/sshd_config on the physical server entry


    # cat sshd_config | grep - v #.

    Protocol 2

    SyslogFacility AUTHPRIV

    PasswordAuthentication yes

    ChallengeResponseAuthentication no

    GSSAPIAuthentication Yes

    GSSAPICleanupCredentials Yes

    UsePAM Yes

    AcceptEnv LANG LC_CTYPE LC_NUMERIC LC_TIME LC_COLLATE LC_MONETARY LC_MESSAGES

    AcceptEnv LC_PAPER LC_NAME LC_ADDRESS LC_TELEPHONE LC_MEASUREMENT

    AcceptEnv LC_IDENTIFICATION LC_ALL LANGUAGE

    AcceptEnv XMODIFIERS

    X11Forwarding yes

    MaxStartups 10

    Subsystem sftp/usr/libexec/openssh/sftp-server

    Anyone know how to bypass this error?

    Thank you very much!

    Hello

    It is possible that the help of the virtual machine cannot solve XYZ.mit.edu. You can try a ping of VM, another in the same VM to check network.

    If this is the case, use the IP address of the source computer.

    HTH

    Plamen

  • I downloaded the upgrade and said "run", but when I open firefox it says that I don't have the latest version. What I'm doing.

    My question pretty much says it all. Don't know what you want. I have a Windows Vista and you use FIrefox for at least 4 years.

    Hi rv7431, don't you worry - you already use firefox 22 which is the latest version available.

    the message you see is probably just show up, because you are using google.ca/firefox as your homepage, which has only been maintained up to what firefox 3 and displays now the warning message that you have referred to as no. matter what browser version you are using. change the homepage of Subject: House to answer the question and get the current home page of firefox...

    How to set the home page

    Edit: another thing that is directly related to your original question - you have two present addons, sounding rather malicious (My Web Search 1.1, Performance Cache 1.0). I recommend to Remove...

  • OfficeJet 6600 Gets the message of Network Installation fails when you try to install

    Hello

    I have the worst time setting up my new printer wireless Officejet 6600. I work with a wireless-N router that was purchased less than a year ago. I have other wireless products that work well with the internet, so I do not see there is a connectivity problem.

    The test of the printer indicates that everything is OK:

    Wireless on - PASS
    Wireless - PASS work
    Signal quality - very good
    Connected - PASS

    etc, etc.

    I ran through all the troubleshooting I can find and nothing works. I have disabled the firewall, unplugged my router and modem, disconnected the printer, tried to implement on its own IP address. The installation wizard finds her and tries to implement, but I only get the message that it was a "network installation without success.

    Has anyone experience this problem?

    Any new ideas on troubleshooting are welcome.

    Thank you
    Liz

    Hello

    Thank you for your comments. I didn't expect such a quick response, which was great.

    I move the printer to get a signal 'excellent' and tried the other steps you listed.  Through some googling more, we discovered that we needed to do the following:

    Go to the control panel

    Select Printers and faxes

    Right click and select Properties

    Select the Ports section

    Add the port to the IP address of the printer displays

    Not sure if this is the ideal way, but of course, it worked and I am now a happy customer. Hope it helps someone. I'll still Bravo for having responded so quickly.

    Thanks again!

  • Illustrator CC 2015, after the upgrade from 2014 CC, crashes when opening program/opening file. Says error: operation cannot be completed due to an unknown error. [IMPORTANT]

    In addition, after the opening of the program, he showed an advisor to remove one of the swatches plug-in library, which I did, and it did not help. I tried to uninstall too no effect.

    Please, some advice. I use Windows 8.1

    Solved the problem in a logon session. Uninstalling and reinstalling solved the problem.

    Sanjay.

Maybe you are looking for

  • How to restore a Firefox refreshed all bookmarks to an external hard drive?

    I've just 'refreshed' Firefox and lost ALL my passwords, even if the instructions said that they would be saved. I tried to copy it in the folder of old data from Firefox and it does NOTHING. I have all the data I need on an external hard drive and t

  • Firefox continues to not respiond

    every time I click on something, try and type I get the message firefox is not responding. This happens to every move I make. It occurred about 100 times already today. It crashes for 15-20 seconds each time.

  • How to get data not filtered as o/p of the low-pass filter Group

    Hello IM new to Labview and exploring it. IM implementation of a system in which I need to use a LPF and a series of filter pass band. The filtered o/p of the LPF is as I / p for 1 GMP... Later, the o/p UNFILTERED 1st BPF is as I / p for 2nd GMP. The

  • Question of localization of the user interface

    I just noticed something odd related to localization of the UI (CVI 2012 SP1). with a text string control, if I change the GB2312 character set and I paste a string, I correctly see with Chinese fonts If I do the same with a ring (add new item), I do

  • Do a clean Windows7 install

    To sell my laptop, I want to do a clean install of Win7.  I want to use DBAN (secure file deletion software) to ensure that any personal information is left on the laptop.  If I'm running DBAN on the entire hard drive (including on top of the recover