简体   繁体   中英

java.io.IOException: Owner failed to convert data

When copying an image from the clipboard into my application, I get :

java.io.IOException: Owner failed to convert data
    at sun.awt.X11.XSelection.validateDataGetter(XSelection.java:444)
    at sun.awt.X11.XSelection.getData(XSelection.java:305)
    at sun.awt.X11.XClipboard.getClipboardData(XClipboard.java:120)
    at sun.awt.datatransfer.SunClipboard.getData(SunClipboard.java:225)

According to this , it appears that the issues is from jdk 1.7.0. Great. But what can I do for my users that are currently using Java 7 (except asking them to migrate to java 8 ?)

Or maybe I didn't understand the issue ?

It would be useless answer.
According to Bugzilla tickets JDK-7107490 and JDK-7199196 , these bugs are fixed from jdk8. So, it's better recommending to migrate to java 8.

I'm not so familiar with JDK's updating schedule, but I think JDK7 is no more maintained (EOL: Java 7 Reaches End of Life ). If you created any patches for this bug, it would not be merged.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM