×

Discussion Board

Results 1 to 7 of 7
  1. #1
    Regular Contributor
    Join Date
    May 2009
    Posts
    52

    PushRegistry.registerConnection() ConnectionNotFoundException

    Hi all,

    I work on a S40 6th edition.

    I wrote a midlet that open a ServerSocketConnection. I would like to use the PushRegistry to open my midlet.

    But when I use tho PushRegistry.registerConnection("socket://:60000",....) I got a ConnectionNotFoundException.

    Can someone help me?

  2. #2
    Nokia Developer Champion
    Join Date
    Feb 2009
    Location
    Noida, India
    Posts
    3,087

    Re: PushRegistry.registerConnection() ConnectionNotFoundException

    Try static registry for this and see if it works for you.

    thanks,
    ~Amitabh

  3. #3
    Regular Contributor
    Join Date
    May 2009
    Posts
    52

    Re: PushRegistry.registerConnection() ConnectionNotFoundException

    I tried but I got a Invalid Application when I try to install it :

    MIDlet-1: Test,,Test
    MIDlet-Jar-URL: Test.jar
    MicroEdition-Configuration: CLDC-1.0
    MIDlet-Push-1: socket://:5012, Test, *
    MIDlet-Version: 1.0.0
    MIDlet-Name: Test MIDlet Suite
    MIDlet-Vendor: MIDlet Suite Vendor
    MIDlet-Permissions: javax.microedition.io.PushRegistry
    MicroEdition-Profile: MIDP-2.1

  4. #4
    Super Contributor
    Join Date
    Mar 2008
    Location
    The Capital of INDIA
    Posts
    4,328

    Re: PushRegistry.registerConnection() ConnectionNotFoundException

    Quote Originally Posted by adrien843 View Post
    I tried but I got a Invalid Application when I try to install it :

    MIDlet-1: Test,,Test
    MIDlet-Jar-URL: Test.jar
    MicroEdition-Configuration: CLDC-1.0
    MIDlet-Push-1: socket://:5012, Test, *
    MIDlet-Version: 1.0.0
    MIDlet-Name: Test MIDlet Suite
    MIDlet-Vendor: MIDlet Suite Vendor
    MIDlet-Permissions: javax.microedition.io.PushRegistry
    MicroEdition-Profile: MIDP-2.1
    Please change the MIDP version to the 2.0 and then try to test.
    Thanks with Regards,

    R a j - The K e r n e l


    Join Delhi-NCR Nokia Developer's Community,

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

    Re: PushRegistry.registerConnection() ConnectionNotFoundException

    Hello adrien843,

    please change this:

    MicroEdition-Configuration: CLDC-1.0

    to this:

    MicroEdition-Configuration: CLDC-1.1

    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]

  6. #6
    Regular Contributor
    Join Date
    May 2009
    Posts
    52

    Re: PushRegistry.registerConnection() ConnectionNotFoundException

    Hi,


    With MIDP 2.0 or MIDP 2.1 and CDLC 1.0 or 1.1 the result is the same : invalid application.


    Thanks,
    Adrien

  7. #7
    Regular Contributor
    Join Date
    May 2009
    Posts
    52

    Re: PushRegistry.registerConnection() ConnectionNotFoundException

    In a real phone (S40 v3 FP2) I get ConnectionNotFoundException:PlatformNotSupported

    Thanks,
    Adrien

Similar Threads

  1. ConnectionNotFoundException
    By quantim5 in forum Mobile Java Networking & Messaging & Security
    Replies: 2
    Last Post: 2008-08-09, 20:00
  2. ConnectionNotFoundException
    By p_joon in forum Mobile Java Networking & Messaging & Security
    Replies: 1
    Last Post: 2007-11-19, 15:52
  3. ConnectionNotFoundException
    By jini_1 in forum Mobile Java General
    Replies: 6
    Last Post: 2007-06-07, 18:45
  4. ConnectionNotFoundException for HTTP
    By simon_turner in forum Mobile Java Tools & SDKs
    Replies: 1
    Last Post: 2005-10-31, 12:47
  5. ConnectionNotFoundException
    By jorgenaasland in forum Mobile Java General
    Replies: 1
    Last Post: 2002-11-21, 07:11

Posting Permissions

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