Community
Participate
Working Groups
I downloaded Eclipse, extracted to a folder, and installed VE. I open up Eclipse and try to create a project. This is a error I get once I click "next": !ENTRY org.eclipse.jdt.ui 4 10001 2006-05-03 16:50:25.905 !MESSAGE Internal Error !STACK 1 org.eclipse.core.runtime.CoreException: Problems encountered while setting project description. at org.eclipse.core.internal.resources.Project.setDescription (Project.java:942) at org.eclipse.core.internal.resources.Project.setDescription (Project.java:969) at org.eclipse.jdt.internal.ui.wizards.buildpaths.BuildPathsBlock.addJavaNature (BuildPathsBlock.java:662) at org.eclipse.jdt.ui.wizards.JavaCapabilityConfigurationPage.configureJavaProject (JavaCapabilityConfigurationPage.java:234) at org.eclipse.jdt.internal.ui.wizards.JavaProjectWizardSecondPage.updateProject (JavaProjectWizardSecondPage.java:222) at org.eclipse.jdt.internal.ui.wizards.JavaProjectWizardSecondPage$1.run (JavaProjectWizardSecondPage.java:122) at org.eclipse.ui.actions.WorkspaceModifyDelegatingOperation.execute (WorkspaceModifyDelegatingOperation.java:68) at org.eclipse.ui.actions.WorkspaceModifyOperation$1.run (WorkspaceModifyOperation.java:98) at org.eclipse.core.internal.resources.Workspace.run (Workspace.java:1721) at org.eclipse.ui.actions.WorkspaceModifyOperation.run (WorkspaceModifyOperation.java:110) at org.eclipse.jface.operation.ModalContext$ModalContextThread.run (ModalContext.java:113) !SUBENTRY 1 org.eclipse.core.resources 4 568 2006-05-03 16:50:25.906 !MESSAGE Problems encountered while setting project description. !SUBENTRY 2 org.eclipse.core.resources 4 566 2006-05-03 16:50:25.906 !MESSAGE Error configuring nature: org.eclipse.jdt.core.javanature. !STACK 0 java.lang.ExceptionInInitializerError at java.lang.Class.initializeClass (libgcj.so.7) at org.eclipse.core.internal.localstore.BlobStore.addBlob (BlobStore.java:55) at org.eclipse.core.internal.localstore.HistoryStore2.addState (HistoryStore2.java:86) at org.eclipse.core.internal.localstore.FileSystemResourceManager.write (FileSystemResourceManager.java:783) at org.eclipse.core.internal.resources.File.internalSetContents (File.java:327) at org.eclipse.core.internal.resources.File.setContents (File.java:370) at org.eclipse.core.internal.localstore.FileSystemResourceManager.internalWrite (FileSystemResourceManager.java:307) at org.eclipse.core.internal.resources.Project.writeDescription (Project.java:1052) at org.eclipse.core.internal.resources.Project.setDescription (Project.java:946) at org.eclipse.core.internal.resources.Project.setDescription (Project.java:969) at org.eclipse.jdt.internal.core.JavaProject.setJavaCommand (JavaProject.java:2709) at org.eclipse.jdt.internal.core.JavaProject.addToBuildSpec (JavaProject.java:319) at org.eclipse.jdt.internal.core.JavaProject.configure (JavaProject.java:653) at org.eclipse.core.internal.resources.NatureManager$1.run (NatureManager.java:141) at org.eclipse.core.internal.runtime.InternalPlatform.run (InternalPlatform.java:1044) at org.eclipse.core.runtime.Platform.run (Platform.java:784) at org.eclipse.core.internal.resources.NatureManager.configureNature (NatureManager.java:156) at org.eclipse.core.internal.resources.NatureManager.configureNatures (NatureManager.java:199) at org.eclipse.core.internal.resources.Project.basicSetDescription (Project.java:62) at org.eclipse.core.internal.resources.Project.setDescription (Project.java:940) at org.eclipse.core.internal.resources.Project.setDescription (Project.java:969) at org.eclipse.jdt.internal.ui.wizards.buildpaths.BuildPathsBlock.addJavaNature (BuildPathsBlock.java:662) at org.eclipse.jdt.ui.wizards.JavaCapabilityConfigurationPage.configureJavaProject (JavaCapabilityConfigurationPage.java:234) at org.eclipse.jdt.internal.ui.wizards.JavaProjectWizardSecondPage.updateProject (JavaProjectWizardSecondPage.java:222) at org.eclipse.jdt.internal.ui.wizards.JavaProjectWizardSecondPage$1.run (JavaProjectWizardSecondPage.java:122) at org.eclipse.ui.actions.WorkspaceModifyDelegatingOperation.execute (WorkspaceModifyDelegatingOperation.java:68) at org.eclipse.ui.actions.WorkspaceModifyOperation$1.run (WorkspaceModifyOperation.java:98) at org.eclipse.core.internal.resources.Workspace.run (Workspace.java:1721) at org.eclipse.ui.actions.WorkspaceModifyOperation.run (WorkspaceModifyOperation.java:110) at org.eclipse.jface.operation.ModalContext$ModalContextThread.run (ModalContext.java:113) Caused by: java.lang.NullPointerException at java.net.InetAddress.getAddress (libgcj.so.7) at org.eclipse.core.internal.utils.UniversalUniqueIdentifier.getIPAddress (UniversalUniqueIdentifier.java:246) at org.eclipse.core.internal.utils.UniversalUniqueIdentifier.computeNodeAddress (UniversalUniqueIdentifier.java:195) at org.eclipse.core.internal.utils.UniversalUniqueIdentifier.<clinit> (UniversalUniqueIdentifier.java:41) at java.lang.Class.initializeClass (libgcj.so.7) ...29 more
org.eclipse.core.internal.utils.UniversalUniqueIdentifier.getIPAddress is throwing an NPE. Moving to Platform Resources.
This looks like a class library bug. Can you confirm what VM/class library you are using?
I'd be interested to know which Linux distro you're using as well as the GCJ version you are using.
I agree that this is most likely a libgcj bug. I think the NPE in InetAddress was probably fixed by this commit: 2006-04-07 Andrew Haley <aph@redhat.com> * java/net/InetAddress.java: Throw an UnknownHostException if lookup fails. However, this merely turns the NPE into an UnknownHostException. It is possible that this masks some other, deeper, bug. I don't know offhand. If you're using Fedora Core, this patch ought to show up in an FC5 compiler update. I don't know when -- if it isn't already in there, it will be in the next one, which is "soon".
(In reply to comment #3) > I'd be interested to know which Linux distro you're using as well as the GCJ > version you are using. > I'm running Fedora Core 5, and the GCJ version is 4.1.0 20060304 (Red Hat 4.1.0-3).
(In reply to comment #2) > This looks like a class library bug. Can you confirm what VM/class library you > are using? > I'm not sure, where do I check that?
I'd like to add some more info, this may help you guys... After the error I reported, I can click "ok" on the error window, and actually move ahead on the project creation process (In my case, a Java Project). I can then select options and click "finish". The project is created (although probably incomplete and with errors). When I try to create a Class on this project, another error comes up, and tell me that "that class name is already being used". I can change as much as I want, and that will be the returned. If I chose do cancel, the classes that were "created" are there, totally empty.
Thanks Tom. In this particular case, an UnknownHostException is fine and we handle it in the calling code. This code is just using the IP to generate UUIDs. If the IP is not available (machine is not connected to the internet, for example), then we ignore it and use other local data to generate the UUID. If this will be a blocker for gcj users, I could catch the NPE for now in my code...
Closing. This is a bug in GCJ, and a fix will be available soon.
*** Bug 141028 has been marked as a duplicate of this bug. ***
*** Bug 145215 has been marked as a duplicate of this bug. ***