我的Eclipse Kepler on Opensuse 13.1定期崩溃(每天约5次)。在错误日志中,我看到了:
java.net.UnknownHostException:chmalap.site:chmalap.site:名称或服务未知 在java.net.InetAddress.getLocalHost(InetAddress.java:1473)
chmalap是我的本地网络上我的电脑的主机名...但他为什么要查看这个?我的Eclipse很新(8.2.1并没有配置太多设置。我安装了EGit和SVN插件。有什么想法吗?
以下是完整的崩溃信息
!ENTRY org.eclipse.core.resources 2 10035 2014-01-28 16:43:31.135
!MESSAGE The workspace exited with unsaved changes in the previous session; refreshing workspace to recover changes.
!ENTRY org.eclipse.rse.core 4 0 2014-01-28 16:43:35.330
!MESSAGE Unexpected Exception
!STACK 0
java.net.UnknownHostException: chmalap.site: chmalap.site: Name or service not known
at java.net.InetAddress.getLocalHost(InetAddress.java:1473)
at org.eclipse.rse.core.RSECorePlugin.getLocalMachineName(RSECorePlugin.java:265)
at org.eclipse.rse.core.RSEPreferencesManager.getDefaultPrivateSystemProfileName(RSEPreferencesManager.java:358)
at org.eclipse.rse.core.RSEPreferencesManager.initDefaults(RSEPreferencesManager.java:337)
at org.eclipse.rse.internal.core.RSEPreferenceInitializer.initializeDefaultPreferences(RSEPreferenceInitializer.java:23)
at org.eclipse.core.internal.preferences.PreferenceServiceRegistryHelper$1.run(PreferenceServiceRegistryHelper.java:300)
at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
at org.eclipse.core.internal.preferences.PreferenceServiceRegistryHelper.runInitializer(PreferenceServiceRegistryHelper.java:303)
at org.eclipse.core.internal.preferences.PreferenceServiceRegistryHelper.applyRuntimeDefaults(PreferenceServiceRegistryHelper.java:131)
at org.eclipse.core.internal.preferences.PreferencesService.applyRuntimeDefaults(PreferencesService.java:368)
at org.eclipse.core.internal.preferences.DefaultPreferences.applyRuntimeDefaults(DefaultPreferences.java:221)
at org.eclipse.core.internal.preferences.DefaultPreferences.load(DefaultPreferences.java:274)
at org.eclipse.core.internal.preferences.EclipsePreferences.create(EclipsePreferences.java:409)
at org.eclipse.core.internal.preferences.EclipsePreferences.internalNode(EclipsePreferences.java:670)
at org.eclipse.core.internal.preferences.DefaultPreferences.node(DefaultPreferences.java:147)
at org.eclipse.core.internal.preferences.legacy.PreferenceForwarder.getDefaultPreferences(PreferenceForwarder.java:130)
at org.eclipse.core.internal.preferences.legacy.PreferenceForwarder.getInt(PreferenceForwarder.java:469)
at org.eclipse.rse.logging.Logger.initialize(Logger.java:249)
at org.eclipse.rse.logging.Logger.<init>(Logger.java:135)
at org.eclipse.rse.logging.LoggerFactory.getLogger(LoggerFactory.java:45)
at org.eclipse.rse.core.RSECorePlugin.getLogger(RSECorePlugin.java:392)
at org.eclipse.rse.internal.core.RSEInitJob.<init>(RSEInitJob.java:130)
at org.eclipse.rse.internal.core.RSEInitJob.<clinit>(RSEInitJob.java:62)
at org.eclipse.rse.internal.ui.RSEUIStartup.earlyStartup(RSEUIStartup.java:19)
at org.eclipse.ui.internal.EarlyStartupRunnable.runEarlyStartup(EarlyStartupRunnable.java:87)
at org.eclipse.ui.internal.EarlyStartupRunnable.run(EarlyStartupRunnable.java:66)
at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
at org.eclipse.ui.internal.Workbench$55.run(Workbench.java:2551)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:53)
Caused by: java.net.UnknownHostException: chmalap.site: Name or service not known
at java.net.Inet6AddressImpl.lookupAllHostAddr(Native Method)
at java.net.InetAddress$1.lookupAllHostAddr(InetAddress.java:901)
at java.net.InetAddress.getAddressesFromNameService(InetAddress.java:1293)
at java.net.InetAddress.getLocalHost(InetAddress.java:1469)
... 28 more
编辑:根据Greg-449的建议,我停用了RSE UI ......但我的日食再次崩溃了。这次错误日志中只出现了这些错误(它们之前已经存在于错误日志中;但始终存在于崩溃之前;在我看来它们在崩溃时并不存在)
!ENTRY org.eclipse.jface 2 0 2014-01-29 09:14:02.117
!MESSAGE Keybinding conflicts occurred. They may interfere with normal accelerator operation.
!SUBENTRY 1 org.eclipse.jface 2 0 2014-01-29 09:14:02.117
!MESSAGE A conflict occurred for ALT+CTRL+C:
Binding(ALT+CTRL+C,
ParameterizedCommand(Command(org.eclipse.linuxtools.changelog.core.actions.KeyActionCommand,Insert ChangeLog entry,
Insert a ChangeLog entry,
Category(org.eclipse.linuxtools.changelog,Changelog,Changelog key bindings,true),
org.eclipse.ui.internal.WorkbenchHandlerServiceHandler@1b31dee,
,,true),null),
org.eclipse.ui.defaultAcceleratorConfiguration,
org.eclipse.ui.textEditorScope,,,system)
Binding(ALT+CTRL+C,
ParameterizedCommand(Command(org.eclipse.linuxtools.changelog.core.actions.KeyActionCommand,Insert ChangeLog entry,
Insert a ChangeLog entry,
Category(org.eclipse.linuxtools.changelog,Changelog,Changelog key bindings,true),
org.eclipse.ui.internal.WorkbenchHandlerServiceHandler@1b31dee,
,,true),null),
org.eclipse.ui.defaultAcceleratorConfiguration,
org.eclipse.compare.compareEditorScope,,,system)
!SUBENTRY 1 org.eclipse.jface 2 0 2014-01-29 09:14:02.117
!MESSAGE A conflict occurred for ALT+CTRL+P:
Binding(ALT+CTRL+P,
ParameterizedCommand(Command(org.eclipse.linuxtools.changelog.core.preparechangelog2,Prepare Changelog In Editor,
Prepares ChangeLog in an editor,
Category(org.eclipse.linuxtools.changelog,Changelog,Changelog key bindings,true),
org.eclipse.ui.internal.WorkbenchHandlerServiceHandler@139ed49,
,,true),null),
org.eclipse.ui.defaultAcceleratorConfiguration,
org.eclipse.ui.textEditorScope,,,system)
Binding(ALT+CTRL+P,
ParameterizedCommand(Command(org.eclipse.linuxtools.changelog.core.preparechangelog2,Prepare Changelog In Editor,
Prepares ChangeLog in an editor,
Category(org.eclipse.linuxtools.changelog,Changelog,Changelog key bindings,true),
org.eclipse.ui.internal.WorkbenchHandlerServiceHandler@139ed49,
,,true),null),
org.eclipse.ui.defaultAcceleratorConfiguration,
org.eclipse.compare.compareEditorScope,,,system)
为了安全起见,我删除了这些快捷方式中的一个,因为我不使用它们......但它们似乎不是我的关键错误
答案 0 :(得分:1)
这似乎是Eclipse RSE(远程系统资源管理器)做了一些初始化但遇到了InetAddress.getLocalHost的问题。
如果您没有使用RSE,您应该可以通过转到Preferences > General > Startup and Shutdown
来停止此初始化。取消选中RSE UI
复选框,这将阻止在Eclipse启动期间运行RSE初始化。
更新: 看起来这可能是Eclipse bug 323606。错误报告说它由以下原因引起:
使用DHCP初始化系统,不要使用DNS注册ip地址/主机名