Estoy desarrollando una aplicación Swing. Y cuando ejecuto me da el siguiente error: Exception in thread "AWT-EventQueue-0" java.lang.IllegalStateException: cannot open system clipboard
No sé qué puede estar pasando pero me imagino que debe ser algún bug de NetBeans, ya que no estoy trabajando con el Clipboard.
Este error puede que no me lo dé nunca o me lo da ni bien abro un JInternalFrame o JFrame. No es algo estático. Me da el error en diversos puntos o directamente no me lo da, eso es lo que me desorienta.
Les paso el track trace completo:
Código Javascript:
Espero que me puedan ayudar. Muchas gracias de antemano !!! Ver original
Exception in thread "AWT-EventQueue-0" java.lang.IllegalStateException: cannot open system clipboard at sun.awt.windows.WClipboard.openClipboard(Native Method) at sun.awt.datatransfer.SunClipboard.getClipboardFormatsOpenClose(SunClipboard.java:315) at sun.awt.datatransfer.SunClipboard.isDataFlavorAvailable(SunClipboard.java:175) at org.jdesktop.application.TextActions.updateTextActions(TextActions.java:132) at org.jdesktop.application.TextActions.updateFocusOwner(TextActions.java:92) at org.jdesktop.application.ActionManager$KeyboardFocusPCL.propertyChange(ActionManager.java:191) at java.beans.PropertyChangeSupport.firePropertyChange(PropertyChangeSupport.java:339) at java.beans.PropertyChangeSupport.firePropertyChange(PropertyChangeSupport.java:276) at java.awt.KeyboardFocusManager.firePropertyChange(KeyboardFocusManager.java:1389) at java.awt.KeyboardFocusManager.setGlobalPermanentFocusOwner(KeyboardFocusManager.java:687) at java.awt.DefaultKeyboardFocusManager.dispatchEvent(DefaultKeyboardFocusManager.java:490) at java.awt.Component.dispatchEventImpl(Component.java:4502) at java.awt.Container.dispatchEventImpl(Container.java:2099) at java.awt.Component.dispatchEvent(Component.java:4460) at java.awt.KeyboardFocusManager.dispatchAndCatchException(KeyboardFocusManager.java:2557) at java.awt.KeyboardFocusManager.processCurrentLightweightRequests(KeyboardFocusManager.java:2646) at java.awt.KeyboardFocusManager.retargetFocusEvent(KeyboardFocusManager.java:2905) at java.awt.Component.dispatchEventImpl(Component.java:4495) at java.awt.Container.dispatchEventImpl(Container.java:2099) at java.awt.Window.dispatchEventImpl(Window.java:2478) at java.awt.Component.dispatchEvent(Component.java:4460) at java.awt.EventQueue.dispatchEvent(EventQueue.java:599) at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:269) at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:184) at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:174) at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:169) at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:161) at java.awt.EventDispatchThread.run(EventDispatchThread.java:122)