HttpConnection IOException Tunnel has no problem
Hello
I wrote a code that use HTTPConnection to call a url:
HttpConnection conn = (HttpConnection) Connector.open)
«http:// *.» ***. : 5556/mobileservice.asmx; deviceside = true; ConnectionTimeout ="+ timeOut, Connector.READ_WRITE, true);
And I got the IOException:Tunnel Failed on 9000 "BOLD" and the 8900. (So far, I had only to test on both devices).
I think I had put the apn correctly. So I don't understand the reason for this exception.
Can someone give me help?
Thanks in advance
Sorry, my mistake. I used the wrong NPC. I use .com but not .nl.
And it works now.
Thanks for your help
Tags: BlackBerry Developers
Similar Questions
-
Hi all
I develop an application that communicates with a database MySQL via PHP stored on the server scripts. Until today I've developed using the Simulator, and everything has been fine. I now started to test on a device and, while being connected to wifi, everything is still fine. However, the minute I turn off wifi and let the network provider, O2 UK, I get:
"Request failed: reason: java.io.IOException: Tunnel failed".
The source of the connection code is as follows:
public void run() { // The following code will only build under JDE 4.5 and later try { String connectionParameters = ""; // JDE 4.3 is required to get WLANInfo if (WLANInfo.getWLANState() == WLANInfo.WLAN_STATE_CONNECTED) { // Connected to a WiFi access point connectionParameters = ";interface=wifi"; } else { int coverageStatus = CoverageInfo.getCoverageStatus(); ServiceRecord record = getWAP2ServiceRecord(); if (record != null // In JDE 4.5 CoverageInfo changed the name of COVERAGE_CARRIER to COVERAGE_DIRECT // The constant value for both is the same, '1', so you can use that to avoid any // dependency on JDE 4.5 && (coverageStatus & CoverageInfo.COVERAGE_DIRECT) == CoverageInfo.COVERAGE_DIRECT) { // Have network coverage and a WAP 2.0 service book record connectionParameters = ";deviceside=true;ConnectionUID=" + record.getUid(); } else if ((coverageStatus & CoverageInfo.COVERAGE_MDS) == CoverageInfo.COVERAGE_MDS) { // Have an MDS service book and network coverage connectionParameters = ";deviceside=false"; } else if ((coverageStatus & CoverageInfo.COVERAGE_DIRECT) == CoverageInfo.COVERAGE_DIRECT) { // Have network coverage but no WAP 2.0 service book record connectionParameters = ";deviceside=true"; } } // Pop up a dialog showing the parameters chosen UiApplication.getUiApplication().invokeLater( new DialogRunner("Connection Params: " + connectionParameters)); HttpConnection connection = (HttpConnection) Connector.open(url + connectionParameters); connection.setRequestMethod(method); if (method.equals("POST") && postData != null) { connection.setRequestProperty("Content-type", "application/x-www-form-urlencoded"); OutputStream requestOutput = connection.openOutputStream(); requestOutput.write(postData); requestOutput.close(); } int responseCode = connection.getResponseCode(); if (connection instanceof HttpsConnection) { HttpsConnection secureConnection = (HttpsConnection) connection; String issuer = secureConnection.getSecurityInfo() .getServerCertificate().getIssuer(); UiApplication.getUiApplication().invokeLater(new DialogRunner("Secure Connection! Certificate issued by: " + issuer)); } // Really you should check for more than just HTTP_OK if (responseCode != HttpConnection.HTTP_OK) { screen.requestFailed("Unexpected response code: " + responseCode); connection.close(); return; } String contentType = connection.getHeaderField("Content-type"); ByteArrayOutputStream baos = new ByteArrayOutputStream(); InputStream responseData = connection.openInputStream(); byte[] buffer = new byte[10000]; int bytesRead = responseData.read(buffer); while (bytesRead > 0) { baos.write(buffer, 0, bytesRead); bytesRead = responseData.read(buffer); } baos.close(); connection.close(); screen.requestSucceeded(baos.toByteArray(), contentType); } catch (IOException ex) { screen.requestFailed(ex.toString()); } }
I scoured these forums and tried everything I can find. I tried different settings, including changing the APN settings both wap and mobile options for O2. Nothing seems to solve this problem.
Any help would be appreciated!
Thank you
Jack
OK, good news. Fixed. Thanks a lot for your answers. I would have understood the connection settings as they appear to have been the problem.
I don't remember exactly which it generated, but I decided to try replacing it with the generator of connectionParameter above with the snippet connSuffix here:
http://supportforums.BlackBerry.com/T5/Java-development/connecting-your-BlackBerry-http-and-socket-c...Worked like a dream, so I'm very indebted to all those who contributed to this. It now seems to work little matter the type of connection is available including BES.
In case anyone is interested, however, I tried all combinations of settings APN bloody O2, but it came to nothing. I am disappointed that it was the connection settings I developed that a book by Apress, and I followed this particular part, Word for Word.
Thank you all for the world of useful information here!
-
Java.io.ioException: Tunnel Timed out received
Hello
We have developed a Java ME application that has been evaluated for fine fonctinner on Blackberry 9000 using the Wifi Interface. Downloaded the application on our server and the application installed on the device using OTA. The cod was signed through Blackberry. Application installs correctly and when it is launched, he's trying to connect to our server by using the HTTP connection. We use the direct TCP with Vodafone (India) APN setting (I tried www, portalnmms and blackberry.net) but with all 3 APNs, the error is the same:
java.io.IOException: Tunnel Timed Out
With the URL '; deviceside = true' is specified for a direct TCP connection. Default browser to HTTP is configured for the Internet browser.
HTTPDemo installed JDE, device samples and it also gives the same error.
Tried to contact the service provider for the mistake of tunnel... but no help.
Can someone help pls on this issue? Are there network tools to diagnose problems of tunnel on blackberry?
Model: Blackberry 8310
Version: 4.5.0.55 (Platform 2.7.0.68)
Thank you
Bennett
Try the NetworkDiagnostics tool of the RIM. In addition, look at the log of events to see if the right NPP (those that you set in the Options-> advanced-> TCP) is actually used by the operating system - sometimes WAP 2.0 TCP is used instead.
Another thing you could try is to take the this BlackBerry SIM card and insert it in a non-BlackBerry phone, say, a Nokia. Then you can check if this unit can connect to the Internet and you might also find what NPC he uses.
-
java.io.IOException:Tunnel down in a call to url
Hello
I wrote a code that use 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 "BOLD" my friend, I caught this exception:
java.io.IOException:Tunnel FailedI also test who call for help
StreamConnection c = null;
S InputStream = null;
try {}
c = Connector.open (url) (StreamConnection);
s = c.openInputStream ();
...and
ContentConnection c = null;
DataInputStream tell = null;
try {}
c = Connector.open (url) (ContentConnection);
int len = (int) c.getLength ();
say = c.openDataInputStream ();
...but it's the same.
Also, I can call the url by bb browser and it's ok.
I tested the app by WIFI and Edge.
It's really weirdThanks in advance
You must understand the functioning of connections of BB.
Please look at the sticky thread on communications at the top of this forum.
BTW, this is a double post on the BB developer forum, where I also answered your question.
-
I'm trying to figure if someone has my problem with the haptic on Macbook 12 "2016 function. The option is checked in the preferences system, but it does not work.
Thank you
Hello luigi10m,
Thanks for posting on the Community Support from Apple. From your post, it looks like your haptic feedback does not work when you click using your trackpad and the setting is enabled. I know that this is a great feature and it is important to make it work. I'll be happy to help you.
First of all, I would like to assure you that in system preferences > Trackpad > clicking silencer is not checked, that might help. In addition, it would be useful to reset the settings of the SCM. You can find instructions here: reset the management system (SCM) controller on your Mac - Apple Support
I'll also include those for you here:
- Stop the Mac.
- Plug the MagSafe or USB - C adapter to a power source and to your Mac.
- Use the built-in keyboard, press shift-control-Option on the left side of the keyboard, then press the power button at the same time.
- All the keys to unlock, then press the power button to turn on your Mac
Take care!
-
iTunes continues to crash on my iMac using OS 10.11.4 forcing me from quitting smoking. Someone else has this problem and how can I solve this problem? I use the latest version of iTunes. There seems to be a problem since I updated the system software.
iTunes: solving problems with third party plug-ins iTunes - https://support.apple.com/HT203395 - press Option and command (on Mac OS X)
Hold down the option/alt key and create a new test library. If iTunes start your old library file is corrupted and will need to be replaced from a backup or rebuilt from scratch.
LINC Davis February 2016 - https://discussions.apple.com/message/29767369#29767369
Reinstall iTunes:
-Post of Niel April 2015: re - install iTunes app - https://discussions.apple.com/message/28055467#28055467 - delete the old application first, with instructions on how to do it.
-April 2015 LincDavis post with some more details on the method outlines Niel - https://discussions.apple.com/message/28101611#28101611
-
I have a complaint on my Mac Book Pro. I bought my computer in January 2016 and it has two problems: the first is the display of the retina that has many traces of the keyboard and as many times it freezes. I have looked for help on the local Apple Store and support too, but it did not help. I would like you help me solve this problem.
Thank you.
Kelly
Your machine is still under warranty, so you should take it to your local Apple store for repairs. Function late in January, you bought it, you still have phone without support. If you can't find any help on the Apple Store, then I don't know what you expect to find here. We have no way to check for problems you have described or any additional hardware, etc.
-
Hello!!!
IM Apple Fan.
Purchased IM Ipad2, Ipad4, Iphone6
Last month I already buy s Iphone6 +.
Today I feel unhappy
MY IPHONE 6 'history '.
My touch screen has a problem after downloading the IOS 9.0.2.
Already called and try apple advises the steps. But the problem still occur.
Already done restart of strength. Factory setting Reset also possible. But still the same problem.
Only can be used for a minute. After that... The problem comes in again & again & again...
APPLE.COM
Can U help me
Only products of Apple of love before updating the version 9.0.2
iOS 9.0.2 happened some time. The last iOS is iOS 9.2. If you have not updated, updated. If you restored to the factory, it must have downloaded iOS 9.2. Also, if you restore to the factory and the problem is still there, then you must make an appointment at the Genius Bar to the nearest Apple store or Apple authorized service provider or call the Apple Support to have the device examined by Apple. There seems to be something wrong with the screen.
-
I can't download anything in the App Store, I can not still to update anything without entering my card info and he says "he has a problem of billing with a previous purchase.
There is something probably wrong with your credit card you enter. Check your previous purchases and know what the problem was. If it does not call apple for more information support. Good luck
-
I bought 'HP OJ Pro L7380 AiO' on 12-06 - 2008 and it took out of the box on 12-08 - 2008, and when I tried to install it, the first time, I get the error:
The following printhead (s) has a problem: yellow/black [K/Y].
Edit (add this paragraph):
(1.), I turned on the printer for the first time, and it was not connected to the computer.
(2) this error on the printer screen after some initials self-tests & installation messages.
(3.) I tried to remove & clean the black print head & putting back a few times, but it did not help.I used "the following printhead (s) has a problem" to search for information on the internet (Google) and found ONLY this phrase:
The following printhead (s) has a problem: yellow/black [K/Y].
This only means and confirms that the "Black" printhead has a problem and HP has done NOTHING to solve this problem. HP didn't even bother to warn / help buyers at the time of purchase.
I called HP customer service and I was told to take the printer to service center. .. Out of the box and the service center! It's so frustrating!
I lost the satisfaction of purchasing a new product!It's JUST that I buy a new printer, get out the box and have to take it to service center because it won't get installed?
Message edited by angelique on 10/12/2008 02:41Since you have owned less than a week, can you not take her back to the store and exchange it? If you bought it online, then a return period as well. Or you can directly call HP and tell them you want to return if you have no way to take it back to the place of purchase.
Unfortunately, sometimes things just happen, and products are shipped with defects. This happens to every manufacturer at one point. Take the printer back and exchange it.
-
We organize a Dos based Windows 98 application and I need to find a driver for the integrated parallel port. The motherboard is an ASUS P5GD2-TMX/S. Both the local provider and ASUS only provide XP and more drivers for the motherboard. How can I determine the manufacturer of the parallel port and download the driver directly from their site? I done this before for the serial port and downloaded and installed a Sunnix driver, which worked.
I did some research on the North Bridge, South bridge and the Super i/o chip set, but to no avail. Here is a copy of the output of sysinfo32.
[Peripheral problem]
Unknown device
Unknown
This device has a problem: Code = 28 (0x1C)
The drivers for this device are not installed correctly. To install the driver
for this device, click the driver tab, then click on set to update driver.
The registry key: HKEY_LOCAL_MACHINE\enum\ACPI\ * INT0800\0
Alloc resources: logical Configuration 0
Memory address range: Base = xFFB80000 End = xFFBFFFFF
Forced resources: None
Start resources: logical Configuration 0
Memory address range: Base = xFFB80000 End = xFFBFFFFF
Filtered resources: None
Core resources: logical Configuration 0
Memory address range: Base = 00000000 00000000 Min End = x x = xFFB80000 Max = xFFBFFFFF
Driver: Driver is not installedStandard 101/102-key or Microsoft Natural Keyboard
Keyboard
This device has a problem: Code = 27 (0x1B)
System failure: try changing the driver for this device. If this does not work,
see the documentation for your hardware.
The registry key: HKEY_LOCAL_MACHINE\enum\ACPI\ * PNP0303\0
Alloc resources: None
Forced resources: None
Start resources: no
Filtered resources: logical Configuration 0
IRQ: mask 0: x 0002
IO range: Base = x 0000 End = 0000 Min = Max = x Alias 0060-0060 x x = x 00, decode = x 00
Base = x 0000 End = 0000 Min = Max = x Alias 0064-0064 x x = x 00, decode = x 00
Core resources: logical Configuration 0
IRQ: mask 0: x 0002
IO range: Base = x 0000 End = 0000 Min = Max = x Alias 0060-0060 x x = x 00, decode = x 00
Base = x 0000 End = 0000 Min = Max = x Alias 0064-0064 x x = x 00, decode = x 00
Driver: Keyboard\0003
Driver date: 23/04/1999
Driver: idvkd.sys
File size: driver not installed
File date: driver not installed
Driver: hidparse.sys
File size: 44368 (0xAD50)
File date: 23/04/1999-22:22
Legal name: Microsoft Corporation
File version: 4.10.2222
Driver: hidclass.sys
File size: 23520 (0x5BE0)
File date: 23/04/1999-22:22
Legal name: Microsoft Corporation
File version: 4.10.2222
Driver: hidvkd.sys
File size: 5088 (0x13E0)
File date: 23/04/1999-22:22
Legal name: Microsoft Corporation
File version: 4.10.1998PCI card
Unknown
This device has a problem: Code = 28 (0x1C)
The drivers for this device are not installed correctly. To install the driver
for this device, click the driver tab, then click on set to update driver.
The registry key: HKEY_LOCAL_MACHINE\enum\PCI\VEN_8086 & DEV_2668 & SUBSYS_81A71043 & REV_04\BUS_00 & DEV_1B & FUNC_00
Alloc resources: logical Configuration 0
Memory address range: Base = xD20C0000 End = xD20C3FFF minutes = x 00000000 Max = xFFFFFFFF
Forced resources: None
Start resources: logical Configuration 0
Memory address range: Base = xD20C0000 End = xD20C3FFF minutes = x 00000000 Max = xFFFFFFFF
Filtered resources: None
Core resources: logical Configuration 0
IRQ: mask 0: xFFFF
Memory address range: Base = xD20C0000 End = xD20C3FFF minutes = x 00000000 Max = xFFFFFFFF
HW revision: 004
Driver: Driver is not installedUniversal Serial Bus PCI
Unknown
This device has a problem: Code = 28 (0x1C)
The drivers for this device are not installed correctly. To install the driver
for this device, click the driver tab, then click on set to update driver.
The registry key: HKEY_LOCAL_MACHINE\enum\PCI\VEN_8086 & DEV_265C & SUBSYS_265C1043 & REV_04\BUS_00 & DEV_1D & FUNC_07
Alloc resources: logical Configuration 0
Memory address range: Base = xD20C4000 End = xD20C43FF minutes = x 00000000 Max = xFFFFFFFF
Forced resources: None
Start resources: logical Configuration 0
Memory address range: Base = xD20C4000 End = xD20C43FF minutes = x 00000000 Max = xFFFFFFFF
Filtered resources: None
Core resources: logical Configuration 0
IRQ: mask 0: xFFFF
Memory address range: Base = xD20C4000 End = xD20C43FF minutes = x 00000000 Max = xFFFFFFFF
HW revision: 004
Driver: Driver is not installedPCI system management bus
Unknown
This device has a problem: Code = 28 (0x1C)
The drivers for this device are not installed correctly. To install the driver
for this device, click the driver tab, then click on set to update driver.
The registry key: HKEY_LOCAL_MACHINE\enum\PCI\VEN_8086 & DEV_266A & SUBSYS_266A1043 & REV_04\BUS_00 & DEV_1F & FUNC_03
Alloc resources: logical Configuration 0
IO range: Base = x End = x051F minutes = x 0500 0000 Max = xFFFF Alias = xFF, Decode = x 00
Forced resources: None
Start resources: logical Configuration 0
IO range: Base = x End = x051F minutes = x 0500 0000 Max = xFFFF Alias = xFF, Decode = x 00
Filtered resources: None
Core resources: logical Configuration 0
IRQ: mask 0: xFFFF
IO range: Base = x End = x051F minutes = x 0500 0000 Max = xFFFF Alias = xFF, Decode = x 00
HW revision: 004
Driver: Driver is not installedThe motherboard seems to be Intel 915P chipset.
Don't know if it will help, but try installing the software Intel(r) utility V6.0.1.1002 of Installation for Windows 2000/XP/2003 (under Win2K - others) for P5GD2 motherboard from the following link that appears in support of Windows 98 Second edition:
http://www.ASUS.com/motherboards/P5GD2/HelpDesk_Download/
Then restart the computer.
-
IAM has a problem with my product key
IAM has a problem with my product key
Hello, Arm883,
Product key for which the application: Windows, Office
Windows: Select Windows version from the drop-down list and repost the question.
http://answers.Microsoft.com/en-us/Windows/Forum?tab=answered
Office: Select desktop from the drop-down and repost the question.
http://answers.Microsoft.com/en-us/Office/Forum/office_install?TM=1372280499137
Or, a response back with what software is the product key and we can move to the correct forum.
Thank you.
-
my computer did not recognize my usb to the printer device.
Hello
1. what operating system is installed on the computer?
2. this printer was working on the computer before?
3. have you made changes on the computer recently?
4. What is the brand and model of the computer?
5. What is the brand and model of the printer?
Try the following steps.
Method 1.
Connect the printer on another computer and check if the printer works fine.
Plug another usb printer and check if the printer works fine on this computer.
Open the hardware and devices Troubleshooter: http://Windows.Microsoft.com/en-us/Windows7/open-the-hardware-and-devices-Troubleshooter
Method 2.
I also suggest you follow the steps in this article.
Install a USB device: http://Windows.Microsoft.com/en-us/Windows7/install-a-USB-device
Printer in Windows problems: http://Windows.Microsoft.com/en-us/Windows/help/printer-problems-in-Windows
Refer.
Code 43: Windows has stopped this device because it has reported problems: http://TechNet.Microsoft.com/en-us/library/cc725873%28V=WS.10%29.aspx
I hope this helps.
-
My computer stopped working wireless, the error message says "this wireless does not work on this computer ' even if another computer at home has no problem with wireless services. I've tried everything and my router is intact. My Protection of Kaspersky flags are gone from green to red and says threats have been detected. What should I do to get back on the wireless.
original title: Wireless not working not
Hello
1 have had any changes made on the computer before the show?
2. what operating system is installed on the computer?
Method 1:
Check the link and try to run the troubleshooter to check if it helps.
Windows wireless and wired network connection problems
Method 2:
Try to run Microsoft Safety Scanner for any malware or spyware infection and check if it helps.
http://www.Microsoft.com/security/scanner/en-us/default.aspx
Note: the Microsoft Safety Scanner expires 10 days after being downloaded. To restart a scan with the latest definitions of anti-malware, download and run the Microsoft Safety Scanner again. The data files that are infected must be cleaned only by removing the file completely, which means that there is a risk of data loss.
-
said Hotmail site has a problem (for 30 hours now?)
for 30 hours, I continued to receive a message when I tried to log on my hotmail by saying: "Sorry, there is a problem with Hotmail right now" do not know what to do.Hi endgame6,
Thanks for posting your question in the Microsoft answers Forum. For any question on Hotmail, please visit the following link:
Maybe you are looking for
-
updated to 16 MB on 2011 iMac 27.5 inch quad core will cause a slow start to the top?
Have 27.5 inch iMac OSX 10.11.3 computer. The memory of 4 MB. Recently updated to 16 MB. Now have the very slow start up. 15 minutes. Should take 15 minutes to initialize 16 MB on a quad core computer?
-
Unlock the Bootloader of A2109... on a Mac?
Hi you all... If any of you guys visited the other specific forums, y ' All can recognize my dilemma. Because these forums were specialized, I thought that I would like to tender hand to a greater range of users/developers to see if someone could rea
-
Our mail from the "Office of the controller - BlackBerry?
I got a strange email last night, and I don't know if this is some kind of scam/spam. Here it is: Object: BlackBerry policy update: non-PO-no-Pay From: «The Office of the Comptroller - BlackBerry» At BlackBerry, we are making improvements to our glob
-
After upgrading to windows 7 my hewitt packard HP Deskjet 3745 printer does not work. Help! Thank you
-
Cannot install Windows 8; Error: 0xc0000017.
Original title: Hey microsoft can u help me Wen I try to install widows 8 pro 64-bit of my cd its com a msg< your="" pc="" needs="" to="" be="">There is not enough available memory to create a virtual disk deviceerror: 0xc0000017 I have the fotohttp: