Page 1 of 1

upload not completed

Posted: Wed Mar 25, 2009 2:39 pm
by thomas
I would like to what to do when the upload crashed (eg : exception)!
In fact, how can i take the not completed information to modify my UI???

Secondly! Do you now why i get an "arrayIndexOutOfBoundsException"???

thomas

Re: upload not completed

Posted: Wed Mar 25, 2009 6:47 pm
by support
You get arrayIndexOutOfBoundsException error with JFileUpload ? Could you post here the logs you have in the Java console ? To enable console and debug:
http://www.jfileupload.com/products/jfi ... oting.html

Re: upload not completed

Posted: Thu Mar 26, 2009 10:02 am
by thomas
Yes I get this ArrayIndexOutOfBoundsException with JFileUpload!
I attach you the java console log!

I have to inform you that the jsp for http mode are install on two servers under a load balancer! So with the jsp url, the applet connect one of the two servers! it depends on the load balancer!

Secondly! Could you tell me how to get the upload failed information by the applet??

thomas

Re: upload not completed

Posted: Thu Mar 26, 2009 6:47 pm
by support
I see, it seems to be a bug with chunk feature. If you remove "chunksize" parameter then it works ?
Also, could you post your applet parameters here so I could try to reproduce the problem.

Re: upload not completed

Posted: Thu Mar 26, 2009 6:52 pm
by support
Also, about the error message, you need to get it from JavaScript ?
Then JSAPI should help:
http://www.jfileupload.com/products/tools/index.html
The one online is for Pro version, if you have Enterprise or Premium then contact support(at)jfileupload(dot)com

Re: upload not completed

Posted: Tue Mar 31, 2009 8:52 am
by thomas
Here it is the applet parameters:

<APPLET CODE="jfileupload.upload.client.MApplet.class" JAVA_CODEBASE="/applets/upload/" ARCHIVE="lib_original/jfileupload.jar,lib_original/httpimpl.jar,lib_original/chttpclient.jar,lib_original/clogging.jar,lib_original/batchui.jar" WIDTH="430" HEIGHT="300" NAME="fileupload">
<PARAM NAME=CODE VALUE="jfileupload.upload.client.MApplet.class">
<PARAM NAME=CODEBASE VALUE="/applets/upload/">
<PARAM NAME=ARCHIVE VALUE="lib_original/jfileupload.jar,lib_original/httpimpl.jar,lib_original/chttpclient.jar,lib_original/clogging.jar,lib_original/batchui.jar">
<PARAM NAME=NAME VALUE="fileupload">
<PARAM NAME="type" VALUE="application/x-java-applet;version=1.4">
<PARAM NAME="scriptable" VALUE="true">
<PARAM NAME="url" VALUE="http://iosis:81/jspupload/process_original.jsp">
<PARAM NAME="forward" value="'+rootDocument+'/com/tech/listeDesFichiers.stm?xparam=IMPORT&typeGestion=PUBLIER-SUPPRIMER">
<PARAM NAME="forwardtarget" value="moniframe">
<PARAM NAME="paramfile" VALUE="uploadfile">
<PARAM NAME="param1" VALUE="todo">
<PARAM NAME="value1" VALUE="upload">
<PARAM NAME="param3" VALUE="notifyrelativefilename">
<PARAM NAME="value3" VALUE="true">
<PARAM NAME="transferui" VALUE="jfileupload.transfer.client.edesign.BatchTransferUI">
<PARAM NAME="transferuiresources" VALUE="i18n_fr_pane">
<PARAM NAME="resources" VALUE="i18n_fr_bar">
<PARAM NAME="resetprogressbar" VALUE="true">
<PARAM NAME="mode" VALUE="http">
<PARAM NAME="resetprogressbar" VALUE="true">
<PARAM NAME="folderdepth" VALUE="-1">
<PARAM NAME="retry" VALUE="50">
<PARAM NAME="retrydelay" VALUE="5">
<PARAM NAME="resume" VALUE="crc">
<PARAM NAME="checksum" VALUE="crc">
<PARAM NAME="chunksize" VALUE="5242880">
<PARAM NAME="chunkmode" VALUE="onfly">
</APPLET>

It's not all the days I hava this exception! But really want to understand what is wrong with my code!!

Secondly!
I juste want to find a way to get the uncompleted upload or a exception error! It's juste to inform the user!! But i'm going to take a look on JSAPI!!

thanks

thomas