Rank: Newbie
Groups: Member
Joined: 1/13/2009(UTC) Posts: 9
|
Hello all, I've upgraded my version 4.7.16.0 of Image uploader since I had pb due to the kill bit. Now it starts working again with ie, another pb has apeared...... Even by trying to upload a single jpeg file, I get the "some server side error occured" with the following info in the debug window : Code:javax.servlet.ServletException
org.apache.jasper.runtime.PageContextImpl.doHandlePageException(PageContextImpl.java:825)
org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:758)
org.apache.jsp.photoconcept.utilisateurs.telecharger3.upload_jsp._jspService(upload_jsp.java:332)
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:94)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:324)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
cause mère
java.lang.OutOfMemoryError
Hereafter some parameter in my index.jsp page: Code://For ActiveX control full path to CAB file (including file name) should be specified.
iu.activeXControlCodeBase = "ImageUploader4.cab";
iu.activeXControlVersion = "4,7,16,0";
iu.activeXControlEnabled = true;
//For Java applet only path to directory with JAR files should be specified (without file name).
iu.javaAppletJarFileName = "ImageUploader2.jar";
iu.javaAppletCodeBase = "./";
iu.javaAppletCached = true;
iu.javaAppletVersion = "2.7.16.0";
iu.showNonemptyResponse = "off";
iu.addParam("MaxFileCount", "300");
iu.addParam("MessageMaxFileCountExceededText", "Vous pouvez sélectionner au plus 300 fichiers.");
iu.addParam("MaxTotalFileSize", "1600000000");
iu.addParam("MessageMaxTotalFileSizeExceededText", "Vous pouvez télécharger un poids total de 200 Mo");
iu.addParam("MaxFileSize", "40000000");
iu.addParam("MessageMaxFileSizeExceededText","Le poids maximum d'un fichier est de 5 Mo");
iu.addParam("FileIsTooLargeText", "Le poids d'un ficher ne doit pas exéder 5 Mo");
iu.addParam("MessageMaxFileSizeExceededText", "La taille maximum pour un fichier est de 5 Mo.");
I whish you would help me and tell me what to do to solve that pb. Regards, Edited by user Sunday, March 8, 2009 7:25:08 PM(UTC)
| Reason: Not specified
|
|
|
|
Rank: Newbie
Groups: Member
Joined: 1/13/2009(UTC) Posts: 9
|
Just for information, the error message is the same by using firefox.
Is it because of the file size? the one I can't upload is 2336*3504. With previous version before the killbit I had nedver had such problems.....
Thanks in advance.
|
|
|
|
Rank: Advanced Member
Groups: Member, Administration, Moderator Joined: 7/28/2003(UTC) Posts: 1,660
Thanks: 5 times Was thanked: 76 time(s) in 74 post(s)
|
Hello,
You have java.lang.OutOfMemoryError exception, which means that you have large memory consumption. Do you have this problem permanently or only some time after server restart?
|
Best regards, Fedor Skvortsov
|
|
|
|
Rank: Newbie
Groups: Member
Joined: 1/13/2009(UTC) Posts: 9
|
Dear Fedor,
I have this error even after restarting server. The problem is when I upload one file which is 2336*3504, I have the server side error. If I try with a smallest jpeg (2000*3000 for instance) it works fine.....
Regards,
|
|
|
|
Rank: Advanced Member
Groups: Member, Administration, Moderator Joined: 7/28/2003(UTC) Posts: 1,660
Thanks: 5 times Was thanked: 76 time(s) in 74 post(s)
|
Quote:I have this error even after restarting server. The problem is when I upload one file which is 2336*3504, I have the server side error. If I try with a smallest jpeg (2000*3000 for instance) it works fine..... Which web server do you use? Don''t you have limit of memory usage for your web application? It seems the problem is on server side. |
Best regards, Fedor Skvortsov
|
|
|
|
Rank: Newbie
Groups: Member
Joined: 1/13/2009(UTC) Posts: 9
|
I use Apache Tomcat 5.0.28 as jsp container couppled with Apache 2.0.54 web server. Would you be so kind to help me find the parameters I have to update. I'll have a look once I'm back today and try to find what can be wrong (I can't have a look where I am now).
Thanks in advance for you help and advices.
Kind regards,
|
|
|
|
Rank: Newbie
Groups: Member
Joined: 1/13/2009(UTC) Posts: 9
|
By using the previous version of ImageUploader I still have (v4.5), I succeeded in uploading a jpeg file 2500*3400 sized whereas with the 4.7.16.0, I got the server side error and java.lang.outofmemory error..... Hence, I don't think that the problem should be a server configuration one
Regards,
|
|
|
|
Rank: Advanced Member
Groups: Member, Administration, Moderator Joined: 8/3/2003(UTC) Posts: 1,070
Thanks: 1 times Was thanked: 12 time(s) in 12 post(s)
|
Hello, Image Uploader is a client-side component that just prepares HTTP POST requests and sends them to a server. Unlikely that it can affect server platform in that way. First of all you need to check server-side settings. Could you adjust heap-size and check whether the problem still persists ( http://forums.java.net/jive/message.jspa?messageID=268985)? |
|
|
|
|
Rank: Newbie
Groups: Member
Joined: 1/13/2009(UTC) Posts: 9
|
I don't understand what parameter you want me to check and/or adjust...
regards,
|
|
|
|
Rank: Advanced Member
Groups: Member, Administration, Moderator Joined: 7/28/2003(UTC) Posts: 1,660
Thanks: 5 times Was thanked: 76 time(s) in 74 post(s)
|
Hello, I am sorry for delay. Here is an article about the problem: OutOfMemory - Tomcat WikiIn short, the problem is in large memory consumption. It can be due upload logic or logic in other part of you web application. Which way do you process upload? Do you use Commons FileUpload package ( http://jakarta.apache.org/commons/fileupload/)? I just want to add that the problem is not in Image Uploader, as it is just client-side control. The problem is in the way of upload processing. |
Best regards, Fedor Skvortsov
|
|
|
|
Rank: Newbie
Groups: Member
Joined: 1/13/2009(UTC) Posts: 9
|
Dear Fedor, I thank you very much for your reply even on Sunday, that is very kind of you. In fact, I forgave to say you that I use the server imaging version of Image uploader (with common file upload jar packages). You will find enclosed my upload.jsp file where I put under comment the image processing part. I think that loading and processing the large jpeg file with buffered image might be the answer to my pb because it now works fine. I hope that this will help you for further versions. Kind regards, http://
|
|
|
|
Rank: Advanced Member
Groups: Member, Administration, Moderator Joined: 7/28/2003(UTC) Posts: 1,660
Thanks: 5 times Was thanked: 76 time(s) in 74 post(s)
|
Hello, Quote:In fact, I forgave to say you that I use the server imaging version of Image uploader (with common file upload jar packages). Thank you for clarification. You can try to increase maximum heap size to solve the problem. You can read about it here: http://www.coderanch.com.../increase-java-heap-size |
Best regards, Fedor Skvortsov
|
|
|
|
Rank: Newbie
Groups: Member
Joined: 5/28/2010(UTC) Posts: 1
|
Same problem here! I am on Windows 2003 server, IIS6, constantly got "server side error" message on big files!!! Small files are fine! Please help! I have versin 5 image uploader. Thank you so much! Elena
|
|
|
|
Rank: Advanced Member
Groups: Joined: 3/9/2008(UTC) Posts: 554
Was thanked: 1 time(s) in 1 post(s)
|
|
|
|
|
|
Forum Jump
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.