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
Developer
sblantipodi
Posts: 1,178
Registered: ‎02-19-2009
My Device: Not Specified

Re: httpconnect not work on real device

read the link I gived you and if you are not authorized to use BISB, don't waste your time.

Developer
peter_strange
Posts: 19,609
Registered: ‎07-14-2008
My Device: Not Specified

Re: httpconnect not work on real device

@sblantipodi - but the poster is not trying to use BIS-B!

 

@OP - what exception do you get?

 

I'm guessing it is a tunnel failure.  If so, we need to know what carrier you are using. 

Developer
sblantipodi
Posts: 1,178
Registered: ‎02-19-2009
My Device: Not Specified

Re: httpconnect not work on real device

as I have just explained and proved if he is not using BISB he is loosing time :smileyhappy:

Contributor
tramntn
Posts: 39
Registered: ‎04-20-2010
My Device: 9550,8190

Re: httpconnect not work on real device

[ Edited ]

i got a tunnel failure exception , Yes i am not using BISB so dont have any other way except to use BISB?.

 

I want to config with APN but i dont know how to do, on my blackberry i see

this info APN: epc.tmobile.com 

username/password for APN (so what is username or pass for APN)?

Contributor
tramntn
Posts: 39
Registered: ‎04-20-2010
My Device: 9550,8190

Re: httpconnect not work on real device

i really got stuck with it, i try with ;interface=wifi(i check wifi ok) the method getResponseCode() return 301.

 

Please help

Developer
sblantipodi
Posts: 1,178
Registered: ‎02-19-2009
My Device: Not Specified

Re: httpconnect not work on real device

In Italy and in much other countries 90% of BB users got a BISB data plan, other 10% got BES.

If you don't use BISB you loose the 90% of the customers with BIS data plan since there is no wap2 here and direct TCP means to hardcode all APN (that is impossible and unmanageble)...

Think that you can hardcode APN to use directTCP, no one will use your software since every connection will be out of data plan and sending a simple email will cost more than 1 euros, just to make you an example.

Developer
peter_strange
Posts: 19,609
Registered: ‎07-14-2008
My Device: Not Specified

Re: httpconnect not work on real device

@sblantipodi - your position regarding BIS-B known and understood, and you have provided a reference to it in this Thread.  Going on about it does not help this poster.  Please can you use your time to provide the poster with some assistance that is going to help and is not just repetition of information that the poster has already been made aware of.   

 

@tramntn - Please tell us the carrier that you are using and we may be able to find APN information for you and tell you how to use it.

 

With respect to the 301, here is a page that explains that response code:

http://www.checkupdown.com/status/E301.html

 

In brief it means that the URL you have been given is no longer correct, but the Server has replied with the correct URL - the HttpProtocolConstants.HEADER_LOCATION header in the response should tell you where to go for the real URL. 

 

I'm surprised that you are getting a redirect using WiFi and not using the Simulator, if the devices are on the same network. 

Contributor
tramntn
Posts: 39
Registered: ‎04-20-2010
My Device: 9550,8190

Re: httpconnect not work on real device

i use T-Mobile

Contributor
tramntn
Posts: 39
Registered: ‎04-20-2010
My Device: 9550,8190

Re: httpconnect not work on real device

finally it works, thanks you all .

Developer
peter_strange
Posts: 19,609
Registered: ‎07-14-2008
My Device: Not Specified

Re: httpconnect not work on real device

That is very good to know.

 

For the next person, could you summarise what you did to get it going?

 

Thanks