开发者

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 anythin开发者_StackOverflowg.


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


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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜