web-dev-qa-db-fra.com

Des problèmes sont survenus lors de l'appel du code du plug-in: "org.Eclipse.jface"

J'ai un nouveau projet Java chez Eclipse de SVN et je viens d'essayer d'ouvrir le projet dans la fenêtre Explorateur de projets d'Eclipse.

Des problèmes sont survenus lors de l'appel du code à partir du plug-in: "org.Eclipse.jface".

Comment pourrais-je résoudre ce problème?

Exception Stack Trace:  

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)

Données de session:  

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
15
brunohs

Votre projet peut être configuré pas pour votre composition. Essayez de supprimer .classpath et .project et de recréer le projet à partir de sources existantes. Supprimez également les répertoires internes d'Eclipse s'ils ont été validés par inadvertance sur le SVN, tels que .settings qui commence par point. 

17
Roman C

Fichier d'édition 

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

ajout de noeud

<fixed facet="jst.web"/>

peut résoudre le problème. Vous devez fermer et rouvrir le projet ou même supprimer le projet d’Eclipse (sans supprimer le contenu), puis Fichier/OpenProjectFromFilesystem pour le recharger.

0
fante76