You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@harmony.apache.org by "Tim Ellison (JIRA)" <ji...@apache.org> on 2008/01/25 13:13:34 UTC
[jira] Created: (HARMONY-5427) Harmony fails to fully read an
Avalon jar file
Harmony fails to fully read an Avalon jar file
----------------------------------------------
Key: HARMONY-5427
URL: https://issues.apache.org/jira/browse/HARMONY-5427
Project: Harmony
Issue Type: Sub-task
Components: App-Oriented Bug Reports, Classlib
Affects Versions: 5.0M4
Reporter: Tim Ellison
Part of the Confluence application start-up failure described in HARMONY-5424.
Confluence uses Avalaon, and as part of the start-up sequence is scanning the JAR file. Harmony ZIP code fails on this jar for some reason.
Here's a simple reproducer (point to the confluence install dir as appropriate):
import java.io.IOException;
import java.util.Enumeration;
import java.util.jar.JarEntry;
import java.util.jar.JarFile;
public class JarFileTest {
public static void main(String[] args) throws IOException {
JarFile jar = new JarFile(
"/confluence-2.7.1-std/confluence/WEB-INF/lib/avalon-framework-4.2.0.jar");
Enumeration<JarEntry> entries = jar.entries();
while (entries.hasMoreElements()) {
JarEntry entry = entries.nextElement();
System.out.println(entry);
}
jar.close();
}
}
On RI the above program prints out ..
META-INF/
META-INF/MANIFEST.MF
org/
org/apache/
org/apache/avalon/
org/apache/avalon/framework/
org/apache/avalon/framework/activity/
org/apache/avalon/framework/component/
org/apache/avalon/framework/configuration/
org/apache/avalon/framework/context/
org/apache/avalon/framework/logger/
org/apache/avalon/framework/parameters/
org/apache/avalon/framework/service/
org/apache/avalon/framework/thread/
LICENSE.txt
NOTICE.TXT
org/apache/avalon/framework/activity/Disposable.class
<and more>
on Harmony the same program prints out
META-INF/
META-INF/MANIFEST.MF
org/
org/apache/
org/apache/avalon/
org/apache/avalon/framework/
org/apache/avalon/framework/activity/
org/apache/avalon/framework/component/
org/apache/avalon/framework/configuration/
org/apache/avalon/framework/context/
org/apache/avalon/framework/logger/
org/apache/avalon/framework/parameters/
org/apache/avalon/framework/service/
Exception in thread "main" java.lang.InternalError: Error -6 getting next zip entry
at java.util.zip.ZipFile$ZFEnum.getNextEntry(Native Method)
at java.util.zip.ZipFile$ZFEnum.nextElement(ZipFile.java:271)
at java.util.zip.ZipFile$ZFEnum.nextElement(ZipFile.java:1)
at java.util.jar.JarFile$1JarFileEnumerator.nextElement(JarFile.java:234)
at java.util.jar.JarFile$1JarFileEnumerator.nextElement(JarFile.java:1)
at JarFileTest.main(JarFileTest.java:15)
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Closed: (HARMONY-5427) Harmony fails to fully read an Avalon
jar file
Posted by "Tim Ellison (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/HARMONY-5427?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Tim Ellison closed HARMONY-5427.
--------------------------------
> Harmony fails to fully read an Avalon jar file
> ----------------------------------------------
>
> Key: HARMONY-5427
> URL: https://issues.apache.org/jira/browse/HARMONY-5427
> Project: Harmony
> Issue Type: Sub-task
> Components: App-Oriented Bug Reports, Classlib
> Affects Versions: 5.0M4
> Reporter: Tim Ellison
> Assignee: Tim Ellison
>
> Part of the Confluence application start-up failure described in HARMONY-5424.
> Confluence uses Avalaon, and as part of the start-up sequence is scanning the JAR file. Harmony ZIP code fails on this jar for some reason.
> Here's a simple reproducer (point to the confluence install dir as appropriate):
> import java.io.IOException;
> import java.util.Enumeration;
> import java.util.jar.JarEntry;
> import java.util.jar.JarFile;
> public class JarFileTest {
> public static void main(String[] args) throws IOException {
> JarFile jar = new JarFile(
> "/confluence-2.7.1-std/confluence/WEB-INF/lib/avalon-framework-4.2.0.jar");
> Enumeration<JarEntry> entries = jar.entries();
> while (entries.hasMoreElements()) {
> JarEntry entry = entries.nextElement();
> System.out.println(entry);
> }
> jar.close();
> }
> }
> On RI the above program prints out ..
> META-INF/
> META-INF/MANIFEST.MF
> org/
> org/apache/
> org/apache/avalon/
> org/apache/avalon/framework/
> org/apache/avalon/framework/activity/
> org/apache/avalon/framework/component/
> org/apache/avalon/framework/configuration/
> org/apache/avalon/framework/context/
> org/apache/avalon/framework/logger/
> org/apache/avalon/framework/parameters/
> org/apache/avalon/framework/service/
> org/apache/avalon/framework/thread/
> LICENSE.txt
> NOTICE.TXT
> org/apache/avalon/framework/activity/Disposable.class
> <and more>
> on Harmony the same program prints out
> META-INF/
> META-INF/MANIFEST.MF
> org/
> org/apache/
> org/apache/avalon/
> org/apache/avalon/framework/
> org/apache/avalon/framework/activity/
> org/apache/avalon/framework/component/
> org/apache/avalon/framework/configuration/
> org/apache/avalon/framework/context/
> org/apache/avalon/framework/logger/
> org/apache/avalon/framework/parameters/
> org/apache/avalon/framework/service/
> Exception in thread "main" java.lang.InternalError: Error -6 getting next zip entry
> at java.util.zip.ZipFile$ZFEnum.getNextEntry(Native Method)
> at java.util.zip.ZipFile$ZFEnum.nextElement(ZipFile.java:271)
> at java.util.zip.ZipFile$ZFEnum.nextElement(ZipFile.java:1)
> at java.util.jar.JarFile$1JarFileEnumerator.nextElement(JarFile.java:234)
> at java.util.jar.JarFile$1JarFileEnumerator.nextElement(JarFile.java:1)
> at JarFileTest.main(JarFileTest.java:15)
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (HARMONY-5427) Harmony fails to fully read an
Avalon jar file
Posted by "Tim Ellison (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/HARMONY-5427?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12562484#action_12562484 ]
Tim Ellison commented on HARMONY-5427:
--------------------------------------
Further investigation shows that the zip native code is failing in the cache handling. Specifically the exception is caused by the zip support returning an error from
/Harmony/modules/archive/src/main/native/zip/shared/zipsup.c : line 1396
which reads:
return ZIP_ERR_FILE_CORRUPT; /* should never happen! */
Well it did!
> Harmony fails to fully read an Avalon jar file
> ----------------------------------------------
>
> Key: HARMONY-5427
> URL: https://issues.apache.org/jira/browse/HARMONY-5427
> Project: Harmony
> Issue Type: Sub-task
> Components: App-Oriented Bug Reports, Classlib
> Affects Versions: 5.0M4
> Reporter: Tim Ellison
>
> Part of the Confluence application start-up failure described in HARMONY-5424.
> Confluence uses Avalaon, and as part of the start-up sequence is scanning the JAR file. Harmony ZIP code fails on this jar for some reason.
> Here's a simple reproducer (point to the confluence install dir as appropriate):
> import java.io.IOException;
> import java.util.Enumeration;
> import java.util.jar.JarEntry;
> import java.util.jar.JarFile;
> public class JarFileTest {
> public static void main(String[] args) throws IOException {
> JarFile jar = new JarFile(
> "/confluence-2.7.1-std/confluence/WEB-INF/lib/avalon-framework-4.2.0.jar");
> Enumeration<JarEntry> entries = jar.entries();
> while (entries.hasMoreElements()) {
> JarEntry entry = entries.nextElement();
> System.out.println(entry);
> }
> jar.close();
> }
> }
> On RI the above program prints out ..
> META-INF/
> META-INF/MANIFEST.MF
> org/
> org/apache/
> org/apache/avalon/
> org/apache/avalon/framework/
> org/apache/avalon/framework/activity/
> org/apache/avalon/framework/component/
> org/apache/avalon/framework/configuration/
> org/apache/avalon/framework/context/
> org/apache/avalon/framework/logger/
> org/apache/avalon/framework/parameters/
> org/apache/avalon/framework/service/
> org/apache/avalon/framework/thread/
> LICENSE.txt
> NOTICE.TXT
> org/apache/avalon/framework/activity/Disposable.class
> <and more>
> on Harmony the same program prints out
> META-INF/
> META-INF/MANIFEST.MF
> org/
> org/apache/
> org/apache/avalon/
> org/apache/avalon/framework/
> org/apache/avalon/framework/activity/
> org/apache/avalon/framework/component/
> org/apache/avalon/framework/configuration/
> org/apache/avalon/framework/context/
> org/apache/avalon/framework/logger/
> org/apache/avalon/framework/parameters/
> org/apache/avalon/framework/service/
> Exception in thread "main" java.lang.InternalError: Error -6 getting next zip entry
> at java.util.zip.ZipFile$ZFEnum.getNextEntry(Native Method)
> at java.util.zip.ZipFile$ZFEnum.nextElement(ZipFile.java:271)
> at java.util.zip.ZipFile$ZFEnum.nextElement(ZipFile.java:1)
> at java.util.jar.JarFile$1JarFileEnumerator.nextElement(JarFile.java:234)
> at java.util.jar.JarFile$1JarFileEnumerator.nextElement(JarFile.java:1)
> at JarFileTest.main(JarFileTest.java:15)
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Resolved: (HARMONY-5427) Harmony fails to fully read an
Avalon jar file
Posted by "Tim Ellison (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/HARMONY-5427?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Tim Ellison resolved HARMONY-5427.
----------------------------------
Resolution: Fixed
Assignee: Tim Ellison
Fixed in ARCHIVE module at repo revision r615224.
Misinterpreting return code from create new cache function.
> Harmony fails to fully read an Avalon jar file
> ----------------------------------------------
>
> Key: HARMONY-5427
> URL: https://issues.apache.org/jira/browse/HARMONY-5427
> Project: Harmony
> Issue Type: Sub-task
> Components: App-Oriented Bug Reports, Classlib
> Affects Versions: 5.0M4
> Reporter: Tim Ellison
> Assignee: Tim Ellison
>
> Part of the Confluence application start-up failure described in HARMONY-5424.
> Confluence uses Avalaon, and as part of the start-up sequence is scanning the JAR file. Harmony ZIP code fails on this jar for some reason.
> Here's a simple reproducer (point to the confluence install dir as appropriate):
> import java.io.IOException;
> import java.util.Enumeration;
> import java.util.jar.JarEntry;
> import java.util.jar.JarFile;
> public class JarFileTest {
> public static void main(String[] args) throws IOException {
> JarFile jar = new JarFile(
> "/confluence-2.7.1-std/confluence/WEB-INF/lib/avalon-framework-4.2.0.jar");
> Enumeration<JarEntry> entries = jar.entries();
> while (entries.hasMoreElements()) {
> JarEntry entry = entries.nextElement();
> System.out.println(entry);
> }
> jar.close();
> }
> }
> On RI the above program prints out ..
> META-INF/
> META-INF/MANIFEST.MF
> org/
> org/apache/
> org/apache/avalon/
> org/apache/avalon/framework/
> org/apache/avalon/framework/activity/
> org/apache/avalon/framework/component/
> org/apache/avalon/framework/configuration/
> org/apache/avalon/framework/context/
> org/apache/avalon/framework/logger/
> org/apache/avalon/framework/parameters/
> org/apache/avalon/framework/service/
> org/apache/avalon/framework/thread/
> LICENSE.txt
> NOTICE.TXT
> org/apache/avalon/framework/activity/Disposable.class
> <and more>
> on Harmony the same program prints out
> META-INF/
> META-INF/MANIFEST.MF
> org/
> org/apache/
> org/apache/avalon/
> org/apache/avalon/framework/
> org/apache/avalon/framework/activity/
> org/apache/avalon/framework/component/
> org/apache/avalon/framework/configuration/
> org/apache/avalon/framework/context/
> org/apache/avalon/framework/logger/
> org/apache/avalon/framework/parameters/
> org/apache/avalon/framework/service/
> Exception in thread "main" java.lang.InternalError: Error -6 getting next zip entry
> at java.util.zip.ZipFile$ZFEnum.getNextEntry(Native Method)
> at java.util.zip.ZipFile$ZFEnum.nextElement(ZipFile.java:271)
> at java.util.zip.ZipFile$ZFEnum.nextElement(ZipFile.java:1)
> at java.util.jar.JarFile$1JarFileEnumerator.nextElement(JarFile.java:234)
> at java.util.jar.JarFile$1JarFileEnumerator.nextElement(JarFile.java:1)
> at JarFileTest.main(JarFileTest.java:15)
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.