NPE on project import
NPE on project import
- Subject: NPE on project import
- From: Patrick Robinson <email@hidden>
- Date: Tue, 8 Jul 2008 22:39:15 -0400
I asked about this last week on the WOLips list, but that was maybe
the wrong place.
I have eclipse 3.3.2 and the newest stable wolips (3.3.5311) on two
machines (a powermac G5, and a Mac Book Pro), both still running Tiger.
I have a project on my G5 that I need to import into eclipse on my
laptop, but the import operation fails - it throws a
NullPointerException. Subsequently, the project won't open; it just
throws a different NPE.
There was a thread ("That dreaded eclipse NPE again") on this list
(around a month ago) about this issue, but there was no resolution.
Has anyone else experienced this? Would you think there's something
strange about my project that's causing this?
Here's what appears in the exported Error Log from the failed import
(I'll show the trace from the failed project open after that):
----------
!ENTRY org.eclipse.core.resources 4 2 2008-07-08 22:16:02.020
!MESSAGE Problems occurred when invoking code from plug-in:
"org.eclipse.core.resources".
!STACK 0
java.lang.NullPointerException
at org.eclipse.jdt.internal.compiler.util.HashtableOfObjectToInt.get
(HashtableOfObjectToInt.java:71)
at org.eclipse.jdt.internal.core.JavaModelManager
$VariablesAndContainersSaveHelper.saveNewId(JavaModelManager.java:3453)
at org.eclipse.jdt.internal.core.JavaModelManager
$VariablesAndContainersSaveHelper.saveClasspathEntry
(JavaModelManager.java:3407)
at org.eclipse.jdt.internal.core.JavaModelManager
$VariablesAndContainersSaveHelper.saveClasspathEntries
(JavaModelManager.java:3402)
at org.eclipse.jdt.internal.core.JavaModelManager
$VariablesAndContainersSaveHelper.saveContainers
(JavaModelManager.java:3444)
at org.eclipse.jdt.internal.core.JavaModelManager
$VariablesAndContainersSaveHelper.saveProjects(JavaModelManager.java:
3508)
at org.eclipse.jdt.internal.core.JavaModelManager
$VariablesAndContainersSaveHelper.save(JavaModelManager.java:3336)
at
org.eclipse.jdt.internal.core.JavaModelManager.saveVariablesAndContainer
s(JavaModelManager.java:3239)
at org.eclipse.jdt.internal.core.JavaModelManager.saving
(JavaModelManager.java:3551)
at org.eclipse.core.internal.resources.SaveManager.executeLifecycle
(SaveManager.java:343)
at org.eclipse.core.internal.resources.SaveManager$1.run
(SaveManager.java:160)
at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:37)
at org.eclipse.core.internal.resources.SaveManager.broadcastLifecycle
(SaveManager.java:163)
at org.eclipse.core.internal.resources.SaveManager.save
(SaveManager.java:982)
at org.eclipse.core.internal.resources.DelayedSnapshotJob.run
(DelayedSnapshotJob.java:44)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)
----------
And here's what I see when I try to open the project:
----------
!ENTRY org.eclipse.jface 4 2 2008-07-08 22:16:39.697
!MESSAGE Problems occurred when invoking code from plug-in:
"org.eclipse.jface".
!STACK 0
java.lang.NullPointerException
at
org.eclipse.jdt.internal.ui.packageview.ClassPathContainer.getChildren
(ClassPathContainer.java:138)
at
org.eclipse.jdt.internal.ui.packageview.PackageExplorerContentProvider.g
etContainerPackageFragmentRoots(PackageExplorerContentProvider.java:334)
at
org.eclipse.jdt.internal.ui.packageview.PackageExplorerContentProvider.g
etChildren(PackageExplorerContentProvider.java:269)
at
org.objectstyle.wolips.jdt.ui.WOPackageExplorerContentProvider.getChildr
en(WOPackageExplorerContentProvider.java:105)
at org.eclipse.jface.viewers.AbstractTreeViewer.getRawChildren
(AbstractTreeViewer.java:1320)
at org.eclipse.jface.viewers.TreeViewer.getRawChildren
(TreeViewer.java:378)
at
org.eclipse.jdt.internal.ui.viewsupport.ProblemTreeViewer.hasFilteredChi
ldren(ProblemTreeViewer.java:250)
at org.eclipse.jdt.internal.ui.packageview.PackageExplorerPart
$PackageExplorerProblemTreeViewer.isFiltered(PackageExplorerPart.java:
287)
at org.eclipse.jdt.internal.ui.viewsupport.ProblemTreeViewer.filter
(ProblemTreeViewer.java:269)
at
org.eclipse.jdt.internal.ui.viewsupport.ProblemTreeViewer.getFilteredChi
ldren(ProblemTreeViewer.java:258)
at org.eclipse.jface.viewers.AbstractTreeViewer.getSortedChildren
(AbstractTreeViewer.java:581)
at org.eclipse.jface.viewers.AbstractTreeViewer$1.run
(AbstractTreeViewer.java:778)
at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:
67)
at org.eclipse.jface.viewers.AbstractTreeViewer.createChildren
(AbstractTreeViewer.java:755)
at org.eclipse.jface.viewers.TreeViewer.createChildren
(TreeViewer.java:627)
at org.eclipse.jface.viewers.AbstractTreeViewer.setExpandedState
(AbstractTreeViewer.java:2363)
at
org.eclipse.jdt.internal.ui.packageview.PackageExplorerActionGroup.handl
eDoubleClick(PackageExplorerActionGroup.java:299)
at org.eclipse.jdt.internal.ui.packageview.PackageExplorerPart
$4.doubleClick(PackageExplorerPart.java:607)
at org.eclipse.jface.viewers.StructuredViewer$1.run
(StructuredViewer.java:799)
at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:37)
at org.eclipse.core.runtime.Platform.run(Platform.java:857)
at org.eclipse.ui.internal.JFaceUtil$1.run(JFaceUtil.java:46)
at org.eclipse.jface.util.SafeRunnable.run(SafeRunnable.java:199)
at org.eclipse.jface.viewers.StructuredViewer.fireDoubleClick
(StructuredViewer.java:797)
at org.eclipse.jface.viewers.AbstractTreeViewer.handleDoubleSelect
(AbstractTreeViewer.java:1387)
at org.eclipse.jface.viewers.StructuredViewer$4.widgetDefaultSelected
(StructuredViewer.java:1173)
at org.eclipse.jface.util.OpenStrategy.fireDefaultSelectionEvent
(OpenStrategy.java:237)
at org.eclipse.jface.util.OpenStrategy.access$0(OpenStrategy.java:234)
at org.eclipse.jface.util.OpenStrategy$1.handleEvent
(OpenStrategy.java:295)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:66)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1495)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1519)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1504)
at org.eclipse.swt.widgets.Widget.notifyListeners(Widget.java:1295)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3350)
at org.eclipse.swt.widgets.Control.sendTrackEvents(Control.java:2758)
at org.eclipse.swt.widgets.Control.kEventControlTrack(Control.java:
1961)
at org.eclipse.swt.widgets.Widget.controlProc(Widget.java:367)
at org.eclipse.swt.widgets.Display.controlProc(Display.java:827)
at org.eclipse.swt.internal.carbon.OS.CallNextEventHandler(Native
Method)
at org.eclipse.swt.widgets.Tree.kEventMouseDown(Tree.java:2363)
at org.eclipse.swt.widgets.Widget.mouseProc(Widget.java:1262)
at org.eclipse.swt.widgets.Display.mouseProc(Display.java:2815)
at org.eclipse.swt.internal.carbon.OS.SendEventToEventTarget(Native
Method)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:2934)
at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2389)
at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2353)
at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2219)
at org.eclipse.ui.internal.Workbench$4.run(Workbench.java:466)
at org.eclipse.core.databinding.observable.Realm.runWithDefault
(Realm.java:289)
at org.eclipse.ui.internal.Workbench.createAndRunWorkbench
(Workbench.java:461)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
at org.eclipse.ui.internal.ide.application.IDEApplication.start
(IDEApplication.java:106)
at org.eclipse.equinox.internal.app.EclipseAppHandle.run
(EclipseAppHandle.java:169)
at
org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplicat
ion(EclipseAppLauncher.java:106)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start
(EclipseAppLauncher.java:76)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run
(EclipseStarter.java:363)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run
(EclipseStarter.java:176)
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:585)
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:508)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:447)
at org.eclipse.equinox.launcher.Main.run(Main.java:1173)
----------
- Patrick
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden