Liferay错误FileNotFoundException文件名太长

时间:2009-07-30 05:32:26

标签: tomcat liferay

这是我的问题.. 我最近在Tomcat 6.0.20上运行了我的liferay门户网站。一切正常,但是 当我点击一些链接这个错误出现在日志上..一些Javascript也无法正常工作。

我也在Ubuntu 9.04上运行我的服务器,使用Mysql作为我的数据库。

希望你能帮助我

提前谢谢你 继承我的错误日志

Jul 31, 2009 10:48:01 AM org.apache.catalina.core.StandardWrapperValve invoke 
SEVERE: Servlet.service() for servlet jsp threw exception 
java.io.FileNotFoundException: /home/orlovs/Liferay-Portal/tomcat6020/temp/liferay/minifier/portal/html/js/everything.jsp_Q_browserId=firefox&themeId=controlpanel&colorSchemeId=01&minifierType=js&minifierBundleId=javascript.everything.files&t=1249034302000 (File name too long) 
at java.io.FileOutputStream.open(Native Method) 
at java.io.FileOutputStream.<init>(FileOutputStream.java:179) 
at com.liferay.portal.util.FileImpl.write(FileImpl.java:735) 
at com.liferay.portal.util.FileImpl.write(FileImpl.java:717) 
at com.liferay.portal.util.FileImpl.write(FileImpl.java:711) 
at com.liferay.portal.kernel.util.FileUtil.write(FileUtil.java:255) 
at com.liferay.portal.servlet.filters.minifier.MinifierFilter.getMinifiedBundleContent(MinifierFilter.java:224) 
at com.liferay.portal.servlet.filters.minifier.MinifierFilter.processFilter(MinifierFilter.java:415) 
at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:95) 
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) 
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) 
at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:168) 
at com.liferay.portal.servlet.filters.gzip.GZipFilter.processFilter(GZipFilter.java:130) 
at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:95) 
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) 
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) 
at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:168) 
at com.liferay.portal.servlet.filters.cache.CacheFilter.processFilter(CacheFilter.java:370) 
at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:95) 
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) 
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) 
at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:168) 
at com.liferay.portal.servlet.filters.header.HeaderFilter.processFilter(HeaderFilter.java:132) 
at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:95) 
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) 
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) 
at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:168) 
at com.liferay.portal.servlet.filters.sso.ntlm.NtlmPostFilter.processFilter(NtlmPostFilter.java:86) 
at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:95) 
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) 
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) 
at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:168) 
at com.liferay.portal.sharepoint.SharepointFilter.processFilter(SharepointFilter.java:186) 
at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:95) 
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) 
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) 
at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:168) 
at com.liferay.portal.servlet.filters.virtualhost.VirtualHostFilter.processFilter(VirtualHostFilter.java:173) 
at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:95) 
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) 
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) 
at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:168) 
at com.liferay.portal.servlet.filters.threadlocalcache.ThreadLocalCacheFilter.processFilter(ThreadLocalCacheFilter.java:46) 
at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:95) 
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) 
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) 
at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:168) 
at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:98) 
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) 
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) 
at org.tuckey.web.filters.urlrewrite.UrlRewriteFilter.doFilter(UrlRewriteFilter.java:738) 
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) 
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) 
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233) 
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191) 
at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:433) 
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128) 
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102) 
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) 
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:293) 
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:849) 
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583) 
at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:454) 
at java.lang.Thread.run(Thread.java:619)

4 个答案:

答案 0 :(得分:1)

提示位于stacktrace中:

文件名太长

它认为整个字符串是文件名

/home/orlovs/Liferay-Portal/tomcat6020/temp/liferay/minifier/
portal/html/js/everything.jsp_Q_browserId=firefox&themeId=
controlpanel&colorSchemeId=01&minifierType=js&
minifierBundleId=javascript.everything.files&t=1249034302000

也许它应该只是?

/home/orlovs/Liferay-Portal/tomcat6020/temp/liferay/minifier/
portal/html/js/everything.jsp

也就是说,_Q_序列看起来像是URL的查询部分的开头,而不是路径的一部分

答案 1 :(得分:0)

这可能是因为您尝试创建文件的目录不存在,或者因为文件名太长。

答案 2 :(得分:0)

我在Ubuntu 9.10机器上遇到了同样的问题,我认为它是由主目录加密引起的。那些“太长”的文件名在我家外工作正常。

答案 3 :(得分:0)

这是bug in Liferay

您可以通过将此后缀添加到所有网址来解决此问题(非生产用途):

?strip=0&js_fast_load=0