Community
Participate
Working Groups
I'm not able to unpack some files containing nested jars using the J9 JDK installed at /shared/common/ibm-java-ppc-604. The same files can be unpacked with /shared/common/ibm-java2-ppc-50 without problems. What's perhaps even more remarkable is that I can unpack the file using a Sun JDK Version 6. It's *only* the J9 V6 that fails and it will only fail on the nested files. Several other bundles in the same distribution, packed and signed in the same way, are unpacked without problems. The nested files have been packed using -E4. I've tried using default too and it doesn't make any difference.
Created attachment 138663 [details] One of the files that J9 fails to unpack when using J9 V6.
I think this has been reported before, in bug 244603, and is specific to PPC version.
Workaround: prevent the pack200 process from packing nested jars. Stick this in the plugin's META-INF/eclipse.inf file: # Exclude children of this jar from signing and packing jarprocessor.exclude.children=true Ref: http://wiki.eclipse.org/JarProcessor_Options See also https://bugs.eclipse.org/bugs/show_bug.cgi?id=279056
(In reply to comment #3) > Workaround: prevent the pack200 process from packing nested jars. > In that case it's probably better to skip the pack200 of these jars altogether since all .class files reside in the nested jars. In case someone closer to build.eclipse.org than I am (and can run the debugger with reasonable response times) would like to track this down, I've set up a test environment where the problem is easy to reproduce: Log in to the build machine: bash> cd /opt/public/tools/buckminster/bug279596 bash> . ./test.env bash> ant The build.xml contains a commented out jvmarg for remote debugging (line 85). What really nags me is that it only affects the nested jars. Why not all of them? Is there some different handling of unpack when P2 unpacks nested jars?
Its not obvious from reading bug 244603, but I think this is same bug as that one. I tried your test case with the SR5 version of IBMs PPC Java 6 VM and it works fine in my testing (and did fail with the SR4 version). I've put a copy of SR5 in /shared/common/ibm-java-ppc-605