[Bug 635365] New: icedtea update broke java from firefox - bogus java path
https://bugzilla.novell.com/show_bug.cgi?id=635365 https://bugzilla.novell.com/show_bug.cgi?id=635365#c0 Summary: icedtea update broke java from firefox - bogus java path Classification: openSUSE Product: openSUSE 11.3 Version: Final Platform: i686 OS/Version: openSUSE 11.3 Status: NEW Severity: Normal Priority: P5 - None Component: Java AssignedTo: bnc-team-java@forge.provo.novell.com ReportedBy: nrickert@ameritech.net QAContact: qa@suse.de Found By: --- Blocker: --- User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.2.8) Gecko/20100723 SUSE/3.6.8-0.1.1 Firefox/3.6.8 After the recent update, firefox gave an error: Failed to spawn applet viewer: Failed to execute child process "/etc/alternatives/../../bin/java" As a temp workaround, I created a symlink for java in "/bin" I am using the following link, which loads a java applet: http://www.nytimes.com/ref/crosswords/sudoku/medium.html With the temp workaround listed, if I look at the process list I see to java related processes: rickert 5862 1.6 3.0 719432 61536 ? Sl 08:45 0:04 /usr/lib/jvm/java-1.6.0-openjdk-1.6.0/jre/lib/i386/../../bin/java sun.applet.PluginMain /tmp/icedteaplugin-rickert/5856-icedteanp-plugin-to-appletviewer /tmp/icedteaplugin-rickert/5856-icedteanp-appletviewer-to-plugin rickert 6067 13.0 3.1 721268 62528 ? Sl 08:50 0:04 /etc/alternatives/../../bin/java sun.applet.PluginMain /tmp/icedteaplugin-rickert/6052-icedteanp-plugin-to-appletviewer /tmp/icedteaplugin-rickert/6052-icedteanp-appletviewer-to-plugin The second of those process is using the bogus path. Loading the same url in opera, I instead see processes: rickert 5856 0.1 0.3 51952 6760 ? Sl 08:45 0:00 /usr/lib/opera//operapluginwrapper 49 55 /usr/lib/jvm/java-1.6.0-openjdk-1.6.0/jre/lib/i386/IcedTeaPlugin.so rickert 5862 6.0 3.0 719432 61536 ? Sl 08:45 0:04 /usr/lib/jvm/java-1.6.0-openjdk-1.6.0/jre/lib/i386/../../bin/java sun.applet.PluginMain /tmp/icedteaplugin-rickert/5856-icedteanp-plugin-to-appletviewer /tmp/icedteaplugin-rickert/5856-icedteanp-appletviewer-to-plugin The paths look fine from opera, but wrong from firefox. Here are what look to be a couple of the logs for the patch install (to help identify which update): 2010-08-26 10:48:10 <1> nwr2(3524) [zypp] SATResolver.cc(resolvePool):699 Install UBTu_(11628)patch:java-1_6_0-openjdk-3003.noarch(Updates for openSUSE 11.3 11.3-1.82) 2010-08-26 10:48:10 <1> nwr2(3524) [satsolver] PoolImpl.cc(logSat):94 job: install patch:java-1_6_0-openjdk-3003.noarch Reproducible: Always Steps to Reproduce: 1. Load a java page in firefox, such as: http://www.nytimes.com/ref/crosswords/sudoku/medium.html 2. 3. Actual Results: An error was reported: 1. ERROR: Invalid browser function table. Some functionality may be restricted. 2. /usr/src/packages/BUILD/icedtea6-1.8.1/plugin/icedteanp/IcedTeaNPPlugin.cc:1506: thread 0x80940c0: Error: Failed to spawn applet viewer: Failed to execute child process "/etc/alternatives/../../bin/java" (No such file or directory) (note: that is before I did the temporary work around). Expected Results: The java applet should have loaded. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=635365
https://bugzilla.novell.com/show_bug.cgi?id=635365#c1
Michal Vyskocil
https://bugzilla.novell.com/show_bug.cgi?id=635365
https://bugzilla.novell.com/show_bug.cgi?id=635365#c2
Neil Rickert
https://bugzilla.novell.com/show_bug.cgi?id=635365
https://bugzilla.novell.com/show_bug.cgi?id=635365#c3
--- Comment #3 from Neil Rickert
https://bugzilla.novell.com/show_bug.cgi?id=635365
https://bugzilla.novell.com/show_bug.cgi?id=635365#c4
--- Comment #4 from Michal Vyskocil
One possible guess - on this new system, the firefox patch to 3.6.8 was applied after the icedtea patch. On the two systems that do show the problem, the firefox update was applied before the icedtea update.
This might not make a difference, because Firefox does not do anything with alternatives system. After installation of java-1_6_0-openjdk-plugin package the /usr/lib/browser-plugins/javaplugin.so Just for sure: /usr/sbin/update-alternatives --display javaplugin might show a similar output javaplugin - status is auto. link currently points to /usr/lib64/jvm/jre-1.6.0-openjdk/lib/amd64/IcedTeaPlugin.so /usr/lib64/jvm/jre-1.6.0-openjdk/lib/amd64/IcedTeaPlugin.so - priority 17105 Current `best' version is /usr/lib64/jvm/jre-1.6.0-openjdk/lib/amd64/IcedTeaPlugin.so. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=635365
https://bugzilla.novell.com/show_bug.cgi?id=635365#c5
--- Comment #5 from Neil Rickert
https://bugzilla.novell.com/show_bug.cgi?id=635365
https://bugzilla.novell.com/show_bug.cgi?id=635365#c6
Michal Vyskocil
https://bugzilla.novell.com/show_bug.cgi?id=635365
https://bugzilla.novell.com/show_bug.cgi?id=635365#c7
--- Comment #7 from Neil Rickert
https://bugzilla.novell.com/show_bug.cgi?id=635365
https://bugzilla.novell.com/show_bug.cgi?id=635365#c8
Michal Vyskocil
https://bugzilla.novell.com/show_bug.cgi?id=635365
https://bugzilla.novell.com/show_bug.cgi?id=635365#c9
--- Comment #9 from Neil Rickert
https://bugzilla.novell.com/show_bug.cgi?id=635365
https://bugzilla.novell.com/show_bug.cgi?id=635365#c10
Michal Vyskocil
https://bugzilla.novell.com/show_bug.cgi?id=635365
https://bugzilla.novell.com/show_bug.cgi?id=635365#c11
Neil Rickert
https://bugzilla.novell.com/show_bug.cgi?id=635365
https://bugzilla.novell.com/show_bug.cgi?id=635365#c12
--- Comment #12 from Petr Cerny
https://bugzilla.novell.com/show_bug.cgi?id=635365
https://bugzilla.novell.com/show_bug.cgi?id=635365#c13
Michal Vyskocil
https://bugzilla.novell.com/show_bug.cgi?id=635365
https://bugzilla.novell.com/show_bug.cgi?id=635365#c14
Michal Vyskocil
This bug is back.
There was a security update to icedtea, applied this morning. And since that update, I am seeing the same problem.
ERROR: Invalid browser function table. Some functionality may be restricted. /usr/src/packages/BUILD/icedtea6-1.9.2/plugin/icedteanp/IcedTeaNPPlugin.cc:1506: thread 0x8093bf8: Error: Failed to spawn applet viewer: Failed to execute child process "/etc/alternatives/../../bin/java" (No such file or directory)
Neil, do you have a full error log? -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=635365
https://bugzilla.novell.com/show_bug.cgi?id=635365#c15
--- Comment #15 from Michal Vyskocil
https://bugzilla.novell.com/show_bug.cgi?id=635365
https://bugzilla.novell.com/show_bug.cgi?id=635365#c16
--- Comment #16 from Michal Vyskocil
https://bugzilla.novell.com/show_bug.cgi?id=635365
https://bugzilla.novell.com/show_bug.cgi?id=635365#c17
--- Comment #17 from Neil Rickert
https://bugzilla.novell.com/show_bug.cgi?id=635365
https://bugzilla.novell.com/show_bug.cgi?id=635365#c18
Michal Vyskocil
The full log doesn't say much more than I posted previously. I set ICEDTEA_PLUGIN=true in the environment (I think that is what you intended), and I ran "firefox -g".
No, that's not correct. You have to type ICEDTEA_PLUGIN=true firefox -g or export ICEDTEA_PLUGIN=true firefox -g
% firefox -g -P open *** nss-shared-helper: Shared database disabled (set NSS_USE_SHARED_DB to enable). ERROR: Invalid browser function table. Some functionality may be restricted. /usr/src/packages/BUILD/icedtea6-1.9.2/plugin/icedteanp/IcedTeaNPPlugin.cc:1506:
That seems to me like Firefox, not IcedTeaPlugin bug. From sources 1950 NPError 1951 NP_Initialize (NPNetscapeFuncs* browserTable, NPPluginFuncs* pluginTable) 1952 { 1953 PLUGIN_DEBUG ("NP_Initialize\n"); 1983 // Ensure that the browser function table is large enough to store 1984 // the number of browser functions that we may use. 1985 if (browserTable->size < sizeof (NPNetscapeFuncs)) 1986 { 1987 fprintf (stderr, "ERROR: Invalid browser function table. Some functionality may be restricted.\n"); 1988 } NP_Initialize is Firefox API and is called by browser. It might be caused by mismatch of xulrunner versions used for build of IcedTea plugin and MozillaFirefox. Wolfgang, Petr: I'm right? -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=635365
https://bugzilla.novell.com/show_bug.cgi?id=635365#c19
Michal Vyskocil
https://bugzilla.novell.com/show_bug.cgi?id=635365
https://bugzilla.novell.com/show_bug.cgi?id=635365#c20
Wolfgang Rosenauer
https://bugzilla.novell.com/show_bug.cgi?id=635365
https://bugzilla.novell.com/show_bug.cgi?id=635365#c21
Petr Cerny
https://bugzilla.novell.com/show_bug.cgi?id=635365
https://bugzilla.novell.com/show_bug.cgi?id=635365#c22
--- Comment #22 from Michal Vyskocil
https://bugzilla.novell.com/show_bug.cgi?id=635365
https://bugzilla.novell.com/show_bug.cgi?id=635365#c23
Michal Vyskocil
https://bugzilla.novell.com/show_bug.cgi?id=635365
https://bugzilla.novell.com/show_bug.cgi?id=635365#c24
--- Comment #24 from Neil Rickert
No, that's not correct. You have to type
ICEDTEA_PLUGIN=true firefox -g
or export ICEDTEA_PLUGIN=true firefox -g
That's the same thing. I use csh, so I did: % setenv ICEDTEA_PLUGIN true % firefox -g
Neil, could you please remove MozillaFirefox and mozilla-xulrunner and installing these again? Ideally the same versions as those removed.
I don't know how to do that. When I tried, I finished up in dependency hell. It told me that there was a conflict (with gnome-photo, as I recall). I selected the option to ignore the conflict and go ahead anyway. But then it told me that it had automatically added additional changes, which amounted to not removing xulrunner. I aborted at that point. I use kde, but also have gnome and XFCE installed. And thunderbird is also installed, though that wasn't mentioned (yet) in the dependency messages. Note that firefox did update to 3.6.13 after this bug showed up, and the firefox update did not fix it. I think xulrunner updated at the same time as firefox. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=635365
https://bugzilla.novell.com/show_bug.cgi?id=635365#c25
--- Comment #25 from Michal Vyskocil
https://bugzilla.novell.com/show_bug.cgi?id=635365
https://bugzilla.novell.com/show_bug.cgi?id=635365#c26
--- Comment #26 from Petr Cerny
The question is how it was possible have this code working, that ain't work in any case!
Do we positively know that it really did work? Could it be another java installed in parallel taking over where the non-recursive symlink resolver failed? (In reply to comment #24)
Neil, could you please remove MozillaFirefox and mozilla-xulrunner and installing these again? Ideally the same versions as those removed.
I don't know how to do that. When I tried, I finished up in dependency hell.
You would remove MozillaFirefox and corresponding mozilla-xulrunner (and additionally other apps using that version of xulrunner) while making sure that you say you want to break any pattern it complains about. At least this works for me.
Note that firefox did update to 3.6.13 after this bug showed up, and the firefox update did not fix it. I think xulrunner updated at the same time as firefox.
Yes, that's correct - MozillaFirefox and mozilla-xulrunner are basically one package split into two. xulrunner is application independent, and is used by e.g. Thunderbird as well. The packages are tied together *quite* tightly, so you should use e.g. xulrunner 1.9.2.13 with Firefox 3.6.13. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=635365
https://bugzilla.novell.com/show_bug.cgi?id=635365#c27
--- Comment #27 from Neil Rickert
Do we positively know that it really did work? Could it be another java installed in parallel taking over where the non-recursive symlink resolver failed?
I have only had icedtea installed. It works on my laptop, but the bug shows up on my desktop. It was working on my desktop until the most recent icedtea update. Perhaps an update changes a library search order somewhere, and whether the bug shows up is sensitive to that search order. (Just a wild guess). Given that Michal seems to have a patch in the works, I'll leave things as they are for the moment. I am currently working around the problem with a java symlink at "/bin/java" - I remove that link for testing, then put it back later. And I periodically check the path that shows in "ps" output, as a way of checking whether it has been fixed. When the bug first showed up, I did a google search for the error message. The hits came mostly from other distros (ubuntu for example). The advice given was to uninstall icedtea and install sun-java. But if everybody followed that advice, it would never be fixed. So I have been sticking with icedtea with my symling work around. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=635365
https://bugzilla.novell.com/show_bug.cgi?id=635365#c28
Michal Vyskocil
https://bugzilla.novell.com/show_bug.cgi?id=635365
https://bugzilla.novell.com/show_bug.cgi?id=635365#c29
Michal Vyskocil
https://bugzilla.novell.com/show_bug.cgi?id=635365
https://bugzilla.novell.com/show_bug.cgi?id=635365#c30
Swamp Workflow Management
https://bugzilla.novell.com/show_bug.cgi?id=635365
https://bugzilla.novell.com/show_bug.cgi?id=635365#c31
Swamp Workflow Management
https://bugzilla.novell.com/show_bug.cgi?id=635365
https://bugzilla.novell.com/show_bug.cgi?id=635365#c
Swamp Workflow Management
https://bugzilla.novell.com/show_bug.cgi?id=635365
https://bugzilla.novell.com/show_bug.cgi?id=635365#c32
--- Comment #32 from Neil Rickert
https://bugzilla.novell.com/show_bug.cgi?id=635365
https://bugzilla.novell.com/show_bug.cgi?id=635365#c33
Ryan Bach
https://bugzilla.novell.com/show_bug.cgi?id=635365
https://bugzilla.novell.com/show_bug.cgi?id=635365#c34
--- Comment #34 from Neil Rickert
https://bugzilla.novell.com/show_bug.cgi?id=635365
https://bugzilla.novell.com/show_bug.cgi?id=635365#c35
Michal Vyskocil
http://bugzilla.novell.com/show_bug.cgi?id=635365
http://bugzilla.novell.com/show_bug.cgi?id=635365#c36
--- Comment #36 from Bernhard Wiedemann
participants (1)
-
bugzilla_noreply@novell.com