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
Highlighted
Regular Contributor
Posts: 83
Registered: ‎05-24-2011
My Device: Storm 9550
My Carrier: XXX
Accepted Solution

HttpConnection problems

Hi all,

 

I have an app that has been out on the market for a bit that has been working fine. Within the last couple of days, the httpconnections have been incredibly slow, and timing out. no code has changed! Is there something going on with the servers?

sdw
Contributor
Posts: 29
Registered: ‎05-30-2011
My Device: Developer
My Carrier: N/A

Re: HttpConnection problems

What type(s) of network transports are you using?
Regular Contributor
Posts: 83
Registered: ‎05-24-2011
My Device: Storm 9550
My Carrier: XXX

Re: HttpConnection problems

not sure...here is my code:

 

HttpConnection str = (HttpConnection)Connector.open(url)

 I am just running it on the simulation with MDS.

Regular Contributor
Posts: 83
Registered: ‎05-24-2011
My Device: Storm 9550
My Carrier: XXX

Re: HttpConnection problems

Sorry the whole code I am running is:

 

HttpConnection str = (HttpConnection) Connection.open(url);
InputStream input = str.openInputStream();

 The code times out at the inputStream line

sdw
Contributor
Posts: 29
Registered: ‎05-30-2011
My Device: Developer
My Carrier: N/A

Re: HttpConnection problems

What connection descriptor are you appending on your URL? This will define the transport that you are using.
Regular Contributor
Posts: 83
Registered: ‎05-24-2011
My Device: Storm 9550
My Carrier: XXX

Re: HttpConnection problems

I don't think I am using any descriptor....This is my url:

 

url = "http://208.112.30.136/Banner" + ";ConnectionTimeout=20000";

 

Regular Contributor
Posts: 83
Registered: ‎05-24-2011
My Device: Storm 9550
My Carrier: XXX

Re: HttpConnection problems

I just added ";deviceside=true" and it worked!...why did it work before with out it?

sdw
Contributor
Posts: 29
Registered: ‎05-30-2011
My Device: Developer
My Carrier: N/A

Re: HttpConnection problems