Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8113573

BufferOverflowException when pasting com.sun.javafx.scene.transfer.Clipboard content into e.g. OpenOffice Writer

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P3 P3
    • fx2.0
    • fx2.0
    • javafx
    • Windows 7 x64

      If I run the attached program, click "Copy", run OpenOffice 3.3 Writer, and choose "Edit|Paste" from the Writer's main menu, the Writer displays the message "Requested clipboard format is not available". At the same time, the test program generates the following exception in stderr:

      java.nio.BufferOverflowException
              at java.nio.HeapByteBuffer.put(HeapByteBuffer.java:165)
              at java.nio.ByteBuffer.put(ByteBuffer.java:813)
              at com.sun.glass.ui.win.WinSystemClipboard.fosSerialize(WinSystemClipboard.java:59)
              at com.sun.glass.ui.win.WinApplication._runLoop(Native Method)
              at com.sun.glass.ui.win.WinApplication.access$100(WinApplication.java:29)
              at com.sun.glass.ui.win.WinApplication$1$1.run(WinApplication.java:49)
              at java.lang.Thread.run(Thread.java:662)

      Note that not any content results in this error. If I try to Clipboard.place a simpler string such as "<b>Test</b>", the problem does not occur.

            morris Morris Meyer (Inactive)
            vbaranov Vasiliy Baranov (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported: