BlackBerry Forums Support Community               

Closed Thread
 
LinkBack Thread Tools
Old 06-26-2009, 09:45 AM   #1 (permalink)
New Member
 
majid.asgari's Avatar
 
Join Date: Sep 2008
Location: Tehran
Model: 8100
OS: Lin/WinXP
PIN: N/A
Carrier: Rogers
Posts: 10
Post Thanks: 0
Thanked 0 Times in 0 Posts
Unhappy java.io.IOException:Tunnel Failed in a url calling

Please Login to Remove!

Hello,

I have written a code that using HTTPConnection to call a url:

HttpConnection conn = (HttpConnection) Connector.open(url);
conn.setRequestMethod(HttpConnection.GET);
int respCode = conn.getResponseCode();
...

it's ok in my Pearl and send the url correct, but on my friend's Bold, i caught this exception:
java.io.IOException:Tunnel Failed

I also test calling that by using

StreamConnection c = null;
InputStream s = null;
try {
c = (StreamConnection) Connector.open(url);
s = c.openInputStream();
...

and

ContentConnection c = null;
DataInputStream dis = null;
try {
c = (ContentConnection) Connector.open(url);
int len = (int) c.getLength();
dis = c.openDataInputStream();
...

but the same.

Also i can call the url by bb's browser and it's ok.
I tested the application by WIFI and Edge.
This is really weird :(

Thanks in advance
__________________
Regards
Majid Asgari Bidhendi
BlackBerry developer
Student of Artificial Intelligence
Offline  
Closed Thread


Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

B3100H00S01 NEW - Siemens 22K AIC Shunt Trip Circuit Breaker Free UPS Ground
$300.0
B3100H00S01  NEW - Siemens  22K AIC Shunt Trip  Circuit Breaker  Free UPS Ground pictureFREESHIPSAMEDAY SIEMENS 49ZATK750-3 TERMINAL LUG KIT NEMA SZ 7 49ZATK7503
$120.0
FREESHIPSAMEDAY SIEMENS 49ZATK750-3 TERMINAL LUG KIT NEMA SZ 7 49ZATK7503  picture1 NEW SIEMENS GD SAFETY SWITCH, GNF322R, REPLACES CAT NO. NFR322, 60A, 3P, NIB
$179.99
1 NEW SIEMENS GD SAFETY SWITCH, GNF322R, REPLACES CAT NO. NFR322, 60A, 3P, NIB pictureUSED SIEMENS WF723C 6FM1723-3CA10 POSITIONING WF723C 6FM1723-3CA10 ,BOXYB
$1695.0
USED SIEMENS WF723C 6FM1723-3CA10 POSITIONING WF723C 6FM1723-3CA10 ,BOXYB pictureTwo Siemens NEB3B050 Breaker
$252.0
Two Siemens NEB3B050 Breaker picture






Copyright 2004-2016 BlackBerryForums.com.
The names RIM and BlackBerry are registered Trademarks of BlackBerry Inc.