[Bug 866] problems with firefox-10.0, java-1.7.0-openjdk, and icedtea-web-1.1.4

bugzilla-daemon at icedtea.classpath.org bugzilla-daemon at icedtea.classpath.org
Mon Feb 6 18:23:55 PST 2012


http://icedtea.classpath.org/bugzilla/show_bug.cgi?id=866

--- Comment #4 from Paulo Cesar Pereira de Andrade <pcpa at mandriva.com.br> 2012-02-07 02:23:55 UTC ---
(In reply to comment #3)
> Looks like your using Firefox 10. Please try these patches to fix the single
> threaded JSRuntime:
> http://mail.openjdk.java.net/pipermail/distro-pkg-dev/2012-February/017132.html
> http://mail.openjdk.java.net/pipermail/distro-pkg-dev/2012-February/017134.html

I rediffed your patch based on icedtea-1.1.4, but I was in
doubt about some chunks as I kind of adapted some code. Major
doubt was this chunk:

-    if (*(message_parts->at(2)) == "GetSlot")
+    if (*(message_parts->at(4)) == "GetSlot")
     {
-        response.append(" JavaScriptGetMember ");
-    } else {
         response.append(" JavaScriptGetSlot ");
+    } else {
+        response.append(" JavaScriptGetMember ");
     }
-    response.append(java_result->return_string->c_str());
+    response.append(thread_data.result);
     plugin_to_java_bus->post(response.c_str());
 }

But, result was pretty good, as with that patch, it
did work in firefox, but the show stopper was that
chromium-browser now fails with this output:

java version "1.7.0_b147-icedtea"
OpenJDK Runtime Environment (Mandriva-2.0.1-x86_64)
OpenJDK 64-Bit Server VM (build 21.0-b17, mixed mode)
Jmol applet jmolApplet0__03311421722173691__ initializing
AppletRegistry.checkIn(jmolApplet0__03311421722173691__)
urlImage=jar:http://localhost:8000/java/jmol/JmolApplet0.jar!/jmol75x29x8.gif
1712 script command tokens
applet context: -applet
appletDocumentBase=http://localhost:8000/doc/live/tutorial/
appletCodeBase=http://localhost:8000/java/jmol/
(C) 2009 Jmol Development
Jmol Version: 12.0.22  2010-11-06 14:33
java.vendor: Oracle Corporation
java.version: 1.7.0_b147-icedtea
os.name: Linux
memory: 28.4/77.7
processors available: 4
useCommandThread: false
appletId:jmolApplet0__03311421722173691__
java.lang.ArrayIndexOutOfBoundsException: 1
        at
sun.applet.PluginAppletSecurityContext.handleMessage(PluginAppletSecurityContext.java:769)
        at
sun.applet.AppletSecurityContextManager.handleMessage(AppletSecurityContextManager.java:68)
        at
sun.applet.PluginStreamHandler.handleMessage(PluginStreamHandler.java:235)
        at
sun.applet.PluginMessageHandlerWorker.run(PluginMessageHandlerWorker.java:78)
Error on Java side: 1 
Unable to process getMember request. Error occurred: 1

-- 
Configure bugmail: http://icedtea.classpath.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.



More information about the distro-pkg-dev mailing list