Welcome to the Official BlackBerry® Support Community Forums. This is your resource to discuss support topics with your peers, and learn from each other. New to the forum? Please visit the ‘Getting Started’ link below.
inside custom component

Java Development

Reply
Visitor
Jose123
Posts: 1
Registered: 07-26-2011
My Carrier: Entel

Critical Tunnel Failure Error - Need Help

[ Edited ]

Hello guys:

 

I have a very frustrating problem developping a blackberry application.

 

I'm trying to consume a Web Service over the net and the application works fine in some devices but in some particular cases I'm getting a very annoying "Critical Tunnel Failure" which I've been unable to resolve (2 out of 15 cases, all tests performed in Blackberry Curve 8520).

 

The code I'm using for this is exactly the same provided in the "Beginning Blackberry Development" book. In the url configuration I use:

 

String connectionParameters = "";
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
&& (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";
}

 Yet the problem still remains.

 

I've read about APN configuration issues and after adding the option to manually select a specific connection, inserting the correct APN (this is confirmed, as I searched the parameters online and were confirmed by the carrier) and trying with all possible configuration options, the problem still remains.

 

What is more frustrating still is that these devices have other network enabled apps installed which work perfectly fine, so there has to be something I can do to solve the issue. Mind you, wifi works well in all devices, but my client is adamant about requiring connectivity in areas without wifi.

 

Any suggestion would truly be appreciated.

 

EDIT: I forgot to mention all devices are running in OS 5.0

Please use plain text.
Developer
peter_strange
Posts: 14,611
Registered: 07-14-2008

Re: Critical Tunnel Failure Error - Need Help

Welcome to the forums.

 

Is there any consistency to the connectionParameters chosen for each of the failing devices?

 

I'm betting they all have ";deviceside=true" and there are no TCP Options specified for the devices.

Please use plain text.