Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 321909 - NPE when running any Buckminster action
Summary: NPE when running any Buckminster action
Status: RESOLVED WORKSFORME
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: Buckminster (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows Vista
: P3 major (vote)
Target Milestone: ---   Edit
Assignee: buckminster.core-inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-08-05 14:32 EDT by Axel Guckelsberger CLA
Modified: 2019-02-25 14:39 EST (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Axel Guckelsberger CLA 2010-08-05 14:32:29 EDT
Build Identifier: I20100608-0911

If I call "site.p2" or even "buckminster.clean" on my site feature project I get the following exception.


org.eclipse.core.runtime.CoreException: BUILD FAILED
 at org.eclipse.buckminster.ant.AntRunner.handleInvocationTargetException(AntRunner.java:167)
 at org.eclipse.buckminster.ant.AntRunner.run(AntRunner.java:322)
 at org.eclipse.buckminster.ant.actor.AntActor.internalPerform(AntActor.java:254)
 at org.eclipse.buckminster.core.actor.AbstractActor.perform(AbstractActor.java:186)
 at org.eclipse.buckminster.core.internal.actor.PerformManager$DirectActionInvocation.execute(PerformManager.java:143)
 at org.eclipse.buckminster.core.internal.actor.PerformManager.internalPerform(PerformManager.java:454)
 at org.eclipse.buckminster.core.internal.actor.PerformManager.perform(PerformManager.java:293)
 at org.eclipse.buckminster.pde.internal.actor.FragmentsActor.internalPerform(FragmentsActor.java:190)
 at org.eclipse.buckminster.core.actor.AbstractActor.perform(AbstractActor.java:186)
 at org.eclipse.buckminster.core.internal.actor.PerformManager$DirectActionInvocation.execute(PerformManager.java:143)
 at org.eclipse.buckminster.core.internal.actor.PerformManager.internalPerform(PerformManager.java:454)
 at org.eclipse.buckminster.core.internal.actor.PerformManager.perform(PerformManager.java:293)
 at org.eclipse.buckminster.core.internal.actor.PerformManager.perform(PerformManager.java:305)
 at org.eclipse.buckminster.ui.InvokeAction$ActionJob.runInWorkspace(InvokeAction.java:81)
 at org.eclipse.core.internal.resources.InternalWorkspaceJob.run(InternalWorkspaceJob.java:38)
 at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)
Caused by: java.lang.NullPointerException
 at java.util.Hashtable.put(Unknown Source)
 at org.apache.tools.ant.PropertyHelper.setUserProperty(PropertyHelper.java:377)
 at org.apache.tools.ant.Project.setUserProperty(Project.java:543)
 at org.eclipse.ant.internal.core.ant.InternalAntRunner.setProperties(InternalAntRunner.java:233)
 at org.eclipse.ant.internal.core.ant.InternalAntRunner.run(InternalAntRunner.java:593)
 at org.eclipse.ant.internal.core.ant.InternalAntRunner.run(InternalAntRunner.java:495)
 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
 at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
 at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
 at java.lang.reflect.Method.invoke(Unknown Source)
 at org.eclipse.buckminster.ant.AntRunner.run(AntRunner.java:318)
 ... 14 more


Reproducible: Always
Comment 1 Thomas Hallgren CLA 2010-08-05 17:25:49 EDT
This sounds like a duplicate of bug 320586. Can you please try with the latest Buckminster from http://download.eclipse.org/tools/buckminster/headless-3.6 (or updates-3.6 if using the IDE) and see if the problem persists?
Comment 2 Axel Guckelsberger CLA 2010-08-05 17:33:14 EDT
Hi Thomas,

I already use the latest version. Maybe there is anything I can look for in the properties file?
Comment 3 Thomas Hallgren CLA 2010-08-05 17:43:26 EDT
Apparently ant uses Hashtable's rather then HashMap's. A Hashtable cannot accept a null value. This means that the fix in bug 320586 is no good since it will pass a null property to Ant.

Your problem must somehow stem from a property with a null value.
Comment 4 Axel Guckelsberger CLA 2010-08-14 04:57:23 EDT
Hi Thomas.

The property which is null is: user_homedir.
Any idea how to set this?

Greetings
Axel
Comment 5 Thomas Hallgren CLA 2010-08-14 05:05:15 EDT
No, never seen that. The property that's normally used for the users home directory is the Java System property ${user.home}.
Comment 6 Axel Guckelsberger CLA 2010-08-14 08:52:00 EDT
added to my property file:

user_homedir=${user.home}

and it works.

Do not know why this is required now though :-)