Skip to main content

Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Equinox » Problem with eclipse.publish.featuresAndBundles(NullPointer exception due to p2.inf?)
Problem with eclipse.publish.featuresAndBundles [message #1069304] Mon, 15 July 2013 16:25 Go to next message
Gerald Rosenberg is currently offline Gerald RosenbergFriend
Messages: 106
Registered: July 2009
Senior Member
Using the following ant target works for all of my IUs except for one bundle that contains a p2.inf. For that one bundle, I get a NullPointerException and the content.xml is truncated at what appears to be a random line.

    <target name="generate">
            category="file:${category}" >
                <features dir="${srcRepo}/features/" />
                <bundles  dir="${srcRepo}/plugins/"  />

The content of the p2.inf is here:

Is there something wrong with my p2.inf? All it is intended to do is adjust the start level of the bundle.

Would really appreciate any help or suggestions.


The error message produced when running the target is:

[eclipse.publish.featuresAndBundles] Generating metadata for ..
[eclipse.publish.featuresAndBundles] java.lang.NullPointerException
[eclipse.publish.featuresAndBundles] 	at
[eclipse.publish.featuresAndBundles] 	at
[eclipse.publish.featuresAndBundles] 	at
[eclipse.publish.featuresAndBundles] 	at org.eclipse.equinox.internal.p2.metadata.repository.MetadataRepositoryIO$Writer.write(
[eclipse.publish.featuresAndBundles] 	at org.eclipse.equinox.internal.p2.metadata.repository.MetadataRepositoryIO.write(
[eclipse.publish.featuresAndBundles] 	at
[eclipse.publish.featuresAndBundles] 	at org.eclipse.equinox.internal.p2.metadata.repository.LocalMetadataRepository.addInstallableUnits(
[eclipse.publish.featuresAndBundles] 	at org.eclipse.equinox.p2.publisher.Publisher.savePublishedIUs(

Re: Problem with eclipse.publish.featuresAndBundles [message #1839176 is a reply to message #1069304] Tue, 16 March 2021 20:30 Go to previous message
Adam Saturna is currently offline Adam SaturnaFriend
Messages: 4
Registered: March 2021
Junior Member
This is super old but I have ran into the same issue and after extensive p2 source debugging it lead me to a simple problem:

My update site contained a duplicate bundle (different file name but same version + symbolic name in the manifest). Only one of these bundles contained a p2.inf file.

After removing the duplicate bundle, the process worked without any issues.
No guarantees that the author has experienced the problem due to the same issue but maybe this lead will help someone in the future.
Previous Topic:Problem with org.eclipse.core.resources.ResourcesPlugin initialization
Next Topic: javax.annotation : osgi uses constraint violation
Goto Forum:

Current Time: Sat Sep 24 23:58:51 GMT 2022

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

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

Back to the top