我正在尝试使用 dam 管理屏幕将资产上传到 CQ5 DAM。我能够成功上传最大为 5 MB 的文件。我在上传大小超过 5 MB 的文件时收到错误消息“无法上传以下文件:”。这发生在支持 HTML5 的浏览器 (FF) 和非 HTML5 浏览器 (IE) 中。
当我在 firebug 控制台中检查 POST 请求时,我收到一条错误消息,要求我检查服务器中的错误日志。以下是我在错误消息中得到的内容,
服务器遇到内部错误或配置错误,无法完成您的请求。请联系服务器管理员 webuser@localhost 并告知他们错误发生的时间,以及您所做的任何可能导致错误的事情。服务器错误日志中可能提供有关此错误的更多信息。
但是当我搜索错误日志时,我找不到与上传失败相关的任何内容。
我在互联网上搜索,但找不到任何解决此问题的方法。如果有人遇到同样的问题并解决了,请告诉我。以下是我在 OSGI 控制台中检查最近的请求时得到的结果,
0 (2014-02-17 02:02:29) TIMER_START{Request Processing}
0 (2014-02-17 02:02:29) COMMENT timer_end format is {<elapsed msec>,<timer name>} <optional message>
0 (2014-02-17 02:02:29) LOG Method=POST, PathInfo=/content/dam/test.createasset.html
0 (2014-02-17 02:02:29) TIMER_START{ResourceResolution}
0 (2014-02-17 02:02:29) TIMER_END{0,ResourceResolution} URI=/content/dam/test.createasset.html resolves to Resource=JcrNodeResource, type=nt:folder, superType=null, path=/content/dam/test
0 (2014-02-17 02:02:29) LOG Resource Path Info: SlingRequestPathInfo: path='/content/dam/test', selectorString='createasset', extension='html', suffix='null'
0 (2014-02-17 02:02:29) TIMER_START{ServletResolution}
0 (2014-02-17 02:02:29) TIMER_START{resolveServlet(JcrNodeResource, type=nt:folder, superType=null, path=/content/dam/test)}
0 (2014-02-17 02:02:29) TIMER_END{0,resolveServlet(JcrNodeResource, type=nt:folder, superType=null, path=/content/dam/test)} Using servlet com.day.cq.dam.core.impl.servlet.CreateAssetServlet
0 (2014-02-17 02:02:29) TIMER_END{0,ServletResolution} URI=/content/dam/test.createasset.html handled by Servlet=com.day.cq.dam.core.impl.servlet.CreateAssetServlet
0 (2014-02-17 02:02:29) LOG Applying Requestfilters
0 (2014-02-17 02:02:29) LOG Calling filter: org.apache.sling.bgservlets.impl.BackgroundServletStarterFilter
0 (2014-02-17 02:02:29) LOG Calling filter: org.apache.sling.rewriter.impl.RewriterFilter
0 (2014-02-17 02:02:29) LOG Calling filter: com.day.cq.wcm.core.impl.WCMRequestFilter
0 (2014-02-17 02:02:29) LOG Calling filter: org.apache.sling.i18n.impl.I18NFilter
0 (2014-02-17 02:02:29) LOG Calling filter: com.day.cq.theme.impl.ThemeResolverFilter
0 (2014-02-17 02:02:29) LOG Calling filter: com.day.cq.wcm.foundation.forms.impl.FormsHandlingServlet
0 (2014-02-17 02:02:29) LOG Calling filter: org.apache.sling.engine.impl.debug.RequestProgressTrackerLogFilter
0 (2014-02-17 02:02:29) LOG Calling filter: com.aio.aiofilter.AioImageFilter
0 (2014-02-17 02:02:29) LOG Calling filter: com.bc.ImageFilter
0 (2014-02-17 02:02:29) LOG Calling filter: com.day.cq.wcm.mobile.core.impl.redirect.RedirectFilter
0 (2014-02-17 02:02:29) LOG RedirectFilter did not redirect (method does not match)
0 (2014-02-17 02:02:29) LOG Calling filter: com.day.cq.wcm.core.impl.warp.TimeWarpFilter
0 (2014-02-17 02:02:29) LOG Applying Componentfilters
0 (2014-02-17 02:02:29) LOG Calling filter: com.day.cq.wcm.core.impl.WCMComponentFilter
1 (2014-02-17 02:02:29) LOG Calling filter: com.day.cq.wcm.core.impl.WCMDebugFilter
1 (2014-02-17 02:02:29) TIMER_START{com.day.cq.dam.core.impl.servlet.CreateAssetServlet#0}
1 (2014-02-17 02:02:29) LOG Applying Error filters
1 (2014-02-17 02:02:29) LOG Calling filter: org.apache.sling.rewriter.impl.RewriterFilter
1 (2014-02-17 02:02:29) TIMER_START{handleError:status=400}
2 (2014-02-17 02:02:29) TIMER_END{1,handleError:status=400} Using handler /libs/sling/servlet/errorhandler/default.jsp
3 (2014-02-17 02:02:29) LOG Found processor for post processing ProcessorConfiguration: {contentTypes=[text/html],order=-1, active=true, valid=true, processErrorResponse=true, pipeline=(generator=Config(type=htmlparser, config={}), transformers=(Config(type=linkchecker, config={}), Config(type=mobile, config=org.apache.sling.jcr.resource.JcrPropertyMap@1df6f3d2), Config(type=mobiledebug, config=org.apache.sling.jcr.resource.JcrPropertyMap@40016f5c), Config(type=contentsync, config=org.apache.sling.jcr.resource.JcrPropertyMap@1e3621d8), serializer=Config(type=htmlwriter, config={}))}
4 (2014-02-17 02:02:29) TIMER_END{3,handleError:status=400} Error handler finished
4 (2014-02-17 02:02:29) TIMER_END{3,com.day.cq.dam.core.impl.servlet.CreateAssetServlet#0}
4 (2014-02-17 02:02:29) TIMER_END{4,Request Processing} Request Processing