Eclipse 属性面板错误

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/2836705/
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:44:14  来源:igfitidea点击:

Eclipse properties panel error

eclipse

提问by OXMO456

Each time i launch the properties panel i get this error:

每次启动属性面板时,我都会收到此错误:

Could not accept change: the currently displayed page contains invalid values.

无法接受更改:当前显示的页面包含无效值。

I have tried to use a fresh new workspace & a new install of eclipse without any result.

我尝试使用全新的工作区和新安装的 eclipse,但没有任何结果。

I am on mac OS X.

我在 Mac OS X 上。

Any help wellcome

任何帮助欢迎

screen captures of the problem:

问题的屏幕截图:

alt text http://www.neverblind.eu/eclipse_error/1.jpgalt text http://www.neverblind.eu/eclipse_error/2.jpgalt text http://www.neverblind.eu/eclipse_error/3.jpg

替代文本 http://www.neverblind.eu/eclipse_error/1.jpg替代文本 http://www.neverblind.eu/eclipse_error/2.jpg替代文本 http://www.neverblind.eu/eclipse_error/3。 jpg

Here 2 new screen capture (fresh new loaded eclipse + new workspace) alt text http://www.neverblind.eu/eclipse_error/4.jpgalt text http://www.neverblind.eu/eclipse_error/5.jpg

这里有 2 个新的屏幕截图(新加载的 eclipse + 新工作区) 替代文本 http://www.neverblind.eu/eclipse_error/4.jpg替代文本 http://www.neverblind.eu/eclipse_error/5.jpg

I found the error on the eclipse workspace .log file :

我在 eclipse 工作区 .log 文件中发现了错误:

!ENTRY org.eclipse.jface 4 2 2010-05-21 18:24:06.148
!MESSAGE Problems occurred when invoking code from plug-in: "org.eclipse.jface".
!STACK 0
java.lang.NoClassDefFoundError
    at com.ibm.icu.util.TimeZone.getDefault(TimeZone.java:804)
    at com.ibm.icu.util.Calendar.getInstanceInternal(Calendar.java:1630)
    at com.ibm.icu.util.Calendar.getInstance(Calendar.java:1594)
    at com.ibm.icu.text.DateFormat.get(DateFormat.java:1288)
    at com.ibm.icu.text.DateFormat.getDateTimeInstance(DateFormat.java:1078)
    at org.eclipse.ui.internal.ide.dialogs.IDEResourceInfoUtils.getDateStringValue(IDEResourceInfoUtils.java:132)
    at org.eclipse.ui.internal.ide.dialogs.ResourceInfoPage.createStateGroup(ResourceInfoPage.java:426)
    at org.eclipse.ui.internal.ide.dialogs.ResourceInfoPage.createContents(ResourceInfoPage.java:254)
    at org.eclipse.jface.preference.PreferencePage.createControl(PreferencePage.java:232)
    at org.eclipse.jface.preference.PreferenceDialog.createPageControl(PreferenceDialog.java:1501)
    at org.eclipse.jface.preference.PreferenceDialog.run(PreferenceDialog.java:1258)
    at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
    at org.eclipse.core.runtime.Platform.run(Platform.java:888)
    at org.eclipse.ui.internal.JFaceUtil.run(JFaceUtil.java:48)
    at org.eclipse.jface.util.SafeRunnable.run(SafeRunnable.java:175)
    at org.eclipse.jface.preference.PreferenceDialog.showPage(PreferenceDialog.java:1252)
    at org.eclipse.ui.internal.dialogs.FilteredPreferenceDialog.showPage(FilteredPreferenceDialog.java:679)
    at org.eclipse.jface.preference.PreferenceDialog.run(PreferenceDialog.java:708)
    at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:70)
    at org.eclipse.jface.preference.PreferenceDialog.selectionChanged(PreferenceDialog.java:704)
    at org.eclipse.jface.viewers.StructuredViewer.run(StructuredViewer.java:864)
    at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
    at org.eclipse.core.runtime.Platform.run(Platform.java:888)
    at org.eclipse.ui.internal.JFaceUtil.run(JFaceUtil.java:48)
    at org.eclipse.jface.util.SafeRunnable.run(SafeRunnable.java:175)
    at org.eclipse.jface.viewers.StructuredViewer.firePostSelectionChanged(StructuredViewer.java:862)
    at org.eclipse.jface.viewers.StructuredViewer.setSelection(StructuredViewer.java:1670)
    at org.eclipse.jface.viewers.TreeViewer.setSelection(TreeViewer.java:1124)
    at org.eclipse.jface.preference.PreferenceDialog.selectSavedItem(PreferenceDialog.java:1054)
    at org.eclipse.ui.internal.dialogs.FilteredPreferenceDialog.selectSavedItem(FilteredPreferenceDialog.java:734)
    at org.eclipse.jface.preference.PreferenceDialog.run(PreferenceDialog.java:375)
    at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:70)
    at org.eclipse.jface.preference.PreferenceDialog.createContents(PreferenceDialog.java:371)
    at org.eclipse.jface.window.Window.create(Window.java:431)
    at org.eclipse.jface.dialogs.Dialog.create(Dialog.java:1089)
    at org.eclipse.ui.internal.dialogs.PropertyDialog.createDialogOn(PropertyDialog.java:82)
    at org.eclipse.ui.dialogs.PropertyDialogAction.createDialog(PropertyDialogAction.java:176)
    at org.eclipse.ui.dialogs.PropertyDialogAction.run(PropertyDialogAction.java:155)
    at org.eclipse.jface.action.Action.runWithEvent(Action.java:498)
    at org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection(ActionContributionItem.java:584)
    at org.eclipse.jface.action.ActionContributionItem.access(ActionContributionItem.java:501)
    at org.eclipse.jface.action.ActionContributionItem.handleEvent(ActionContributionItem.java:411)
    at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
    at org.eclipse.swt.widgets.Display.sendEvent(Display.java:3543)
    at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1250)
    at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1273)
    at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1258)
    at org.eclipse.swt.widgets.Widget.notifyListeners(Widget.java:1079)
    at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3441)
    at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3100)
    at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2405)
    at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2369)
    at org.eclipse.ui.internal.Workbench.access(Workbench.java:2221)
    at org.eclipse.ui.internal.Workbench.run(Workbench.java:500)
    at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
    at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:493)
    at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
    at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:113)
    at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:194)
    at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
    at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
    at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:368)
    at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:179)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:592)
    at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:559)
    at org.eclipse.equinox.launcher.Main.basicRun(Main.java:514)
    at org.eclipse.equinox.launcher.Main.run(Main.java:1311)

采纳答案by Parth

Eclipse sometimes behaves in weird manner. All all your source code folders ok? Please check all folder first. If they are ok then there must be something with the core plugins OR the workspace in which you have all your projects.

Eclipse 有时会以奇怪的方式运行。你所有的源代码文件夹都好吗?请先检查所有文件夹。如果它们没问题,那么核心插件或您拥有所有项目的工作区必须有一些东西。

First copy your workspace, then install another instance of eclipse. Try to open the workspace in that eclipse.

首先复制您的工作区,然后安装另一个 eclipse 实例。尝试在该日食中打开工作区。

If that doesn't work, it seems a big problem. May be you need to import all projects again in new workspace.

如果这不起作用,这似乎是一个大问题。可能您需要在新工作区中再次导入所有项目。

For better performance, you should keep number of projects in workspace somewhat limited. It seems you have many projects inside one workspace which might cause memory problems and slower your eclipse.

为了获得更好的性能,您应该限制工作区中的项目数量。似乎您在一个工作区中有许多项目,这可能会导致内存问题并减慢您的日食。

I hope, this works for you.

我希望,这对你有用。

---EDIT on 21st May,2010---

---2010 年 5 月 21 日编辑---

After searching it ,it seems a bug in eclipse 3.4. Thought it shows a bug of WinXP, may be it affects MAC also.

搜索后,似乎是eclipse 3.4中的一个错误。以为是WinXP的bug,可能是MAC也有影响。

Please check the link below. They have specified version 3.4 M6.

请检查下面的链接。他们指定了版本 3.4 M6。

So if you are using older version of eclipse then please get newer from this link. Also please check to have JDK 1.6 (Stable version) installed on your mac.

因此,如果您使用的是旧版本的 eclipse,那么请从此链接获取更新版本。另外请检查您的 Mac 上是否安装了 JDK 1.6(稳定版)。

Eclipse download: http://www.eclipse.org/downloads/

Eclipse 下载:http: //www.eclipse.org/downloads/

Bug: https://bugs.eclipse.org/bugs/show_bug.cgi?id=217707

错误:https: //bugs.eclipse.org/bugs/show_bug.cgi?id =217707

Hope this helps.

希望这可以帮助。

thanks.

谢谢。

回答by Nivas

Can you check the Console (Applications -> Utilities -> Console.app) and see whether there are any specific messages from eclipse (and post them here if possible)? A exception stack trace or something?

您能否检查控制台(应用程序-> 实用程序-> Console.app)并查看是否有来自 eclipse 的任何特定消息(如果可能,请将它们张贴在这里)?异常堆栈跟踪什么的?

Maybe it might throw some light on whats going wrong.

也许它可能会为出了什么问题提供一些线索。