Hi!
Thanks for this great product!
I tried to start the upload via JavaScript using
document.JUpload.startUpload();
which works great if files have already been selected for upload, but an alert box with the error message
java.lang.IllegalArgumentException in JUploadPanelImpl.doStartUpload()
appears when calling 'startUpload()' without having files selected in the applet.
It would be better if an appropriate error message is displayed or better: the function returns 'false'.
Here is the last part of the debug output:
00094 23:21:40.508 Applet 15 LiveConnect Worker Thread [DEBUG] JavascriptHandler - doCommand(): jsCommand is: [startUpload]
00095 23:21:40.508 wjhk.jupload2.context.JavascriptHandler [DEBUG] run(): Exited doWait()...
00096 23:21:40.508 wjhk.jupload2.context.JavascriptHandler [DEBUG] getCommand(): jsCommand is: [startUpload]
00097 23:21:40.508 wjhk.jupload2.context.JavascriptHandler [DEBUG] clearCommand(): jsCommand is: [null]
00098 23:21:40.508 wjhk.jupload2.context.JavascriptHandler [DEBUG] run(): Calling doStartUpload()
00099 23:21:42.334 wjhk.jupload2.context.JavascriptHandler [ERROR] [java.lang.IllegalArgumentException] null (java.lang.IllegalArgumentException in JUploadPanelImpl.doStartUpload())
00100 23:21:42.334 wjhk.jupload2.context.JavascriptHandler java.lang.IllegalArgumentException
00100 23:21:42.334 wjhk.jupload2.context.JavascriptHandler at java.util.concurrent.ArrayBlockingQueue.<init>(Unknown Source)
00100 23:21:42.334 wjhk.jupload2.context.JavascriptHandler at java.util.concurrent.ArrayBlockingQueue.<init>(Unknown Source)
00100 23:21:42.334 wjhk.jupload2.context.JavascriptHandler at wjhk.jupload2.upload.FileUploadManagerThreadImpl.constructor(FileUploadManagerThreadImpl.java:151)
00100 23:21:42.334 wjhk.jupload2.context.JavascriptHandler at wjhk.jupload2.upload.FileUploadManagerThreadImpl.<init>(FileUploadManagerThreadImpl.java:116)
00100 23:21:42.334 wjhk.jupload2.context.JavascriptHandler at wjhk.jupload2.gui.JUploadPanelImpl.doStartUpload(JUploadPanelImpl.java:357)
00100 23:21:42.334 wjhk.jupload2.context.JavascriptHandler at wjhk.jupload2.context.JavascriptHandler.run(JavascriptHandler.java:162)
Hope that helps
Regards
Anonymous
Hi,
Thanks for the report.
Now corrected. Will be available in the next release.