JTextComponent paste exception
Michael Hall
mik3hall at gmail.com
Wed Dec 12 17:51:58 PST 2012
I have an application that runs off the jdk for tools access.
If I try pasting text into a JTextComponent from an email message I get the following exception.
IOException:java.io.FileNotFoundException: /Library/Java/JavaVirtualMachines/jdk1.7.0_07.jdk/Contents/Home/lib/flavormap.properties (No such file or directory) while loading default flavormap.properties file:/Library/Java/JavaVirtualMachines/jdk1.7.0_07.jdk/Contents/Home/lib/flavormap.properties
java.io.IOException: cannot transfer non-text data as Reader
at sun.awt.datatransfer.DataTransferer.translateTransferable(DataTransferer.java:1215)
at sun.lwawt.macosx.CDataTransferer.translateTransferable(CDataTransferer.java:131)
at sun.lwawt.macosx.CClipboard.setContentsNative(CClipboard.java:76)
at sun.awt.datatransfer.SunClipboard.setContents(SunClipboard.java:110)
at javax.swing.TransferHandler.exportToClipboard(TransferHandler.java:787)
at javax.swing.TransferHandler$TransferAction.actionPerformedImpl(TransferHandler.java:1745)
at javax.swing.TransferHandler$TransferAction.access$700(TransferHandler.java:1684)
at javax.swing.TransferHandler$TransferAction$1.run(TransferHandler.java:1707)
at javax.swing.TransferHandler$TransferAction$1.run(TransferHandler.java:1705)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:76)
at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:87)
at javax.swing.TransferHandler$TransferAction$2.run(TransferHandler.java:1722)
at javax.swing.TransferHandler$TransferAction$2.run(TransferHandler.java:1720)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:76)
at javax.swing.TransferHandler$TransferAction.actionPerformed(TransferHandler.java:1719)
at javax.swing.text.JTextComponent.invokeAction(JTextComponent.java:1513)
at javax.swing.text.JTextComponent.copy(JTextComponent.java:1474)
As near as I can tell the email message is plain text.
Content-Type: text/plain;
charset=UTF-8
Content-Transfer-Encoding: 7bit
To be expected when running with the jdk? Or, not to be expected and bug report?
Michael Hall
trz nio.2 for OS X http://www195.pair.com/mik3hall/index.html#trz
HalfPipe Java 6/7 shell app http://www195.pair.com/mik3hall/index.html#halfpipe
AppConverter convert Apple jvm to openjdk apps http://www195.pair.com/mik3hall/index.html#appconverter
More information about the macosx-port-dev
mailing list