I am copying an animated GIF image to the system clipboard on one JVM and trying to retrieve it from another application running on a different JVM. But as soon as I call clipboard.getData(), the app freezes for a min and throws an IOException on solaris/linux with XToolkit. This works fine on the same JVM.
This exception causes the source application to freeze (app that copied the image to the clipboard). For image flavors, there is an issue with the supported flavors (a bug filed on this: 6180247) but that has been eliminated in this test by making sure that the flavor passed is a java image flavor. But still the exception is thrown.
Here is the exception:
java.io.IOException: Owner failed to convert data
This is reproducible on Tiger as well as Mustang on XToolkit. On Motif, it just hangs. This is not reproducible for same JVM case. Occurs only when calling getData() from a diff JVM.
I have attached the sample test. Execute the sample text on 2 JVMs separately as follows:
java ImageTransferTest cupanim.gif
Click 'Copy' on one app and 'Paste' on another, both running on diff JVMs. If you see the above exception on Linux/solaris, the bug is reproduced.
###@###.### 10/16/04 16:05 GMT