Red Hat Bugzilla – Bug 730015
NullPointerException on disposing modal dialog
Last modified: 2012-02-02 10:18:52 EST
Description of problem:
A bug is introduced with the icedtea patch 6693253-security_warning.patch which causes NullPointerException to be thrown in sun.awt.X11.XWindowPeer (a simple example is attached as XWindowPeerNPE.java). This bug was identified and fixed upstream in jdk7 (apparently not jdk6?).
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. Compile attached XWindowPeerNPE.java (javac XWindowPeerNPE.java)
2. Run it from terminal (java XWindowPeerNPE)
3. Click the dispose button
Window is properly disposed without Exception.
Sun Bug: http://bugs.sun.com/view_bug.do?bug_id=6826104
jdk7 fix: http://hg.openjdk.java.net/jdk7/awt/jdk/rev/c6503f2a93d1
Created attachment 517821 [details]
fix from jdk7
Created attachment 517822 [details]
I can replicate this bug every time. This is a severe problem, as it makes any Java application using a modal file chooser unusable.
I requested a backport a while ago. It is still pending approval:
I will ping once more, and if nothing comes of it soon, I will just add it to IcedTea.
Doh. Please ignore the comment above. I confused this bug with another one :/
I will take a look at this on Monday.
Thanks. Also worth noting: This bug did not exist in java-1.6.0-openjdk-126.96.36.199-57, the previous version of the package.
Deepak, I know this is the wrong bug but for whichever bug that was meant to be on...
The patch should go in IcedTea now. Even if we finally get it into OpenJDK6, it's going to be an undefined time before that makes it through to end-users.
Fixed upstream. It will be in the next update:
*** Bug 735472 has been marked as a duplicate of this bug. ***
*** Bug 744574 has been marked as a duplicate of this bug. ***
I know this is not the ideal place to ask (please tell me where I should ask or where I should find the answer!) but now that I've installed icedtea7, how do I get it to be used by firefox (or chrome for that matter)?
I did get eclipse to use it.
You will have to rebuild icedtea-web as well:
Once installed, you can link to the IcedTeaPlugin.so (installed in /usr/lib by default) from /usr/lib/mozilla/plugins). You should uninstall the existing icedtea-web RPM too.
Assuming this issue is the main reason you built IcedTea7, I would suggest waiting for a few days. A Java security errata is due on the 18th/19th of October, and will contain this fix.
I've been imagining that the iced tea plugin depends on the java version.
But unlike the java openjdk packages, yum doesn't show any mention of java version for iced tea web. I see in iced tea web control panel that use of multiple jre's is not supported, but I also don't see where to select which SINGLE jre you want to use.
Waiting a few days will give me a new version of the IcedTeaPlugin
using java 6 or 7?
yum list installed
icedtea-web.x86_64 1.1.3-1.fc16 @updates-testing
But how can I tell whether that's 6 or 7?
It will be using Java 6.
*** Bug 747322 has been marked as a duplicate of this bug. ***
*** Bug 737680 has been marked as a duplicate of this bug. ***
*** Bug 737671 has been marked as a duplicate of this bug. ***
Fixed in the 1.11 update: http://blog.fuseyism.com/index.php/2012/01/31/icedtea6-1-11-released/