Eclipse启动错误 [英] Eclipse startup error

查看:191
本文介绍了Eclipse启动错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

今天,当我启动eclipse时,我收到以下错误信息:



在更新索引期间发生内部错误。
Java堆空间



当我检查日志时,有一个例外:

 !ENTRY org.eclipse.core.jobs 4 2 2011-06-14 13:44:26.546 
!MESSAGE在更新索引期间发生内部错误。
!STACK 0
java.lang.OutOfMemoryError:Java堆空间
在org.sonatype.nexus.index.updater.IndexDataReader.readUTF(IndexDataReader.java:132)
at org.sonatype.nexus.index.updater.IndexDataReader.readField(IndexDataReader.java:122)
在org.sonatype.nexus.index.updater.IndexDataReader.readDocument(IndexDataReader.java:96)
在org.sonatype.nexus.index.updater.IndexDataReader.readIndex(IndexDataReader.java:63)
在org.sonatype.nexus.index.updater.DefaultIndexUpdater.unpackIndexData(DefaultIndexUpdater.java:564)
at org.sonatype.nexus.index.updater.DefaultIndexUpdater.loadIndexDirectory(DefaultIndexUpdater.java:252)
在org.sonatype.nexus.index.updater.DefaultIndexUpdater.access $ 300(DefaultIndexUpdater.java:74)
在org.sonatype.nexus.index.updater.DefaultIndexUpdater $ LuceneIndexAdaptor.setIndexFile(DefaultIndexUpdater.java:815)
在org.sonatype.nexus.index.updater.DefaultIndexUpdater.fetchAndUpdateIndex(DefaultIndexUpdater.java:995)
在org.so在线时间org.maven.ide.eclipse.internal.index.NexusIndexManager.updateIndex(NexusIndexManager.java:1025)
在org.maven.ide.eclipse.internal.index.NexusIndexManager $ 1.run(NexusIndexManager.java:632)
在org.maven.ide.eclipse.internal.index.IndexUpdaterJob.run(IndexUpdaterJob.java:71)
在org.eclipse.core.internal.jobs.Worker.run(Worker.java: 54)
!SESSION 2011-06-14 13:46:30.734 -------------------------------- ---------------
eclipse.buildId = M20100909-0800
java.version = 1.6.0_23
java.vendor = Sun Microsystems Inc.
BootLoader常量:OS = win32,ARCH = x86,WS = win32,NL = en_GB
框架参数:-product org.eclipse.epp.package.jee.product
命令行参数: -os win32 -ws win32 -arch x86 -product org.eclipse.epp.package.jee.product

我没有成功尝试以下操作:




  • 增加eclipse中.ini文件中的内存:

      -Xms128m 
    - Xmx512m
    -XX:MaxPermSize = 256m


  • 创建环境变量MAVEN_OPTS: $ / $>

  • 删除〜/ .cache / m2e directoy




有没有人有其他想法?

解决方案

这个问题是由于旧版本的m2e插件蚀。



较新的版本不再自动传输远程索引,所以第一个推荐的解决方案是升级到最新版本的m2e。如果不可能,请按照以下说明进行操作。






此问题是由M2Eclipse插件将远程索引从Nexus(或兼容)存储库。


  1. 断开网络连接;

  2. 启动Eclipse。

  3. 取消选中首选项 Maven - >在启动时下载存储库索引更新

现在,您可以重新连接到网络,并应重新启动Eclipse以验证这确实解决了这个问题。


Today when I started eclipse I got the following error message:

An internal error occurred during: "Updating indexes". Java heap space

When I checked the log, there is this exception:

!ENTRY org.eclipse.core.jobs 4 2 2011-06-14 13:44:26.546
!MESSAGE An internal error occurred during: "Updating indexes".
!STACK 0
java.lang.OutOfMemoryError: Java heap space
at org.sonatype.nexus.index.updater.IndexDataReader.readUTF(IndexDataReader.java:132)
at org.sonatype.nexus.index.updater.IndexDataReader.readField(IndexDataReader.java:122)
at org.sonatype.nexus.index.updater.IndexDataReader.readDocument(IndexDataReader.java:96)
at org.sonatype.nexus.index.updater.IndexDataReader.readIndex(IndexDataReader.java:63)
at org.sonatype.nexus.index.updater.DefaultIndexUpdater.unpackIndexData(DefaultIndexUpdater.java:564)
at org.sonatype.nexus.index.updater.DefaultIndexUpdater.loadIndexDirectory(DefaultIndexUpdater.java:252)
at org.sonatype.nexus.index.updater.DefaultIndexUpdater.access$300(DefaultIndexUpdater.java:74)
at org.sonatype.nexus.index.updater.DefaultIndexUpdater$LuceneIndexAdaptor.setIndexFile(DefaultIndexUpdater.java:815)
at org.sonatype.nexus.index.updater.DefaultIndexUpdater.fetchAndUpdateIndex(DefaultIndexUpdater.java:995)
at org.sonatype.nexus.index.updater.DefaultIndexUpdater.fetchAndUpdateIndex(DefaultIndexUpdater.java:159)
at org.maven.ide.eclipse.internal.index.NexusIndexManager.updateRemoteIndex(NexusIndexManager.java:1085)
at org.maven.ide.eclipse.internal.index.NexusIndexManager.updateIndex(NexusIndexManager.java:1025)
at org.maven.ide.eclipse.internal.index.NexusIndexManager$1.run(NexusIndexManager.java:632)
at org.maven.ide.eclipse.internal.index.IndexUpdaterJob.run(IndexUpdaterJob.java:71)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)
!SESSION 2011-06-14 13:46:30.734 -----------------------------------------------
eclipse.buildId=M20100909-0800
java.version=1.6.0_23
java.vendor=Sun Microsystems Inc.
BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=en_GB
Framework arguments:  -product org.eclipse.epp.package.jee.product
Command-line arguments:  -os win32 -ws win32 -arch x86 -product org.eclipse.epp.package.jee.product

I tried the following with no success:

  • Increase the memory in the .ini file in eclipse:

    -Xms128m
    -Xmx512m
    -XX:MaxPermSize=256m
    

  • Create the environment variable "MAVEN_OPTS:-Xmx256m"

  • Delete the ~/.cache/m2e directoy

Does anyone have another idea?

解决方案

This problem was caused by older versions of the m2e plugin for Eclipse.

Newer versions no longer transfer the remote index automatically, so the first recommended solution is to upgrade to the latest version of m2e. If that is not possible then follow the instructions below.


This problem is caused by the M2Eclipse plugin transferring remote indexes from a Nexus ( or compatible ) repository.

  1. Disconnect from the network;
  2. Start Eclipse.
  3. Uncheck the preference Maven -> Download repository index updates on startup.

You can now reconnect to the network and should restart Eclipse to verify that this has indeed fixed the problem.

这篇关于Eclipse启动错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆