Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 265329 - NPE exporting & installing into host
Summary: NPE exporting & installing into host
Status: RESOLVED FIXED
Alias: None
Product: Equinox
Classification: Eclipse Project
Component: p2 (show other bugs)
Version: 3.5   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: 3.5 M6   Edit
Assignee: Matthew Piggott CLA
QA Contact:
URL:
Whiteboard:
Keywords:
: 265567 266445 (view as bug list)
Depends on:
Blocks:
 
Reported: 2009-02-18 11:43 EST by Darin Wright CLA
Modified: 2009-02-27 09:42 EST (History)
4 users (show)

See Also:


Attachments
MirrorRequest Patch (1.29 KB, patch)
2009-02-18 16:15 EST, Matthew Piggott CLA
pascal: iplog+
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Darin Wright CLA 2009-02-18 11:43:16 EST
eclipse.buildId=I20090217-2200

* I attempted to export and install plug-ins into the running host and got this NPE:

java.lang.NullPointerException
at org.eclipse.equinox.internal.p2.artifact.repository.MirrorRequest.transferSingle(MirrorRequest.java:173)
at org.eclipse.equinox.internal.p2.artifact.repository.MirrorRequest.transfer(MirrorRequest.java:153)
at org.eclipse.equinox.internal.p2.artifact.repository.MirrorRequest.perform(MirrorRequest.java:94)
at org.eclipse.equinox.internal.p2.artifact.repository.simple.SimpleArtifactRepository.getArtifact(SimpleArtifactRepository.java:502)
at org.eclipse.equinox.internal.p2.artifact.repository.simple.SimpleArtifactRepository.getArtifacts(SimpleArtifactRepository.java:558)
at org.eclipse.equinox.internal.p2.engine.DownloadManager.fetch(DownloadManager.java:108)
at org.eclipse.equinox.internal.p2.engine.DownloadManager.start(DownloadManager.java:96)
at org.eclipse.equinox.internal.provisional.p2.engine.phases.Collect.completePhase(Collect.java:72)
at org.eclipse.equinox.internal.provisional.p2.engine.Phase.postPerform(Phase.java:162)
at org.eclipse.equinox.internal.provisional.p2.engine.Phase.perform(Phase.java:68)
at org.eclipse.equinox.internal.provisional.p2.engine.PhaseSet.perform(PhaseSet.java:44)
at org.eclipse.equinox.internal.provisional.p2.engine.Engine.perform(Engine.java:51)
at org.eclipse.equinox.internal.provisional.p2.ui.operations.ProvisioningUtil.performProvisioningPlan(ProvisioningUtil.java:274)
at org.eclipse.pde.internal.ui.build.RuntimeInstallJob.run(RuntimeInstallJob.java:154)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)
Comment 1 Matthew Piggott CLA 2009-02-18 16:15:41 EST
Created attachment 126076 [details]
MirrorRequest Patch

It looks like the cause of this problem was that we have an instance of MultiStatus which contains an Error substatus which does not have an Exception.  This prevented us from finding the 'root' cause of the Status, this problem will prevent the NullPointerException from occurring.

Unfortunately there may be another bug here as well, when I tested the fix exporting into the current host still failed because of the Error substatus:

An error occurred while collecting items to be installed
  session context was:(profile=SDKProfile, phase=, operand=, action=).
  Problems downloading artifact: osgi.bundle,Aasdf,1.0.0.
    OK
    OK
    Error while processing stream. MD5 hash is not as expected. Expected: 44d8c961fbc409377d79d038a6fa3744 and found 6c4076dbdcfb1480e8bad939608aac60.
    OK
    OK
Comment 2 Olivier Thomann CLA 2009-02-18 17:23:22 EST
When I tried last week, I also got the MD5 checksum error.
Comment 3 Pascal Rapicault CLA 2009-02-18 18:37:22 EST
I have released the patch. Thx.
I have opened bug 265385 to track the MD5 issue.
Comment 4 John Arthorne CLA 2009-02-20 15:50:41 EST
*** Bug 265567 has been marked as a duplicate of this bug. ***
Comment 5 John Arthorne CLA 2009-02-27 09:42:27 EST
*** Bug 266445 has been marked as a duplicate of this bug. ***