【问题标题】:Netbeans application (module suite) runs the first time, but does not load laterNetbeans 应用程序(模块套件)第一次运行,但以后不加载
【发布时间】:2013-12-19 17:40:36
【问题描述】:

我们有一个桌面应用程序,它在 Windows 环境中作为 Netbeans 模块套件编译和运行。当我们第一次安装应用程序时,它工作正常。但是关闭应用程序并尝试重新启动它不起作用 - 具体来说,显示了窗口框架,但它完全是空白的(没有显示窗口或菜单栏)。

此时,甚至无法使用“关闭窗口”(X) 按钮关闭应用程序,但必须使用任务管理器停止该进程。

无论应用程序作为桌面应用程序运行,还是使用“运行项目”在 Netbeans 中运行,都会看到相同的行为。

清除应用程序缓存(在 /AppData/Roaming//dev/var/cache 中)会有所帮助,但如果没有再次手动清除缓存,则问题会在下次重复,因此这不是客户端计算机上的可持续解决方案。

应用程序日志显示没有错误,但在之后停止

INFO [org.netbeans.core.startup.NbEvents]: Turning on modules:
org.openide.util.lookup [8.22.1 201310111528]
org.openide.util [8.33.1 201310111528]
org.openide.modules [7.39.1 201310111528]
org.openide.filesystems [8.8.1 201310111528]
org.netbeans.api.annotations.common/1 [1.21.1 201310111528]
org.openide.awt [7.59.1 201310111528]
org.netbeans.api.progress/1 [1.35.1 201310111528]
org.openide.dialogs [7.32.1 201310111528]
org.openide.nodes [7.36.1 201310111528]
org.openide.windows [6.65.1 201310111528]
org.netbeans.modules.editor.mimelookup/1 [1.33.1 201310111528]
org.openide.text [6.58.1 201310111528]
org.netbeans.swing.tabcontrol [1.46.1 201310111528]
org.netbeans.swing.outline [1.27.1 201310111528]
org.openide.explorer [6.53.1 201310111528]
org.openide.actions [6.32.1 201310111528]
org.netbeans.modules.queries/1 [1.36.1 201310111528]
org.openide.loaders [7.51.1 201310111528]
org.openide.io [1.42.1 201310111528]
org.netbeans.swing.plaf [1.34.1 201310111528]
org.netbeans.spi.quicksearch [1.20.1 201310111528]
org.netbeans.bootstrap/1 [2.63.1 201310111528]
org.netbeans.core.startup/1 [1.51.1 201310111528]
org.netbeans.modules.settings/1 [1.42.1 201310111528]
org.netbeans.modules.sampler [1.7.1 201310111528]
org.netbeans.modules.progress.ui [1.26.1 201310111528]
org.netbeans.modules.keyring [1.17.1 201310111528]
org.netbeans.core/2 [3.43.1 201310111528]
org.netbeans.modules.options.api/1 [1.36.1 201310111528]
org.netbeans.modules.options.keymap [1.28.1 201310111528]
org.netbeans.modules.masterfs/2 [2.44.1 201310111528]
org.netbeans.libs.jna/1 [1.31.1 201310111528]
org.netbeans.modules.masterfs.windows [1.7.1 201310111528]
org.netbeans.modules.keyring.fallback [1.1.1 201310111528]
org.netbeans.modules.keyring.impl [1.14.1 201310111528]
org.netbeans.modules.editor.mimelookup.impl/1 [1.24.1 201310111528]
org.netbeans.libs.jna.platform/1 [1.1.1 201310111528]
org.netbeans.core.windows/2 [2.66.1 201310111528]
org.netbeans.core.ui/1 [1.38.1 201310111528]
org.netbeans.core.output2/1 [1.34.1 201310111528]
org.netbeans.core.nativeaccess/1 [1.23.1 201310111528]
org.netbeans.core.multitabs [1.3.3.1 1 201310111528]
org.netbeans.core.io.ui/1 [1.23.1 201310111528]
org.jdesktop [1.0 131217]
<project modules>
INFO [org.netbeans.ui.metrics.laf]: USG_LOOK_AND_FEEL

测试环境如下: Netbeans 版本:7.3 和 7.4 都有同样的问题 操作系统:Windows(已在各种版本上测试)

提前致谢。

【问题讨论】:

    标签: netbeans netbeans-7 netbeans-platform


    【解决方案1】:

    我认为它与这条消息有关:

    INFO [org.netbeans.ui.metrics.laf]: USG_LOOK_AND_FEEL

    您如何设置 LAF?

    我遇到了类似的问题,但我的应用程序只有在我使用桌面快捷方式运行时才会挂起。 我使用生成的安装程序(nbm:build-installers)安装了它。 我找到了一个读取消息日志的解决方案(在 Linux 上:$HOME/user/.bsuit/dev/var/messages.log)。

    【讨论】:

      【解决方案2】:

      问题与 ExecutorService 调用有关。我们有 3 个不同的异步执行器,都安排在同一时间启动,这不知何故导致了死锁。错开执行者的开始时间解决了这个问题。

      【讨论】:

        猜你喜欢
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 2019-03-26
        • 2011-04-08
        • 2020-01-27
        相关资源
        最近更新 更多