Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 265723

Summary: [p2] "Transport initialization error" when mirroring second artifact repository
Product: [Eclipse Project] Equinox Reporter: Terry Parker <tparker>
Component: p2Assignee: P2 Inbox <equinox.p2-inbox>
Status: RESOLVED DUPLICATE QA Contact:
Severity: normal    
Priority: P3 CC: pascal
Version: 3.5   
Target Milestone: ---   
Hardware: PC   
OS: Linux   
Whiteboard:

Description Terry Parker CLA 2009-02-20 18:48:49 EST
Build ID: 3.5 M5

Steps To Reproduce:
1) Create a new destination repo with the following commmand:

-application org.eclipse.equinox.p2.artifact.repository.mirrorApplication
-source file:/tmp/src1 -destination file:/tmp/dest

2) Try to merge in a second local repository:

-application org.eclipse.equinox.p2.artifact.repository.mirrorApplication
-source file:/tmp/src2 -destination file:/tmp/dest

More information:
The second call results in the "Transport initialization error".  Debugging the code, the ecf.provider.filetransfer bundle is activated on the first mirroring operation but not on the second, so the ECFTransport.performDownload() call fails to retrieve the IRetrieveFileTransferFactory because the org.eclipse.ecf.filetransfer.service.IRetrieveFileTransferFactory service is not yet registered.

Interestingly, if I add a "-configuration /tmp/cnfg" parameter to the second invocation (where /tmp/cnfg is an empty folder), the second invocation succeeds.

These same commands do not fail using 3.5 M4.
Comment 1 Pascal Rapicault CLA 2009-02-21 00:21:28 EST

*** This bug has been marked as a duplicate of bug 262660 ***