黑莓粗体隧道失败。 为什么?
我创建了一个j2me程序并将其移植到黑莓bold上。
该程序执行一些 http 查询。 有时这些会失败,但有例外:“隧道失败”
我的 APN 设置是正确的(因为有时它确实有效)。
我通过附加到网址的“;deviceside=true
”进行连接,
我注意到当浏览器刚刚处于活动状态时,程序始终可以运行。 但是,当浏览器几分钟没有激活并且我启动程序时,我收到隧道失败错误。
I created a j2me program and ported it to the blackberry bold.
The program does some http queries.
Every now and then these fail with the exception: 'tunnel failed'
My APN settings are correct (since sometimes it does work).
I connect with ';deviceside=true
' appended to the url
I notice that when the browser has just been active, the program always works.
However when the browser hasn't been active for some minutes and I start the program, I get the tunnel failed errors.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
一些黑莓设备的问题是其他所有网络连接都会失败。 因此,当您收到异常时,您必须再次尝试。 所以你的连接代码应该是这样的
希望这可以解决你的问题
The problem with a few blackberry devices is that every other network connection fails. So you will have to try it once more when you receive an exception. So your connection code should be something like this
Hope this should fix your problem
作为测试,您可能需要尝试在 URL 本身上添加 APN 设置,看看是否有帮助。 我猜你的信号强度很好?
As a test, you might want to try adding the APN settings on the URL itself to see if that helps. I assume you have good signal strength?
尽管这听起来很愚蠢,即使您只是从连接中读取数据,但请确保在打开连接器时将其打开为读/写
As silly as this sounds even if you are only reading from the connection, make sure when opening the connector you open it as read/write