×

Discussion Board

Results 1 to 7 of 7
  1. #1
    Registered User
    Join Date
    May 2010
    Posts
    4

    Failure launching my application from push registry after reinstallation

    Hello,

    I am developing an application for Nokia 2730 classic (S40) that registers statically to the push-registry with an entry similar to the following one in the jad file:

    MIDlet-1: L4ec, /res/midlet_icon.png, net.private.client.MyMidlet
    MIDlet-Push-1: sms://:5001, net.private.client.MyMidlet, *


    This way I am able to launch the application when we receive an sms at port 5001 and it works fine.

    [edited for clarifying the problem]
    Normally I install the midlet from Nokia PC-Suite but sometimes after installing it from PC-Suite I reinstall it from the web using the phone's native browser. When I do this reinstallation it generates a conflict in the push registry (maybe because the app is installed two times, one in 'games' folder and the other in 'Collection' folder)

    The problem is that when I select "View conflict" the phone "resets". Then, from now on , even removing both of them (the one installed in games and the one installed in Collection) and installing again I will continue having the conflict and I'm not able to clear it.

    The only way to be able to run the application after this problem is to register the application to another port different of 5001 but I cannot afford that behaviour, I would need to "clean" the push registry and be able to use again 5001.


    So, is there some way to clear the static entries of the push registry?
    (It looks that a factory-settings restore is not enough, could I hard-reset this Nokia2730 classic?)

    Is there some way I can avoid this situation in the future with this device, how?

    And,finally, which is the expected behaviour for the phone when I hit view conflict?





    PD:
    I made a small midlet to check which is the status of the push registry for port 5001 and I get the following results:

    If I try to register dynamically to port 5001-> PushRegistry.registerConnection("sms://:5001", this.getClass().getName(), "*");

    17:00:01,725 [ERROR]: Failed to add midlet to pregjava.io.IOException: Connection Already RegisteredConnection Already Registered

    If I ask which midlet is registered to port 5001 -> PushRegistry.getMIDlet("sms://:5001")
    17:00:01,731 [INFO]: The midlet who is registered to the push registry is ->null

    If I list connections to the push registry
    connections = PushRegistry.listConnections(true);
    I get an empty list

    If I try to unregister connection at port 5001 I got an exception-> PushRegistry.unregisterConnection("sms://:5001");


    Thanks in advance and regards,
    Last edited by albertpv; 2010-05-25 at 19:19.

  2. #2
    Nokia Developer Expert
    Join Date
    Aug 2007
    Posts
    1,595

    Re: Failure launching my application from push registry after reinstallation

    Hello albertpv,

    and welcome to Forum Nokia Discussion Boards!

    For clarification, which one of the following two options is your case about?:

    1) You installed the application once with success, then tried to install again with no success

    2) You try to install the application but every attempt (even the very first one) fails with the conflict issue, i.e. you have not been able to install the application ever into that device.

    + Bonus question: do you get shown information by the device about what application is causing the conflict?

    Regards,
    r2j7
    [URL="http://library.forum.nokia.com/java"][B] >>> Java Developer's Library <<<[/B][/URL]
    [URL="https://www.developer.nokia.com/Resources/Support/Technical_support.xhtml"] [B]>>> Technical Support for Java ME development <<<[/B][/URL]
    [URL="https://publish.ovi.com/info/"][B]>>> Nokia Publish: reach millions of Nokia users worldwide through Nokia Store <<<[/B][/URL]

  3. #3
    Registered User
    Join Date
    May 2010
    Posts
    4

    Re: Failure launching my application from push registry after reinstallation

    Hello r2j7, thanks for the fast answer
    The case is the 1st as the issue is in the reinstallation . Never had conflict on 1st install.


    I would like to answer the bonus question but the problem is that the phone "restarts" when I try to see the details of conflict

  4. #4
    Nokia Developer Expert
    Join Date
    Aug 2007
    Posts
    1,595

    Re: Failure launching my application from push registry after reinstallation

    Hello albertpv,

    thank you for verifying the related use case.

    A continuum question, can you reset the device settings by entering factory reset *#7370# on phone call screen?

    Regards,
    r2j7
    [URL="http://library.forum.nokia.com/java"][B] >>> Java Developer's Library <<<[/B][/URL]
    [URL="https://www.developer.nokia.com/Resources/Support/Technical_support.xhtml"] [B]>>> Technical Support for Java ME development <<<[/B][/URL]
    [URL="https://publish.ovi.com/info/"][B]>>> Nokia Publish: reach millions of Nokia users worldwide through Nokia Store <<<[/B][/URL]

  5. #5
    Registered User
    Join Date
    May 2010
    Posts
    4

    Re: Failure launching my application from push registry after reinstallation

    Hello

    *#7370# is not working for that phone, when I press the green button it answers unknown result.

    The device details (*#0000#) are:
    Nokia 2730 classic
    v 09.41
    02/12/09
    RM-578
    Variant 63.05
    No virtual variant


    Now I am checking if there is some firmware update for the device.

  6. #6
    Nokia Developer Expert
    Join Date
    Aug 2007
    Posts
    1,595

    Re: Failure launching my application from push registry after reinstallation

    *#7370# is not working for that phone, when I press the green button it answers unknown result.
    No need to press the green key, just entering *#7370# suffices usually.

    How about *#7780# ?

    Regards,
    r2j7
    [URL="http://library.forum.nokia.com/java"][B] >>> Java Developer's Library <<<[/B][/URL]
    [URL="https://www.developer.nokia.com/Resources/Support/Technical_support.xhtml"] [B]>>> Technical Support for Java ME development <<<[/B][/URL]
    [URL="https://publish.ovi.com/info/"][B]>>> Nokia Publish: reach millions of Nokia users worldwide through Nokia Store <<<[/B][/URL]

  7. #7
    Registered User
    Join Date
    May 2010
    Posts
    4

    Re: Failure launching my application from push registry after reinstallation

    Hi again,

    That command works well but then I continue having the conflict when trying to run the application and the 'crash' when tring to view the elements of the conflict.

    In spanish the system dialog when trying to run the midlet is ("Aplicaciones en conflicto ¿Mostrar elementos?") when I hit yes the phone restarts


    Regards and thx,

    Albert

Similar Threads

  1. How to get chipID after launching Midlet using push registry?
    By sweetsweet24 in forum Near Field Communication
    Replies: 2
    Last Post: 2010-01-05, 21:41
  2. Replies: 3
    Last Post: 2009-11-05, 09:50
  3. push registry and sms problem with nokia phones only
    By dr_kmk4 in forum Mobile Java General
    Replies: 3
    Last Post: 2007-12-09, 08:13
  4. Replies: 5
    Last Post: 2007-04-16, 08:57
  5. Launching a view of a diffrent application
    By nsivach in forum Symbian
    Replies: 3
    Last Post: 2007-03-22, 09:51

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
×