Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Buckminster » Every buckminster action fails with NPE
Every buckminster action fails with NPE [message #1451135] Thu, 23 October 2014 11:38 Go to next message
Christoph Keimel is currently offline Christoph KeimelFriend
Messages: 479
Registered: December 2010
Location: Germany
Senior Member
Hello

After updating the buckminster feature to 1.6.0.v20140801-0035 every action fails. Even buckminster.clean fails with a NPE.

Has anyone seen this error? Anything I can do about it?

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:195)
	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.InvokeActionJob.runInWorkspace(InvokeActionJob.java:67)
	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(Hashtable.java:459)
	at org.apache.tools.ant.PropertyHelper.setUserProperty(PropertyHelper.java:750)
	at org.apache.tools.ant.Project.setUserProperty(Project.java:563)
	at org.eclipse.ant.internal.core.ant.InternalAntRunner.setProperties(InternalAntRunner.java:267)
	at org.eclipse.ant.internal.core.ant.InternalAntRunner.run(InternalAntRunner.java:632)
	at org.eclipse.ant.internal.core.ant.InternalAntRunner.run(InternalAntRunner.java:525)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:483)
	at org.eclipse.buckminster.ant.AntRunner.run(AntRunner.java:318)
	... 9 more
BUILD FAILED: java.lang.NullPointerException


Thanks!

Christoph
Re: Every buckminster action fails with NPE [message #1451148 is a reply to message #1451135] Thu, 23 October 2014 12:03 Go to previous messageGo to next message
Christoph Keimel is currently offline Christoph KeimelFriend
Messages: 479
Registered: December 2010
Location: Germany
Senior Member
Using the DEBUG Logging, I noticed that right before the build fails buckminster attempts to set an ant property:

[ant] Setting ro project property: eclipse.buildId -> 4.4.1.M20140925-0400
[ant] Setting ro project property: osgi.configuration.area.default -> null
org.eclipse.core.runtime.CoreException: BUILD FAILED


The workaround I found to keep my build working was to add the following empty property declarations the configuration/config.ini of my eclipse installation.

osgi.configuration.area.default=
osgi.user.area.default=
osgi.user.area=


This seems like a bug to me, so I filed Bug 448478.
Re: Every buckminster action fails with NPE [message #1451162 is a reply to message #1451148] Thu, 23 October 2014 12:23 Go to previous messageGo to next message
Ed Willink is currently offline Ed WillinkFriend
Messages: 5625
Registered: July 2009
Senior Member
Hi

What version of ANT are you using?

I've noticed that 1.9.4 is now available and it causes some XSLT scripts
to fail under Buckminster 4.2 with apparently undefined variables. I've
yet to diagnose the problem, but bad variable defaults seems
suspiciously similar to your issue.

Regards

Ed Willink


On 23/10/2014 13:03, Christoph Keimel wrote:
> Using the DEBUG Logging, I noticed that right before the build fails
> buckminster attempts to set an ant property:
>
> [ant] Setting ro project property: eclipse.buildId -> 4.4.1.M20140925-0400
> [ant] Setting ro project property: osgi.configuration.area.default -> null
> org.eclipse.core.runtime.CoreException: BUILD FAILED
>
> The workaround I found to keep my build working was to add the following
> empty property declarations the configuration/config.ini of my eclipse
> installation.
>
> osgi.configuration.area.default=
> osgi.user.area.default=
> osgi.user.area=
>
> This seems like a bug to me, so I filed
> https://bugs.eclipse.org/bugs/show_bug.cgi?id=448478.
Re: Every buckminster action fails with NPE [message #1451205 is a reply to message #1451162] Thu, 23 October 2014 13:31 Go to previous messageGo to next message
Christoph Keimel is currently offline Christoph KeimelFriend
Messages: 479
Registered: December 2010
Location: Germany
Senior Member
Looks like I've got ANT version 1.9.2, at least that is the version of the org.apache.ant plug-in.
Re: Every buckminster action fails with NPE [message #1451206 is a reply to message #1451162] Thu, 23 October 2014 13:33 Go to previous message
Christoph Keimel is currently offline Christoph KeimelFriend
Messages: 479
Registered: December 2010
Location: Germany
Senior Member
Looks like I have ANT version 1.9.2 (that is the version of the plug-in org.apache.ant)
Previous Topic:Difference between 3.6 and 3.7?
Next Topic:How can I run buckminster on 64bit eclipse?
Goto Forum:
  


Current Time: Tue Feb 20 00:17:18 GMT 2018

Powered by FUDForum. Page generated in 0.02140 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software