Uploaded image for project: '[Read Only] - Hippo Plugins'
  1. [Read Only] - Hippo Plugins
  2. HIPPLUG-1167

URL Rewriter: Reloading of rules after expiry fails

    XMLWordPrintable

Details

    Description

      It seems that when the rules are reloaded after the cache expires, the URL Rewriter fails. Resulting in all URLs giving a 500 Server Error. This can the be fixed by making a (any) change to the URL Rewriter config.

      27.07.2015 16:35:06 ERROR [org.tuckey.web.filters.urlrewrite.utils.Log.error():272] Parse error on line 1 Content is not allowed in prolog.
      org.xml.sax.SAXParseException; systemId: file:///home/cms/hippo-repository-rewrite-rules; lineNumber: 1; columnNumber: 1; Content is not allowed in prolog.
              at com.sun.org.apache.xerces.internal.parsers.DOMParser.parse(DOMParser.java:257)
              at com.sun.org.apache.xerces.internal.jaxp.DocumentBuilderImpl.parse(DocumentBuilderImpl.java:348)
              at javax.xml.parsers.DocumentBuilder.parse(DocumentBuilder.java:150)
              at org.tuckey.web.filters.urlrewrite.Conf.loadDom(Conf.java:208)
              at org.tuckey.web.filters.urlrewrite.Conf.<init>(Conf.java:130)
              at org.onehippo.forge.rewriting.HippoRewriteFilter.fetchRules(HippoRewriteFilter.java:261)
              at org.onehippo.forge.rewriting.HippoRewriteFilter.access$000(HippoRewriteFilter.java:62)
              at org.onehippo.forge.rewriting.HippoRewriteFilter$1.load(HippoRewriteFilter.java:152)
              at org.onehippo.forge.rewriting.HippoRewriteFilter$1.load(HippoRewriteFilter.java:148)
              at com.google.common.cache.LocalCache$LoadingValueReference.loadFuture(LocalCache.java:3524)
              at com.google.common.cache.LocalCache$Segment.loadSync(LocalCache.java:2317)
              at com.google.common.cache.LocalCache$Segment.lockedGetOrLoad(LocalCache.java:2280)
              at com.google.common.cache.LocalCache$Segment.get(LocalCache.java:2195)
              at com.google.common.cache.LocalCache.get(LocalCache.java:3934)
              at com.google.common.cache.LocalCache.getOrLoad(LocalCache.java:3938)
              at com.google.common.cache.LocalCache$LocalLoadingCache.get(LocalCache.java:4821)
              at com.google.common.cache.LocalCache$LocalLoadingCache.getUnchecked(LocalCache.java:4827)
              at org.onehippo.forge.rewriting.HippoRewriteFilter.getUrlRewriter(HippoRewriteFilter.java:354)
              at org.onehippo.forge.rewriting.HippoRewriteFilter.doFilter(HippoRewriteFilter.java:194)
              at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
              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:505)
              at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:170)
              at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:103)
              at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:116)
              at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:423)
              at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1079)
              at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:620)
              at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1747)
              at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.run(NioEndpoint.java:1706)
              at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
              at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
              at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
              at java.lang.Thread.run(Thread.java:745)
      27.07.2015 16:35:06 ERROR [org.onehippo.forge.rewriting.HippoRewriteFilter.checkConfLocal():283] Conf failed to load
      

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              boudekerk Bartosz Oudekerk
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: