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


Allen-Bradley 1747-L531 Series E SLC500 Processor Controller Module 8 #K-992A picture

Allen-Bradley 1747-L531 Series E SLC500 Processor Controller Module 8 #K-992A

$157.50



Omron E5EK-AA2-500 Processor/Controller picture

Omron E5EK-AA2-500 Processor/Controller

$130.00



New Factory Sealed AB 1747-L511 SER B SLC 500 CPU Processor Unit Module 1747L511 picture

New Factory Sealed AB 1747-L511 SER B SLC 500 CPU Processor Unit Module 1747L511

$215.00



New Factory Sealed AB 1747-L542 SER C SLC 500 5/04 CPU Processor Unit 1747L542 picture

New Factory Sealed AB 1747-L542 SER C SLC 500 5/04 CPU Processor Unit 1747L542

$308.00



NEW SEALED AB 1747-L541 /C SLC 500 SLC 5/04 CPU PROCESSOR UNIT MODULE US picture

NEW SEALED AB 1747-L541 /C SLC 500 SLC 5/04 CPU PROCESSOR UNIT MODULE US

$310.93



1000W Stainless Steel Welding Bead Processor,Brush Type Weld Cleaning Machine picture

1000W Stainless Steel Welding Bead Processor,Brush Type Weld Cleaning Machine

$203.49







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