gpt4 book ai didi

java - "The application could not start"运行插件时会产生堆栈跟踪,但不会产生调试 session

转载 作者:行者123 更新时间:2023-12-02 13:38:28 26 4
gpt4 key购买 nike

我正在修复一个旧的 Eclipse 插件,以便它在 Neon 中运行。我设法按照 https://sourceforge.net/p/e-p-i-c/discussion/258688/thread/7475efd7/#f9cc/cc8a 通过 File->Import... 导入依赖项,修复了所有剩余的编译错误,现在准备尝试一下。

但是,当我调试为...“Eclipse 应用程序”或“OSGi 框架”时,它会显示“应用程序无法启动”错误对话框,然后根据我的情况选择几个堆栈跟踪。

但这没有用。 我需要进行调试 session ,以便我可以检查变量并尝试推断出问题所在(因为我不熟悉常见的 Eclipse 插件堆栈跟踪,无法说出这个特定的问题意味着只是通过查看它)。

<小时/>

乍一看,设置看起来不错:

  • 子进程通过命令行启动"C:\Program Files\Java\jre1.8.0_121\bin\javaw.exe"-agentlib:jdwp=transport=dt_socket,suspend=y,地址=本地主机:50467 -Declipse.pde.launch=true -Dfile.encoding=UTF-8 -classpath "C:\Users\Ivan\.p2\pool\plugins\org.eclipse.equinox.launcher_1.3.201.v20161025- 1711.jar"org.eclipse.equinox.launcher.Main -launcher "C:\Users\Ivan\eclipse\committers-neon\eclipse\eclipse.exe"-name Eclipse -showsplash 600 -product org.eclipse.platform.ide -data "C:\Users\Ivan\workspace-antlr/../runtime-New_configuration"-配置文件:C:/Users/Ivan/workspace-antlr/.metadata/.plugins/org.eclipse.pde.core/New_configuration/-dev 文件:C:/Users/Ivan/workspace-antlr/.metadata/.plugins/org.eclipse.pde.core/New_configuration/dev.properties -os win32 -ws win32 -arch x86_64 -nl en_US -consoleLog 看起来不错(“New_configuration”启动配置的类型为“Eclipse Application”)。

  • The "suspend on uncaught exceptions" flag已设置。

<小时/>

堆栈跟踪:

在控制台 Pane 中:

java.lang.UnsupportedOperationException
at java.util.AbstractList.add(Unknown Source)
at java.util.AbstractList.add(Unknown Source)
at org.eclipse.osgi.storage.FrameworkExtensionInstaller.getExtensionFiles(FrameworkExtensionInstaller.java:152)
<...>
at org.eclipse.osgi.storage.Storage.installExtensions(Storage.java:194)
at org.eclipse.osgi.storage.Storage.createStorage(Storage.java:92)
at org.eclipse.osgi.internal.framework.EquinoxContainer.<init>(EquinoxContainer.java:66)
at org.eclipse.osgi.launch.Equinox.<init>(Equinox.java:31)
<...>
at org.eclipse.equinox.launcher.Main.main(Main.java:1492)

在错误日志 Pane 中:

java.lang.NullPointerException
at org.eclipse.oomph.setup.ui.SetupUIPlugin.performStartup(SetupUIPlugin.java:443)
at org.eclipse.oomph.setup.ui.SetupUIPlugin.access$5(SetupUIPlugin.java:414)
at org.eclipse.oomph.setup.ui.SetupUIPlugin$1$1.run(SetupUIPlugin.java:253)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)

.log中:

!SESSION 2017-03-14 02:11:24.862 -----------------------------------------------
eclipse.buildId=4.6.2.M20161124-1400
java.version=1.8.0_121
<...>
Command-line arguments: -product org.eclipse.platform.ide -data C:\Users\Ivan\workspace-antlr/../runtime-New_configuration -dev file:C:/Users/Ivan/workspace-antlr/.metadata/.plugins/org.eclipse.pde.core/New_configuration/dev.properties -os win32 -ws win32 -arch x86_64 -consoleLog

!ENTRY org.eclipse.equinox.ds 1 0 2017-03-14 02:11:30.571
!MESSAGE Could not bind a reference of component org.eclipse.ecf.mgmt.rsa.discovery.ui.discovery. The reference is: Reference[name = RemoteServiceAdmin, interface = org.osgi.service.remoteserviceadmin.RemoteServiceAdmin, policy = dynamic, cardinality = 0..1, target = null, bind = bindRemoteServiceAdmin, unbind = unbindRemoteServiceAdmin]

!ENTRY org.eclipse.equinox.ds 1 0 2017-03-14 02:11:30.579
!MESSAGE Could not bind a reference of component org.eclipse.ecf.mgmt.rsa.discovery.ui.discovery. The reference is: Reference[name = IEndpointDescriptionLocator, interface = org.eclipse.ecf.osgi.services.remoteserviceadmin.IEndpointDescriptionLocator, policy = dynamic, cardinality = 0..1, target = null, bind = bindEndpointDescriptionLocator, unbind = unbindEndpointDescriptionLocator]

!ENTRY org.eclipse.egit.ui 2 0 2017-03-14 02:12:17.143
!MESSAGE Warning: The environment variable HOME is not set. The following directory will be used <...>: 'C:\Users\Ivan'.

!ENTRY org.eclipse.oomph.setup.ui 2 0 2017-03-14 02:12:19.584
!MESSAGE java.lang.NullPointerException
!STACK 0
java.lang.NullPointerException
at org.eclipse.oomph.setup.ui.SetupUIPlugin.performStartup(SetupUIPlugin.java:443)
at org.eclipse.oomph.setup.ui.SetupUIPlugin.access$5(SetupUIPlugin.java:414)
at org.eclipse.oomph.setup.ui.SetupUIPlugin$1$1.run(SetupUIPlugin.java:253)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)

!ENTRY org.eclipse.oomph.setup.ui 1 0 2017-03-14 02:12:22.650
!MESSAGE Setup tasks were performed during startup updating 5 preferences. See 'C:\Users\Ivan\workspace-antlr\.metadata\.plugins\org.eclipse.pde.core\New_configuration\org.eclipse.oomph.setup\setup.log' for details
<小时/>

我主要对如何进入调试器感兴趣。如果您只是帮我解决这个特定错误,我很可能会立即遇到另一个错误。

最佳答案

看起来这可能是 this Oomph 安装程序代码中的 Eclipse 错误。该错误被标记为已修复并已关闭,但尚不清楚它位于哪个 Eclipse 版本中(可能是即将发布的 4.6.3)。

一种可能的解决方法是使用基于不使用 Oomph 的较简单 Eclipse 安装之一的目标平台。这些可以找到here

关于java - "The application could not start"运行插件时会产生堆栈跟踪,但不会产生调试 session ,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/42870213/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com