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

Bug 311469

Summary: SVN Mylyn Connector can not be "unpacked"
Product: Community Reporter: David Williams <david_williams>
Component: Cross-ProjectAssignee: Igor Burilo <igor.burilo>
Status: RESOLVED DUPLICATE QA Contact:
Severity: blocker    
Priority: P3 CC: mober.at+eclipse, stephan.herrmann
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Windows 7   
Whiteboard:
Bug Depends on: 311800    
Bug Blocks:    

Description David Williams CLA 2010-05-03 22:44:21 EDT
This has been a problem for several days (counting weekend!) Or is it a repeat problem? I'm marking as "blocking" since I suspect Mylyn can't easily be removed from list of contributions ... with removing others? So ... we can't get a clean build until this is fixed. 

My guess is this is caused from using Java 6 to "pack200" files that do not contain java (and those can not be unpacked with Java 5, hence we recommend Java 5 always be used for the pack200 steps. 

= = = = = =

The following errors occured when building Helios:

org.eclipse.core.runtime.CoreException: Unable to unpack artifact osgi.bundle,org.eclipse.team.svn.mylyn.source,0.7.8.I20100430-2000 in repository file:/shared/helios/buildresults/final/aggregate: Unpacking fails because intermediate file is empty: /tmp/work20060/p2.optimizers.incoming20059.jar

org.eclipse.core.runtime.CoreException: Unable to unpack artifact osgi.bundle,org.eclipse.team.svn.core.nl1,0.7.8.I20100430-2000 in repository file:/shared/helios/buildresults/final/aggregate: Unpacking fails because intermediate file is empty: /tmp/work20062/p2.optimizers.incoming20061.jar

org.eclipse.core.runtime.CoreException: Unable to unpack artifact osgi.bundle,org.eclipse.team.svn.revision.graph.source,0.7.8.I20100430-2000 in repository file:/shared/helios/buildresults/final/aggregate: Unpacking fails because intermediate file is empty: /tmp/work20064/p2.optimizers.incoming20063.jar

org.eclipse.core.runtime.CoreException: Unable to unpack artifact osgi.bundle,org.eclipse.team.svn.ui.nl1,0.7.8.I20100430-2000 in repository file:/shared/helios/buildresults/final/aggregate: Unpacking fails because intermediate file is empty: /tmp/work20069/p2.optimizers.incoming20068.jar

org.eclipse.core.runtime.CoreException: Unable to unpack artifact osgi.bundle,org.eclipse.team.svn,0.7.8.I20100430-2000 in repository file:/shared/helios/buildresults/final/aggregate: Unpacking fails because intermediate file is empty: /tmp/work20071/p2.optimizers.incoming20070.jar

org.eclipse.core.runtime.CoreException: Unable to unpack artifact osgi.bundle,org.eclipse.team.svn.resource.ignore.rules.jdt.source,0.7.8.I20100430-2000 in repository file:/shared/helios/buildresults/final/aggregate: Unpacking fails because intermediate file is empty: /tmp/work20076/p2.optimizers.incoming20075.jar

org.eclipse.core.runtime.CoreException: Unable to unpack artifact osgi.bundle,org.eclipse.team.svn.nl1.sources,0.7.8.I20100430-2000 in repository file:/shared/helios/buildresults/final/aggregate: Unpacking fails because intermediate file is empty: /tmp/work20078/p2.optimizers.incoming20077.jar

org.eclipse.core.runtime.CoreException: Unable to unpack artifact osgi.bundle,org.eclipse.team.svn.help,0.7.8.I20100430-2000 in repository file:/shared/helios/buildresults/final/aggregate: Unpacking fails because intermediate file is empty: /tmp/work20086/p2.optimizers.incoming20085.jar

org.eclipse.core.runtime.CoreException: Unable to unpack artifact osgi.bundle,org.eclipse.team.svn.sources,0.7.8.I20100430-2000 in repository file:/shared/helios/buildresults/final/aggregate: Unpacking fails because intermediate file is empty: /tmp/work20091/p2.optimizers.incoming20090.jar

org.eclipse.core.runtime.CoreException: Unable to unpack artifact osgi.bundle,org.eclipse.team.svn.nl1,0.7.8.I20100430-2000 in repository file:/shared/helios/buildresults/final/aggregate: Unpacking fails because intermediate file is empty: /tmp/work20093/p2.optimizers.incoming20092.jar

Check the log file for more information: https://build.eclipse.org/hudson/view/Repository%20Aggregation/job/helios.runBuckyBuild/598/console
Comment 1 Martin Oberhuber CLA 2010-05-04 02:18:55 EDT
Changing Summary, previous value was:
   Mylyn can not be "unpacked"

AFAIK the svn.mylyn contribution is owned by the Subversive project, and not by Mylyn. It is an add-on that nobody should depend on, so removing it from the build should not be a problem.
Comment 2 David Williams CLA 2010-05-04 02:35:36 EDT
Thank you very much Martin. I was reading too quickly, and unfairly associated it with "mylyn". I'll try removing Subversive until this is fixed (but, I think Buckminster might rely on it).
Comment 3 David Williams CLA 2010-05-04 03:24:55 EDT
I did have to also remove buckminster.build, as it depends on something from subversive.build, but on my local machine, it did seem to verify after that .... so we'll see how far this gets us.
Comment 4 Igor Burilo CLA 2010-05-06 06:00:49 EDT
I've just updated Subversive build.
Comment 5 David Williams CLA 2010-05-07 23:03:13 EDT
count as dup

*** This bug has been marked as a duplicate of bug 311800 ***
Comment 6 Stephan Herrmann CLA 2010-11-08 20:06:37 EST
Can someone please give a hint at what the solution to this bug was?

I'm seeing pretty much the same for three of our 15 plugins (Object Teams)
and can't seem to see what distinguishes the failing three from the rest.
Both .jar and .jar.pack.gz are present and can be unpacked manually.

Unfortunately this bug and its dup Bug 311800 only say it's "done" but
not how.
Comment 7 David Williams CLA 2010-11-08 20:25:34 EST
> 
> I'm seeing pretty much the same for three of our 15 plugins (Object Teams)
> and can't seem to see what distinguishes the failing three from the rest.
> Both .jar and .jar.pack.gz are present and can be unpacked manually.
> 

This problem is caused by using Java6 pack200. It does not produce backwards compatible pack.gz files if (and only if) there are no .class files in the jar. See bug 275533 for some of the original discussion of the issue. We purposely use Java 5 in the aggregator build to catch cases like this.

Can you adjust to use Java 5? I ask because in reality, for Indigo, we will (likely) change to use Java 6 for the aggregator process, but I was reluctant to change before Helios SR2 (since most have to make sure to work with Java 5 for Helios SR2) but ... guess Helios SR2 is not an issue for you and other new-to-Indigo projects.
Comment 8 Stephan Herrmann CLA 2010-11-08 20:53:41 EST
(In reply to comment #7)
> This problem is caused by using Java6 pack200. It does not produce backwards
> compatible pack.gz files if (and only if) there are no .class files in the jar.
> See bug 275533 for some of the original discussion of the issue. We purposely
> use Java 5 in the aggregator build to catch cases like this.

Thanks for explaining. I can reproduce that the files in question cannot
be unpacked with java5 unpack200. In my case it's jars containing nested jars
(and no toplevel .class).
 
> Can you adjust to use Java 5?

Yes, I can use Java 5 for packing. I'll try and re-contribute tomorrow.
Comment 9 Martin Oberhuber CLA 2010-11-09 05:14:08 EST
(In reply to comment #8)
> In my case it's jars containing nested jars

Hm, I do not know the details but reading "nested jars" provoked some bad memories... can the nested jars be avoided? See also

http://eclipse.org/helios/planning/EclipseSimultaneousRelease.php

in section "Jarred bundles":

"Also, nested jars should be avoided if possible since it creates problems for projects that has dependencies to such plug-ins. The OSGi runtime is fine with it but the PDE environment is not able to handle classpaths that contain nested jars."
Comment 10 Stephan Herrmann CLA 2010-11-09 06:03:07 EST
(In reply to comment #9)
> (In reply to comment #8)
> > In my case it's jars containing nested jars
> 
> Hm, I do not know the details but reading "nested jars" provoked some bad
> memories... can the nested jars be avoided? See also
> 
> http://eclipse.org/helios/planning/EclipseSimultaneousRelease.php
> 
> in section "Jarred bundles":
> 
> "Also, nested jars should be avoided if possible since it creates problems for
> projects that has dependencies to such plug-ins. The OSGi runtime is fine with
> it but the PDE environment is not able to handle classpaths that contain nested
> jars."

Thanks for reminding me. Yes, I will look into these some time soon.
Currently, we don't have downstream dependencies, so for M3 this should be OK
I hope.