Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Java Development

Reply
New Developer
vvjian
Posts: 9
Registered: ‎03-27-2009
My Device: Not Specified
Accepted Solution

Lost Data connection until pull battery out

I am working on a program with http call, we find sometimes the device lost data connection until reset the battery. This only happens once in serveral days, but it happens again and again. This only happens on 8830 and 8330, it never happened on 9530 or other newer devices. So It looks like there is an issue on the RIM OS.

 

My question is, do we have any solution to work around it. (someone told me we should avoid parallel http calls, is that true?)

 

I did a search on the forum, I found some thread also mentioned same issue:

http://supportforums.blackberry.com/rim/board/message?board.id=8300&message.id=37249&query.id=608157...

Please use plain text.
Developer
simon_hain
Posts: 15,806
Registered: ‎07-29-2008
My Device: Z10 LE
My Carrier: O2 Germany

Re: Lost Data connection until pull battery out

the device can not make parallel http calls so there is no reason to open more than one connection (connections are handled internally in a queue).

are you sure that it is not a timeout? the default timeout is 2min, you should wait at least that long.
do you tidy up your connections after using them?
----------------------------------------------------------
feel free to press the like button on the right side to thank the user that helped you.
please mark posts as solved if you found a solution.
@SimonHain on twitter
Please use plain text.
New Developer
vvjian
Posts: 9
Registered: ‎03-27-2009
My Device: Not Specified

Re: Lost Data connection until pull battery out

Thanks a lot for the response.

It should not be a timeout. When it happened, even the web browser is not working for any url.

Yes, we close the connection after use them. But we do not wait for 2 mins for starting next http call due to the efficiency reason

Please use plain text.
Developer
Developer
rab
Posts: 283
Registered: ‎07-22-2008
My Device: Not Specified

Re: Lost Data connection until pull battery out

It did happen a lot with me on 8830. I can reproduce the problem any time I want. If I issue multiple successive http requests using direct TCP connection the problem happens. I also noticed that it happens on 8830 with OS 4.2.x. It does not happen on 9530. My explanation to this that it could be a bug somewhere in the old OS version.

My work around is to use MDS all the time. That seemed to resolve the problem. But the connection still times out from time to time.( better than pulling the battery out).

 

Rab

 

Please use plain text.
New Developer
vvjian
Posts: 9
Registered: ‎03-27-2009
My Device: Not Specified

Re: Lost Data connection until pull battery out

Thanks Rab,

           So the problem is caused by multiple successive http requests.

           Does that mean we have to buy Blackberry Enterprise Server to work around it? 

           I am not sure why there are not so many programmers with this issue? pulling the battery out is really a bad user experience.

 Jian

Please use plain text.
Developer
Developer
rab
Posts: 283
Registered: ‎07-22-2008
My Device: Not Specified

Re: Lost Data connection until pull battery out

Unfortunately that is the only solution we found to go around the problem. We search a lot and we wrote many tests, and finally adopted that solution.

One thing that I always wanted to try is to use BIS connection, but you need to be registered with RIM and have special keys ( Costly !!!)

 

 

Rab

Please use plain text.