I am facing critical tunnel failure problem in Blackberry while testing in Blackberry device.
I am appending interface=wifi while i am making request in device,but it shows critical tunnel failure problem.While testing in simulator it not showing any error.
http://maps.google开发者_StackOverflow中文版.com/maps/api/geocode/json?address=marine%20parade&sensor=false;interface=wifi
You may be connecting over MDS or even BIS in which case ;interface=wifi is not required.
This is further explained in this video: http://supportforums.blackberry.com/t5/Java-Development/Networking-Transports-II/ta-p/446742
You may benefit from using the ConnectionFactory class in OS5 to avoid writing this sort of connection logic yourself.
精彩评论