Mailing Lists: Apple Mailing Lists

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

JVM apparently hanging




Hello all... hope someone can help with this.  Seems like a wierd one.

I have some java code that looks like this
 System.out.println("Creating new ZipInputStream, bytes.Length() = " + bytes.length);            
// create a ZipInputStream to read the zip/jar file                        
ByteArrayInputStream bytestream = new ByteArrayInputStream(bytes);                        
System.out.println("Created ByteArrayInputStream");                        
Exception except = new Exception("Stack trace before new ZipInputStream");                        
except.printStackTrace();                        
ZipInputStream zis = new ZipInputStream (bytestream);                        
System.out.println("Created ZipInputStream");

This is just a fragment from some larger code.  It all seems to execute just fine; all the println's execute and the printStackTrace prints everything out ok.  
But the call to the ZipInputStream constructor never returns.  No exception, no nothing.  I'm no Java maven so there could easily be something wrong I'm not seeing (outside of this code snippet), however, all the
code runs just fine on other platforms (e.g., Windoze, Linux, AIX, Solaris).  Some other notes that might be helpful:

(1)  JVM is 1.4.2-54, Java HotSpot(TM) Client VM , Mac OS 10.4.6
(2) This code gets called, indirectly via a JNI call from C++ to Java
(3) In XCode, I get the following stack trace, which probably isn't very informative, but some guru out there might notice a pattern:
#0        0x9000b0a8 in mach_msg_trap
#1        0x9000b070 in mach_msg
#2        0x961914bc in jio_snprintf
#3        0x9619e728 in JVM_MonitorWait
#4        0x9617d45c in jio_snprintf
#5        0x961b5de0 in JVM_FindLoadedClass
#6        0x4ea2b500 in ??
#7        0x4ea25f90 in ??
#8        0x4ea25f90 in ??
#9        0x4ea2316c in ??
#10        0x961926fc in jio_snprintf
#11        0x961925a4 in jio_snprintf
#12        0x9619c15c in JVM_DoPrivileged
#13        0x4ea2bee0 in ??
#14        0x4ea25ea0 in ??
#15        0x4ea2316c in ??
#16        0x961926fc in jio_snprintf
#17        0x961925a4 in jio_snprintf
#18        0x96192544 in jio_snprintf
#19        0x96192460 in jio_snprintf
#20        0x96192120 in jio_snprintf
#21        0x96191d88 in jio_snprintf
#22        0x96197a2c in __ucmpdi2
#23        0x4ea334f8 in ??
#24        0x4ea25f90 in ??
#25        0x4ea25f90 in ??
#26        0x4ea25f90 in ??
#27        0x4ea2316c in ??
#28        0x961926fc in jio_snprintf
#29        0x961925a4 in jio_snprintf
#30        0x961a12c4 in JVM_FindPrimitiveClass
#31        0x96233b7c in JVM_GetSockOpt
#32        0x1ceaed6c in JNIEnv_::CallVoidMethod at jlibrary.cpp:1032

I don't know anything much about ZipInputStream or why it wouldn't return (or at least throw an exception) if something was wrong.  The bytes array exists and reports it's 344 bytes long.

Not sure what else to look at or look for to track this down (or to help YOU guys track it down).   Hoping the collective mass intelligence on the list might offer some insight.

Thanks in advance for all your help/suggestions/inspirations/devine guidance y'all might provide.

Thanks (again!)

-Eric
 _______________________________________________
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



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.