×

Discussion Board

Results 1 to 8 of 8
  1. #1
    Registered User
    Join Date
    Apr 2010
    Posts
    80

    no response entries available

    Hi all,

    I have a simple application that connects to a server via a web service and downloads pictures. The webservice takes an id and returns the corresponding picture via http connection. This application works fine on Nokia S60 devices.
    But S40 devices (X3, 3120c, 6300) doesn't work properly. They download 5 or 6 pictures successfully but then They start to give "java.io.IOException: No response entries available" during reading the response code.

    Code:
    int response = myConnection.getResponseCode();
    After that exception, It never downloads any pictures.

    Any ideas?

    Thanks and regards.
    Last edited by wizard_hu_; 2013-02-01 at 14:17. Reason: PHP tags did not work well

  2. #2
    Registered User
    Join Date
    Sep 2007
    Location
    Bangalore
    Posts
    868

    Re: no response entries available

    Hi asifsanli ,

    How are you doing the download ? Are you keeping the single connection and using the same connection for all the requests ?

  3. #3
    Registered User
    Join Date
    Apr 2010
    Posts
    80

    Re: no response entries available

    No I am not using the same connection. I am closing the connection, after each download. When I will call the webservice, I create a new http connection. So each download has a seperate connection

    Thanks.

  4. #4
    Registered User
    Join Date
    Sep 2007
    Location
    Bangalore
    Posts
    868

    Re: no response entries available

    Hi asifsanli ,

    Are you closing the connection properly after using how are you closing ? In finally block or normally .

    Follow this thread they have similar problems :
    http://discussion.forum.nokia.com/fo...n-after-opened
    http://discussion.forum.nokia.com/fo...IOException-34

  5. #5
    Registered User
    Join Date
    Apr 2010
    Posts
    80

    Re: no response entries available

    Thanks but It didn't help me. It mentions about where closing the streams and connections.

    I realized that each webservice connection creates two http connections. So the things are more complicated. Let me summarize What I am doing:

    Code:
    try{
       httpConnection = (HttpConnection)Connector.open(url);//Conects to the ws
       requestStream = httpConnection.openOutputStream();
       //process stream
       requestStream.close();
       response = httpConnection.getResponseCode(); //******** Here is where I get exception.
       responseStream = httpConnection.openInputStream();
      //process response-//gets the image url from ws to download and then creates a new connection with that url.
       try{
          httpConnection2 = (HttpConnection)Connector.open(url2); 
          response2 = httpConnection2.getResponseCode();
          responseStream2 = httpConnection2.openInputStream();  
         //process response2
       } catch{
       } finally{
          responseStream2 .close();
          httpConnection2 .close();
       }
      
    } catch{
    
    } finally {
       responseStream .close();
       httpConnection .close();
    }
    So As you see I create a new connection while the first one is open. I close the second connection and then the first connection.

    It works fine with 5 or 6 picture downloads. But then It starts to give exception.

    Any ideas?

    Thanks.
    Last edited by wizard_hu_; 2013-02-01 at 14:18. Reason: PHP tags did not work well

  6. #6
    Registered User
    Join Date
    Sep 2007
    Location
    Bangalore
    Posts
    868

    Re: no response entries available

    Hi asifsanli ,

    Why do you need two two connections and input streams ? Can you explain little more clearly what are you doing in the above code . it is looking so ambiguous to me .

  7. #7
    Registered User
    Join Date
    Apr 2010
    Posts
    80

    Re: no response entries available

    OK. I solved it. Let me explain what is going on

    I am connecting to a webservice. That ws gets an id as input and gives the corresponding picture link. Then I create a new connection with that link to download that picture.

    First, I was cerating the second connection before closing the first connection. After closing the second, I was closing the first one.

    But I changed it. I closed the first one. Then I created the second connection. Then It worked perfect !

    Thank you very much to all.

  8. #8
    Registered User
    Join Date
    Sep 2007
    Location
    Bangalore
    Posts
    868

    Re: no response entries available

    I think the better one is use one connection don't open the two connection like closing one and opening another . Write your http method as generic thing . Fist get the web service and parse then pass the link to the same method to get the images. Any way good you found out the problem.

Similar Threads

  1. java.io.IOException: Out of response entries in 6300
    By mtuhukumar k in forum Mobile Java Networking & Messaging & Security
    Replies: 16
    Last Post: 2009-10-12, 10:56
  2. Big Issues and no reply from Ovi Support: Item no longer available on Ovi Store
    By BlackTomcat in forum [Closed] Publishing to Nokia Store
    Replies: 4
    Last Post: 2009-06-20, 14:19
  3. no Logout Response
    By wittmanna in forum General Messaging
    Replies: 1
    Last Post: 2003-07-10, 06:08

Posting Permissions

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