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
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: 16,992
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
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

Highlighted
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.