×

Discussion Board

Results 1 to 3 of 3
  1. #1
    Registered User
    Join Date
    Jan 2006
    Posts
    1

    J2ME SecureConnection: SSL problems

    Hello,

    I am developing a J2ME application with Eclipse, Sun Wireless
    Toolkit 2.3, and the Eclipse ME plugin. I have placed all network
    code in its own thread separate from the GUI thread as the emulator
    suggested. I want to establish an SSL connection to a server without
    using HTTPS. So I write

    SecureConnection sc = Connector.open("ssl: ...

    The connection is open, and from the Ethereal packet sniffer
    application I can see the first three phases of the handshake.
    After sending data to the server, receiving a certificate, and
    sending 14 bytes back the connection is closed, so that it
    never gets to the reading data part of the application. This
    happens both on Sun's emulator as well as on various
    Nokia emulators.

    The only emulator where I was able to get past this point
    is the blackberry, where i can receive 2000 bytes or so,
    but after that InputStream instance is method is.available()
    returns zero, no more bytes are read from the network,
    and alas, is.read() returns junk data and I don't know
    what to do about it.

    So, is there a way to get things to work on the
    Nokias at least? For instance, under Sun Java
    WIreless Toolkit 2.3 Beta -> Utilities I can see
    a Manage Certificates button with the Security
    options. Do I need to do something here to
    allow the application to proceed past the
    send/receive/send sequence i described
    earlier? What exactly should I do here,
    if this is what's causing the problem?

    Any feedback or experiences with this SSL
    on J2ME would be really appreciated, as I
    am really eager to get this working on at
    least one emulator and/or hardware device,
    don't care which, but would really like to
    see SSL working properly on at least
    one mobile Java application.

    I will be eternally grateful to whever can
    provide me with some feedback on this.

    Thanks a lot!

  2. #2
    Regular Contributor
    Join Date
    Mar 2004
    Posts
    154

    Re: J2ME SecureConnection: SSL problems

    Hi ,
    I am facing similar problems with WTK 2.2 kit and Nokia 6630 phone. And it seems there is no way to solve this problem.
    But good that you pointed out that it works on BlackBerry partially, so i will try on that as well.
    Will also donwload WTK 2.3 and see if i can get my app working with it.

  3. #3
    Nokia Developer Expert
    Join Date
    Jun 2005
    Posts
    923

    Re: J2ME SecureConnection: SSL problems

    Nzanella, can you post the code please?

    Daniel

Similar Threads

  1. Series 60 J2ME emulator problems
    By evertomi in forum Mobile Java Tools & SDKs
    Replies: 2
    Last Post: 2009-06-15, 10:21
  2. N-Gage J2ME problems
    By bcflynn2 in forum Mobile Java General
    Replies: 3
    Last Post: 2004-04-18, 19:10
  3. More offscreen DrawString problems !!! (Series 60 J2ME SDK)
    By cbazza@poliplus.com in forum Mobile Java Media (Graphics & Sounds)
    Replies: 0
    Last Post: 2003-06-13, 21:00
  4. J2ME Installing problems on 7650
    By rickyhaggett in forum Mobile Java General
    Replies: 6
    Last Post: 2003-04-29, 23:59
  5. Major problems with J2ME on 7650 (firmware v4.37)
    By papablues in forum Mobile Java Tools & SDKs
    Replies: 1
    Last Post: 2003-02-28, 05:26

Posting Permissions

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