Netbeans应用程序(模块套件)第一次运行,但以后不会加载



我们有一个桌面应用程序,它被编译并在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(在各种版本上测试)

提前谢谢。

我认为它与以下消息有关:

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

你是如何设置LAF的?

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

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

最新更新