Discussion Board

Results 1 to 4 of 4
  1. #1
    Registered User
    Join Date
    Apr 2003

    3650/7650 Emulatore don't Connect

    Hi allz.

    I just wrote a simple Midlet that create a connection to my localhost (with Tomcat 4.0.3) and try to read an XML document.

    String url = "http://localhost:8080/examples/servlet/Regia?all=1";
    StringBuffer sbuf = new StringBuffer();
    HttpConnection c = null;
    InputStream is = null;
    boolean blOut = false;

    try {
    c = (HttpConnection) Connector.open(url);
    System.out.println("DEBUG --00");
    is = c.openInputStream();
    System.out.println("DEBUG --01");
    String status = parse(is);
    System.out.println("DEBUG --02");

    Here is the code. Compiling the code is all rigth, packaging too. When I execute the jar in Symbian Series 60 (nokia version) the emulator ask me which kind of connection use (Direct Http is the only one), i wait some second and the program stop in timeout, I obtain an IOException n° 109. Y? The code is right, I know. Is all about the Emulator? Or more?

  2. #2
    Registered User
    Join Date
    Apr 2003
    I have same problem, on 7210 emulator all works fine

  3. #3
    Registered User
    Join Date
    May 2003

    Emulator not connecting via http

    I have the same problem.
    I developed several http networking midlets which perform flawlessly in the default Sun emulatoras but fail to connect when i try to use the Series 60 emulator from Nokia.
    Non networking midlets work in the series 60 emulator without any problems.
    Has anyone have any clue as to what is causing this behaviour?
    Is there any configuration file related to the Series 60 emulator that needs tweaking?

    Best Regards,

    Nuno Félix

  4. #4
    Registered User
    Join Date
    Mar 2003
    I had the same problem...

    My investigations show that in the Sun emulator, connections to "localhost" or "" get routed to the host PC. In the Series 60 emulator however, error -191 is returned. (Presumably "localhost" is the emulator itself).

    I worked around this by using the actual IP address of the host PC.

Posting Permissions

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