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
Developer
Blanc
Posts: 638
Registered: 07-02-2009
Accepted Solution

Error trying to resolve. + http + wifi

Hi all,

              till now am unable to establish connection on the device. I have few things to be clarified before proceeding into the details..

 

1) If the user dont have APN settings, will my app connect to Internet.

 

2) Am using 8520 curve device, it is not having APN settings, yet it is opening google, and able to surf the net. Does it mean APN settings are only for apps to access internet.

 

3) when i try to open my app on simulator i got the exception "Error trying to resolve."

the url is as follows:

 

"http://mypc5/BI/services/BIReport.asmx/GetChildReport?AccountId=12&Reportname=product_Report&Level=0&FLMasterDataId=0&SLMasterDataId=0&GroupItemId=0&Rand=0;interface=wifi"

 

on device the exception is as follows: I got the same exception.

 

when i remove the suffix for the url, it is executing well in the simulator. and in the device i got  "Tunnel Failed " exception.

 

i used HttpConnection to establish the connection.

 

Any help will be appreciated....

Thanks and Regards,
PraveenGoparaju.
Please use plain text.
Developer
peter_strange
Posts: 14,614
Registered: 07-14-2008

Re: Error trying to resolve. + http + wifi

I strongly suggest you review this Thread and most importantly the 'required reading', as it explains the answers to most of your questions:

 

http://supportforums.blackberry.com/t5/Java-Development/Connecting-your-BlackBerry-http-and-socket-c...

 

Let us know when you have read it, and what questions remain.

 

This is not simple, please take the time to read the Thread and the referenced material carefully.

Please use plain text.
Developer
Blanc
Posts: 638
Registered: 07-02-2009

Re: Error trying to resolve. + http + wifi

I already gone through them... but they didnt clarified my doubts!!!. as suggested me to go thru them again, i will do that.

Thanks and Regards,
PraveenGoparaju.
Please use plain text.
Developer
peter_strange
Posts: 14,614
Registered: 07-14-2008

Re: Error trying to resolve. + http + wifi

Some quick hints:

 

You asked

"1) If the user dont have APN settings, will my app connect to Internet."

A hint - Review the KB article and the vidoe and see how many ways there are for your applicatin to connect to the internet

 

You asked:

"2) Am using 8520 curve device, it is not having APN settings, yet it is opening google, and able to surf the net. Does it mean APN settings are only for apps to access internet."

A hint - Review the KB article and the vidoe and see how many ways there are for your applicatin to connect to the internet

 

You asked:

"3) when i try to open my app on simulator i got the exception "Error trying to resolve."

the url is as follows:

 

"http://mypc5/BI/services/BIReport.asmx/GetChildReport?AccountId=12&Reportname=product_Report&Level=0&FLMasterDataId=0&SLMasterDataId=0&GroupItemId=0&Rand=0;interface=wifi"

 

on device the exception is as follows: I got the same exception."

 

A hint - have you tried this in the Borwser, in fact any Browser

 

You asked:

"when i remove the suffix for the url, it is executing well in the simulator. and in the device i got  "Tunnel Failed " exception."

 

A hint - review the section in the Thread that talks about what you can and can't do on the Simulator.  Also review the Thread and referenced articles to determine what devices do when there is no connection suffix.

Please use plain text.
Developer
Blanc
Posts: 638
Registered: 07-02-2009

Re: Error trying to resolve. + http + wifi

[ Edited ]

 

Thanks peter!!!, i gone thru them.... and i did as directed in the videos and references, i observed a strange thing.

 

if the url is something like this.... "http://myserver.com/a/b.htm;interface=wifi" it is working fine.

 

if the url is something like this    "http://hostname/a/b.html;interface=wifi" it is not working, it is not even opening in the device browser also.

 

anyway thanks for your suggestions and references..

 

 

 

 

 

 

Thanks and Regards,
PraveenGoparaju.
Please use plain text.