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 13:38
Fabian Baboschi is currently offline Fabian Baboschi
Messages: 40
Registered: December 2009
Member
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
!MESSAGE
!STACK 0
java.lang.NullPointerException
at java.io.File.<init>(Unknown Source)
at org.eclipse.equinox.internal.provisional.p2.directorywatcher .RepositoryListener.synchronizeCurrentFiles(RepositoryListen er.java:426)
at org.eclipse.equinox.internal.provisional.p2.directorywatcher .RepositoryListener. <init>(RepositoryListener.java:89)
at org.eclipse.equinox.internal.p2.extensionlocation.ExtensionL ocationArtifactRepository.ensureInitialized(ExtensionLocatio nArtifactRepository.java:68)
at org.eclipse.equinox.internal.p2.extensionlocation.ExtensionL ocationArtifactRepository.getProperties(ExtensionLocationArt ifactRepository.java:190)
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(Util.java:108)
at org.eclipse.equinox.internal.p2.touchpoint.eclipse.Util.getA ggregatedBundleRepository(Util.java:95)
at org.eclipse.equinox.internal.p2.touchpoint.eclipse.actions.C ollectAction.collect(CollectAction.java:70)
at org.eclipse.equinox.internal.p2.touchpoint.eclipse.actions.C ollectAction.execute(CollectAction.java:30)
at org.eclipse.equinox.internal.provisional.p2.engine.Phase.mai nPerform(Phase.java:122)
at org.eclipse.equinox.internal.provisional.p2.engine.Phase.per form(Phase.java:79)
at org.eclipse.equinox.internal.provisional.p2.engine.Installab leUnitPhase.perform(InstallableUnitPhase.java:53)
at org.eclipse.equinox.internal.provisional.p2.engine.Phase.per form(Phase.java:46)
at org.eclipse.equinox.internal.provisional.p2.engine.PhaseSet. perform(PhaseSet.java:38)
at org.eclipse.equinox.internal.provisional.p2.engine.Engine.pe rform(Engine.java:53)
at org.eclipse.equinox.internal.provisional.p2.ui.operations.Pr ovisioningUtil.performProvisioningPlan(ProvisioningUtil.java :265)
at org.eclipse.equinox.internal.provisional.p2.ui.operations.Pr ofileModificationOperation.doExecute(ProfileModificationOper ation.java:58)
at org.eclipse.equinox.internal.provisional.p2.ui.operations.Pr ovisioningOperation.execute(ProvisioningOperation.java:40)
at org.eclipse.equinox.internal.provisional.p2.ui.ProvisioningO perationRunner$1.run(ProvisioningOperationRunner.java:94)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)

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 "org.eclipse.core.jobs" 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/org.eclipse.core.net.win32.x86_1.0.0.I20080521.jar Bundle "org.eclipse.core.net.win32.x86" version "1.0.0.I20080521" has already been installed from: reference:file:plugins/org.eclipse.core.net.win32.x86_1.0.0. 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 "org.eclipse.core.net" 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: Sat Jul 26 07:27:18 EDT 2014

Powered by FUDForum. Page generated in 0.02509 seconds