Pasting images from browser not working properly in OSX

Description

  • Pasting images from browser not working propelry in OSX, drag and drop does work

Activity

Show:
Paul Taylor
December 6, 2016, 10:36 AM

Errors vary depending on browser and where file comes from

om.jthink.jaikoz.exception.InvalidDataException: Filename /Users/paul/Music/B.E. Taylor Group/Our World/B.E. Taylor Group - 02 - Question Of Love.flac does not seem to exist and cannot be loaded
at com.jthink.jaikoz.data.LibBridge.loadFromFile(LibBridge.java:110)
at com.jthink.jaikoz.data.FileBridgeFactory.loadFile(FileBridgeFactory.java:125)
at com.jthink.jaikoz.data.LoadFileWorker.call(LoadFileWorker.java:77)
at com.jthink.jaikoz.data.LoadFileWorker.call(LoadFileWorker.java:18)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at java.lang.Thread.run(Thread.java:745)
06/12/2016 10.20.48:com.jthink.jaikoz.data.AudioFileFromDirectoryAndFilesLoader:run:SEVERE: Load Songs:Endatabase song count:3864
06/12/2016 10.20.48:com.jthink.jaikoz.indexed.DataIndexer:reindex:SEVERE: Reindex start:Tue Dec 06 10:20:48 GMT 2016
06/12/2016 10.20.53:com.jthink.jaikoz.indexed.DataIndexer:reindex:SEVERE: Reindex end:Tue Dec 06 10:20:53 GMT 2016
06/12/2016 10.22.44:com.jthink.jaikoz.draganddrop.TableDragFilesTransferHandler:importData:SEVERE: ImportData:java.awt.dnd.DropTargetContext$TransferableProxy@6f64c590
06/12/2016 10.23.10:com.jthink.jaikoz.draganddrop.TableDragFilesTransferHandler:importData:SEVERE: ImportData:java.awt.dnd.DropTargetContext$TransferableProxy@7c1c4de2
06/12/2016 10.29.25:com.jthink.jaikoz.draganddrop.TableDragFilesTransferHandler:importData:SEVERE: ImportData:java.awt.dnd.DropTargetContext$TransferableProxy@6be03402
06/12/2016 10.29.41:com.jthink.jaikoz.draganddrop.TableDragFilesTransferHandler:importData:SEVERE: ImportData:java.awt.dnd.DropTargetContext$TransferableProxy@73dcafab
06/12/2016 10.29.59:com.jthink.jaikoz.draganddrop.ImageHandler:createImageCell:SEVERE: Problem dropping images:no protocol: <?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<array>
<string>https://img.discogs.com/eCx2HSayuxqAyLCUbvvyRjE3-2g=/fit-in/550x550/filters:strip_icc():format(jpeg):mode_rgb():quality(90)/discogs-images/R-2805906-1396136015-2237.jpeg.jpg</string>
<string></string>
</array>
</plist>

java.net.MalformedURLException: no protocol: <?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<array>
<string>https://img.discogs.com/eCx2HSayuxqAyLCUbvvyRjE3-2g=/fit-in/550x550/filters:strip_icc():format(jpeg):mode_rgb():quality(90)/discogs-images/R-2805906-1396136015-2237.jpeg.jpg</string>
<string></string>
</array>
</plist>

at java.net.URL.<init>(URL.java:593)
at java.net.URL.<init>(URL.java:490)
at java.net.URL.<init>(URL.java:439)
at sun.lwawt.macosx.CDataTransferer.translateBytes(CDataTransferer.java:137)
at sun.awt.datatransfer.ClipboardTransferable$DataFactory.getTransferData(ClipboardTransferable.java:71)
at sun.awt.datatransfer.ClipboardTransferable.getTransferData(ClipboardTransferable.java:168)
at com.jthink.jaikoz.draganddrop.ImageHandler.createImageCell(ImageHandler.java:45)
at com.jthink.jaikoz.table.tablemodel.TagChangeMetadataModel.pasteIntoCells(TagChangeMetadataModel.java:721)
at com.jthink.jaikoz.table.tablemodel.TagChangeMetadataModel.pasteMultiRowValueIntoCells(TagChangeMetadataModel.java:914)
at com.jthink.jaikoz.action.PasteMultiCellContentsAction$PasteEditTask.runEdit(PasteMultiCellContentsAction.java:44)
at com.jthink.jaikoz.action.EditAction$RunEditTask.run(EditAction.java:125)
at java.lang.Thread.run(Thread.java:745)
06/12/2016 10.31.38:com.jthink.jaikoz.draganddrop.TableDragFilesTransferHandler:importData:SEVERE: ImportData:java.awt.dnd.DropTargetContext$TransferableProxy@1d9f2be
06/12/2016 10.31.38:com.jthink.jaikoz.draganddrop.ImageHandler:createImageCell:SEVERE: Problem dropping images:unknown protocol: data
java.awt.dnd.InvalidDnDOperationException: unknown protocol: data
at sun.awt.dnd.SunDropTargetContextPeer.getTransferData(SunDropTargetContextPeer.java:271)
at sun.awt.datatransfer.TransferableProxy.getTransferData(TransferableProxy.java:73)
at java.awt.dnd.DropTargetContext$TransferableProxy.getTransferData(DropTargetContext.java:376)
at com.jthink.jaikoz.draganddrop.ImageHandler.createImageCell(ImageHandler.java:45)
at com.jthink.jaikoz.draganddrop.ImageHandler.createAndPasteCell(ImageHandler.java:135)
at com.jthink.jaikoz.draganddrop.FileDropTarget.drop(FileDropTarget.java:201)
at com.jthink.jaikoz.draganddrop.TableDragFilesTransferHandler.importData(TableDragFilesTransferHandler.java:141)
at javax.swing.TransferHandler.importData(TransferHandler.java:827)
at javax.swing.TransferHandler$DropHandler.drop(TransferHandler.java:1544)
at java.awt.dnd.DropTarget.drop(DropTarget.java:455)
at javax.swing.TransferHandler$SwingDropTarget.drop(TransferHandler.java:1282)
at sun.awt.dnd.SunDropTargetContextPeer.processDropMessage(SunDropTargetContextPeer.java:538)
at sun.lwawt.macosx.CDropTargetContextPeer.processDropMessage(CDropTargetContextPeer.java:143)
at sun.awt.dnd.SunDropTargetContextPeer$EventDispatcher.dispatchDropEvent(SunDropTargetContextPeer.java:852)
at sun.awt.dnd.SunDropTargetContextPeer$EventDispatcher.dispatchEvent(SunDropTargetContextPeer.java:776)
at sun.awt.dnd.SunDropTargetEvent.dispatch(SunDropTargetEvent.java:48)
at java.awt.Component.dispatchEventImpl(Component.java:4746)
at java.awt.Container.dispatchEventImpl(Container.java:2294)
at java.awt.Component.dispatchEvent(Component.java:4713)
at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4888)
at java.awt.LightweightDispatcher.processDropTargetEvent(Container.java:4599)
at java.awt.LightweightDispatcher.dispatchEvent(Container.java:4461)
at java.awt.Container.dispatchEventImpl(Container.java:2280)
at java.awt.Window.dispatchEventImpl(Window.java:2750)
at java.awt.Component.dispatchEvent(Component.java:4713)
at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:758)
at java.awt.EventQueue.access$500(EventQueue.java:97)
at java.awt.EventQueue$3.run(EventQueue.java:709)
at java.awt.EventQueue$3.run(EventQueue.java:703)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:76)
at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:86)
at java.awt.EventQueue$4.run(EventQueue.java:731)
at java.awt.EventQueue$4.run(EventQueue.java:729)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:76)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:728)
at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:201)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:116)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:105)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:93)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:82)
06/12/2016 10.32.39:com.jthink.jaikoz.draganddrop.TableDragFilesTransferHandler:importData:SEVERE: ImportData:java.awt.dnd.DropTargetContext$TransferableProxy@6244786a
06/12/2016 10.32.42:com.jthink.jaikoz.celldata.ImageData:<init>:WARNING: Unable to read file as image:https://www.google.co.uk/imgres?imgurl=https%3A%2F%2Fi.ytimg.com%2Fvi%2FyaYNwEoYzmI%2Fhqdefault.jpg&imgrefurl=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DyaYNwEoYzmI&docid=4CPclN_KgB5iYM&tbnid=iiWhdAUycLtf2M%3A&vet=1&w=480&h=360&bih=376&biw=1275&ved=0ahUKEwiAzfbZrt_QAhWrKMAKHfqqBKgQMwggKAQwBA&iact=mrc&uact=8
06/12/2016 10.32.42:com.jthink.jaikoz.draganddrop.ImageUrlHandler:createImageCell:SEVERE: Problem dropping images from :https://www.google.co.uk/imgres?imgurl=https%3A%2F%2Fi.ytimg.com%2Fvi%2FyaYNwEoYzmI%2Fhqdefault.jpg&imgrefurl=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DyaYNwEoYzmI&docid=4CPclN_KgB5iYM&tbnid=iiWhdAUycLtf2M%3A&vet=1&w=480&h=360&bih=376&biw=1275&ved=0ahUKEwiAzfbZrt_QAhWrKMAKHfqqBKgQMwggKAQwBA&iact=mrc&uact=8:The file https://www.google.co.uk/imgres?imgurl=https%3A%2F%2Fi.ytimg.com%2Fvi%2FyaYNwEoYzmI%2Fhqdefault.jpg&imgrefurl=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DyaYNwEoYzmI&docid=4CPclN_KgB5iYM&tbnid=iiWhdAUycLtf2M%3A&vet=1&w=480&h=360&bih=376&biw=1275&ved=0ahUKEwiAzfbZrt_QAhWrKMAKHfqqBKgQMwggKAQwBA&iact=mrc&uact=8 does not appear to be a valid image file, so it has been ignored
java.io.IOException: The file https://www.google.co.uk/imgres?imgurl=https%3A%2F%2Fi.ytimg.com%2Fvi%2FyaYNwEoYzmI%2Fhqdefault.jpg&imgrefurl=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DyaYNwEoYzmI&docid=4CPclN_KgB5iYM&tbnid=iiWhdAUycLtf2M%3A&vet=1&w=480&h=360&bih=376&biw=1275&ved=0ahUKEwiAzfbZrt_QAhWrKMAKHfqqBKgQMwggKAQwBA&iact=mrc&uact=8 does not appear to be a valid image file, so it has been ignored
at com.jthink.jaikoz.celldata.ImageData.<init>(ImageData.java:279)
at com.jthink.jaikoz.draganddrop.ImageUrlHandler.createImageCell(ImageUrlHandler.java:29)
at com.jthink.jaikoz.draganddrop.ImageHandler.createAndPasteCell(ImageHandler.java:135)
at com.jthink.jaikoz.draganddrop.FileDropTarget.drop(FileDropTarget.java:252)
at com.jthink.jaikoz.draganddrop.TableDragFilesTransferHandler.importData(TableDragFilesTransferHandler.java:141)
at javax.swing.TransferHandler.importData(TransferHandler.java:827)
at javax.swing.TransferHandler$DropHandler.drop(TransferHandler.java:1544)
at java.awt.dnd.DropTarget.drop(DropTarget.java:455)
at javax.swing.TransferHandler$SwingDropTarget.drop(TransferHandler.java:1282)
at sun.awt.dnd.SunDropTargetContextPeer.processDropMessage(SunDropTargetContextPeer.java:538)
at sun.lwawt.macosx.CDropTargetContextPeer.processDropMessage(CDropTargetContextPeer.java:143)
at sun.awt.dnd.SunDropTargetContextPeer$EventDispatcher.dispatchDropEvent(SunDropTargetContextPeer.java:852)
at sun.awt.dnd.SunDropTargetContextPeer$EventDispatcher.dispatchEvent(SunDropTargetContextPeer.java:776)
at sun.awt.dnd.SunDropTargetEvent.dispatch(SunDropTargetEvent.java:48)
at java.awt.Component.dispatchEventImpl(Component.java:4746)
at java.awt.Container.dispatchEventImpl(Container.java:2294)
at java.awt.Component.dispatchEvent(Component.java:4713)
at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4888)
at java.awt.LightweightDispatcher.processDropTargetEvent(Container.java:4599)
at java.awt.LightweightDispatcher.dispatchEvent(Container.java:4461)
at java.awt.Container.dispatchEventImpl(Container.java:2280)
at java.awt.Window.dispatchEventImpl(Window.java:2750)
at java.awt.Component.dispatchEvent(Component.java:4713)
at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:758)
at java.awt.EventQueue.access$500(EventQueue.java:97)
at java.awt.EventQueue$3.run(EventQueue.java:709)
at java.awt.EventQueue$3.run(EventQueue.java:703)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:76)
at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:86)
at java.awt.EventQueue$4.run(EventQueue.java:731)
at java.awt.EventQueue$4.run(EventQueue.java:729)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:76)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:728)
at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:201)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:116)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:105)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:93)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:82)

Paul Taylor
December 7, 2016, 11:18 AM

Fixed due to Javas undocumented use of sun.awt.image.MultiResolutionImage
Tested on OSX with Firefox, Safari and Chrome,

Fixed

Reporter

Paul Taylor

Labels

None

Forum Username

paul

os

None

Fix versions

Affects versions

Priority

Major
Configure