×

Discussion Board

Results 1 to 7 of 7
  1. #1
    Regular Contributor
    Join Date
    Aug 2003
    Location
    Oldenburg, Germany
    Posts
    118

    stop after random number of http-requests on series60

    Hi,

    i have a midlet (for Series60) which connects to a server every four seconds in a thread. the problem: after a random number of http-requests the threads run()-method stops. sometimes on getResponseCode, sometimes on in openInputStream and sometimes somewhere else.

    Has someone found a solution to make unlimited number of http-requests for Series60?

    Regards,
    Sebastian Szczygiel

  2. #2
    Registered User
    Join Date
    Jan 2004
    Location
    Poland
    Posts
    49
    I do not know if it can be a solution but I have seen same problem somewhere - do you explicitly close the connection or it remains open by default?

  3. #3
    Regular Contributor
    Join Date
    Aug 2003
    Location
    Oldenburg, Germany
    Posts
    118
    the connection and streams are always closed in a finally-block. so, that's not the problem.

  4. #4
    Registered User
    Join Date
    Jan 2004
    Location
    Poland
    Posts
    49
    sorry - nic Ci nie poradzê

  5. #5
    Registered User
    Join Date
    Jan 2004
    Posts
    2
    There are known problems with the stability of HTTP on both the 3650 and 7650 which cause the problem you describe here. Unfortunately I have not been able to discover a work around and Nokia have been remarkably reticent about this. For more information check the following sources.

    http://archives.java.sun.com/cgi-bin...18242&D=0&I=-3

    http://lists.bawug.org/pipermail/wir...ly/012510.html

  6. #6
    Regular Contributor
    Join Date
    Aug 2003
    Location
    Oldenburg, Germany
    Posts
    118
    nice to know that more people have the problem with repeated http-requests on series60 devices.

    but, please, really, no one has found a solution?

  7. #7
    Registered User
    Join Date
    Feb 2004
    Posts
    8

    Threads and hanging HTTP on Series60

    I've had a problem which may be the same one - however I wrote a test midlet to just do repeated HTTP requests and that was reliable (occasional failed request, but MIDlet kept running)

    Then I realised the original problem was with an application that spawned a new thread for each HTTP request.

    Then I altered the test code to do this, and it became unreliable (jammed completely after a few tens of requests, typically - had to power-cycle)

    My suspicion is that there is a threading/synchronization issue on series 60's - I suggest a workaround of keeping one thread only for doing network requests, and recycle it.

Posting Permissions

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