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


Thank you for visiting the BlackBerry Support Community Forums.

BlackBerry will be closing the BlackBerry Support Community Forums Device Forums on April 1st (Developers, see below)

BlackBerry remains committed to providing excellent customer support to our customers. We are delighted to direct you to the CrackBerry Forums, a well-established and thorough support channel, for continued BlackBerry support. Please visit http://forums.crackberry.com or http://crackberry.com/ask. You can also continue to visit BlackBerry Support or the BlackBerry Knowledge Base for official support options available for your BlackBerry Smartphone.

"When we launched CrackBerry.com 10 years ago, we set out to make it a fun and useful destination where BlackBerry Smartphone owners could share their excitement and learn to unleash the full potential of their BlackBerry. A decade later, the CrackBerry community is as active and passionate as ever and I know our knowledgeable members and volunteers will be excited to welcome and assist more BlackBerry owners with their questions."

- Kevin Michaluk, Founder, CrackBerry.com

Developers, for more information about the BlackBerry Developer Community please review Join the Conversation on the BlackBerry Developer Community Forums found on Inside BlackBerry.


Reply
Developer
Posts: 330
Registered: ‎02-25-2009
My Device: Not Specified

DNSException: Error trying to resolve

Hello, 

 

i am doing HTTP communication with server. When i try to do 

 

httpsConn = (HttpsConnection)Connector.open(url);

 

it gives exception as 

 

net.rim.device.cldc.io.dns.DNSException: Error trying to resolve

 

does anyone have any idea regarding this issue or the reason behand this exception

 

thanks in advcne

Developer
Posts: 17,025
Registered: ‎07-29-2008
My Device: Z10 LE, Z30, Passport
My Carrier: O2 Germany

Re: DNSException: Error trying to resolve

the device is not able to resolve the ip address for an hostname.
try to use another hostname (full qualified domain name, for example, if you are in a domain) or use an ip address.
----------------------------------------------------------
feel free to press the like button on the right side to thank the user that helped you.
please mark posts as solved if you found a solution.
@SimonHain on twitter
Highlighted
Contributor
Posts: 48
Registered: ‎03-04-2009
My Device: Not Specified

Re: DNSException: Error trying to resolve

 i have same issue also try to host name www.google.com but facing same issue.

 

Regards

Suresh Kerai

Developer
Developer
Posts: 122
Registered: ‎08-11-2008
My Device: 9700
My Carrier: XL

Re: DNSException: Error trying to resolve

 

I think the problem is your simulator's Internet connection,

the simulator can't resolve the domain name to ip address.

 

may be you want to test the connection to IP address (for example: http://208.65.75.22 )?

 

 

--
"Give kudos (star) if you feel response is helpful"
Contributor
Posts: 48
Registered: ‎03-04-2009
My Device: Not Specified

Re: DNSException: Error trying to resolve

There are working fine on simulator but not working on real device.