5 Replies Latest reply: Jan 28, 2010 4:43 AM by Denis Golovin RSS

    [JBDS 2.1.1.GA] Package Explorer failing sometimes

    Marc Tille Novice

      Package Explorer is sometimes failling. I am unable to pinpoint to the cause. Sometimes it works, sometimes it does not.

      The exception is below.

       

      Environment: OSX 10.6.2, Java 5

       

      Thank you.

       

       

       

      Here is the exception:

       

       

      java.lang.NullPointerException

          at org.eclipse.emf.common.notify.impl.BasicNotifierImpl.eNotify(BasicNotifierImpl.java:247)

          at org.eclipse.emf.common.notify.impl.NotifyingListImpl.dispatchNotification(NotifyingListImpl.java:267)

          at org.eclipse.emf.common.notify.impl.NotifyingListImpl.addUnique(NotifyingListImpl.java:300)

          at org.eclipse.emf.common.util.BasicEList.add(BasicEList.java:626)

          at org.eclipse.jem.internal.util.emf.workbench.ProjectResourceSetImpl$SynchronizedResourcesEList.add(ProjectResourceSetImpl.java:73)

          at org.eclipse.jem.internal.util.emf.workbench.ProjectResourceSetImpl.createResource(ProjectResourceSetImpl.java:296)

          at org.eclipse.wst.common.internal.emfworkbench.integration.ProjectResourceSetEditImpl.createResource(ProjectResourceSetEditImpl.java:48)

          at org.eclipse.emf.ecore.resource.impl.ResourceSetImpl.demandCreateResource(ResourceSetImpl.java:239)

          at org.eclipse.jem.internal.util.emf.workbench.ProjectResourceSetImpl.getResource(ProjectResourceSetImpl.java:620)

          at org.eclipse.jst.jee.model.internal.JEE5ModelProvider.getModelResource(JEE5ModelProvider.java:155)

          at org.eclipse.jst.jee.model.internal.EAR5ModelProvider.getModelObject(EAR5ModelProvider.java:50)

          at org.eclipse.jst.jee.model.internal.JEE5ModelProvider.getModelObject(JEE5ModelProvider.java:210)

          at org.eclipse.jst.j2ee.internal.common.classpath.J2EEComponentClasspathContainer.getEARLibDir(J2EEComponentClasspathContainer.java:370)

          at org.eclipse.jst.j2ee.internal.common.classpath.J2EEComponentClasspathContainer.update(J2EEComponentClasspathContainer.java:179)

          at org.eclipse.jst.j2ee.internal.common.classpath.J2EEComponentClasspathContainer.install(J2EEComponentClasspathContainer.java:301)

          at org.eclipse.jst.j2ee.internal.common.classpath.J2EEComponentClasspathInitializer.initialize(J2EEComponentClasspathInitializer.java:29)

          at org.eclipse.jdt.internal.core.JavaModelManager.initializeContainer(JavaModelManager.java:2483)

          at org.eclipse.jdt.internal.core.JavaModelManager.getClasspathContainer(JavaModelManager.java:1702)

          at org.eclipse.jdt.core.JavaCore.getClasspathContainer(JavaCore.java:2553)

          at org.eclipse.jdt.internal.core.JavaProject.resolveClasspath(JavaProject.java:2611)

          at org.eclipse.jdt.internal.core.JavaProject.getResolvedClasspath(JavaProject.java:1872)

          at org.eclipse.jdt.internal.core.JavaModelManager.determineIfOnClasspath(JavaModelManager.java:930)

          at org.eclipse.jdt.internal.core.JavaModelManager.create(JavaModelManager.java:826)

          at org.eclipse.jdt.internal.core.JavaModelManager.create(JavaModelManager.java:756)

          at org.eclipse.jdt.core.JavaCore.create(JavaCore.java:2438)

          at org.eclipse.jdt.internal.ui.workingsets.WorkingSetFilter$WorkingSetCompareEntry.init(WorkingSetFilter.java:70)

          at org.eclipse.jdt.internal.ui.workingsets.WorkingSetFilter$WorkingSetCompareEntry.(WorkingSetFilter.java:45)

          at org.eclipse.jdt.internal.ui.workingsets.WorkingSetFilter.isEnclosing(WorkingSetFilter.java:196)

          at org.eclipse.jdt.internal.ui.workingsets.WorkingSetFilter.select(WorkingSetFilter.java:190)

          at org.eclipse.jdt.internal.ui.viewsupport.ProblemTreeViewer.isFiltered(ProblemTreeViewer.java:310)

          at org.eclipse.jdt.internal.ui.packageview.PackageExplorerPart$PackageExplorerProblemTreeViewer.isFiltered(PackageExplorerPart.java:280)

          at org.eclipse.jdt.internal.ui.viewsupport.ProblemTreeViewer.containsNonFiltered(ProblemTreeViewer.java:291)

          at org.eclipse.jdt.internal.ui.viewsupport.ProblemTreeViewer.hasFilteredChildren(ProblemTreeViewer.java:256)

          at org.eclipse.jdt.internal.ui.viewsupport.ProblemTreeViewer.isExpandable(ProblemTreeViewer.java:244)

          at org.eclipse.jface.viewers.AbstractTreeViewer.isExpandable(AbstractTreeViewer.java:2102)

          at org.eclipse.jface.viewers.AbstractTreeViewer.updatePlus(AbstractTreeViewer.java:2752)

          at org.eclipse.jface.viewers.TreeViewer.updatePlus(TreeViewer.java:842)

          at org.eclipse.jface.viewers.AbstractTreeViewer.createTreeItem(AbstractTreeViewer.java:828)

          at org.eclipse.jface.viewers.AbstractTreeViewer$1.run(AbstractTreeViewer.java:802)

          at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:70)

          at org.eclipse.jface.viewers.AbstractTreeViewer.createChildren(AbstractTreeViewer.java:776)

          at org.eclipse.jface.viewers.TreeViewer.createChildren(TreeViewer.java:634)

          at org.eclipse.jface.viewers.AbstractTreeViewer.internalInitializeTree(AbstractTreeViewer.java:1490)

          at org.eclipse.jface.viewers.TreeViewer.internalInitializeTree(TreeViewer.java:823)

          at org.eclipse.jface.viewers.AbstractTreeViewer$5.run(AbstractTreeViewer.java:1474)

          at org.eclipse.jface.viewers.StructuredViewer.preservingSelection(StructuredViewer.java:1365)

          at org.eclipse.jface.viewers.TreeViewer.preservingSelection(TreeViewer.java:397)

          at org.eclipse.jface.viewers.StructuredViewer.preservingSelection(StructuredViewer.java:1328)

          at org.eclipse.jdt.internal.ui.packageview.PackageExplorerPart$PackageExplorerProblemTreeViewer.preservingSelection(PackageExplorerPart.java:353)

          at org.eclipse.jface.viewers.AbstractTreeViewer.inputChanged(AbstractTreeViewer.java:1467)

          at org.eclipse.jface.viewers.ContentViewer.setInput(ContentViewer.java:274)

          at org.eclipse.jface.viewers.StructuredViewer.setInput(StructuredViewer.java:1603)

          at org.eclipse.jdt.internal.ui.packageview.PackageExplorerPart.createPartControl(PackageExplorerPart.java:588)

          at org.eclipse.ui.internal.ViewReference.createPartHelper(ViewReference.java:371)

          at org.eclipse.ui.internal.ViewReference.createPart(ViewReference.java:230)

          at org.eclipse.ui.internal.WorkbenchPartReference.getPart(WorkbenchPartReference.java:594)

          at org.eclipse.ui.internal.Perspective.showView(Perspective.java:2131)

          at org.eclipse.ui.internal.WorkbenchPage.busyShowView(WorkbenchPage.java:1062)

          at org.eclipse.ui.internal.WorkbenchPage$19.run(WorkbenchPage.java:3773)

          at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:70)

          at org.eclipse.ui.internal.WorkbenchPage.showView(WorkbenchPage.java:3770)

          at org.eclipse.ui.internal.WorkbenchPage.showView(WorkbenchPage.java:3746)

          at org.eclipse.ui.handlers.ShowViewHandler.openView(ShowViewHandler.java:165)

          at org.eclipse.ui.handlers.ShowViewHandler.execute(ShowViewHandler.java:80)

          at org.eclipse.ui.internal.handlers.HandlerProxy.execute(HandlerProxy.java:281)

          at org.eclipse.core.commands.Command.executeWithChecks(Command.java:476)

          at org.eclipse.core.commands.ParameterizedCommand.executeWithChecks(ParameterizedCommand.java:508)

          at org.eclipse.ui.internal.handlers.HandlerService.executeCommand(HandlerService.java:169)

          at org.eclipse.ui.internal.handlers.SlaveHandlerService.executeCommand(SlaveHandlerService.java:247)

          at org.eclipse.ui.menus.CommandContributionItem.handleWidgetSelection(CommandContributionItem.java:619)

          at org.eclipse.ui.menus.CommandContributionItem.access$10(CommandContributionItem.java:605)

          at org.eclipse.ui.menus.CommandContributionItem$4.handleEvent(CommandContributionItem.java:595)

          at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)

          at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1561)

          at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1585)

          at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1570)

          at org.eclipse.swt.widgets.Widget.notifyListeners(Widget.java:1360)

          at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3482)

          at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3068)

          at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2384)

          at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2348)

          at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2200)

          at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:495)

          at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:288)

          at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:490)

          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:193)

          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:386)

          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:549)

          at org.eclipse.equinox.launcher.Main.basicRun(Main.java:504)

          at org.eclipse.equinox.launcher.Main.run(Main.java:1236)