Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: JVM apparently hanging




Hello again all...  I haven't tried all the other suggestions yet, but was able to get the Java stack where its hanging in the ZipInputStream constructor.  Does this look familiar to anyone?  Thanks!

Thread [main] (Suspended)
        Runtime.loadLibrary0(Class, String) line: 780   <-- seems to hang here.   Class is sun.security.action.LoadLibraryAction,
                                                                                                          and the String is "zip"
        System.loadLibrary(String) line: 834             // The value of the string argument here is "zip"
        LoadLibraryAction.run() line: 50 [local variables unavailable]
        AccessController.doPrivileged(PrivilegedAction) line: not available [native method]
        CRC32.<clinit>() line: 25 [local variables unavailable]
        ZipInputStream.<init>(InputStream) line: 26
        ClassHashtable.explodeArchive(String, byte[]) line: 112


java-dev-bounces+eric_feigenson=email@hidden wrote on 05/01/2006 05:49:47 PM:

> Eric Feigenson wrote:
>
> >Thanks for your suggestions Gary... I already did exactly what you
> >suggested, saving the byte array to a file, and it unzipped just fine.
>
> OK, then try it the other way.  Write a simple test-case that reads a
> known-good JAR into a byte[], pass it to ZipInputStream's constructor, and
> see what happens.  If it fails, then you know it's something in
> ZipInputStream.  If it works, then odds are its the context that the
> ZipInputStream constructor is being called in.
>
> I would even test it on malformed ZIP byte[] data, say all 0's, just to see
> what the constructor does with it.
>
>   -- GG
>
>
>  _______________________________________________
> Do not post admin requests to the list. They will be ignored.
> Java-dev mailing list      (email@hidden)
> Help/Unsubscribe/Update your Subscription:
> http://lists.apple.com/mailman/options/java-dev/eric_feigenson%
> 40notesdev.ibm.com
>
> This email sent to email@hidden
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Java-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/java-dev/email@hidden

This email sent to email@hidden

References: 
 >Re: JVM apparently hanging (From: Greg Guerin <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.