Blackberry Webworks 应用程序未在模拟器上加载远程页面
我的 Blackberry Webworks 应用程序在 Blackberry 模拟器中测试时打开远程页面时遇到问题(尝试过 9630-Verizon、9700-ATT、9860-Asia)。每次我尝试在 webworks 应用程序中打开远程页面时,应用程序都会冻结,一段时间后我会出现白屏,并显示错误 App Error 104 Uncaught: InterruptedIOException
,当我单击“继续”时,会出现一条消息对话框显示消息本地连接在 ~ 120000 后超时
。如果我在模拟器的浏览器中打开相同的 URL,它会立即打开。我不知道为什么它没有在 webworks 应用程序中打开。
现在,最有趣的部分是,如果我将相同的 webworks 应用程序加载到我的黑莓设备中,它可以完美运行。它立即打开远程页面。我不知道为什么它在模拟器中不起作用。
我已使用访问元素
My Blackberry Webworks application is having problem opening a remote page when testing it in a Blackberry simulator (Tried 9630-Verizon, 9700-ATT, 9860-Asia). Each time I try to open a remote page in my webworks application, the application will freeze and after a while i get a white screen with the error App Error 104 Uncaught: InterruptedIOException
and when I click continue a message dialog comes up with the message Local Connection timed out after ~ 120000
. If i open that same URL in the simulator's browser, it opens straight away. What I don't know is why it's not opening in the webworks application.
Now, the funniest part is, if I load the same webworks application into my blackberry device, it works perfectly. It opens the remote page straight away. I don't know why its not working in a simulator.
I have the config.xml
file configured properly with the remote url set in the access element <access uri="http://sample-remote-server.com/" subdomains="true" />
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
能够解决问题。为了将来参考,问题是,我没有运行 MDS,因此 Blackberry 模拟器无法模拟数据服务。
为了解决这个问题,我只需导航到 Blackberry Webworks 路径中的 mds 文件夹(通常位于
\Program Files\Research In Motion\BlackBerry Webworks SDK\mds
),然后单击 < code>run.bat 并且 MDS 服务器将启动并运行。Was able to fix the problem. For future reference, the problem was, I wasn't running MDS so the Blackberry simulator couldn't simulate data service.
To fix the problem, I just navigated to the mds folder in my Blackberry Webworks path usually at
\Program Files\Research In Motion\BlackBerry Webworks SDK\mds
and clicked onrun.bat
and MDS Server will be up and running.我目前正在使用 Ripple 0.9.0.16 beta 和 4.0.0.127 模拟器,它们都有一点问题。
当您第一次启动小部件时,模拟器会正确加载并启动 mds。但是,在关闭模拟器(重置会使其崩溃)并重新打开时(必须手动完成),因为如果您选择“打包并启动”,则瑞波不会这样做,mds 不会重新启动,并且我的请求从未得到答复。
这引起了很大的挫败感,直到我看到您的帖子并执行了 run.bat,这使得该服务能够响应我的请求。
感谢用户431949
i am currently using Ripple 0.9.0.16 beta with the 4.0.0.127 simulator, and they're both a little buggy.
when you first launch your widget the emulator loads properly and the mds is started. however, upon closing the emulator (resetting crashes it) and re-opening, which must be done manually because ripple doesn't if you choose "Package & Launch", the mds was not restarted and my requests were never answered.
this caused a lot of frustration until i saw your post and executed run.bat, which allowed the service to respond to my request.
thanks user431949