JohnDoe4136
JohnDoe4136

Reputation: 539

Blackberry simulator having DNS exception

I have been running my blackberry app on the simulator. I have use deviceside=true behind the url. However, when i run it now it is giving me an exception net.rim.device.cldc.io.dns.DNSException: DNS error

What has happened? I haven't change the code or anything.

Upvotes: 3

Views: 1347

Answers (2)

Begui
Begui

Reputation: 2856

The documentation states that:

1.) If deviceside=true is specified in the connection URI, a direct TCP connection is opened from the handheld, without using the Mobile Data Service.

2.) If deviceside=false is specified in the connection URI, a proxy TCP connection is opened using the Mobile Data Service.

3.) If the deviceside parameter is not specified the behaviour varies by platform: on a BlackBerry 6500 or 7500 handheld, direct TCP is used by default; on all other handhelds, the Mobile Data Service is used by default, and if an MDS is not available the handheld falls back on direct TCP.

I was getting this error simply because the DNS name I used didn't resolve. Bad setting in the bind9 config.

Upvotes: 0

Ofir
Ofir

Reputation: 8372

It possible the state of the computer you are running this on has changed. E.g. in terms of connectivity (which would explain the exception).

Upvotes: 1

Related Questions