错误:检测到 net_rim_bb_ribbon_app(58) 的后台开关没有打开隧道 - 未调用散焦

发布于 2024-09-12 05:17:17 字数 1510 浏览 4 评论 0原文

我在 Eclipse 中使用 bb 插件工作,问题是当我单击我的应用程序时,模拟器冻结,我无能为力。我尝试做一些事情,但它仍然是一样的

,而且我的应用程序有一个后台组件(线程),在这里,当我调用方法

应用程序有一个后台组件

时,我留下代码public void callback(final ServiceResult result) {

    if(result.getException()!=null){
        UiApplication.getUiApplication().invokeLater(new Runnable(){
            public void run() {
                Dialog.alert("error:"+ result.getException().getMessage());
            }
        });
        return;
    }
    this.section = (Vector) result.getData() ;
    // take first element of Result Object
    final Section section = (Section) this.section.elementAt(0);

    UiApplication.getUiApplication().invokeLater(new Runnable(){
        public void run() {
            pushScreen(new SubsectionScreen(section, 0));
        }
    });


}

这是一个日志的一部分

Starting faix
faix already running
Foreground faix(180)
Detected background switch for net_rim_bb_ribbon_app(58) who has NO tunnels open - defocus NOT called
Detected foreground switch for faix(180) who has NO tunnels open - focus NOT called
JVM: bklt @63289: timer
JVM: bklt[1] @63289: idle 2
JVM: bklt @63289: setTimer 13
VM:+GC(f)w=11
VM:-GCt=7,b=1,r=0,g=f,w=11
VM:QUOT t=1
VM:+CR
VM:-CR=2
JVM: bklt @76687: timer
JVM: bklt[1] @76687: idle 15
JVM: bklt @76687: setTimer 15
JPGENC 39 ms
JPGENC 7 ms
JPGENC 7 ms
JPGENC 0 ms
JPGENC 7 ms
JPGENC 7 ms
JPGENC 0 ms
JPGENC 7 ms
JPGENC 0 ms
JPGENC 0 ms
JPGENC 7 ms
JPGENC 0 ms

请提出任何建议。感谢您接受这个问题。

Im working in eclipse with bb plugin and the problem is when i click in my app then simulator freezes and I can not do anything. I tried to do something but its still the same

And Also I app have a background component (THREAD), here i leave the code when i call the method

app have a background component

public void callback(final ServiceResult result) {

    if(result.getException()!=null){
        UiApplication.getUiApplication().invokeLater(new Runnable(){
            public void run() {
                Dialog.alert("error:"+ result.getException().getMessage());
            }
        });
        return;
    }
    this.section = (Vector) result.getData() ;
    // take first element of Result Object
    final Section section = (Section) this.section.elementAt(0);

    UiApplication.getUiApplication().invokeLater(new Runnable(){
        public void run() {
            pushScreen(new SubsectionScreen(section, 0));
        }
    });


}

and this is a part of the log

Starting faix
faix already running
Foreground faix(180)
Detected background switch for net_rim_bb_ribbon_app(58) who has NO tunnels open - defocus NOT called
Detected foreground switch for faix(180) who has NO tunnels open - focus NOT called
JVM: bklt @63289: timer
JVM: bklt[1] @63289: idle 2
JVM: bklt @63289: setTimer 13
VM:+GC(f)w=11
VM:-GCt=7,b=1,r=0,g=f,w=11
VM:QUOT t=1
VM:+CR
VM:-CR=2
JVM: bklt @76687: timer
JVM: bklt[1] @76687: idle 15
JVM: bklt @76687: setTimer 15
JPGENC 39 ms
JPGENC 7 ms
JPGENC 7 ms
JPGENC 0 ms
JPGENC 7 ms
JPGENC 7 ms
JPGENC 0 ms
JPGENC 7 ms
JPGENC 0 ms
JPGENC 0 ms
JPGENC 7 ms
JPGENC 0 ms

Please any advice. Thank you for take this issue.

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

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

晒暮凉 2024-09-19 05:17:17

尝试清理模拟器,在新插件上(在 Eclipse 内):
项目>>黑莓>干净的模拟器,
选择所有包并单击“清理”。

这帮助我解决了这个问题。

另外,当您在设备上进行调试时,在调试会话之后,我必须手动(使用设备)从设备中卸载已部署的应用程序,然后才能从 eclipse 启动另一个调试会话...我知道,这很痛苦,但它就是这样它对我有用。

干杯!

Try cleaning the simulator, on the new plugin that would be (inside eclipse):
Project > Blackberry > Clean Simulator,
Select all packages and click clean.

That helped me solve this problem.

Also, when you debug on the device, after a debug session, i have to uninstall the deployed app from the device manually (using the device) before initiating another debug session from eclipse... i know, its a pain but its the way it worked for me.

Cheers!

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