Mailing Lists: Apple Mailing Lists

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

Updates causing problems launching app bundles on 64-bit machines



All,
We are seeing very strange behavior where our app bundles fail to launch after performing the 10.5.5 and Java updates this morning on 64-bit OS X machines. When the Java Preferences are set to have "J2SE 5.0 32-bit" as the preferred VM, the app bundle fails to launch with the console showing the following stack trace:


Exception in thread "main" java.lang.NullPointerException
at apple.launcher.LaunchRunner.run(LaunchRunner.java:112)
at apple.launcher.LaunchRunner.callMain(LaunchRunner.java:50)
at apple.launcher.JavaApplicationLauncher.main(JavaApplicationLauncher.java:61)



The bundle uses a very simple script that launches a symbolically linked JavaApplicationStub within the same directory. When the JavaApplicationStub is copied into the bundle, then the bundle launches. The reason for the symbolic link is that long ago we opted to avoid the constant re-distribution of the JavaApplicationStub and instead just wanted to point to the one already on the system (which is always guaranteed to be correct for the current OS). The script was added to just give each a unique bundle-local file which the finder needed to differentiate bundles all using the same symbolic link target (another bug, IMHO, but that is beside the point).


What is odd is that doing the exact same thing with the Java Preferences set to have "J2SE 5.0 64-bit" as the preferred VM, the app bundle launches fine. Also, on all non-64-bit capable machines with the same updates, the app bundle launches fine.

We are obviously going to have to re-distribute our bundles, but isthere any workaround for this NullPointerException or are we just going to have to live with constantly playing catch-up with the JavaApplicationStub and distribute that with our bundles?

Thanks.
Mike

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