Bug 140064 - Error initiating project in Eclipse.
Summary: Error initiating project in Eclipse.
Status: RESOLVED INVALID
Alias: None
Product: Platform
Classification: Eclipse Project
Component: Resources (show other bugs)
Version: 3.1.2   Edit
Hardware: PC Linux
: P3 blocker (vote)
Target Milestone: ---   Edit
Assignee: Platform-Resources-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords: vm
: 141028 145215 (view as bug list)
Depends on:
Blocks:
 
Reported: 2006-05-03 15:59 EDT by Felipe Perina CLA
Modified: 2006-06-05 09:36 EDT (History)
6 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Felipe Perina CLA 2006-05-03 15:59:17 EDT
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
Comment 1 Jerome Lanneluc CLA 2006-05-03 16:21:51 EDT
org.eclipse.core.internal.utils.UniversalUniqueIdentifier.getIPAddress is throwing an NPE.

Moving to Platform Resources.
Comment 2 John Arthorne CLA 2006-05-03 16:40:12 EDT
This looks like a class library bug.  Can you confirm what VM/class library you are using?
Comment 3 Ben Konrath CLA 2006-05-03 16:53:06 EDT
I'd be interested to know which Linux distro you're using as well as the GCJ version you are using.
Comment 4 Tom Tromey CLA 2006-05-03 17:14:36 EDT
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".

Comment 5 Felipe Perina CLA 2006-05-03 19:07:30 EDT
(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).
Comment 6 Felipe Perina CLA 2006-05-03 19:08:31 EDT
(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?
Comment 7 Felipe Perina CLA 2006-05-03 19:22:32 EDT
  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. 
Comment 8 John Arthorne CLA 2006-05-04 10:02:44 EDT
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...
Comment 9 John Arthorne CLA 2006-05-04 11:27:23 EDT
Closing.  This is a bug in GCJ, and a fix will be available soon.
Comment 10 John Arthorne CLA 2006-05-10 15:22:27 EDT
*** Bug 141028 has been marked as a duplicate of this bug. ***
Comment 11 John Arthorne CLA 2006-06-05 09:36:56 EDT
*** Bug 145215 has been marked as a duplicate of this bug. ***