-
FEATURED COMPONENTS
First time here? Check out the FAQ!
ERROR org.zkoss.zk.au.http.AuUploader (Fileupload specifically not working in Linux Environment)
Hi,
I have a problem while uploading file(which is more than 5 MB) in ZK by using “UploadEvent”. Its not working when I deploy application on linux server,but same code is working in loacal windows machine. There is no clue where the file upload fails it give the error as fallows.
web - 2017-06-22 15:35:22,100 [http-bio-7070-exec-5] ERROR org.zkoss.zk.au.http. AuUploader - Failed to upload java.lang.NullPointerException: null at org.zkoss.zk.au.http.AuUploader.service(AuUploader.java:115) ~[zk-7.0 .2.jar:7.0.2] at org.zkoss.zk.au.http.DHtmlUpdateServlet.doGet(DHtmlUpdateServlet.java :459) [zk-7.0.2.jar:7.0.2] at org.zkoss.zk.au.http.DHtmlUpdateServlet.doPost(DHtmlUpdateServlet.jav a:494) [zk-7.0.2.jar:7.0.2] at javax.servlet.http.HttpServlet.service(HttpServlet.java:650) [servlet -api.jar:na] at javax.servlet.http.HttpServlet.service(HttpServlet.java:731) [servlet -api.jar:na] at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Appl icationFilterChain.java:303) [catalina.jar:7.0.63]
And MyZK Configuration File
<system-config>
<max-upload-size>-1</max-upload-size>
</system-config>
Could some one help me on this exception please.
Have you a frontend webserver in front of your application (Apache Proxy)? Have you a slow connection?
If yes, maybe your application is receiving a malformed request because of inefficient communication between the two layers.
If this may be your case, we fixed applying this solution:
Asked: 2017-06-22 08:23:53 +0800
Seen: 23 times
Last updated: Jul 02 '20