[Bug 683751] New: Desktop API is not supported on the current platform
https://bugzilla.novell.com/show_bug.cgi?id=683751 https://bugzilla.novell.com/show_bug.cgi?id=683751#c0 Summary: Desktop API is not supported on the current platform Classification: openSUSE Product: openSUSE 11.4 Version: Final Platform: i686 OS/Version: openSUSE 11.4 Status: NEW Severity: Normal Priority: P5 - None Component: Java AssignedTo: bnc-team-java@forge.provo.novell.com ReportedBy: johannes.mueller@troeber.com QAContact: qa@suse.de Found By: --- Blocker: --- User-Agent: Mozilla/5.0 (X11; Linux i686; rv:2.0.0) Gecko/20100101 Firefox/4.0 We are trying to run a java applet in Firefox (4.0) or Konqueror, which should open a new window with desired information. The new window doesn't open and we get this error on the java console: --------- UNCAUGHT EXCEPTION --------- 21.2.2011 13:49:18 java.lang.UnsupportedOperationException: Desktop API is not supported on the current platform at java.awt.Desktop.getDesktop(Desktop.java:126) at start.start.showTrackingPage(start.java:2895) at start.start.setSearchResults(start.java:3145) at tools.AS400_Connection.transmittData(AS400_Connection.java:283) at tools.AS400_Connection.run(AS400_Connection.java:241) at java.lang.Thread.run(Thread.java:662) -------------------------------------- Reproducible: Always Steps to Reproduce: 1. Load java applet 2. Click on a detail position to run the tracking information Expected Results: Should open a new window with redirect to the tracking provider. Works so far on OpenSuSE 11.2 and OpenSuSE 11.3. Also works on any Windows Systems (XP or 7). I guess its related to KDE 4.6. -- 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=683751 https://bugzilla.novell.com/show_bug.cgi?id=683751#c1 Michal Vyskocil <mvyskocil@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Priority|P5 - None |P3 - Medium Status|NEW |ASSIGNED CC| |mvyskocil@novell.com --- Comment #1 from Michal Vyskocil <mvyskocil@novell.com> 2011-03-31 11:31:51 UTC --- Hi Johannes - JFI which JVM are you using? openjdk, or sun? -- 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=683751 https://bugzilla.novell.com/show_bug.cgi?id=683751#c2 --- Comment #2 from Johannes Müller <johannes.mueller@troeber.com> 2011-03-31 11:38:06 UTC --- Hi Michael, we are using SUN Java 1.6.24, due to the applet doesn't work with openjdk. -- 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=683751 https://bugzilla.novell.com/show_bug.cgi?id=683751#c3 Michal Vyskocil <mvyskocil@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|ASSIGNED |NEEDINFO InfoProvider| |johannes.mueller@troeber.co | |m --- Comment #3 from Michal Vyskocil <mvyskocil@novell.com> 2011-03-31 12:12:34 UTC --- As far I understood the underlying code (quite complicated due a lot of abstract classes and native glue) I suppose the desktop support in Java is done directly by dlopen of libgnome-2.so.0 and libgnomevfs-2.so. When dlopen calls fails, the safe HeadlessToolkit is instantiated. And is always returns false on isDesktopSupported (which btw have to be called before getDesktop ;-). Can you post me the output of this program? public class d { public static void main(String[] args) { System.out.println("awt.toolkit: " + System.getProperty("awt.toolkit")); //, "sun.awt.X11.XToolkit"); java.awt.Toolkit defaultToolkit = java.awt.Toolkit.getDefaultToolkit(); System.out.println(defaultToolkit); if (defaultToolkit instanceof sun.awt.SunToolkit) { //return ((sun.awt.SunToolkit)defaultToolkit).isDesktopSupported(); System.out.println("Toolkit is instance of sun.awt.SunToolkit"); } if (defaultToolkit instanceof sun.awt.HeadlessToolkit) { System.out.println("Toolkit is instance of sun.awt.HeadlessToolkit"); } if (java.awt.Desktop.isDesktopSupported()) { System.out.println("Desktop is supported"); } } } and of course the output of strace -f -eopen java d 2>&1 | grep libgnome if I see if my assumptions are correct. -- 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=683751 https://bugzilla.novell.com/show_bug.cgi?id=683751#c4 --- Comment #4 from Johannes Müller <johannes.mueller@troeber.com> 2011-03-31 12:25:48 UTC --- How do I compile/run that piece of code on openSuSE? I know that I can do it with javac on Windows. -- 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=683751 https://bugzilla.novell.com/show_bug.cgi?id=683751#c5 --- Comment #5 from Johannes Müller <johannes.mueller@troeber.com> 2011-03-31 12:38:41 UTC --- Okay, just download the JDK and compiled your baby. Running the programm gave me:
java d awt.toolkit: null sun.awt.X11.XToolkit@1551f60 Toolkit is instance of sun.awt.SunToolkit
output of "strace -f -eopen java d 2>&1 | grep libgnome": strace -f -eopen java d 2>&1 | grep libgnome [pid 14187] open("/usr/lib/jvm/java-1.6.0-sun-1.6.0/jre/lib/i386/xawt/libgnomevfs-2.so.0", O_RDONLY) = -1 ENOENT (No such file or directory) [pid 14187] open("/usr/lib/jvm/java-1.6.0-sun-1.6.0/jre/lib/i386/xawt/../libgnomevfs-2.so.0", O_RDONLY) = -1 ENOENT (No such file or directory) [pid 14187] open("/usr/lib/jvm/java-1.6.0-sun-1.6.0/jre/bin/../lib/i386/jli/libgnomevfs-2.so.0", O_RDONLY) = -1 ENOENT (No such file or directory) [pid 14187] open("/usr/lib/jvm/java-1.6.0-sun-1.6.0/jre/lib/i386/server/libgnomevfs-2.so.0", O_RDONLY) = -1 ENOENT (No such file or directory) [pid 14187] open("/usr/lib/jvm/java-1.6.0-sun-1.6.0/jre/lib/i386/libgnomevfs-2.so.0", O_RDONLY) = -1 ENOENT (No such file or directory) [pid 14187] open("/usr/lib/libgnomevfs-2.so.0", O_RDONLY) = 9 [pid 14187] open("/usr/lib/jvm/java-1.6.0-sun-1.6.0/jre/lib/i386/xawt/libgnome-2.so.0", O_RDONLY) = -1 ENOENT (No such file or directory) [pid 14187] open("/usr/lib/jvm/java-1.6.0-sun-1.6.0/jre/lib/i386/xawt/../libgnome-2.so.0", O_RDONLY) = -1 ENOENT (No such file or directory) [pid 14187] open("/usr/lib/jvm/java-1.6.0-sun-1.6.0/jre/bin/../lib/i386/jli/libgnome-2.so.0", O_RDONLY) = -1 ENOENT (No such file or directory) [pid 14187] open("/usr/lib/jvm/java-1.6.0-sun-1.6.0/jre/lib/i386/server/libgnome-2.so.0", O_RDONLY) = -1 ENOENT (No such file or directory) [pid 14187] open("/usr/lib/jvm/java-1.6.0-sun-1.6.0/jre/lib/i386/libgnome-2.so.0", O_RDONLY) = -1 ENOENT (No such file or directory) [pid 14187] open("/lib/libgnome-2.so.0", O_RDONLY) = -1 ENOENT (No such file or directory) [pid 14187] open("/usr/lib/tls/libgnome-2.so.0", O_RDONLY) = -1 ENOENT (No such file or directory) [pid 14187] open("/usr/lib/libgnome-2.so.0", O_RDONLY) = -1 ENOENT (No such file or directory) -- 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=683751 https://bugzilla.novell.com/show_bug.cgi?id=683751#c6 --- Comment #6 from Johannes Müller <johannes.mueller@troeber.com> 2011-03-31 12:42:55 UTC --- And my problem is gone. I just installed: libgnome-2.32.0-4.1 And it works. Shouldn't that package be predepend, on the OpenSuSE 11.4 distro? Thank you very much Michael! -- 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=683751 https://bugzilla.novell.com/show_bug.cgi?id=683751#c7 Michal Vyskocil <mvyskocil@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEEDINFO |ASSIGNED InfoProvider|johannes.mueller@troeber.co | |m | --- Comment #7 from Michal Vyskocil <mvyskocil@novell.com> 2011-03-31 14:09:28 UTC --- It seems that Fedora KDE people already found this issue [1] http://java-hamster.blogspot.com/2007/06/troubles-with-javaawtdesktop-browse... I think before we will add Supplements into libgnome2 package (I'm sure it will disappear soon from major distributions), we should change the behavior - at least for openjdk, but Oracle devs might be involved as well. -- 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=683751 https://bugzilla.novell.com/show_bug.cgi?id=683751#c8 Michal Vyskocil <mvyskocil@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|ASSIGNED |RESOLVED URL| |http://mail.openjdk.java.ne | |t/pipermail/distro-pkg-dev/ | |2011-April/013376.html Resolution| |UPSTREAM --- Comment #8 from Michal Vyskocil <mvyskocil@novell.com> 2011-04-01 09:27:53 UTC --- I moved the discussion to icedtea mailinglist, so closing here as RESOLVED/UPSTREAM. http://mail.openjdk.java.net/pipermail/distro-pkg-dev/2011-April/013376.html BTW: case of Oracle JVM is not clear, maybe the solution from icedtea will be accepted, maybe not. -- 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.
participants (1)
-
bugzilla_noreply@novell.com