Magnolia CSS和图像抛出NPE 500错误

时间:2013-01-02 05:47:38

标签: magnolia

无法使用Magnolia login.css和玉兰花图片。当我尝试Magnolia作者实例时,CSS和Images会抛出500错误。以下异常跟踪显示在浏览器窗口中。有关如何修复它的任何线索?我正在使用Magnolia版本4.5

 java.lang.NullPointerException
        info.magnolia.module.cache.cachepolicy.Default.shouldCache(Default.java:97)
        info.magnolia.module.cache.filter.CacheFilter.doFilter(CacheFilter.java:133)
        info.magnolia.cms.filters.OncePerRequestAbstractMgnlFilter.doFilter(OncePerRequestAbstractMgnlFilter.java:61)
        info.magnolia.cms.filters.MgnlFilterChain.doFilter(MgnlFilterChain.java:83)
        info.magnolia.cms.i18n.I18nContentSupportFilter.doFilter(I18nContentSupportFilter.java:76)
        info.magnolia.cms.filters.AbstractMgnlFilter.doFilter(AbstractMgnlFilter.java:91)
        info.magnolia.cms.filters.MgnlFilterChain.doFilter(MgnlFilterChain.java:83)
        info.magnolia.cms.filters.RangeSupportFilter.doFilter(RangeSupportFilter.java:86)
        info.magnolia.cms.filters.AbstractMgnlFilter.doFilter(AbstractMgnlFilter.java:91)
        info.magnolia.cms.filters.MgnlFilterChain.doFilter(MgnlFilterChain.java:83)
        info.magnolia.cms.filters.MgnlFilterChain.doFilter(MgnlFilterChain.java:85)
        info.magnolia.cms.security.SecurityCallbackFilter.doFilter(SecurityCallbackFilter.java:86)
        info.magnolia.cms.filters.OncePerRequestAbstractMgnlFilter.doFilter(OncePerRequestAbstractMgnlFilter.java:61)
        info.magnolia.cms.filters.MgnlFilterChain.doFilter(MgnlFilterChain.java:83)
        info.magnolia.cms.security.LogoutFilter.doFilter(LogoutFilter.java:93)
        info.magnolia.cms.filters.OncePerRequestAbstractMgnlFilter.doFilter(OncePerRequestAbstractMgnlFilter.java:61)
        info.magnolia.cms.filters.MgnlFilterChain.doFilter(MgnlFilterChain.java:83)
        info.magnolia.cms.filters.MultiChannelFilter.doFilter(MultiChannelFilter.java:83)
        info.magnolia.cms.filters.OncePerRequestAbstractMgnlFilter.doFilter(OncePerRequestAbstractMgnlFilter.java:61)
        info.magnolia.cms.filters.MgnlFilterChain.doFilter(MgnlFilterChain.java:83)
        info.magnolia.module.cache.filter.GZipFilter.doFilter(GZipFilter.java:75)
        info.magnolia.cms.filters.OncePerRequestAbstractMgnlFilter.doFilter(OncePerRequestAbstractMgnlFilter.java:61)
        info.magnolia.cms.filters.MgnlFilterChain.doFilter(MgnlFilterChain.java:83)
        info.magnolia.cms.filters.MgnlFilterChain.doFilter(MgnlFilterChain.java:85)
        info.magnolia.cms.security.auth.login.LoginFilter.doFilter(LoginFilter.java:93)
        info.magnolia.cms.filters.AbstractMgnlFilter.doFilter(AbstractMgnlFilter.java:91)
        info.magnolia.cms.filters.MgnlFilterChain.doFilter(MgnlFilterChain.java:83)
        info.magnolia.cms.filters.MgnlFilterChain.doFilter(MgnlFilterChain.java:85)
        info.magnolia.cms.filters.CosMultipartRequestFilter.doFilter(CosMultipartRequestFilter.java:87)
        info.magnolia.cms.filters.OncePerRequestAbstractMgnlFilter.doFilter(OncePerRequestAbstractMgnlFilter.java:61)
        info.magnolia.cms.filters.MgnlFilterChain.doFilter(MgnlFilterChain.java:83)
        info.magnolia.cms.filters.ContentTypeFilter.doFilter(ContentTypeFilter.java:103)
        info.magnolia.cms.filters.AbstractMgnlFilter.doFilter(AbstractMgnlFilter.java:91)
        info.magnolia.cms.filters.MgnlFilterChain.doFilter(MgnlFilterChain.java:83)
        info.magnolia.cms.filters.ContextFilter.doFilter(ContextFilter.java:131)
        info.magnolia.cms.filters.AbstractMgnlFilter.doFilter(AbstractMgnlFilter.java:91)
        info.magnolia.cms.filters.MgnlFilterChain.doFilter(MgnlFilterChain.java:83)
        info.magnolia.cms.filters.CompositeFilter.doFilter(CompositeFilter.java:67)
        info.magnolia.cms.filters.AbstractMgnlFilter.doFilter(AbstractMgnlFilter.java:91)
        info.magnolia.cms.filters.SafeDestroyMgnlFilterWrapper.doFilter(SafeDestroyMgnlFilterWrapper.java:108)
        info.magnolia.cms.filters.MgnlFilterDispatcher.doDispatch(MgnlFilterDispatcher.java:67)
        info.magnolia.cms.filters.MgnlMainFilter.doFilter(MgnlMainFilter.java:108)
        info.magnolia.cms.filters.MgnlMainFilter.doFilter(MgnlMainFilter.java:94)

我使用的maven依赖项是:

<dependency>
      <name>core</name>
      <version>4.1/*</version>
    </dependency>
    <dependency>
      <name>adminInterface</name>
      <version>4.1/*</version>
    </dependency>
    <dependency>
      <name>templating</name>
      <version>4.1/*</version>
    </dependency>
    <dependency>
      <name>fckEditor</name>
      <version>4.1/*</version>
    </dependency>
    <dependency>
      <name>blossom</name>
      <version>2.0/*</version>
    </dependency>

1 个答案:

答案 0 :(得分:0)

为什么不使用magnolia的工件来构建项目,请看一下:http://dev.magnolia-cms.com/~gjoseph/dont-build-magnolia-build-your-projects