Skip to main content

Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » P2 dev » NPE when accessing Update-site
NPE when accessing Update-site [message #514831] Tue, 16 February 2010 18:38
Fabian Baboschi is currently offline Fabian BaboschiFriend
Messages: 41
Registered: December 2009
I have a problem with my p2 installation and I don't know where and why.
I created a p2 product using the 3.4.2 release.
I am able to run the application and use it without p2. I get a null pointer exception though in a very specific case.

1. I run software updates, I add a site, then install a few packages from that site (e.g subclipse required packages). This works.
2. I restart my product. I open the Software updates page, I select another feature from the same site (e.g Subversion Revision Graph). It checks ok, but exactly when it tries to install it, it gives the following NPE.

!ENTRY org.eclipse.equinox.p2.engine 4 4 2010-02-16 20:18:23.372
!MESSAGE An error occurred while collecting items to be installed
!SUBENTRY 1 org.eclipse.equinox.p2.engine 4 0 2010-02-16 20:18:23.372
at<init>(Unknown Source)
at org.eclipse.equinox.internal.provisional.p2.directorywatcher .RepositoryListener.synchronizeCurrentFiles(RepositoryListen
at org.eclipse.equinox.internal.provisional.p2.directorywatcher .RepositoryListener. <init>(
at org.eclipse.equinox.internal.p2.extensionlocation.ExtensionL ocationArtifactRepository.ensureInitialized(ExtensionLocatio
at org.eclipse.equinox.internal.p2.extensionlocation.ExtensionL ocationArtifactRepository.getProperties(ExtensionLocationArt
at org.eclipse.equinox.internal.p2.artifact.repository.Artifact RepositoryManager.addRepository(ArtifactRepositoryManager.ja va:106)
at org.eclipse.equinox.internal.p2.artifact.repository.Artifact RepositoryManager.addRepository(ArtifactRepositoryManager.ja va:90)
at org.eclipse.equinox.internal.p2.artifact.repository.Artifact RepositoryManager.getRepository(ArtifactRepositoryManager.ja va:345)
at org.eclipse.equinox.internal.p2.artifact.repository.Artifact RepositoryManager.loadRepository(ArtifactRepositoryManager.j ava:395)
at org.eclipse.equinox.internal.p2.artifact.repository.Artifact RepositoryManager.loadRepository(ArtifactRepositoryManager.j ava:389)
at org.eclipse.equinox.internal.p2.touchpoint.eclipse.Util.getA ggregatedBundleRepository(
at org.eclipse.equinox.internal.p2.touchpoint.eclipse.Util.getA ggregatedBundleRepository(
at org.eclipse.equinox.internal.p2.touchpoint.eclipse.actions.C ollectAction.collect(
at org.eclipse.equinox.internal.p2.touchpoint.eclipse.actions.C ollectAction.execute(
at org.eclipse.equinox.internal.provisional.p2.engine.Phase.mai nPerform(
at org.eclipse.equinox.internal.provisional.p2.engine.Phase.per form(
at org.eclipse.equinox.internal.provisional.p2.engine.Installab leUnitPhase.perform(
at org.eclipse.equinox.internal.provisional.p2.engine.Phase.per form(
at org.eclipse.equinox.internal.provisional.p2.engine.PhaseSet. perform(
at rform(
at org.eclipse.equinox.internal.provisional.p2.ui.operations.Pr ovisioningUtil.performProvisioningPlan( :265)
at org.eclipse.equinox.internal.provisional.p2.ui.operations.Pr ofileModificationOperation.doExecute(ProfileModificationOper
at org.eclipse.equinox.internal.provisional.p2.ui.operations.Pr ovisioningOperation.execute(
at org.eclipse.equinox.internal.provisional.p2.ui.ProvisioningO perationRunner$

3. If I restart the application with -clean, the first time I sue the update site it's ok again (I can install the Revision Graph), but after the restart I get into the same NPE.

It seems to be a problem with corruption of profile updates somehow. Running with -clean solves the problem only temporarily.

I don't know if it's related, but I also get a strange error for every plugin from my product. This is something like:

!ENTRY org.eclipse.update.configurator 4 0 2010-02-16 13:58:29.831
!MESSAGE Could not install bundle plugins/org.eclipse.core.filesystem_1.2.0.v20080604-1400.jar Bundle "org.eclipse.core.filesystem" version "1.2.0.v20080604-1400" has already been installed from: reference:file:plugins/org.eclipse.core.filesystem_1.2.0.v20 080604-1400.jar

!ENTRY org.eclipse.update.configurator 4 0 2010-02-16 13:58:29.831
!MESSAGE Could not install bundle plugins/org.eclipse.core.jobs_3.4.1.R34x_v20081128.jar Bundle "" version "3.4.1.R34x_v20081128" has already been installed from: reference:file:plugins/org.eclipse.core.jobs_3.4.1.R34x_v200 81128.jar

!ENTRY org.eclipse.update.configurator 4 0 2010-02-16 13:58:29.846
!MESSAGE Could not install bundle plugins/ Bundle "" version "1.0.0.I20080521" has already been installed from: reference:file:plugins/ I20080521.jar

!ENTRY org.eclipse.update.configurator 4 0 2010-02-16 13:58:29.846
!MESSAGE Could not install bundle plugins/org.eclipse.core.net_1.1.0.I20080604.jar Bundle "" version "1.1.0.I20080604" has already been installed from: reference:file:plugins/org.eclipse.core.net_1.1.0.I20080604. jar

Any help or suggestion would be greatly appreciated. Thanks.

PS:I could also provide whatever files you need from my installation.
Previous Topic:How to figure out why P2 fails to install my feature?
Next Topic:P2 fails to connect through proxy server
Goto Forum:

Current Time: Fri Dec 04 02:44:10 GMT 2020

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

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

Back to the top