在 Eclipse 中安装插件时出错

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/2783743/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-19 14:43:27  来源:igfitidea点击:

Error when installing plugin in Eclipse

eclipseeclipse-plugin

提问by Derk

When I try to install a plugin in Eclipse I get these error messages

当我尝试在 Eclipse 中安装插件时,我收到这些错误消息

Registry event dispatcher

注册表事件调度器

Error notifying registry change listener.
Error notifying registry change listener.
Invalid registry object
Error notifying registry change listener.
Invalid registry object
Error notifying registry change listener.
Invalid registry object
Error notifying registry change listener.
Invalid registry object
Error notifying registry change listener.
Invalid registry object

Has someone an idea what the cause of this problem could be? Thanks

有人知道这个问题的原因可能是什么吗?谢谢

Edit:

编辑:

I see the Eclipse .log file has also a lot of new stack traces

我看到 Eclipse .log 文件也有很多新的堆栈跟踪

The first one is

第一个是

java.vendor=Sun Microsystems Inc.
BootLoader constants: OS=win32, ARCH=x86_64, WS=win32, NL=nl_NL
Framework arguments:  -product org.eclipse.epp.package.jee.product
Command-line arguments:  -os win32 -ws win32 -arch x86_64 -product org.eclipse.epp.package.jee.product

!ENTRY org.eclipse.equinox.registry 4 2 2010-05-06 21:04:31.236
!MESSAGE Problems occurred when invoking code from plug-in: "org.eclipse.equinox.registry".
!STACK 0
org.eclipse.core.runtime.InvalidRegistryObjectException: Invalid registry object
    at org.eclipse.core.internal.registry.TemporaryObjectManager.getObject(TemporaryObjectManager.java:98)
    at org.eclipse.core.internal.registry.BaseExtensionPointHandle.getExtensionPoint(BaseExtensionPointHandle.java:106)
    at org.eclipse.core.internal.registry.BaseExtensionPointHandle.getContributor(BaseExtensionPointHandle.java:45)
    at org.eclipse.core.internal.registry.BaseExtensionPointHandle.getNamespace(BaseExtensionPointHandle.java:37)
    at org.eclipse.ui.internal.PopupMenuExtender.registryChanged(PopupMenuExtender.java:520)
    at org.eclipse.core.internal.registry.ExtensionRegistry.run(ExtensionRegistry.java:921)
    at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
    at org.eclipse.core.internal.registry.ExtensionRegistry.processChangeEvent(ExtensionRegistry.java:919)
    at org.eclipse.core.runtime.spi.RegistryStrategy.processChangeEvent(RegistryStrategy.java:260)
    at org.eclipse.core.internal.registry.osgi.ExtensionEventDispatcherJob.run(ExtensionEventDispatcherJob.java:50)
    at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)

Edit2:

编辑2:

When I restart Eclipse I get a "install connectors" window, but when I select a connector and click on "Finish" nothing happens and there appears an "Unhandled event loop exception" in the Eclipse log

当我重新启动 Eclipse 时,我会看到一个“安装连接器”窗口,但是当我选择一个连接器并单击“完成”时,什么也没有发生,并且在 Eclipse 日志中出现了“未处理的事件循环异常”

Edit3:

编辑3:

I tried Subclipse instead of Subversive but that gives these errors

我尝试了 Subclipse 而不是 Subversive 但这给出了这些错误

Failed to load JavaHL Library.
These are the errors that were encountered:
no libapr-1 in java.library.path
no libapriconv-1 in java.library.path
C:\Program Files (x86)\Zend\Core\bin\libeay32.dll: Can't load IA 32-bit .dll on a AMD 64-bit platform
C:\Program Files (x86)\Zend\Core\bin\ssleay32.dll: Can't load IA 32-bit .dll on a AMD 64-bit platform
no libaprutil-1 in java.library.path
no libsvn_subr-1 in java.library.path
no libsvn_delta-1 in java.library.path
no libsvn_diff-1 in java.library.path
no libsvn_wc-1 in java.library.path
no libsvn_fs-1 in java.library.path
no libsvn_repos-1 in java.library.path
no libsvn_ra-1 in java.library.path
no libsvn_client-1 in java.library.path
no libsvnjavahl-1 in java.library.path
no svnjavahl-1 in java.library.path
no svnjavahl in java.library.path
java.library.path = C:\Windows\system32;.;C:\Windows\Sun\Java\bin;C:\Windows\system32;C:\Windows;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program Files (x86)\Zend\Core\bin;C:\Program Files (x86)\Zend\Core\oic;C:\Program Files (x86)\MySQL\MySQL Server 5.0\bin;C:\Program Files (x86)\Common Files\Acronis\SnapAPI\;C:\Program Files\TortoiseSVN\bin;C:\Program Files (x86)\QuickTime\QTSystem\;C:\Program Files\Java\jdk1.6.0_20\bin

Is there a possibility that the installed Eclipse version conflicts with another installed Eclipse version or with Zend Studio?

安装的 Eclipse 版本是否有可能与另一个安装的 Eclipse 版本或 Zend Studio 冲突?

回答by Last G

It's problem with x64 Java.

这是 x64 Java 的问题。

With x64 java you need to use JavaHL with x64 support

使用 x64 java,您需要使用支持 x64 的 JavaHL

This is official FAQ http://subclipse.tigris.org/wiki/JavaHL#head-0ae839721445e3f59d10a128ec9439d4f4988d5f

这是官方常见问题解答 http://subclipse.tigris.org/wiki/JavaHL#head-0ae839721445e3f59d10a128ec9439d4f4988d5f

I have same installation and it works after steps from FAQ

我有相同的安装,它在按照常见问题解答的步骤后工作

Edit: You may also need to edit your PATH variable (in Windows at least) to include the binfolder from the SlikSVNinstall that is recommended in the subclipse FAQlisted above.

编辑:您可能还需要编辑您的 PATH 变量(至少在 Windows 中)以包含bin来自上面列出的子剪辑常见问题解答中推荐的SlikSVN安装的文件夹。

回答by Raghu

If you are installing Subclipse plugin for SVN in eclipse on windows7 64 bit. Make sure you do not install JavaHL as part of the plugin install options. You need to separately install SilkSVN install outside the eclipse. Steps are here, First install SilkSVN, than install Subclipse plugin install withouth JavaHL plugin checked.

如果您在 windows7 64 位上的 eclipse 中为 SVN 安装 Subclipse 插件。确保您没有将 JavaHL 安装为插件安装选项的一部分。您需要在 eclipse 之外单独安装 SilkSVN install。步骤在这里,首先安装 SilkSVN,然后安装 Subclipse 插件,无需检查 JavaHL 插件。

回答by LexLu

For Kirk Woll:

对于柯克沃尔:

Modify your Pathin Environment variables

修改你PathEnvironment variables

Change C:\Program Files\SlikSvn\bin\into C:\Program Files\SlikSvn\bin

更改C:\Program Files\SlikSvn\bin\C:\Program Files\SlikSvn\bin

maybe this can help you.

也许这可以帮助你。

回答by SonTL

  1. Install SlikSvn http://www.sliksvn.com/en/download
  2. Change system variables path: C:\Program Files\SlikSvn\bin\to C:\Program Files\SlikSvn\bin
  1. 安装 SlikSvn http://www.sliksvn.com/en/download
  2. 更改系统变量路径:C:\Program Files\SlikSvn\bin\C:\Program Files\SlikSvn\bin

回答by Uri Bar

I had the same problem, running eclipse 64 bit on windows 7 64 bit, trying to use subclipse and this is how I fixed it:

我遇到了同样的问题,在 Windows 7 64 位上运行 eclipse 64 位,尝试使用 subclipse,这就是我修复它的方法:

  1. I have installed eclipse Helios 64 bit.
  2. I have installed jdk 1.6 64 bit.
  3. I have installed subclipse.
  4. I have installed JavaHL (Slik subversion) 64 bit.
  5. I had to make sure eclipse uses the 64 bit version Java when launching (this can be verified when looking at the java.library.path property in eclipse->help->about eclipse->installation details->configuration. Make sure it shows also the path to your 64 bit JDK - if not, change the relevant system environment variable from your windows control panel->system and restart eclipse with the -clean variable).
  1. 我已经安装了 Eclipse Helios 64 位。
  2. 我已经安装了 jdk 1.6 64 位。
  3. 我已经安装了 subclipse。
  4. 我已经安装了 JavaHL (Slik subversion) 64 位。
  5. 我必须确保 Eclipse 在启动时使用 64 位版本的 Java(这可以在查看eclipse->help->about eclipse->installation details->configuration.从 Windows 控制面板 -> 系统中删除系统环境变量,然后使用 -clean 变量重新启动 eclipse)。

回答by VonC

Did you observe that on a fresh installation of Eclipse?
And in the case of your instance of Eclipse, did you try to relaunch iot a secondtime? (and still see errors?)

您是否在全新安装的 Eclipse 中观察到了这一点?
就您的 Eclipse 实例而言,您是否尝试第二次重新启动 iot ?(仍然看到错误?)

Because when several plugins are already there, this thread mentions(for AJDTbut that can be applied to other plugins as well):

因为当已经有几个插件时,这个线程提到AJDT但是这也可以应用于其他插件):

The error means that somebody holds on to the handles to the extension registry objects that no longer exists.

Most likely AJDT(or one of the bundles it depends on) maintains persistent cache of registry objects, such as extensions or extension points.
When a bundle is updated, behind the scene the "old" version of the bundle is uninstalled, removing all its registry elements, and when the new version of the bundle is installed, adding new registry element.
If a bundle cached handles for extensions/extension points and did not react to the registry events, it ends up with invalid handles.

该错误意味着有人持有不再存在的扩展注册表对象的句柄。

最有可能AJDT(或它所依赖的包之一)维护注册表对象的持久缓存,例如扩展或扩展点。
当包更新时,后台会卸载包的“旧”版本,删除其所有注册表元素,并在安装新版本的包时,添加新的注册表元素。
如果一个包缓存了扩展/扩展点的句柄并且没有对注册表事件做出反应,它最终会得到无效的句柄。