黑莓模拟器网络连接在一段时间后停止工作

发布于 2024-08-22 17:23:49 字数 1055 浏览 5 评论 0原文

首先,我想澄清一下:我确实设法在 BlackBerry Simulator 上建立互联网连接(运行 MDS,确保它具有权限,然后确保没有人占用 8080 端口等)

确实工作了一段时间。例如,加载 google.com 没有问题。

然后我尝试打开我的网站(我正在调试的网站)。第一次打开没有问题。但是在我点击“刷新”后,我在屏幕底部看到“正在请求...”,并且进度条变得很慢(对数接近结束 - 这表明它除了等待某些事情之外实际上没有做任何事情) ,一旦到达末尾(需要几分钟),就会显示一条错误消息,指出“与所选的移动数据服务发生通信故障。服务器可能正忙。请稍后重试。如果问题问题仍然存在,请联系您的管理员”。

经过一番痛苦的挖掘...呃...研究后,我发现如果我删除 RIM 目录中的所有 *.dmp 文件,然后重新启动 MDS 和模拟器,它就会再次开始工作。但该操作还有另一个效果 - 重置所有模拟器设置(包括“启用 JScript”设置和浏览器历史记录),这确实很痛苦。

我尝试最小化页面来定位问题,并发现了一个有趣的事情:页面变得足够小后,它确实能够第二次加载。甚至可能是第三。但后来——同样的事情。这让我认为这个问题与模拟器接收的数据量有关。

如果有人对此有任何建议,我将不胜感激。

提前回答一些问题:

  1. 问题与网站本身有关。它可以在“大型”计算机、我的 WinMobile PDA 和 iPhone 上打开并正常工作。

  2. 重新启动模拟器没有帮助。仅删除所有 *.dmp 文件即可。

  3. 真正的黑莓手机上不会出现此问题。仅在模拟器上。

  4. 黑莓确实认为存在网络连接。如果它认为没有连接,它会立即显示一条错误消息,而不会出现长长的“正在请求...”进度条。

  5. 该网页并不太重(总共不到 20K;第一次加载只需一秒),但它确实包含大约十几个“包含”文件 - CSS 和脚本。

  6. 是的,我确实尝试禁用脚本。同样的事情也会发生。

First of all, I want to be clear: I did manage to get Internet connection working on BlackBerry Simulator (run MDS, make sure it has permissions, then make sure nobody's hogging 8080 port, etc.)

It did work for some time. Loads google.com no problem, for example.

Then I try to open my website (the one that I'm debugging). It opens first time no problem. But after I hit "refresh", I get "Requesting..." at the bottom of the screen, and the progress bar goes slooooowly (logarithmically approaching the end - which indicates that it doesn't actually do anything except waiting on something), and once it reaches the end (which takes several minutes), an error message is displayed, saying "A communication failure occurred with the selected Mobile Data Service. The server may be busy. Please try again later. If the problem persists, contact your administrator".

After some painful digging in the garba... err... research, I found that it starts working again if I delete all *.dmp files in the RIM directory, then restart MDS and Simulator. But that operation also has another effect - resetting all Simulator settings (including "Enable JScript" setting and browser history), which is a real pain.

I tried to minimize the page to localize the issue, and found an interesting thing: after the page becomes small enough, it does manage to load a second time. And maybe even third. But then - same thing. This makes me think that the issue has something to do with the amount of data received by the Simulator.

If anybody has any advice on this, I would greatly appreciate.

To answer some questions in advance:

  1. The problem is not with the website itself. It opens and works ok on "big" computer, on my WinMobile PDA, and on iPhone.

  2. Restarting the Simulator doesn't help. Only deleting all *.dmp files does.

  3. This problem does not occur on real Blackberry. Only on Simulator.

  4. The Blackberry does think that there is network connection. If it thought that there was no connection, it would display an error message right away, without the long "Requestinng..." progress bar.

  5. The web page is not too heavy (less than 20K in all; loads in a second the first time), but it does contain about a dozen of "included" files - CSS and scripts.

  6. Yes, I did try to disable scripts. Same thing happens.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文