Headless build fails with NullPointerException [message #56496] |
Thu, 16 April 2009 21:17  |
Eclipse User |
|
|
|
I'm following the instructions at
http://help.eclipse.org/ganymede/topic/org.eclipse.pde.doc.u ser/tasks/pde_product_build.htm
to build an set up an automated build for an RCP application. The build
doesn't get far, but terminates with a NullPointerException:
[java] Executing 'C:\Program Files\Java\jdk1.5.0_17\jre\bin\java.exe'
with arguments:
[java] '-classpath'
[java] 'C:\Program
Files\Eclipse\plugins\org.eclipse.equinox.launcher_1.0.101.R 34x_v20081125.jar'
[java] 'org.eclipse.equinox.launcher.Main'
[java] '-application'
[java] 'org.eclipse.ant.core.antRunner'
[java] '-buildfile'
[java] 'C:\Program
Files\Eclipse/plugins/org.eclipse.pde.build_3.4.1.R34x_v2008 1217/scripts/productBuild/productBuild.xml'
[java] '-Dbuilder=C:\build'
[java]
[java] The ' characters around the executable and arguments are
[java] not part of the command.
[java] Buildfile: C:\Program
Files\Eclipse/plugins/org.eclipse.pde.build_3.4.1.R34x_v2008 1217/scripts/productBuild/productBuild.xml
[java] main:
[java] preBuild:
[java] preSetup:
[java] checkLocalMaps:
[java] getMapFiles:
[java] [concat] No existing resources and no nested text, doing
nothing
[java] postSetup:
[java] checkLocalBase:
[java] getBaseComponents:
[java] generateFeature:
[java] fetch:
[java] generateFeature:
[java] BUILD FAILED
[java] C:\Program
Files\Eclipse\plugins\org.eclipse.pde.build_3.4.1.R34x_v2008 1217\scripts\productBuild\productBuild.xml:25:
The following error occurred while executing this line:
[java] C:\Program
Files\Eclipse\plugins\org.eclipse.pde.build_3.4.1.R34x_v2008 1217\scripts\productBuild\productBuild.xml:53:
java.lang.NullPointerException
[java] Total time: 2 seconds
When run with -verbose, this is where the exception appears to be thrown:
[java] java.lang.NullPointerException
[java] at
org.eclipse.pde.internal.build.site.BuildTimeSite.getRegistr y(BuildTimeSite.java:86)
[java] at
org.eclipse.pde.internal.build.FeatureGenerator.createFeatur e(FeatureGenerator.java:263)
[java] at
org.eclipse.pde.internal.build.FeatureGenerator.generate(Fea tureGenerator.java:130)
[java] at
org.eclipse.pde.internal.build.tasks.FeatureGeneratorTask.ru n(FeatureGeneratorTask.java:44)
[java] at
org.eclipse.pde.internal.build.tasks.FeatureGeneratorTask.ex ecute(FeatureGeneratorTask.java:36)
Any idea what could be going wrong here?
|
|
|
|
|
Re: Headless build fails with NullPointerException [message #57484 is a reply to message #57276] |
Tue, 21 April 2009 15:29  |
Eclipse User |
|
|
|
Andrew Niefer wrote:
> This is probably a problem with the "baseLocation" property.
> Make sure the directory it points to exists. If you don't have a
> baseLocation, either don't define the property, or leave it blank.
That's it!
Bad:
baseLocation="C:/Program Files/Eclipse"
Good:
baseLocation=C:/Program Files/Eclipse
|
|
|
|
Re: Headless build fails with NullPointerException [message #595947 is a reply to message #56496] |
Mon, 20 April 2009 13:26  |
Eclipse User |
|
|
|
This is probably a problem with the "baseLocation" property.
Make sure the directory it points to exists. If you don't have a
baseLocation, either don't define the property, or leave it blank.
-Andrew
Eric Jain wrote:
> I'm following the instructions at
> http://help.eclipse.org/ganymede/topic/org.eclipse.pde.doc.u ser/tasks/pde_product_build.htm
> to build an set up an automated build for an RCP application. The build
> doesn't get far, but terminates with a NullPointerException:
>
> [java] Executing 'C:\Program
> Files\Java\jdk1.5.0_17\jre\bin\java.exe' with arguments:
> [java] '-classpath'
> [java] 'C:\Program
> Files\Eclipse\plugins\org.eclipse.equinox.launcher_1.0.101.R 34x_v20081125.jar'
>
> [java] 'org.eclipse.equinox.launcher.Main'
> [java] '-application'
> [java] 'org.eclipse.ant.core.antRunner'
> [java] '-buildfile'
> [java] 'C:\Program
> Files\Eclipse/plugins/org.eclipse.pde.build_3.4.1.R34x_v2008 1217/scripts/productBuild/productBuild.xml'
>
> [java] '-Dbuilder=C:\build'
> [java] [java] The ' characters around the executable and
> arguments are
> [java] not part of the command.
> [java] Buildfile: C:\Program
> Files\Eclipse/plugins/org.eclipse.pde.build_3.4.1.R34x_v2008 1217/scripts/productBuild/productBuild.xml
>
> [java] main:
> [java] preBuild:
> [java] preSetup:
> [java] checkLocalMaps:
> [java] getMapFiles:
> [java] [concat] No existing resources and no nested text, doing
> nothing
> [java] postSetup:
> [java] checkLocalBase:
> [java] getBaseComponents:
> [java] generateFeature:
> [java] fetch:
> [java] generateFeature:
> [java] BUILD FAILED
> [java] C:\Program
> Files\Eclipse\plugins\org.eclipse.pde.build_3.4.1.R34x_v2008 1217\scripts\productBuild\productBuild.xml:25:
> The following error occurred while executing this line:
> [java] C:\Program
> Files\Eclipse\plugins\org.eclipse.pde.build_3.4.1.R34x_v2008 1217\scripts\productBuild\productBuild.xml:53:
> java.lang.NullPointerException
> [java] Total time: 2 seconds
>
> When run with -verbose, this is where the exception appears to be thrown:
>
> [java] java.lang.NullPointerException
> [java] at
> org.eclipse.pde.internal.build.site.BuildTimeSite.getRegistr y(BuildTimeSite.java:86)
>
> [java] at
> org.eclipse.pde.internal.build.FeatureGenerator.createFeatur e(FeatureGenerator.java:263)
>
> [java] at
> org.eclipse.pde.internal.build.FeatureGenerator.generate(Fea tureGenerator.java:130)
>
> [java] at
> org.eclipse.pde.internal.build.tasks.FeatureGeneratorTask.ru n(FeatureGeneratorTask.java:44)
>
> [java] at
> org.eclipse.pde.internal.build.tasks.FeatureGeneratorTask.ex ecute(FeatureGeneratorTask.java:36)
>
>
> Any idea what could be going wrong here?
>
>
|
|
|
Re: Headless build fails with NullPointerException [message #596024 is a reply to message #57276] |
Tue, 21 April 2009 15:29  |
Eclipse User |
|
|
|
Andrew Niefer wrote:
> This is probably a problem with the "baseLocation" property.
> Make sure the directory it points to exists. If you don't have a
> baseLocation, either don't define the property, or leave it blank.
That's it!
Bad:
baseLocation="C:/Program Files/Eclipse"
Good:
baseLocation=C:/Program Files/Eclipse
|
|
|
Powered by
FUDForum. Page generated in 0.06427 seconds