×

Discussion Board

Results 1 to 6 of 6
  1. #1
    Registered User
    Join Date
    Jun 2005
    Posts
    10

    getResponseCode() hangs on 9500

    Hi,

    I use HttpConnection to make HTTP requests from a midlet. Some times getResponseCode() hangs indefinitely. My estimate is that this happens maybe in one out of eight requests. A new thread is spun for each consecutive request.

    On the server requests complete normally and the server log shows HTTP 200 even when the getResponseCode() is hanging.

    The phone is a 9500 Communicator with firmware version 4.51(0).

    Have you got workarounds for this?

    Kari

  2. #2
    Super Contributor
    Join Date
    Feb 2006
    Posts
    689

    Re: getResponseCode() hangs on 9500

    Hi,
    try if this provide you some help.

    http://developer.sonyericsson.com/me...essageID=61072

    Thanks
    Soku

  3. #3
    Registered User
    Join Date
    Jun 2005
    Posts
    10

    Re: getResponseCode() hangs on 9500

    Soku,

    The sonyericsson link points to a thread where the poster has problems with HTTP-requests of certain content size. I'm sending HTTP-request with same content every time so there is no variation in content size and still the failure sometimes happens and some times not. The server supports chunked HTTP so that shouldn't be the problem.

    Kari

  4. #4
    Super Contributor
    Join Date
    Mar 2006
    Posts
    516

    Re: getResponseCode() hangs on 9500

    Hi,

    is ur code working properly on the emulator.

    On searching the forum I found a lot of guys having similar problem, so please search the forum. It may be helpful.


    wang

  5. #5
    Registered User
    Join Date
    Jun 2005
    Posts
    10

    Re: getResponseCode() hangs on 9500

    The code works well in Sun WTK emulator. It also works on the real Communicator in one server environment. I will test it on Series 80 emulator on friday and get back with the results.

    I browsed through this forum and indeed I found people having a similar problem. Some of the posts had 0 replies. Some told to close the stream and connection in a finally-block, which is what I already do. In one case a Nokia guy asked for a zip file containing the problematic code. Someone "improved stability" by recycling a thread to use it in multiple http requests.

    Given the wide range of devices and platforms where this problem seems to pop up, I'm a little bit surprised that this issue has not been handled more thoroughly.

    Kari

  6. #6
    Registered User
    Join Date
    Jun 2005
    Posts
    10

    Re: getResponseCode() hangs on 9500

    Hi,

    I tested My code with Prototype_4_0_S80_640x200_MIDP_Emulator. Works fine; I can rerproduce the problem only on the real device.

    Kari

Similar Threads

  1. CTelephony::GetCurrentNetworkInfo on 9500 hangs?
    By mgroeber9110 in forum Symbian Networking & Messaging (Closed)
    Replies: 1
    Last Post: 2007-02-22, 07:51
  2. Socket connection hangs on 9500 but works well in the WTK 2.2 emulator
    By falconpl in forum Mobile Java Networking & Messaging & Security
    Replies: 0
    Last Post: 2005-07-30, 21:38
  3. 9500 worst Communicator ever. Suggestions to improve it.
    By creacom000 in forum General Development Questions
    Replies: 4
    Last Post: 2005-07-21, 11:16
  4. Suggestions to improve the Nokia 9500 Communicator
    By creacom000 in forum PC Suite API and PC Connectivity SDK
    Replies: 1
    Last Post: 2005-07-21, 10:37
  5. Connecting 9500 to Linux using USB cable
    By jaakola in forum PC Suite API and PC Connectivity SDK
    Replies: 1
    Last Post: 2005-03-14, 08:30

Posting Permissions

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