Welcome!

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.
Reply
Developer
scoleman2272
Posts: 30
Registered: ‎09-25-2009
Accepted Solution

http connections fail after removing an application via the BES

This is consistent - happened on three different phones.

 

Action taken from the BES

1. Deployed an app that uses an HTTP connection (Setting a custom IT policy)via the BES. Everything works fine

2. Remove the app (by making it's configuration disallowed.

3. Set IT policy for the device to default

4. Set software configuration for the device to none

5. deploy

5. Wait and make sure app was removed from the device ad default IT policy in place

 

Now, actions taken at the device

1. Install the same app via Javaloader - now http connections fail

  On Curve (Rogers) 

    java.io.IOException: Tunnel failed

  on Tour(Verizon)

    javax.microedition.io.ConnectionNotFoundException: Protocol not found: net.rim.device.cldc.io."http.Protocol

 

Any ideas?

 

Please use plain text.
Administrator
MSohm
Posts: 12,957
Registered: ‎07-09-2008
My Carrier: Bell

Re: http connections fail after removing an application via the BES

Tunnel failed generally indicates missing information required to make a direct TCP connection.  Has the appropriate information been configured under Options, (Advanced Options), TCP?

 

What route are you trying to make a connection over?  You can read about the various options here:

 

What Is - Different ways to make an HTTP or socket connection
Article Number: DB-00396

http://www.blackberry.com/knowledgecenterpublic/livelink.exe/fetch/2000/348583/800451/800563/What_Is...

 

 

 

 

Mark Sohm
BlackBerry Development Advisor

Please refrain from posting new questions in solved threads.
Found a bug? Report it using the Issue Tracker
Please use plain text.
Developer
scoleman2272
Posts: 30
Registered: ‎09-25-2009

Re: http connections fail after removing an application via the BES

This is the form I'm using

conn = (HttpConnection) Connector.open("http://xxxx.com:8080/testscript.php");

I've also tried 

conn = (HttpConnection) Connector.open("http://xxxx.com:8080/testscript.php;deviceside=false");

 

On the curve they both give me

Error: java.io.IOException: Tunnel failed

 

Under the TCP settings I have the default settings (blank for APN, username and APN).

This used to work fine before the device was provisioned on the BES. (Note that it is now fully removed from the BES)

 

This particular device I'm testing with is has a Rogers SIM.

Please use plain text.
Administrator
MSohm
Posts: 12,957
Registered: ‎07-09-2008
My Carrier: Bell

Re: http connections fail after removing an application via the BES

On a BlackBerry Curve, both of those connection URLs would attempt to make a connection through the BlackBerry Enterprise Server.  Unless the BlackBerry Smartphone was wiped after being removed from the BES, it would still think it can connect through it (it still has the Desktop service books from the BES).  It is trying to connect through the BES but failing, resulting in the Tunnel failed.

 

Rogers does require TCP settings in order to make a direct TCP connection.  You could fill in those and use deviceside=true instead.

Mark Sohm
BlackBerry Development Advisor

Please refrain from posting new questions in solved threads.
Found a bug? Report it using the Issue Tracker
Please use plain text.
Developer
scoleman2272
Posts: 30
Registered: ‎09-25-2009

Re: http connections fail after removing an application via the BES

Shouldn't a wipe delete the BES servicebook entries?

 

Also, when I try to put the device back on the BES and try

conn = (HttpConnection) Connector.open("http://xxxx.com:8080/testscript.php");

I get a different exception:

javax.microedition.io.ConnectionNotFoundException: Protocol not found: net.rim.device.cldc.io."http.Protocol

Is this a different problem?

(We do have other BB devices on our BES that work fine)

 

After BES activation getCoverageStatus()  returns 7 (COVERAGE_NONE&COVERAGE_DIRECT&COVERAGE_MDS)

Please use plain text.
Administrator
MSohm
Posts: 12,957
Registered: ‎07-09-2008
My Carrier: Bell

Re: http connections fail after removing an application via the BES

 


scoleman2272 wrote:

Shouldn't a wipe delete the BES servicebook entries?


 

 

Yes it will.

 

For the protocol not found exception, make sure you don't have any white space or invalid characters in your URL (ie: a ' beside the "). 

 

 

 

Mark Sohm
BlackBerry Development Advisor

Please refrain from posting new questions in solved threads.
Found a bug? Report it using the Issue Tracker
Please use plain text.
Developer
scoleman2272
Posts: 30
Registered: ‎09-25-2009

Re: http connections fail after removing an application via the BES

Turns out that I had an extra set of quotes in my url string. It works fine now. 

This Network diagnostic tools (DB-00684) was very helpful.

http://www.blackberry.com/knowledgecenterpublic/livelink.exe/fetch/2000/348583/800451/800563/What_Is...

Please use plain text.