×

Discussion Board

Results 1 to 3 of 3
  1. #1
    Registered User
    Join Date
    Jul 2003
    Posts
    14

    setting of Series 60 MIDP SDK for Symbian OS version 1.2 for networking

    I have application, which connects to server on simulator 7210 it is OK, it connects on 127.0.0.1 with no problem and no questions.

    Code:
    conn = (HttpConnection) Connector.open(url);
    conn.setRequestMethod(HttpConnection.POST);
    conn.setRequestProperty("Content-Length", Integer.toString(request.length()));
    out = conn.openOutputStream();/******1*****/
    int requestLength = request.length();
    for (int i = 0; i < requestLength; ++i) {
       out.write(request.charAt(i));
    }
    in = conn.openInputStream();/********2*******/
    but in series 60 emulator it asks me at point **1** to choose
    Direct PPP or RAS PPP. After that( I choose any of them) it will raise Exception in point **2** with name:java.io.IOException: Status = -21 bellow is whole stacktrace if it helps.
    Now, whats wrong? I used 127.0.0.1, real IP, localhost as parameter and it was working on 7210. Do I have to setup something in emulator my program to work? Or is it a bug? feature?? Am I doing something wrong??




    only stack trace follows:
    [Info] Series 60 MIDP SDK for Symbian OS version 1.2: java.io.IOException: Status = -21
    [Info] Series 60 MIDP SDK for Symbian OS version 1.2: at com.symbian.cldc.connection.ConnectionEndPoint.writeBytes(+140)
    [Info] Series 60 MIDP SDK for Symbian OS version 1.2: at com.symbian.cldc.connection.OutputStream.flush(+23)
    [Info] Series 60 MIDP SDK for Symbian OS version 1.2: at com.symbian.midp.io.protocol.http.HttpConnection.sendRequest(+101)
    [Info] Series 60 MIDP SDK for Symbian OS version 1.2: at com.symbian.midp.io.protocol.http.HttpConnection.ensureResponse(+40)
    [Info] Series 60 MIDP SDK for Symbian OS version 1.2: at com.symbian.midp.io.protocol.http.HttpConnection.openDataInputStream(+15)
    [Info] Series 60 MIDP SDK for Symbian OS version 1.2: at com.symbian.midp.io.protocol.http.HttpConnection.openInputStream(+4)
    [Info] Series 60 MIDP SDK for Symbian OS version 1.2: at wildwest.HttpPoster.doSend(+222)
    [Info] Series 60 MIDP SDK for Symbian OS version 1.2: at wildwest.HttpPoster.run(+102)

  2. #2
    Super Contributor
    Join Date
    Mar 2003
    Location
    Israel
    Posts
    2,280
    Status = -21 means "Access denied" (http://www.symbian.com/developer/tec.../Erresapi.html). So it looks like there is something wrong with the settings.

    shmoove

  3. #3
    Registered User
    Join Date
    Jul 2003
    Posts
    14

    setting of Series 60 MIDP SDK for Symbian OS version 1.2 for networking

    Thank you.
    Well, now I know it is in the settings and I don't have to curse my code ;-)

    But someone know where and what to set?


    Or where I can find the documentation about the settings at least? There are 1254 files and 130 directories in the emulator . 50 ini files only, and in the end I can find I should set something in windows registry :-(

    windowsXP, and I only installed emulator on NokiaDeveloperSuiteforJ2ME v2.0 with no additional settings.

Posting Permissions

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