java.lang.IllegalStateException

There are no available Samebug tips for this exception. Do you have an idea how to solve this issue? A short tip would help users who saw this issue last week.

  • How to listen to the clipboard?
    via by marc weber,
  • Hi All, From time to time, switching back to a Spring RC window (ALT+TAB) from another Windows application seems to trigger this exception: java.lang.IllegalStateException: cannot open system clipboard I have not been able to reproduce this issue reliably, it happens from time to time. The stacktrace seems to be entirely in SpringRC/Swing. The issue faced is that the exception is thrown all the way to the user and there is no known things that I could do to remediate it. Furthermore, this does not seem to affect the application at all... so my suggestion would be to catch this exception in TextComponentPopup and simply log a warning? I know it would be better to find the root cause but that seems to be between Windows and the JRE... Has anyone seen this? java.lang.IllegalStateException: cannot open system clipboard java.lang.IllegalStateException: cannot open system clipboard at sun.awt.windows.WClipboard.openClipboard(Native Method) at sun.awt.datatransfer.ClipboardTransferable.(ClipboardTransferable.java:61) at sun.awt.datatransfer.SunClipboard.getContents(SunClipboard.java:130) at org.springframework.richclient.text.TextComponentPopup.canPasteFromClipboard (TextComponentPopup.java:261) at org.springframework.richclient.text.TextComponentPopup.updatePasteStatus(TextComponentPopup.java:253) at org.springframework.richclient.text.TextComponentPopup.access$2 (TextComponentPopup.java:252) at org.springframework.richclient.text.TextComponentPopup$1.actionPerformed(TextComponentPopup.java:106) at javax.swing.Timer.fireActionPerformed(Timer.java :271) at javax.swing.Timer$DoPostEvent.run(Timer.java:201) at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209) at java.awt.EventQueue.dispatchEvent(EventQueue.java :461) at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:242) at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:163) at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:157) at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:149) at java.awt.EventDispatchThread.run (EventDispatchThread.java:110)
    via by Benoit Xhenseval,
  • Hi All, From time to time, switching back to a Spring RC window (ALT+TAB) from another Windows application seems to trigger this exception: java.lang.IllegalStateException: cannot open system clipboard I have not been able to reproduce this issue reliably, it happens from time to time. The stacktrace seems to be entirely in SpringRC/Swing. The issue faced is that the exception is thrown all the way to the user and there is no known things that I could do to remediate it. Furthermore, this does not seem to affect the application at all... so my suggestion would be to catch this exception in TextComponentPopup and simply log a warning? I know it would be better to find the root cause but that seems to be between Windows and the JRE... Has anyone seen this? java.lang.IllegalStateException: cannot open system clipboard java.lang.IllegalStateException: cannot open system clipboard at sun.awt.windows.WClipboard.openClipboard(Native Method) at sun.awt.datatransfer.ClipboardTransferable.(ClipboardTransferable.java:61) at sun.awt.datatransfer.SunClipboard.getContents(SunClipboard.java:130) at org.springframework.richclient.text.TextComponentPopup.canPasteFromClipboard (TextComponentPopup.java:261) at org.springframework.richclient.text.TextComponentPopup.updatePasteStatus(TextComponentPopup.java:253) at org.springframework.richclient.text.TextComponentPopup.access$2 (TextComponentPopup.java:252) at org.springframework.richclient.text.TextComponentPopup$1.actionPerformed(TextComponentPopup.java:106) at javax.swing.Timer.fireActionPerformed(Timer.java :271) at javax.swing.Timer$DoPostEvent.run(Timer.java:201) at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209) at java.awt.EventQueue.dispatchEvent(EventQueue.java :461) at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:242) at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:163) at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:157) at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:149) at java.awt.EventDispatchThread.run (EventDispatchThread.java:110)
    via by Benoit Xhenseval,
  • Java Clipboard availability
    via Stack Overflow by Dziugas
    ,
  • copying image to system clipboard
    via by Matthew Fleming,
    • java.lang.IllegalStateException: cannot open system clipboard at sun.awt.windows.WClipboard.openClipboard(Native Method) at sun.awt.datatransfer.ClipboardTransferable.<init>(Unknown Source) at sun.awt.datatransfer.SunClipboard.getContents(Unknown Source) at oracle.ewt.lwAWT.lwText.LWTextComponent._pasteImpl(Unknown Source) at oracle.ewt.lwAWT.lwText.LWTextComponent.paste(Unknown Source) at oracle.ewt.lwAWT.lwText.LWTextComponent.processKeyEvent(Unknown Source) at oracle.ewt.lwAWT.lwText.LWCommonText.processKeyEvent(Unknown Source) at oracle.ewt.lwAWT.lwText.LWTextField.processKeyEvent(Unknown Source) at java.awt.Component.processEvent(Unknown Source) at java.awt.Container.processEvent(Unknown Source) at oracle.ewt.lwAWT.LWComponent.processEventImpl(Unknown Source) at oracle.ewt.lwAWT.lwText.LWTextComponent.processEventImpl(Unknown Source) at oracle.ewt.lwAWT.lwText.LWTextField.processEventImpl(Unknown Source) at oracle.ewt.lwAWT.LWComponent.redispatchEvent(Unknown Source) at oracle.ewt.lwAWT.LWComponent.processEvent(Unknown Source) at java.awt.Component.dispatchEventImpl(Unknown Source) at java.awt.Container.dispatchEventImpl(Unknown Source) at java.awt.Component.dispatchEvent(Unknown Source) at java.awt.KeyboardFocusManager.redispatchEvent(Unknown Source) at java.awt.DefaultKeyboardFocusManager.dispatchKeyEvent(Unknown Source) at java.awt.DefaultKeyboardFocusManager.preDispatchKeyEvent(Unknown Source) at java.awt.DefaultKeyboardFocusManager.typeAheadAssertions(Unknown Source) at java.awt.DefaultKeyboardFocusManager.dispatchEvent(Unknown Source) at java.awt.Component.dispatchEventImpl(Unknown Source) at java.awt.Container.dispatchEventImpl(Unknown Source) at java.awt.Window.dispatchEventImpl(Unknown Source) at java.awt.Component.dispatchEvent(Unknown Source) at java.awt.EventQueue.dispatchEvent(Unknown Source) at java.awt.EventDispatchThread.pumpOneEventForHierarchy(Unknown Source) at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source) at java.awt.EventDispatchThread.pumpEvents(Unknown Source) at java.awt.EventDispatchThread.pumpEvents(Unknown Source) at java.awt.EventDispatchThread.run(Unknown Source)
    No Bugmate found.