Page 1 of 2
File Uploader problem
PostPosted:Fri Feb 03, 2012 11:36 am
by toroman
Hi,
I just upgraded from 5.1.8 to 5.1.9 with success, but I have a problem that remains.
(I'm running the server on Ubuntu 10.04 64bit)
on Ubuntu client (also 10.04 64bit), the File Uploader shows, (right click shows a context menu - About and Exit)
but drag and drop operation is not functioning. The applet seems not to detect it.
I see people reporting File Uploader work on Linux.
The problem is on the client side, as I get the same behavior on the demo site. Is it a problem with 64 bit java?
Tried Firefox and Chrome.
Best regards,
Dragan
P.S. also it seems from time to time the Notes edit refuses to receive focus in the text edit area - the buttons are still working. But after refreshing the page in browser it is functioning again.
Re: File Uploader problem
PostPosted:Sun Feb 05, 2012 10:18 am
by jllort
File uploader could generate some confusion, because while is uploading there's no message that's doing it. I suggest upload a little document to ensure is running or not, and in case is not running open java console to taking a look if there's some error
Re: File Uploader problem
PostPosted:Mon Feb 06, 2012 8:37 pm
by toroman
Of course I tried a small file first. (I have tested the applet on Win and it is working)
As I explained the problem is not local.. It does not work on OpenKM demo also from my 64bit ubuntu.
I did not have much time, so I just quickly tried to take a look at the Java console, but funny enough the applet was not listed... Will take a look later, but it would help if I get a positive feedback that someone got it working on Linux with 64bit Java.
It acts like it does not receive drag/drop (the mouse pointer suggesst that) ...
So, Is it working for ANYBODY using 64bit Java on Linux? If Yes, I will find out what is wrong, but if not...
Re: File Uploader problem
PostPosted:Mon Feb 06, 2012 8:53 pm
by toroman
Also, have you experienced Notes not receiving focus until browser refresh?
It is woking ok with Internet Explorer but Chrome/Firefox sometimes (often) behave like this.
Should I start a new topic?
Re: File Uploader problem
PostPosted:Tue Feb 07, 2012 7:39 am
by pavila
According with
http://issues.openkm.com/view.php?id=2043 and as requested by several users, I have made some improvements in the Uploader Applet. I think this version is more user friendly. You can view last changes at
http://demo.openkm.com
If you still see the old Uploader, clean browser and Java Plugin cache.
Comments are welcome.
Re: File Uploader problem
PostPosted:Thu Feb 16, 2012 12:55 pm
by toroman
Sorry for a bit late reply... busy days.
Yes, the new uploader is working. Do I have to install a snapshot to get it?
Regards
Re: File Uploader problem
PostPosted:Fri Feb 17, 2012 12:06 pm
by jllort
You can find our nighly build at integration.openkm.com
Re: File Uploader problem
PostPosted:Fri Feb 24, 2012 5:20 pm
by mateuszknapik
Hi.
I've downloaded latest OpenKM.war from integration.openkm.com, but uploader applet included there is still in 8743 version (not the new one, like on demo.openkm.com). Where can I download the new version?
BR
Mateusz
Re: File Uploader problem
PostPosted:Sun Feb 26, 2012 8:29 am
by jllort
It's jboss - the classic cache jboss bug - problem, stop jboss, delete tmp and work folder into default folder. Then start jboss.
Try cleaning browser ... clean applet from sometimes is not easy, "Sun java plugin control panel" in Windows Control Panel if you've got this OS.
Re: File Uploader problem
PostPosted:Wed Feb 29, 2012 4:19 pm
by mateuszknapik
Hi.
Deleting tmp and work folders helped. Thank you

Now I have the new uploader and it's working great under Windows. But on Mac OS X 10.6 with Java 1.6.0_29, when I drop file into uploader's window, I get something like this in java console and file doesn't upload to OpenKM:
Code: Select alljava.lang.IllegalArgumentException: URI has an authority component
at java.io.File.<init>(File.java:368)
at com.openkm.applet.Util.textURIListToFileList(Util.java:74)
at com.openkm.applet.MainFrame.drop(MainFrame.java:361)
at java.awt.dnd.DropTarget.drop(DropTarget.java:434)
at sun.awt.dnd.SunDropTargetContextPeer.processDropMessage(SunDropTargetContextPeer.java:519)
at sun.awt.dnd.SunDropTargetContextPeer$EventDispatcher.dispatchDropEvent(SunDropTargetContextPeer.java:832)
at sun.awt.dnd.SunDropTargetContextPeer$EventDispatcher.dispatchEvent(SunDropTargetContextPeer.java:756)
at sun.awt.dnd.SunDropTargetEvent.dispatch(SunDropTargetEvent.java:30)
at java.awt.Component.dispatchEventImpl(Component.java:4592)
at java.awt.Container.dispatchEventImpl(Container.java:2143)
at java.awt.Component.dispatchEvent(Component.java:4565)
at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4621)
at java.awt.LightweightDispatcher.processDropTargetEvent(Container.java:4356)
at java.awt.LightweightDispatcher.dispatchEvent(Container.java:4207)
at java.awt.Container.dispatchEventImpl(Container.java:2129)
at java.awt.Window.dispatchEventImpl(Window.java:2478)
at java.awt.Component.dispatchEvent(Component.java:4565)
at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:679)
at java.awt.EventQueue.access$000(EventQueue.java:85)
at java.awt.EventQueue$1.run(EventQueue.java:638)
at java.awt.EventQueue$1.run(EventQueue.java:636)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:87)
at java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:98)
at java.awt.EventQueue$2.run(EventQueue.java:652)
at java.awt.EventQueue$2.run(EventQueue.java:650)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:87)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:649)
at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:296)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:211)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:201)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:196)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:188)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:122)
2012-02-29 17:12:27 com.openkm.applet.MainFrame drop
INFO: Files: []
The same problem occurs when I try to do it on demo.openkm.com.
Thank you for your assistance.
Re: File Uploader problem
PostPosted:Fri Mar 02, 2012 10:17 pm
by pavila
Sadly I don't have a Mac to test it. I will review the code to see why drag and drop does not work with this Operating System.
Re: File Uploader problem
PostPosted:Sun Mar 04, 2012 8:56 pm
by pavila
Please, unzip the attached archive and execute it on your Mac OSX, and tell me if the files are dropped in the window. Run it from the command line to see the log output:
Re: File Uploader problem
PostPosted:Wed Mar 07, 2012 2:53 pm
by mateuszknapik
Here's the log from terminal:
Code: Select allFileDrop: Hierarchy changed.
FileDrop: Drop target added to component.
FileDrop: Hierarchy changed.
FileDrop: Drop target added to component.
FileDrop: dragEnter event.
java.awt.datatransfer.DataFlavor[mimetype=application/x-java-url;representationclass=java.net.URL]
java.awt.datatransfer.DataFlavor[mimetype=application/x-java-file-list;representationclass=java.util.List]
java.awt.datatransfer.DataFlavor[mimetype=text/uri-list;representationclass=java.io.Reader]
java.awt.datatransfer.DataFlavor[mimetype=text/uri-list;representationclass=java.lang.String]
java.awt.datatransfer.DataFlavor[mimetype=text/uri-list;representationclass=java.nio.CharBuffer]
java.awt.datatransfer.DataFlavor[mimetype=text/uri-list;representationclass=[C]
java.awt.datatransfer.DataFlavor[mimetype=text/uri-list;representationclass=java.io.InputStream;charset=UTF-16]
java.awt.datatransfer.DataFlavor[mimetype=text/uri-list;representationclass=java.nio.ByteBuffer;charset=UTF-16]
java.awt.datatransfer.DataFlavor[mimetype=text/uri-list;representationclass=[B;charset=UTF-16]
java.awt.datatransfer.DataFlavor[mimetype=text/uri-list;representationclass=java.io.InputStream;charset=UTF-8]
java.awt.datatransfer.DataFlavor[mimetype=text/uri-list;representationclass=java.nio.ByteBuffer;charset=UTF-8]
java.awt.datatransfer.DataFlavor[mimetype=text/uri-list;representationclass=[B;charset=UTF-8]
java.awt.datatransfer.DataFlavor[mimetype=text/uri-list;representationclass=java.io.InputStream;charset=UTF-16BE]
java.awt.datatransfer.DataFlavor[mimetype=text/uri-list;representationclass=java.nio.ByteBuffer;charset=UTF-16BE]
java.awt.datatransfer.DataFlavor[mimetype=text/uri-list;representationclass=[B;charset=UTF-16BE]
java.awt.datatransfer.DataFlavor[mimetype=text/uri-list;representationclass=java.io.InputStream;charset=UTF-16LE]
java.awt.datatransfer.DataFlavor[mimetype=text/uri-list;representationclass=java.nio.ByteBuffer;charset=UTF-16LE]
java.awt.datatransfer.DataFlavor[mimetype=text/uri-list;representationclass=[B;charset=UTF-16LE]
java.awt.datatransfer.DataFlavor[mimetype=text/uri-list;representationclass=java.io.InputStream;charset=ISO-8859-1]
java.awt.datatransfer.DataFlavor[mimetype=text/uri-list;representationclass=java.nio.ByteBuffer;charset=ISO-8859-1]
java.awt.datatransfer.DataFlavor[mimetype=text/uri-list;representationclass=[B;charset=ISO-8859-1]
java.awt.datatransfer.DataFlavor[mimetype=text/uri-list;representationclass=java.io.InputStream;charset=x-MacCentralEurope]
java.awt.datatransfer.DataFlavor[mimetype=text/uri-list;representationclass=java.nio.ByteBuffer;charset=x-MacCentralEurope]
java.awt.datatransfer.DataFlavor[mimetype=text/uri-list;representationclass=[B;charset=x-MacCentralEurope]
java.awt.datatransfer.DataFlavor[mimetype=text/uri-list;representationclass=java.io.InputStream;charset=US-ASCII]
java.awt.datatransfer.DataFlavor[mimetype=text/uri-list;representationclass=java.nio.ByteBuffer;charset=US-ASCII]
java.awt.datatransfer.DataFlavor[mimetype=text/uri-list;representationclass=[B;charset=US-ASCII]
FileDrop: normal border saved.
FileDrop: drag border set.
FileDrop: event accepted.
FileDrop: drop event.
FileDrop: file list accepted.
FileDrop: drop complete.
FileDrop: normal border restored.
BR
Mateusz
Re: File Uploader problem
PostPosted:Thu Mar 08, 2012 9:26 am
by pavila
The dropped files are added to the window, isn't it?
Re: File Uploader problem
PostPosted:Thu Mar 08, 2012 12:17 pm
by mateuszknapik
Yes, their path is correctly added to that window.