0

Nginx proxy_pass fileupload of ZK

asked 2015-05-19 07:40:59 +0800

gds1987 gravatar image gds1987
18

Hi, all. If I only use tomcat to run ZK and use fileupload, it is good to upload 300M file. But if the proxy_pass of Nginx is implemented to the service of ZK, the component of fileupload can not upload even 1M file. And the Nullpointer error is coming as followed:

May 19, 2015 11:31:48 AM org.zkoss.zk.au.http.AuUploader handleError SEVERE: Failed to upload java.lang.NullPointerException at org.zkoss.zk.au.http.AuUploader.service(AuUploader.java:115) at org.zkoss.zk.au.http.DHtmlUpdateServlet.doGet(DHtmlUpdateServlet.java:459) at org.zkoss.zk.au.http.DHtmlUpdateServlet.doPost(DHtmlUpdateServlet.java:494) at javax.servlet.http.HttpServlet.service(HttpServlet.java:646) at javax.servlet.http.HttpServlet.service(HttpServlet.java:727) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:303) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:220) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:122) at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:503) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:170) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:103) at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:950) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:116) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:421) at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1070) at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:611) at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:314) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61) at java.lang.Thread.run(Thread.java:662)

So how to make some configure to fix this ERROR? Thank you very much !

Version of ZK: version: 7.0.5-FL ; Browser: Chrome 42.0.2311.135 m ; Firefox 36.0.1

delete flag offensive retag edit

1 Answer

Sort by ยป oldest newest most voted
0

answered 2018-09-12 05:09:30 +0800

naarani gravatar image naarani
33
www.blogstudiolegale.eu

You've to set maximum body size in nginx I use it only in K8s so i don't know the simple parameter, but as an Ingress is: nginx.ingress.kubernetes.io/proxy-body-size: xxxxxx

link publish delete flag offensive edit
Your answer
Please start posting your answer anonymously - your answer will be saved within the current session and published after you log in or create a new account. Please try to give a substantial answer, for discussions, please use comments and please do remember to vote (after you log in)!

[hide preview]

Question tools

Follow
1 follower

RSS

Stats

Asked: 2015-05-19 07:40:59 +0800

Seen: 11 times

Last updated: Sep 12

Support Options
  • Email Support
  • Training
  • Consulting
  • Outsourcing
Learn More