I develop an java application for my company each year for its meeting, and this is the third year I'll have to do this. A few weeks ago I noticed that the applications I developed for the last two years can not start anymore on the Mac (version 10.3.9). They all just crashed, even though they have worked very well before. No one else but me uses this Mac and I just perform the standard software updates that are released by Apple. The crash message starts with "An unexpected exception has been detected in native code outside the VM". Does this mean something wrong with my java application (then how could it work before then?) or the Mac's JRE (Java HotSpot Client VM: 1.4.2-56 mixed mode) had some problems? Is there anyway I can fix this? I even did a manual update for the Java on Mac (JavaSecurityUpdate4.dmg) but that did not make any difference.
A little background info on the java application installation: I used InstallAnywhere Standard Edition 7.0 to build the installation program and it works without any bugs on the Mac. You can NOT bundle your own JRE with your java appliaction during the installation for the Mac, the java app has to use the system's default JRE from Apple. So there is no custom JRE involved for my java application in this case.
Thank you in advance for ANY help/hints, Chen
The following is the crash report: The following error report describes the Java stack information at the crash. The native stack information can be found in the crash log generated by CrashReporter.
An unexpected exception has been detected in native code outside the VM. Unexpected Signal : Bus Error occurred at PC=0x908311EC Function=[Unknown.] Library=/usr/lib/libobjc.A.dylib
NOTE: We are unable to locate the function name symbol for the error just occurred. Please refer to release documentation for possible reason and solutions.
Current Java thread: at java.lang.ClassLoader$NativeLibrary.load(Native Method) at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1586) - locked <0x5f40270> (a java.util.Vector) - locked <0x5f402c0> (a java.util.Vector) at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1503) at java.lang.Runtime.loadLibrary0(Runtime.java:788) - locked <0x5f52ab8> (a java.lang.Runtime) at java.lang.System.loadLibrary(System.java:834) at sun.security.action.LoadLibraryAction.run(LoadLibraryAction.java:50) at java.security.AccessController.doPrivileged(Native Method) at sun.awt.NativeLibLoader.loadLibraries(NativeLibLoader.java:38) at sun.awt.DebugHelper.<clinit>(DebugHelper.java:29) at java.awt.Component.<clinit>(Component.java:506) at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Class.java:141) at com.zerog.lax.LAX.launch(DashoA8113) at com.zerog.lax.LAX.main(DashoA8113) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:324) at apple.launcher.LaunchRunner.run(LaunchRunner.java:88) at apple.launcher.LaunchRunner.callMain(LaunchRunner.java:50) at apple.launcher.JavaApplicationLauncher.launch(JavaApplicationLauncher.java:52)
You can have this problem of you try to access variables in two diffrent threads and use commons library or some other libraries and trying to update JTree, JTable, menus or other GUI's.
Check your code again or post some code where the exception happens. In a thread, click or some other input action
Joined: Jul 21, 2004
Thank you all for the wonderful help and hints. I was able to solve the problem after googling for several hours. Apparently QuickTime player 7.0.1 above (not include 7.0.1) has created problems for java applications on Mac 10.3.9. I think the official solution is to upgrade OS to 10.4.X. The unoffical way is to downgrade QT player all the way to 7.0.1. I chose the downgrade and it worked for me. Both current java app and previous two years' java apps are working again. Instruction on downgrade QT player is at http://www.bannister.org/cgi-bin/ultimatebb.cgi?ubb=get_topic;f=26;t=004540;p=0 The link will take a while to load.
Thanks, Chen [ August 18, 2006: Message edited by: Yi Chen ]