Closed
Bug 563214
Opened 15 years ago
Closed 15 years ago
Apple's latest Java Developer Preview for OS X 10.5 (9M3150) breaks JEP
Categories
(Plugins Graveyard :: Java (Java Embedding Plugin), defect)
Tracking
(Not tracked)
RESOLVED
FIXED
People
(Reporter: pietro10, Assigned: smichaud)
Details
(Whiteboard: rdar://7937250)
User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.5; en; rv:1.9.0.18) Gecko/2010021619 Camino/2.0.2 (like Firefox/3.0.18)
Build Identifier: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.5.8; en; rv:1.9.0.18) Gecko/2010021619 Camino/2.0.2 (like Firefox/3.0.18)
I've had this problem for a few versions now (I don't remember exactly when it started). When I use JEP by itself I get the scenario pictured here fora ll pages: http://idisk.mac.com/pietro10-Public/caminojep.png
I installed a beta Java update available on ADC to get JavaPlugin2 for Java to work in Chrome (which I have since left). With JavaPlugin2, the JEP test page just shows blank space and http://www.virtualnes.com/ crashes the browser.
Reproducible: Always
Steps to Reproduce:
1. Go to any web page which has Java. The message will show automatically.
Actual Results:
What shows in http://idisk.mac.com/pietro10-Public/caminojep.png
Expected Results:
The page shown should have shown the Java applets running corectly.
I have Java versions in the following order:
[X] J2SE 5.0 32-bit
[X] Java SE 6 64-bit
[X] J2SE 5.0 64-bit
[ ] J2SE 1.4.2 32-bit
Console reports the following under Java Console:
MRJ Plugin for Mac OS X v1.0.1
[starting up Java Applet Security @ Sun May 02 01:04:52 EDT 2010]
Sun May 02 01:04:52 EDT 2010 JEP creating applet java (http://browserspy.dk/java/)
Sun May 02 01:04:53 EDT 2010 JEP creating applet javainfo (http://browserspy.dk/java/)
<<< ProxyClassLoader: defined LiveConnectProxy class. >>>
<<< Here're the permissions you've got: >>>
<<< java.security.Permissions@e2befa (
(java.net.SocketPermission browserspy.dk connect,accept,resolve)
)
>>>
followed by the following for each run and close page:
Sun May 02 01:25:35 EDT 2010 JEP creating applet java (http://browserspy.dk/java/)
Sun May 02 01:25:35 EDT 2010 JEP creating applet javainfo (http://browserspy.dk/java/)
<<< ProxyClassLoader: defined LiveConnectProxy class. >>>
<<< Here're the permissions you've got: >>>
<<< java.security.Permissions@220b86 (
(java.net.SocketPermission browserspy.dk connect,accept,resolve)
)
>>>
AppletFrame.croaker.run(): exception: jep.AppletFramePanel.appletDestroy(long)
java.lang.NoSuchMethodException: jep.AppletFramePanel.appletDestroy(long)
at java.lang.Class.getMethod(Class.java:1581)
at jep.AppletFrame$1.run(Unknown Source)
at java.lang.Thread.run(Thread.java:613)
AppletFrame.croaker.run(): exception: jep.AppletFramePanel.appletDestroy(long)
java.lang.NoSuchMethodException: jep.AppletFramePanel.appletDestroy(long)
at java.lang.Class.getMethod(Class.java:1581)
at jep.AppletFrame$1.run(Unknown Source)
at java.lang.Thread.run(Thread.java:613)
Steven, I exhausted every single idea I had to try to figure this out with Pietro on irc. My best guess is that installing JavaPlugin2 has somehow changed some setting somewhere in the OS that needs to be reverted, but I have no idea what/how.
Among the things we tried: removing JavaPlugin2 from /Library/Internet Plug-ins, switching the order of the JVMs in /Utilities/Java Preferences.app (and making sure "Within the browser process" radio button was selected), and running with a fresh profile to make sure any possible stale values in an existing profile's pluginreg.dat were ruled out).
The best result among all the trials was no missing plug-in, but no Java applets appearing, either :P
Assignee: nobody → smichaud
Component: Plug-ins → Java (Java Embedding Plugin)
Product: Camino → Plugins
QA Contact: plugins → jep-java
Assignee | ||
Comment 2•15 years ago
|
||
This is bad. There doesn't appear to be a workaround.
It effects every Mozilla Corp product that bundles the JEP -- Camino,
Firefox (3.5.X and 3.6.X) and Seamonkey. Seamonkey actually hangs!
The problem doesn't happen on OS X 10.6.X (with Apple's latest Java
Developer Preview for that platform -- 10M3050).
At some point (probably tomorrow) I'll open a bug with Apple.
Applets do appear to load in the JEP -- they just don't display. And
then there's that wierd (and spurious) error when you unload an
applet.
The fact that they do load tells me a user-performable workaround is
very unlikely to exist.
What fun! :-(
I'll be working on this.
Severity: normal → critical
Status: UNCONFIRMED → NEW
Ever confirmed: true
Summary: Internal Java Embedding Plugin shows "Click here to install the plugin" where applets should be → Latest Java Developer Preview from Apple for OS X 10.5 (9M3150) breaks JEP
Assignee | ||
Comment 3•15 years ago
|
||
Actually, this would only be critical if an Apple Java release broke the JEP.
Severity: critical → major
Assignee | ||
Updated•15 years ago
|
Summary: Latest Java Developer Preview from Apple for OS X 10.5 (9M3150) breaks JEP → Apple's latest Java Developer Preview for OS X 10.5 (9M3150) breaks JEP
Assignee | ||
Comment 4•15 years ago
|
||
I'm making progress on this. I've found that the JEP works just fine
with 9M3150 if I change the JEP's code to lie about which OS it's
running on -- to pretend it's running on OS X 10.6.X even when it's
running on OS X 10.5.X.
If the JEP detects it's running on OS X 10.6.X, it assumes it's
running Java 6. So it appears that, by default, 9M3150 actually runs
Java 6 on OS X 10.5.X!! Even in a 32-bit browser!!
I'll keep digging. But I should have a more detailed report (and be
able to open a bug with Apple) by the end of the day.
Assignee | ||
Comment 5•15 years ago
|
||
> So it appears that, by default, 9M3150 actually runs Java 6 on OS X
> 10.5.X!! Even in a 32-bit browser!!
Actually this isn't quite true -- if you query the version number in
Java code, you're told it's "1.5.0_24".
But a lot of the low-level code in 9M3150 now behaves like Java 6, not
like Java 5 -- I'll need to pick through and find exactly which parts.
Reporter | ||
Comment 6•15 years ago
|
||
This did not start with the ADP preview. I have been with this problem for a while now.
Assignee | ||
Comment 7•15 years ago
|
||
This is *not* a problem with any of Apple's Java releases. If you think you're having this problem with one of them, it's a different bug.
Assignee | ||
Comment 8•15 years ago
|
||
On the other hand, I'm not sure this problem started with the 9M3150 developer preview. With which developer preview did you first see this problem?
Assignee | ||
Comment 9•15 years ago
|
||
> a user-performable workaround is very unlikely to exist.
Actually I've now found one. But I'm afraid it's only for rather
sophisticated users.
> a lot of the low-level code in 9M3150 now behaves like Java 6, not
> like Java 5 -- I'll need to pick through and find exactly which
> parts.
I've now found which parts. The three files in
/System/Library/Frameworks/JavaVM.framework/Versions/1.5/Resources/JavaPluginCocoa.bundle/Contents/Resources/Java/
(deploy.jar, libdeploy.jnilib and plugin.jar) are for use with Java 6
-- not with Java 5 as they should be.
But Java-5-specific versions of these files do exist elsewhere among
the files installed with 9M3150. And the following steps restore the
JEP to working order, without (as far as I can tell) breaking Java
Plugin2. Make sure to preform these steps reversibly (as I do in my
instructions).
1) cd
/System/Library/Frameworks/JavaVM.framework/Versions/1.5/Resources/JavaPluginCocoa.bundle/Contents/Resources/Java
2) sudo mv deploy.jar deploy.jar.bad
3) sudo mv libdeploy.jnilib libdeploy.jnilib.bad
4) sudo mv plugin.jar plugin.jar.bad
5) sudo ln -s
/System/Library/Frameworks/JavaVM.framework/Versions/1.5/Home/lib/deploy.jar
6) sudo ln -s
/System/Library/Frameworks/JavaVM.framework/Versions/1.5/Home/lib/plugin.jar
Assignee | ||
Comment 10•15 years ago
|
||
As best I can tell, Apple's previous Developer Preview of Java Update
7 for OS X 10.5.X (9M3144) didn't cause any trouble for the JEP.
To test this, I did a fresh install of 9M3144 (to a spare 10.5.8
partition) over Apple's latest Java release -- Java for Mac OS X 10.5
Update 6.
I had weird problems after installing it -- the JEP somehow thought
I'd selected Java 1.4.2, and (since Java 1.4.2 is disabled in 9M3144)
the browser froze on loading any Java applet. I don't *think* I'd
selected Java 1.4.2 before installing 9M3144 ... but I can't rule out
the possibility. In any case, running the Java Preferences utility
and restoring default settings cleared up the problem.
By the way, Apple ADC site gives a "release" date of 4/14/2010 for
9M3150 -- so it's been out for a while.
Assignee | ||
Comment 11•15 years ago
|
||
I've opened a bug with Apple -- rdar://7937250.
Whiteboard: rdar://7937250
(In reply to comment #9)
> > a lot of the low-level code in 9M3150 now behaves like Java 6, not
> > like Java 5 -- I'll need to pick through and find exactly which
> > parts.
>
> I've now found which parts. The three files in
> /System/Library/Frameworks/JavaVM.framework/Versions/1.5/Resources/JavaPluginCocoa.bundle/Contents/Resources/Java/
> (deploy.jar, libdeploy.jnilib and plugin.jar) are for use with Java 6
> -- not with Java 5 as they should be.
That sounds like this:
"Unified Plugin1
The 1.5.0 and 1.6.0 versions of the in-process JavaPluginCocoa.bundle have been unified, and both now point to the same code. This means that on Mac OS X 10.5 Leopard, the applet plugin runs on top of the 1.5.0 JVM, but uses the applet plugin classes from the most recent 1.6.0 version available. We are seeking feedback from applet developers to determine if they notice a change in behavior in their applets."
http://adcdownload.apple.com/Java/java_for_mac_os_x_developer_preview_10m30509m3150/release_notes_10m30509m3150.html
Assignee | ||
Comment 13•15 years ago
|
||
> That sounds like this:
>
> "Unified Plugin1
> ...
I agree that it does.
But Apple needs to revert this change, which breaks the JEP.
Assignee | ||
Comment 14•15 years ago
|
||
I've been told Apple has fixed this for the next developer preview (not yet out).
Thanks, Apple!
Assignee | ||
Comment 15•15 years ago
|
||
Apple has just made available a new developer preview (9M3164) of Java
for Mac OS X 10.5 Update 7. I've confirmed that it does fix this bug.
Status: NEW → RESOLVED
Closed: 15 years ago
Resolution: --- → WORKSFORME
Reporter | ||
Comment 16•15 years ago
|
||
I have yet to install the new update, but I can confirm the fix in comment 9 works. Until I do get Update 7, thanks. If Update 7 works I'll mark as fixed.
Updated•9 years ago
|
Product: Plugins → Plugins Graveyard
You need to log in
before you can comment on or make changes to this bug.
Description
•