If you are using Internet Explorer, please remove blackberry.com from your compatibility view settings.

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.

inside custom component

Java Development

Reply
Regular Contributor
salmankhan7788
Posts: 52
Registered: ‎02-26-2013
My Device: Curve 9650,Bold 9900
My Carrier: Airtel

The protocol specified is not supported by the handheld please try a different URL.

Hi 

I have created an app. its works well in most devices , but in a single device when i do some online registration it gives error: - The protocol specified is not supported by the handheld please try a different URL.

Actually on registration i have hit a url , after hiting this url it gives error.I cant understand what kind of problem is this.

Any guidence will be helpful.

 

 

Thanks in Advance.

 

 

 

Please use plain text.
Developer
peter_strange
Posts: 19,601
Registered: ‎07-14-2008
My Device: Not Specified

Re: The protocol specified is not supported by the handheld please try a different URL.

You will need to find out the exact URL, including the connection string, that the device is trying to use in this case.  Let us know what it is.  You can blank out the company name if that is a security issue for you, so I expect you to tell us something like

http://*/help/faq.html;deviceside=true

 

I would guess here that your code is adding the connection string and has added one that is not actually supported on device. 

Please use plain text.
Regular Contributor
salmankhan7788
Posts: 52
Registered: ‎02-26-2013
My Device: Curve 9650,Bold 9900
My Carrier: Airtel

Re: The protocol specified is not supported by the handheld please try a different URL.

Thanks for your response.

My code is here,could you please tell me what is wrong in this, this works fine on other devices:-

 

String url="http://myapp.mydon.info"


String urlFinal = url+";ConnectionTimeout=300000"

httpConn = (HttpConnection) Connector.open(urlFinal+ CS.getConnectionString());

 

 

Please use plain text.
Regular Contributor
salmankhan7788
Posts: 52
Registered: ‎02-26-2013
My Device: Curve 9650,Bold 9900
My Carrier: Airtel

Re: The protocol specified is not supported by the handheld please try a different URL.

I use the getConnectionString code from here in my CS class :- 

-------------------------------

 

http://www.localytics.com/blog/2009/how-to-reliably-establish-a-network-connection-on-any-blackberry...

 

Please use plain text.
Developer
peter_strange
Posts: 19,601
Registered: ‎07-14-2008
My Device: Not Specified

Re: The protocol specified is not supported by the handheld please try a different URL.

Like I said, we need to know the exact URL you are using for the failing connection - the same URL and connection string can be valid on one device and not on another.

 

There are two things wrong with the connection processing you are using

 

a) You are not supposed to use the 'magic string' without approval from BlackBerry.  The way to get approval is to apply for push service.  Have a look at this page:

http://developer.blackberry.com/java/documentation/intro_networking_1984362_11.html

and specifically, these instructions:

"To use the BlackBerry Internet Service transport, you must sign up for the Push Service. For more information, visit http://developer.blackberry.com/devzone/develop/platform_services/push_overview.html"

 

b) the suffix

";ConnectionTimeout=300000"

is only supported when using MDS and BIS-B connections.  I suspect the problem you are having is that you connection string is retuning something other than one of these in this case, and then the processing is objecting. 

 

But as noted, we really need to know the full failing URL to diagnose this problem.  If we don't have that, then we are guessing. 

Please use plain text.