- This topic has 3 replies, 2 voices, and was last updated 20 years, 3 months ago by Riyad Kalla.
-
AuthorPosts
-
ealfarotxMemberOperating System and version: Windows 2003
Eclipse version: 3.0.0
Eclipse build id: 200406251208
Fresh Eclipse install (y/n): y
If not, was it upgraded to its current version using the update manager?
Other installed external plugins: Rational ClearCase
Number of plugins in the <eclipse>/plugins directory that begin with org.eclipse.pde.*: 8
MyEclipse version: 3.7.200
Eclipse JDK version: j2sdk1.4.2_04
Application Server JDK version: j2sdk1.4.2_04I installed Eclipse and I created the demos/tutorials for webapp and Struts Demo successfully and deployed them to Tomcat 5.0 without any problems. The problem is that when I exit Eclipse and open it again it shows me the folders for both projects, but it is not able to load any resources. When I select the project and do a refresh it shows a popup telling to chech the log file. I get an exception on the .log file
!ENTRY org.eclipse.ui 4 0 Aug 09, 2004 12:47:45.808
!MESSAGE java.lang.NullPointerException
!STACK 0
java.lang.NullPointerException
at com.genuitec.eclipse.j2eedt.core.J2EEContainerInitializer.�Ä�¢(Unknown Source)
at com.genuitec.eclipse.j2eedt.core.J2EEContainerInitializer.initialize(Unknown Source)
at org.eclipse.jdt.internal.core.JavaModelManager.initializeContainer(JavaModelManager.java:1261)
at org.eclipse.jdt.internal.core.JavaModelManager.getClasspathContainer(JavaModelManager.java:835)
at org.eclipse.jdt.core.JavaCore.getClasspathContainer(JavaCore.java:1184)
at org.eclipse.jdt.internal.core.JavaProject.getResolvedClasspath(JavaProject.java:1888)
at org.eclipse.jdt.internal.core.JavaProject.getResolvedClasspath(JavaProject.java:1798)
at org.eclipse.jdt.core.JavaCore.setClasspathContainer(JavaCore.java:3407)
at org.eclipse.jdt.internal.launching.JREContainerInitializer.initialize(JREContainerInitializer.java:51)
at org.eclipse.jdt.internal.core.JavaModelManager.initializeContainer(JavaModelManager.java:1261)
at org.eclipse.jdt.internal.core.JavaModelManager.getClasspathContainer(JavaModelManager.java:835)
at org.eclipse.jdt.core.JavaCore.getClasspathContainer(JavaCore.java:1184)
at org.eclipse.jdt.internal.core.JavaProject.getResolvedClasspath(JavaProject.java:1888)
at org.eclipse.jdt.internal.core.JavaProject.getResolvedClasspath(JavaProject.java:1798)
at org.eclipse.jdt.internal.core.JavaProject.buildStructure(JavaProject.java:266)
at org.eclipse.jdt.internal.core.Openable.generateInfos(Openable.java:183)
at org.eclipse.jdt.internal.core.JavaElement.openWhenClosed(JavaElement.java:572)
at org.eclipse.jdt.internal.core.JavaElement.getElementInfo(JavaElement.java:309)
at org.eclipse.jdt.internal.core.JavaElement.getElementInfo(JavaElement.java:295)
at org.eclipse.jdt.internal.core.JavaElement.getChildren(JavaElement.java:250)
at org.eclipse.jdt.internal.core.JavaProject.getPackageFragmentRoots(JavaProject.java:1569)
at org.eclipse.jdt.ui.StandardJavaElementContentProvider.getPackageFragmentRoots(StandardJavaElementContentProvider.java:249)
at org.eclipse.jdt.ui.StandardJavaElementContentProvider.getChildren(StandardJavaElementContentProvider.java:167)
at org.eclipse.jdt.internal.ui.packageview.PackageExplorerContentProvider.getChildren(PackageExplorerContentProvider.java:130)
at org.eclipse.jdt.internal.ui.packageview.PackageExplorerPart$PackageExplorerProblemTreeViewer.getFilteredChildren(PackageExplorerPart.java:239)
at org.eclipse.jface.viewers.StructuredViewer.getSortedChildren(StructuredViewer.java:585)
at org.eclipse.jface.viewers.AbstractTreeViewer$1.run(AbstractTreeViewer.java:359)
at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:69)
at org.eclipse.jface.viewers.AbstractTreeViewer.createChildren(AbstractTreeViewer.java:342)
at org.eclipse.jface.viewers.AbstractTreeViewer.handleTreeExpand(AbstractTreeViewer.java:754)
at org.eclipse.jface.viewers.AbstractTreeViewer$4.treeExpanded(AbstractTreeViewer.java:765)
at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:179)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:82)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:796)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:820)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:805)
at org.eclipse.swt.widgets.Tree.wmNotifyChild(Tree.java:2074)
at org.eclipse.swt.widgets.Control.WM_NOTIFY(Control.java:4002)
at org.eclipse.swt.widgets.Composite.WM_NOTIFY(Composite.java:722)
at org.eclipse.swt.widgets.Control.windowProc(Control.java:3019)
at org.eclipse.swt.widgets.Display.windowProc(Display.java:3338)
at org.eclipse.swt.internal.win32.OS.CallWindowProcW(Native Method)
at org.eclipse.swt.internal.win32.OS.CallWindowProc(OS.java:1391)
at org.eclipse.swt.widgets.Tree.callWindowProc(Tree.java:170)
at org.eclipse.swt.widgets.Tree.WM_LBUTTONDOWN(Tree.java:1668)
at org.eclipse.swt.widgets.Control.windowProc(Control.java:3001)
at org.eclipse.swt.widgets.Display.windowProc(Display.java:3338)
at org.eclipse.swt.internal.win32.OS.DispatchMessageW(Native Method)
at org.eclipse.swt.internal.win32.OS.DispatchMessage(OS.java:1467)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:2429)
at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:1377)
at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:1348)
at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:254)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:141)
at org.eclipse.ui.internal.ide.IDEApplication.run(IDEApplication.java:96)
at org.eclipse.core.internal.runtime.PlatformActivator$1.run(PlatformActivator.java:335)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:273)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:129)
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:324)
at org.eclipse.core.launcher.Main.basicRun(Main.java:183)
at org.eclipse.core.launcher.Main.run(Main.java:644)
at org.eclipse.core.launcher.Main.main(Main.java:628)
Riyad KallaMemberThis does sound strange… what happens if you close all edtiros and close the projects, then restart Eclipse and then open the projects? Does that work?
Can you erase the <workspace dir>\configuration directory and restart Eclipse to see if that helps?
ealfarotxMemberI reinstalled Eclipse and recreated the tutorials and now if I close all editors and projects before exiting everything works fine when I restart Eclipse. I even left the HelloWorld project open (webapp) with some file open and everything works, but if I do that with the StrutsDemo project it breaks and I cannot get other projects to load as well. At least I have a solution now where I will make sure to close my projects before exiting Eclipse. It is kind of annoying though and I would not want to lose or break other projects if I forget to do close a Struts project.
Riyad KallaMemberI agree this is very annoying and I’m not able to reproduce it locally either so I can’t provide walk-through steps for the devs…
We are about to release our 3.8 GA release later this week, if this continues to occur with that please let us know and we can dig deeper into this.
-
AuthorPosts