This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
Reproduced in build 070306_20 (JDK 1.6.0) on Solaris and Linux. The issue is reproduced with jdk 1.6.0. If I use jdk 1.5.0_04, the scenario works fine for me. To reproduce the bug create an XSLT Service and link any node of the source tree to a node of the target tree. The NPE throws. java.lang.NullPointerException at sun.awt.X11.XSelection.checkChange(XSelection.java:749) at sun.awt.X11.XSelection.access$200(XSelection.java:30) at sun.awt.X11.XSelection$SelectionEventHandler.dispatchEvent(XSelection.java:758) at sun.awt.X11.XToolkit.dispatchEvent(XToolkit.java:482) at sun.awt.X11.XToolkit.run(XToolkit.java:626) at sun.awt.X11.XToolkit.run(XToolkit.java:560) [catch] at java.lang.Thread.run(Thread.java:619)
The reason of the NPE is here: org.netbeans.modules.xslt.mapper.palette.XsltPaletteFactory public static class MapperPaletteTransferable extends ExTransferable.Single { protected Object getData() throws IOException, UnsupportedFlavorException { Node paletteItemNode = (Node)myPaletteItemLookup.lookup(Node.class); if (paletteItemNode != null) { DataObject dataObject = paletteItemNode.getCookie(DataObject.class); if (dataObject != null) { ..... The call to the method returns null paletteItemNode.getCookie(DataObject.class); I've tried to figure out why it return null but it hasn't managed yet. I'm going to communicate with the authors of the palette module.
My previous comment here was intended to another issue (Issue 97407) Please don't take it into consideration.
We need an assistance from people who are responsible on the sun.awt.X11 package. It looks like the defect in that Solaris specific code.
Oleg (Oleg.Sukhodolsky@Sun.COM) informed me that it is the AWT bug #6511815 (bugster). He sad that it has been fixed in the java 7.0 Special request has to be escalated to the AWT team if it necessary to fix it in the java 6.
Here is the reference to the bugster bug: http://bt2ws.central.sun.com/CrPrint?id=6511815
Here is the correct reference to the AWT bug http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6511815
Candidate for RNs. Nikita, did you try to workaround this problem.
I tried to workaround (together with Alexey Y.) but it didn't managed. I asked a person (Oleg Sukhodolsky) from awt team to look on it but he didn't suggest any workaround.
User should use JDK 1.6 u2 on Solaris. It should be specified in RNs.
The b02 (not FCS quality) is available on http://download.java.net/jdk6/binaries/. It should contain fix for 6511815. Please verify bug has gone with this build of JDK.
Looks like using b02 fixes the issue.
Irina, please make sure this issue will be in RNs.
Adding Alyona to CC because she is the RN responsible writer.
Will be RN-ed.
For the RN: On Solaris and Linux, the XSL Transformation Editor throws an NPE when you create links between the Source tree and Destination tree nodes. Workaround: use JDK 1.6 u2 available at http://download.java.net/jdk6/binaries/
Documented in NB 6.0 Preview RNs as follows: Issue #97558: On Solaris and Linux, the XSL Transformation Editor throws an NPE when you create links between the Source tree and Destination tree nodes. Description: On Solaris and Linux, the XSL Transformation Editor throws an NPE when you create links between the Source tree and Destination tree nodes. Workaround: Use JDK 1.6 u02 available at http://download.java.net/jdk6/binaries/.
r
I would say RN should contains : Issue #82142: On Solaris and Linux, http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6511815 every time you'll use Drag and Drop NPE rises. Workaround: Use JDK 1.6 u02 available at http://download.java.net/jdk6/binaries/. *** This issue has been marked as a duplicate of 82142 ***
Since this issue is RESOLVED, it will not be included in the release notes. In addition, http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6511815, referenced in the next to last entry in this issue is also closed/fixed.
Leaving in release notes per Sergey's request (reproducible on some supported JDK versions).
Close "DUPLICATE" issue