BlackBerry Forums Support Community
              

Closed Thread
 
Thread Tools
Old 05-29-2007, 05:15 AM   #1
yashovardhan
Knows Where the Search Button Is
 
Join Date: Jan 2007
Location: India
Model: 7230
Carrier: Airtel(india)
Posts: 18
Post Java.io.IOException:could not open tunnel - failed exception

Please Login to Remove!

Hello all,

I am using blackberry JDE 4.0.2 for developing standalone application.
i am getting this exception:Java.io.IOException:could not open tunnel - failed
when i try to run the application in the actual device which uses javax.microedition.io.httpConnection class to open a httpConnection.
But in the simulator it works fine and i am able to retrieve the the data.But i am facing this problem when i actually try to run the application on the actual blackberry device.I am using blackberry 7230.
Any help on this will be appreciated.

thanks in advance
Offline  
Old 05-29-2007, 05:25 AM   #2
jfisher
CrackBerry Addict
 
Join Date: Jun 2005
Location: Manchester, UK
Model: BOLD
Carrier: t-mobile
Posts: 714
Default

problems opening a tunnel usually relate to the device needing to have it's apn set in options > advanced > TCP

also be sure that your http connection class is in it's own thread.
__________________
new job doesn't allow a public profile - please do not contact this user with questions, you will not get a response. good luck!
Offline  
Old 05-30-2007, 07:22 AM   #3
yashovardhan
Knows Where the Search Button Is
 
Join Date: Jan 2007
Location: India
Model: 7230
Carrier: Airtel(india)
Posts: 18
Default

hi jfisher ,

I am using Airtel india connection. they are telling APN details are not given to customers. Is there any way to make third party application which opens httpconnection across the network work...

Any other way to make it work????
Offline  
Old 05-31-2007, 07:36 AM   #4
CPO
New Member
 
Join Date: Apr 2007
Location: Ottawa
Model: 8100
PIN: N/A
Carrier: Rogers
Posts: 14
Default

I take it you have a BIS account rather than a hosted BES? If that's the case then you could try appending ";deviceside=false" to the HTTP URL you are trying to connect to.
Offline  
Old 07-30-2007, 04:07 PM   #5
bbCincinnati
Thumbs Must Hurt
 
Join Date: Apr 2007
Location: Cincinnati, OH
Model: 8700c
PIN: N/A
Carrier: Cingular
Posts: 87
Default

For what it's worth to anyone who might run into this problem in the future...

I was having exactly the same problem; the application ran fine on the simulator, but on the actual device (8700c) I got the same error:

Java.io.IOException: could not open tunnel - failed

Jfisher was right; my problem was an APN setup issue.

I searched around and found: "Mark's Big BerryFAQ" (on Blackberry Forums) and under that: "How to Configure Full Internet Access On BlackBerry".

http://www.blackberryforums.com/blac...ip-no-bes.html.

Mark has the APN, Username, and Password listed for many carriers. For example,

Cingular (orange)
APN: wap.cingular
Username: [email address]
Password: CINGULAR1

After I changed these settings, my error changed to:

Java.io.IOException: Bad DNS Address

However, that error seemed to go away after I unloaded and reloaded the application on the device a few times. Anyway, it seems to work fine now

Last edited by bbCincinnati; 07-30-2007 at 04:13 PM.. Reason: add url
Offline  
Closed Thread



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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


OEM Dell XPS 8910 8920 8930 Alienware Aurora R5 R6 R7 Front Cooling Fan 7M0F5 picture

OEM Dell XPS 8910 8920 8930 Alienware Aurora R5 R6 R7 Front Cooling Fan 7M0F5

$13.81



DELL 330-6581 3306581 725-10229 OEM LAMP FOR 1510X 1610HD 1610X  - Made By DELL picture

DELL 330-6581 3306581 725-10229 OEM LAMP FOR 1510X 1610HD 1610X - Made By DELL

$39.98



NEW VESA ADAPTER PLATE FOR DELL E-SERIES MONITORS - OEM picture

NEW VESA ADAPTER PLATE FOR DELL E-SERIES MONITORS - OEM

$6.00



Dell OEM Latitude Rugged Extreme 7404 Left and Right Mouse Buttons 00008 picture

Dell OEM Latitude Rugged Extreme 7404 Left and Right Mouse Buttons 00008

$5.95



NEW DELL OEM REPLACEMENT PROJECTOR LAMP FOR 4220 4320 GENUINE ORIGINAL  picture

NEW DELL OEM REPLACEMENT PROJECTOR LAMP FOR 4220 4320 GENUINE ORIGINAL

$198.22



Genuine OEM Dell 2375 B2375dnf B2375dfw 110V Fuser fixing N41P2 sku 724-BBCI picture

Genuine OEM Dell 2375 B2375dnf B2375dfw 110V Fuser fixing N41P2 sku 724-BBCI

$94.99







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