web-dev-qa-db-ja.com

プラグインからコードを呼び出すときに問題が発生しました: "org.Eclipse.jface"

SVNからEclipseに新しいJavaプロジェクトがあり、EclipseのProject Explorerウィンドウでプロジェクトを開こうとしたところ、次のエラーを受け取りました。

プラグインからコードを呼び出すときに問題が発生しました:"org.Eclipse.jface"

どうすればその問題を修正できますか?

例外スタックトレース:

Java.lang.NullPointerException
    at org.jboss.ide.Eclipse.as.classpath.core.ejb3.EJB3ClasspathContainer.getClasspathEntries(EJB3ClasspathContainer.Java:115)
    at org.Eclipse.jdt.internal.core.JavaProject.resolveClasspath(JavaProject.Java:2695)
    at org.Eclipse.jdt.internal.core.JavaProject.resolveClasspath(JavaProject.Java:2853)
    at org.Eclipse.jdt.internal.core.JavaProject.getResolvedClasspath(JavaProject.Java:1958)
    at org.Eclipse.jdt.internal.core.PackageFragmentRoot.getRawClasspathEntry(PackageFragmentRoot.Java:547)
    at org.Eclipse.jdt.internal.corext.buildpath.ClasspathModifier.isExcluded(ClasspathModifier.Java:485)
    at org.Eclipse.jdt.internal.ui.wizards.buildpaths.newsourcepage.IncludeToBuildpathAction.canHandle(IncludeToBuildpathAction.Java:170)
    at org.Eclipse.jdt.internal.ui.wizards.buildpaths.newsourcepage.BuildpathModifierAction.selectionChanged(BuildpathModifierAction.Java:101)
    at org.Eclipse.jface.viewers.Viewer$2.run(Viewer.Java:164)
    at org.Eclipse.core.runtime.SafeRunner.run(SafeRunner.Java:42)
    at org.Eclipse.ui.internal.JFaceUtil$1.run(JFaceUtil.Java:49)
    at org.Eclipse.jface.util.SafeRunnable.run(SafeRunnable.Java:175)
    at org.Eclipse.jface.viewers.Viewer.fireSelectionChanged(Viewer.Java:162)
    at org.Eclipse.jface.viewers.StructuredViewer.updateSelection(StructuredViewer.Java:2188)
    at org.Eclipse.jface.viewers.StructuredViewer.handleSelect(StructuredViewer.Java:1211)
    at org.Eclipse.ui.navigator.CommonViewer.handleSelect(CommonViewer.Java:478)
    at org.Eclipse.jface.viewers.StructuredViewer$4.widgetSelected(StructuredViewer.Java:1241)
    at org.Eclipse.jface.util.OpenStrategy.fireSelectionEvent(OpenStrategy.Java:239)
    at org.Eclipse.jface.util.OpenStrategy.access$4(OpenStrategy.Java:233)
    at org.Eclipse.jface.util.OpenStrategy$1.handleEvent(OpenStrategy.Java:403)
    at org.Eclipse.swt.widgets.EventTable.sendEvent(EventTable.Java:84)
    at org.Eclipse.swt.widgets.Display.sendEvent(Display.Java:4128)
    at org.Eclipse.swt.widgets.Widget.sendEvent(Widget.Java:1457)
    at org.Eclipse.swt.widgets.Widget.sendEvent(Widget.Java:1480)
    at org.Eclipse.swt.widgets.Widget.sendEvent(Widget.Java:1465)
    at org.Eclipse.swt.widgets.Widget.notifyListeners(Widget.Java:1270)
    at org.Eclipse.swt.widgets.Display.runDeferredEvents(Display.Java:3974)
    at org.Eclipse.swt.widgets.Display.applicationNextEventMatchingMask(Display.Java:4875)
    at org.Eclipse.swt.widgets.Display.applicationProc(Display.Java:5226)
    at org.Eclipse.swt.internal.cocoa.OS.objc_msgSendSuper(Native Method)
    at org.Eclipse.swt.widgets.Widget.callSuper(Widget.Java:220)
    at org.Eclipse.swt.widgets.Widget.mouseDownSuper(Widget.Java:1092)
    at org.Eclipse.swt.widgets.Tree.mouseDownSuper(Tree.Java:2052)
    at org.Eclipse.swt.widgets.Widget.mouseDown(Widget.Java:1084)
    at org.Eclipse.swt.widgets.Control.mouseDown(Control.Java:2528)
    at org.Eclipse.swt.widgets.Tree.mouseDown(Tree.Java:2007)
    at org.Eclipse.swt.widgets.Display.windowProc(Display.Java:5471)
    at org.Eclipse.swt.internal.cocoa.OS.objc_msgSendSuper(Native Method)
    at org.Eclipse.swt.widgets.Widget.callSuper(Widget.Java:220)
    at org.Eclipse.swt.widgets.Widget.windowSendEvent(Widget.Java:2095)
    at org.Eclipse.swt.widgets.Shell.windowSendEvent(Shell.Java:2253)
    at org.Eclipse.swt.widgets.Display.windowProc(Display.Java:5535)
    at org.Eclipse.swt.internal.cocoa.OS.objc_msgSendSuper(Native Method)
    at org.Eclipse.swt.widgets.Display.applicationSendEvent(Display.Java:4989)
    at org.Eclipse.swt.widgets.Display.applicationProc(Display.Java:5138)
    at org.Eclipse.swt.internal.cocoa.OS.objc_msgSend(Native Method)
    at org.Eclipse.swt.internal.cocoa.NSApplication.sendEvent(NSApplication.Java:128)
    at org.Eclipse.swt.widgets.Display.readAndDispatch(Display.Java:3610)
    at org.Eclipse.ui.internal.Workbench.runEventLoop(Workbench.Java:2701)
    at org.Eclipse.ui.internal.Workbench.runUI(Workbench.Java:2665)
    at org.Eclipse.ui.internal.Workbench.access$4(Workbench.Java:2499)
    at org.Eclipse.ui.internal.Workbench$7.run(Workbench.Java:679)
    at org.Eclipse.core.databinding.observable.Realm.runWithDefault(Realm.Java:332)
    at org.Eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.Java:668)
    at org.Eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.Java:149)
    at org.Eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.Java:123)
    at org.Eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.Java:196)
    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:344)
    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:597)
    at org.Eclipse.equinox.launcher.Main.invokeFramework(Main.Java:622)
    at org.Eclipse.equinox.launcher.Main.basicRun(Main.Java:577)
    at org.Eclipse.equinox.launcher.Main.run(Main.Java:1410)

セッションデータ:

Eclipse.buildId=M20120208-0800
Java.version=1.6.0_37
Java.vendor=Apple Inc.
BootLoader constants: OS=macosx, Arch=x86_64, WS=cocoa, NL=en_US
Framework arguments:  -product org.Eclipse.epp.package.jee.product -keyring /Users/saraiva/.Eclipse_keyring -showlocation
Command-line arguments:  -os macosx -ws cocoa -Arch x86_64 -product org.Eclipse.epp.package.jee.product -keyring /Users/saraiva/.Eclipse_keyring -showlocation
16
brunohs

プロジェクトがコンプ用ではなく構成されている可能性があります。 .classpathおよび.projectを削除して、既存のソースからプロジェクトを再作成してください。また、ドットで始まる.settingsなど、SVNに誤ってコミットされている場合は、Eclipse内部ディレクトリを削除します。

17
Roman C

編集ファイル

YouProject/.settings/org.Eclipse.wst.common.project.facet.core.xml 

ノードを追加する

<fixed facet="jst.web"/>

問題が解決する場合があります。プロジェクトを閉じてから再度開くか、プロジェクトをEclipseから(コンテンツを削除せずに)削除してから、File/OpenProjectFromFilesystemをリロードする必要があります。

0
fante76