• Curious issue with large files

    By Olivier VERMONT 1 decade ago

    Hi Mark,

    Thank you for this fantastic project, and for all the work you do around XPages on your blog.

    Here is an issue I get when I use aUpload.xsp on a broadband connection (1024 Kb upload bandwidth) with large files (everything works fine with smaller files), it doesn't occur on a Lan connection.

    In fact, I am using your custom control to create a large file exchange application so that users can send large files to anyone they need. The project is nearly finished so I've been testing quite a lot and came accross this problem.

    I gathered that this issue has nothing to do with your code (I modified the beforeRenderResponse of aUpload.xsp to fit ny needs) but I thought you may have an idea about it.

    I am aware of the tweaking that needs to be done on the server for the Maximum POST data and the Maximum size of request content and the fileMaxSize on the XPages application.

    Let's say I want to upload a 300 MB file to the server, it works fine when I'm on my local network (it takes only a few seconds) but when I'm at home and try to upload the same file to the same server it fails.

    I tracked the log and found these lines :

    24/01/2011 15:00:13   HTTP JVM: CLFAD0211E: Exception thrown. For more detailed information, please consult error-log-0.xml located in/disk1/notes-webappli/notesdata/domino/workspace/logs
    24/01/2011 15:00:13   HTTP JVM: CLFAD0246E: Exception occurred servicing request for:/XChange.nsf/aUpload.xsp - HTTP Code: 500. For more detailed information, please consult error-log-0.xml located in/disk1/notes-webappli/notesdata/domino/workspace/logs
    24/01/2011 15:00:13   HTTP Web Server: Command Not Handled Exception [/XChange.nsf/aUpload.xsp?uploadFolderUNID=622195B54DB5F7A1159F7787E6644C60&item=Fichiers] Anonymous

    For information the temporary file is complete in the "xspupload" folder (I downloaded it, renamed it and it worked fine) but the "beforeRenderResponse" event is not triggered !!!

    Once this error has occured, it is impossible for me to upload any thing else to the server, I need to restart HTTP task.

    I don't understand what is going wrong with the fact that the file is uploaded through a broadband connection, I was thinking about timeout (upload can take more than an hour) but I really have no idea.

    Thanks in advance for your help, regards,

    Olivier