0

Fileupload Not Working in Tomcat 7 Cluster Linux Environment

asked 2015-10-16 17:13:42 +0800

SabarishKR gravatar image SabarishKR
1

updated 2015-10-19 12:42:03 +0800

Fileupload is not working and it always returns the null value when the event.getMedia() is called.

Application Environment : Life Ray Portal 6.2 /Tomcat 7

Below is the Error log while doing file upload.

Oct 19, 2015 8:12:21 AM org.zkoss.zk.au.http.AuUploader handleError:224 SEVERE: Failed to upload

java.lang.NullPointerException at org.zkoss.zk.au.http.AuUploader.service(AuUploader.java:110) at org.zkoss.zk.au.http.DHtmlUpdateServlet.doGet(DHtmlUpdateServlet.java:456) at org.zkoss.zk.au.http.DHtmlUpdateServlet.doPost(DHtmlUpdateServlet.java:491) at javax.servlet.http.HttpServlet.service(HttpServlet.java:650) at javax.servlet.http.HttpServlet.service(HttpServlet.java:731) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:303) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208) at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52) ... Oct 19, 2015 8:12:21 AM org.zkoss.xel.taglib.Taglibs getDefaultTLDs:326 FINE: Loading jar:file:/opt/liferay/instances/mapps-01/tomcat-home/webapps/ASSISTTabletApp/WEB-INF/lib/zk.jar!/metainfo/tld/config.xml Oct 19, 2015 8:12:21 AM org.zkoss.xel.taglib.Taglibs getDefaultTLDs:326 FINE: Loading jar:file:/opt/liferay/instances/mapps-01/tomcat-home/webapps/ASSISTTabletApp/WEB-INF/lib/zweb.jar!/metainfo/tld/config.xml Oct 19, 2015 8:12:22 AM org.zkoss.zk.au.http.AuUploader handleError:224 SEVERE: Failed to upload java.lang.NullPointerException at org.zkoss.zk.au.http.AuUploader.service(AuUploader.java:110) at org.zkoss.zk.au.http.DHtmlUpdateServlet.doGet(DHtmlUpdateServlet.java:456) at org.zkoss.zk.au.http.DHtmlUpdateServlet.doPost(DHtmlUpdateServlet.java:491) at javax.servlet.http.HttpServlet.service(HttpServlet.java:650) at javax.servlet.http.HttpServlet.service(HttpServlet.java:731) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:303) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208) at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52) ... Oct 19, 2015 8:12:24 AM org.zkoss.zk.ui.impl.UiEngineImpl doActivate:1859

delete flag offensive retag edit

4 Answers

Sort by ยป oldest newest most voted
0

answered 2015-10-19 08:01:01 +0800

Darksu gravatar image Darksu
1976 1 4

Hello SabarishKR,

Just to be sure please re-check the environment set-up using the following guide:

http://books.zkoss.org/wiki/ZKInstallationGuide/SettingupServers/Tomcat_Cluster

If everything is ok, and it still does not work, then probably you should create a ticket.

Best Regards,

Darksu

link publish delete flag offensive edit
0

answered 2015-10-19 12:40:35 +0800

SabarishKR gravatar image SabarishKR
1

Hi Darksu, Am still experiencing the same issue below is the error in the log

Oct 19, 2015 8:12:21 AM org.zkoss.zk.au.http.AuUploader handleError:224 SEVERE: Failed to upload

java.lang.NullPointerException at org.zkoss.zk.au.http.AuUploader.service(AuUploader.java:110) at org.zkoss.zk.au.http.DHtmlUpdateServlet.doGet(DHtmlUpdateServlet.java:456) at org.zkoss.zk.au.http.DHtmlUpdateServlet.doPost(DHtmlUpdateServlet.java:491) at javax.servlet.http.HttpServlet.service(HttpServlet.java:650) at javax.servlet.http.HttpServlet.service(HttpServlet.java:731) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:303) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208) at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52) ... Oct 19, 2015 8:12:21 AM org.zkoss.xel.taglib.Taglibs getDefaultTLDs:326 FINE: Loading jar:file:/opt/liferay/instances/mapps-01/tomcat-home/webapps/ASSISTTabletApp/WEB-INF/lib/zk.jar!/metainfo/tld/config.xml Oct 19, 2015 8:12:21 AM org.zkoss.xel.taglib.Taglibs getDefaultTLDs:326 FINE: Loading jar:file:/opt/liferay/instances/mapps-01/tomcat-home/webapps/ASSISTTabletApp/WEB-INF/lib/zweb.jar!/metainfo/tld/config.xml Oct 19, 2015 8:12:22 AM org.zkoss.zk.au.http.AuUploader handleError:224 SEVERE: Failed to upload java.lang.NullPointerException at org.zkoss.zk.au.http.AuUploader.service(AuUploader.java:110) at org.zkoss.zk.au.http.DHtmlUpdateServlet.doGet(DHtmlUpdateServlet.java:456) at org.zkoss.zk.au.http.DHtmlUpdateServlet.doPost(DHtmlUpdateServlet.java:491) at javax.servlet.http.HttpServlet.service(HttpServlet.java:650) at javax.servlet.http.HttpServlet.service(HttpServlet.java:731) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:303) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208) at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52) ... Oct 19, 2015 8:12:24 AM org.zkoss.zk.ui.impl.UiEngineImpl doActivate:1859

link publish delete flag offensive edit
0

answered 2015-10-19 13:29:00 +0800

Darksu gravatar image Darksu
1976 1 4

Hello SabarishKR,

Two more questions:

  1. Have you ever made it work without a cluster environment?
  2. What is the size of the test file's you are trying to upload? There is a chance it is a upload limit issue.

Best Regards,

Darksu

link publish delete flag offensive edit
0

answered 2015-10-19 13:47:36 +0800

SabarishKR gravatar image SabarishKR
1

Hi Darksu, It is working in the local machine, but when we deploy in the server its not working. There is no clue where the file upload fails it give the error as mentioned in the log. The file size tested is just 300 to 500kb not even in mbs.

Thanks Sabarish KR

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-10-16 17:13:42 +0800

Seen: 20 times

Last updated: Oct 19 '15