Community
Participate
Working Groups
Created attachment 124570 [details] error log contianing exception during install Build ID: I20090129-1800 Steps To Reproduce: 1. Unzip 350M5 to C:\35work\M5_RUNNER\rcp 2. Verify can launch successfully with.\eclipse.exe -data C:\35work\M5_RUNNER\workspace -configuration C:\35work\M5_RUNNER\workspace\.config -debug -console 3. Install HelloWorld from script using director. Command = .\eclipse.exe -data C:\35work\M5_RUNNER\workspace -configuration C:\35work\M5_RUNNER\workspace\.config -debug -console -application org.eclipse.equinox.p2.director.app.application -metadataRepository file:/C:/ctempP2/HelloWorldSite/ -artifactRepository file:/C:/ctempP2/HelloWorldSite/ -installIU HelloWorldFeature.feature.group -version 1.0.0 4. Installation fails with exception. Log is attached. More information: If the site has been previously installed with p2 UI and then uninstalled the command in step 3 will pass. This is likely because the site has been installed into the bundle pool and has not been garbage collected.
Created attachment 124571 [details] zip of HelloWorldSite used
I've been taking a look at this, and the cause of the the exception is that the service to copy the file from the local repository isn't found, as we've already opened the output stream we attempt to close it which automatically attempts to unzip but fails as the file is empty. Interestingly this problem does not occur if -configuration is not specified in step-2, so something is (not) being generated which is resulting in the service not existing. Though an attempt to unzip an unsuccessful transfer shouldn't be tried.
Created attachment 124999 [details] Pass status information to IStateful OutputStream in MirrorRequest If the OutputStream implements IStateful then merge its' status with that from the attempt to acquire the artifact. This should allow IStatus aware OutputStreams such as SimpleArtifactRepository's ArtifactOutputStreamTest to behave appropriately.
Created attachment 125005 [details] Pass status information to IStateful OutputStream in MirrorRequest Slight update to correct an issue with a test case
Created attachment 125007 [details] Updated error message
The cause of the failed transfer is that the ECF bundle is not started so the local transfer fails with "Transport initialization error". Bug #262660 also runs into this.
Created attachment 125389 [details] Test case for invalid zip error in MirrorRequest Also required is an empty file: testData/artifactRepo/emptyJarRepo/features/HelloWorldFeature_1.0.0.jar Create patch was unable to indicate this in the .patch file.
Patch released in HEAD
Verified fixed in M6