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.

Bug 233347 - sun.awt.X11.XException: Cannot write XdndAware property
Summary: sun.awt.X11.XException: Cannot write XdndAware property
Status: RESOLVED FIXED
Alias: None
Product: db
Classification: Unclassified
Component: Show Data (show other bugs)
Version: 7.4
Hardware: PC Linux
: P3 normal (vote)
Assignee: Libor Fischmeistr
URL:
Keywords: PATCH_AVAILABLE
Depends on:
Blocks:
 
Reported: 2013-07-24 20:48 UTC by gholmer
Modified: 2013-08-09 10:47 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
NetBeans messages.log file requested by the exception reporter dialog. (634.45 KB, application/octet-stream)
2013-07-24 20:48 UTC, gholmer
Details

Note You need to log in before you can comment on or make changes to this bug.
Description gholmer 2013-07-24 20:48:59 UTC
Created attachment 137736 [details]
NetBeans messages.log file requested by the exception reporter dialog.

Steps to reproduce:

1) Run a query in the Database Explorer.
2) Double-click a long text field to edit it.
3) Click the ellipsis button that appears at the right of the field.

NetBeans messages.log attached. Exception Reporter gave error message indicating that the log file could not be uploaded.
Comment 1 matthias42 2013-07-24 21:15:31 UTC
I think the netbeans devs should kick their java developing colleges hard enough to fix:

http://bugs.sun.com/view_bug.do?bug_id=7027598
http://bugs.sun.com/view_bug.do?bug_id=7100524

and most probably some more duplicates. I'll try to have a look at a work around described in jdk bug 7027598.

This could also be closed as a duplicate of bug #193917.
Comment 2 matthias42 2013-07-28 12:24:40 UTC
This is the suggested workaround. I could reproduce the problem and this fixed it. The patch is short enough to apply.

# This patch file was generated by NetBeans IDE
# It uses platform neutral UTF-8 encoding and \n newlines.
--- Base (BASE)
+++ Locally Modified (Based On LOCAL)
@@ -138,6 +138,8 @@
 
     protected void editCell(JTable table, int row, int column) {
         JTextArea textArea = new JTextArea(20, 80);
+        // Work aroung JDK bugs 7027598 (this bug suggests this work-around), 7100524 
+        textArea.setDropTarget(null);
         TableModel tm = table.getModel();
         int modelRow = table.convertRowIndexToModel(row);
         int modelColumn = table.convertColumnIndexToModel(column);
Comment 3 Libor Fischmeistr 2013-08-08 07:39:57 UTC
Patch applied in: http://hg.netbeans.org/core-main/rev/eb55c917d48c

Matthias thank you very much for it.

Though it's almost duplicate of issue 193917 I rather keep it in DB cause it has been "fixed" by workaround.
Comment 4 matthias42 2013-08-08 17:25:54 UTC
(In reply to comment #3)
> Though it's almost duplicate of issue 193917 I rather keep it in DB cause it
> has been "fixed" by workaround.

I agree - the reference to 193917 was meant to be informative (known bug in netbeans and a known bug in the JDK). So thanks for applying the necessary change!
Comment 5 Quality Engineering 2013-08-09 10:47:54 UTC
Integrated into 'main-silver', will be available in build *201308090746* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/eb55c917d48c
User: Libor Fischmeistr <lfischmeistr@netbeans.org>
Log: #233347: sun.awt.X11.XException: Cannot write XdndAware property