skuda Posted February 3, 2011 Share Posted February 3, 2011 I am executing from my app JasperViewer for every .jprint file created in my application, if i leave the isExitOnClose=true it closes my application when i close the window and if i use isExitOnClose=false many times after the first usage (the first ever work) i get this errors:sun.awt.X11.XException: Cannot write XdndAware property at sun.awt.X11.XDnDDropTargetProtocol.registerDropTarget(XDnDDropTargetProtocol.java:79) at sun.awt.X11.XDropTargetRegistry.registerDropSite(XDropTargetRegistry.java:554) at sun.awt.X11.XWindowPeer.addDropTarget(XWindowPeer.java:1633) at sun.awt.X11.XComponentPeer.addDropTarget(XComponentPeer.java:1509)at java.awt.dnd.DropTarget.addNotify(DropTarget.java:493) at java.awt.Component.addNotify(Component.java:6666) at java.awt.Container.addNotify(Container.java:2567) at javax.swing.JComponent.addNotify(JComponent.java:4685) at java.awt.Container.addNotify(Container.java:2578) at javax.swing.JComponent.addNotify(JComponent.java:4685) at java.awt.Container.addNotify(Container.java:2578) at javax.swing.JComponent.addNotify(JComponent.java:4685) at java.awt.Container.addImpl(Container.java:1068) at java.awt.Container.add(Container.java:927) at net.sf.jasperreports.view.JasperViewer.<init>(JasperViewer.java:145) at net.sf.jasperreports.view.JasperViewer.viewReport(JasperViewer.java:416) at net.sf.jasperreports.view.JasperViewer.viewReport(JasperViewer.java:380)I am launching for now every time with java commandline to get a new jvm and can trust it but it is slow obviously slow to start a new jvm every time. Link to comment Share on other sites More sharing options...
m_selmi Posted March 4, 2011 Share Posted March 4, 2011 Hi, I have the same problem.The application run to Linux Ubuntu v.9.04 or v. 10.04 with JasperReport 3.7.1 and I had the problem AFTER the update of JRE from v. 1_6_22 to 1_6_24.The problem is random, pushing the button the viewer sometimes start and view the report, sometimes I get this error:sun.awt.X11.XException: Cannot write XdndAware property at sun.awt.X11.XDnDDropTargetProtocol.registerDropTarget(XDnDDropTargetProtocol.java:79) at ecc...I have tried to update to JasperReport v. 4.0.1, but the result is the same.Is there a solution or workaround?RegardsMarco Link to comment Share on other sites More sharing options...
skuda Posted March 4, 2011 Author Share Posted March 4, 2011 Not that i know, but i have the same problem in my development machine (Arch Linux 2.6.37 x86_64 with java 1.6.0_24 64 bits) that in the production machine (Debian Linux 2.6.32-5-686 with java 1.6.0_22 32 bits).Regards,Miguel Angel. Link to comment Share on other sites More sharing options...
ernestoo Posted March 30, 2011 Share Posted March 30, 2011 Strange, I'm not experienceing that on Debian with 64 bit 1.6.0_24, but have a customer experiencing it on 1.6.0_23 (RedHat). There's a bug report on Netbeans: http://netbeans.org/bugzilla/show_bug.cgi?id=193917 Link to comment Share on other sites More sharing options...
skuda Posted June 16, 2011 Author Share Posted June 16, 2011 Hello, for all the people suffering this problem, i can confirm that the workaround given here http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=7027598 fixes the problem. Regards,Miguel Angel. Link to comment Share on other sites More sharing options...
rpoillot Posted August 2, 2011 Share Posted August 2, 2011 Hi all!Would you please explain here the solution? The page at Oracle (yeah... not Sun...) says "This bug is not available."Thanks in advance, -- Ronald Link to comment Share on other sites More sharing options...
skuda Posted August 3, 2011 Author Share Posted August 3, 2011 Hi! The workaround it is to launch java with -DsuppressSwingDropSupport=true parameter in command line. Regards,Miguel Angel. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now