由于不再安装的aem项目上的文件丢失而出现错误

问题描述 投票:0回答:1

编辑模板时,我在js控制台中看到该文件不再存在的404错误。当我尝试打开它时,我看到此错误:

Resource at '/conf/MyOldProject/settings/wcm/templates/landing-page/structure/jcr:content/root/title.html' not found: No resource found
Cannot serve request to /conf/MyOldProject/settings/wcm/templates/landing-page/structure/jcr:content/root/title.html in /libs/sling/servlet/errorhandler/404.jsp

Request Progress:
      0 TIMER_START{Request Processing}
      3 COMMENT timer_end format is {<elapsed microseconds>,<timer name>} <optional message>
     10 LOG Method=GET, PathInfo=null
     13 TIMER_START{handleSecurity}
   1613 TIMER_END{1597,handleSecurity} authenticator org.apache.sling.auth.core.impl.SlingAuthenticator@6e7c2e44 returns true
   3677 TIMER_START{ResourceResolution}
   3865 TIMER_END{186,ResourceResolution} URI=/conf/MyOldProject/settings/wcm/templates/landing-page/structure/jcr:content/root/title.html resolves to Resource=NonExistingResource, path=/conf/MyOldProject/settings/wcm/templates/landing-page/structure/jcr:content/root/title.html
   3872 LOG Resource Path Info: SlingRequestPathInfo: path='/conf/MyOldProject/settings/wcm/templates/landing-page/structure/jcr:content/root/title.html', selectorString='null', extension='html', suffix='null'
   3873 TIMER_START{ServletResolution}
   3877 TIMER_START{resolveServlet(/conf/MyOldProject/settings/wcm/templates/landing-page/structure/jcr:content/root/title.html)}
   4597 LOG {0}: no servlet found
   4606 TIMER_END{727,resolveServlet(/conf/MyOldProject/settings/wcm/templates/landing-page/structure/jcr:content/root/title.html)} Using servlet org.apache.sling.servlets.get.DefaultGetServlet
   4610 TIMER_END{737,ServletResolution} URI=/conf/MyOldProject/settings/wcm/templates/landing-page/structure/jcr:content/root/title.html handled by Servlet=org.apache.sling.servlets.get.DefaultGetServlet
   4614 LOG Applying Requestfilters
   4619 LOG Calling filter: com.adobe.granite.resourceresolverhelper.impl.ResourceResolverHelperImpl
   4625 LOG Calling filter: org.apache.sling.security.impl.ContentDispositionFilter
   4629 LOG Calling filter: org.apache.sling.i18n.impl.I18NFilter
   4632 LOG Calling filter: com.adobe.granite.httpcache.impl.InnerCacheFilter
   4638 LOG Calling filter: org.apache.sling.rewriter.impl.RewriterFilter
   4640 LOG Calling filter: com.adobe.cq.mcm.campaign.servlets.CampaignCopyTracker
   4642 LOG Calling filter: com.adobe.cq.history.impl.HistoryRequestFilter
   4752 LOG Calling filter: com.day.cq.wcm.core.impl.WCMRequestFilter
   4768 LOG Calling filter: com.adobe.cq.wcm.core.components.internal.servlets.CoreFormHandlingServlet
   4773 LOG Calling filter: com.adobe.granite.optout.impl.OptOutFilter
   4778 LOG Calling filter: com.day.cq.wcm.foundation.forms.impl.FormsHandlingServlet
   4780 LOG Calling filter: com.adobe.cq.social.commons.cors.CORSAuthenticationFilter
   4784 LOG Calling filter: org.apache.sling.engine.impl.debug.RequestProgressTrackerLogFilter
   4787 LOG Calling filter: com.day.cq.wcm.mobile.core.impl.redirect.RedirectFilter
   4790 LOG Calling filter: com.day.cq.wcm.core.impl.AuthoringUIModeServiceImpl
   4871 LOG Calling filter: com.adobe.granite.csrf.impl.CSRFFilter
   4873 LOG Calling filter: com.adobe.granite.rest.assets.impl.AssetContentDispositionFilter
   4877 LOG Calling filter: com.adobe.granite.requests.logging.impl.RequestLoggerImpl
   4884 LOG Calling filter: com.adobe.granite.rest.impl.servlet.ApiResourceFilter
   4887 LOG Calling filter: com.day.cq.dam.core.impl.servlet.ActivityRecordHandler
   4897 LOG Calling filter: com.day.cq.dam.core.impl.assetlinkshare.AdhocAssetShareAuthHandler
   4900 LOG Calling filter: com.adobe.cq.social.ugcbase.security.impl.SaferSlingPostServlet
   4902 LOG Calling filter: com.day.cq.wcm.core.impl.warp.TimeWarpFilter
   4909 LOG Applying Componentfilters
   4911 LOG Calling filter: com.day.cq.personalization.impl.TargetComponentFilter
   4913 LOG Calling filter: com.day.cq.wcm.core.impl.page.PageLockFilter
   4915 LOG Calling filter: com.day.cq.wcm.core.impl.WCMComponentFilter
   4925 LOG Calling filter: com.day.cq.wcm.core.impl.WCMDebugFilter
   4934 TIMER_START{org.apache.sling.servlets.get.DefaultGetServlet#0}
   4992 TIMER_END{57,org.apache.sling.servlets.get.DefaultGetServlet#0}
   5011 LOG Filter timing: filter=com.day.cq.wcm.core.impl.WCMDebugFilter, inner=0, total=0, outer=0
   5013 LOG Filter timing: filter=com.day.cq.wcm.core.impl.WCMComponentFilter, inner=0, total=1, outer=1
   5014 LOG Filter timing: filter=com.day.cq.wcm.core.impl.page.PageLockFilter, inner=1, total=1, outer=0
   5059 LOG Filter timing: filter=com.adobe.cq.dtm.reactor.impl.servlets.ClientLibraryFilter, inner=0, total=1, outer=1
   5061 LOG Filter timing: filter=com.adobe.cq.dam.webdav.impl.io.DamWebdavRequestFilter, inner=1, total=1, outer=0
   5062 LOG Filter timing: filter=com.day.cq.wcm.core.impl.warp.TimeWarpFilter, inner=1, total=1, outer=0
   5063 LOG Filter timing: filter=com.adobe.cq.social.ugcbase.security.impl.SaferSlingPostServlet, inner=1, total=1, outer=0
   5065 LOG Filter timing: filter=com.adobe.cq.dtm.impl.servlets.DTMLibraryCompatibilityFilter, inner=1, total=1, outer=0
   5066 LOG Filter timing: filter=com.day.cq.dam.core.impl.assetlinkshare.AdhocAssetShareAuthHandler, inner=1, total=1, outer=0
   5068 LOG Filter timing: filter=com.day.cq.dam.core.impl.servlet.DamContentDispositionFilter, inner=1, total=1, outer=0
   5070 LOG Filter timing: filter=com.day.cq.dam.core.impl.servlet.ActivityRecordHandler, inner=1, total=1, outer=0
   5071 LOG Filter timing: filter=com.adobe.granite.rest.impl.servlet.ApiResourceFilter, inner=1, total=1, outer=0
   5072 LOG Filter timing: filter=com.adobe.granite.requests.logging.impl.RequestLoggerImpl, inner=1, total=1, outer=0
   5074 LOG Filter timing: filter=com.adobe.granite.rest.assets.impl.AssetContentDispositionFilter, inner=1, total=1, outer=0
   5075 LOG Filter timing: filter=com.adobe.granite.csrf.impl.CSRFFilter, inner=1, total=1, outer=0
   5076 LOG Filter timing: filter=com.day.cq.wcm.core.impl.AuthoringUIModeServiceImpl, inner=1, total=1, outer=0
   5077 LOG Filter timing: filter=com.day.cq.wcm.mobile.core.impl.redirect.RedirectFilter, inner=1, total=1, outer=0
   5079 LOG Filter timing: filter=org.apache.sling.engine.impl.debug.RequestProgressTrackerLogFilter, inner=1, total=1, outer=0
   5080 LOG Filter timing: filter=com.adobe.cq.social.commons.cors.CORSAuthenticationFilter, inner=1, total=1, outer=0
   5081 LOG Filter timing: filter=com.day.cq.wcm.foundation.forms.impl.FormsHandlingServlet, inner=1, total=1, outer=0
   5082 LOG Filter timing: filter=com.adobe.granite.optout.impl.OptOutFilter, inner=1, total=1, outer=0
   5084 LOG Filter timing: filter=com.adobe.cq.wcm.core.components.internal.servlets.CoreFormHandlingServlet, inner=1, total=1, outer=0
   5085 LOG Filter timing: filter=com.day.cq.wcm.core.impl.WCMRequestFilter, inner=1, total=1, outer=0
   5086 LOG Filter timing: filter=com.adobe.cq.history.impl.HistoryRequestFilter, inner=1, total=1, outer=0
   5087 LOG Filter timing: filter=com.adobe.cq.mcm.campaign.servlets.CampaignCopyTracker, inner=1, total=1, outer=0
   5089 LOG Filter timing: filter=org.apache.sling.rewriter.impl.RewriterFilter, inner=1, total=1, outer=0
   5090 LOG Filter timing: filter=com.adobe.granite.httpcache.impl.InnerCacheFilter, inner=1, total=1, outer=0
   5091 LOG Filter timing: filter=org.apache.sling.i18n.impl.I18NFilter, inner=1, total=1, outer=0
   5093 LOG Filter timing: filter=org.apache.sling.security.impl.ContentDispositionFilter, inner=1, total=1, outer=0
   5095 LOG Filter timing: filter=org.apache.sling.distribution.servlet.DistributionAgentCreationFilter, inner=1, total=1, outer=0
   5295 LOG Applying Error filters
   5299 LOG Calling filter: org.apache.sling.i18n.impl.I18NFilter
   5301 LOG Calling filter: org.apache.sling.rewriter.impl.RewriterFilter
   5308 TIMER_START{handleError:status=404}
   5331 TIMER_END{21,handleError:status=404} Using handler /libs/sling/servlet/errorhandler/404.jsp
   6214 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=JcrPropertyMap [node=Node[NodeDelegate{tree=/libs/cq/config/rewriter/default/transformer-mobile: { jcr:primaryType = nt:unstructured, component-optional = true}}], values={jcr:primaryType=nt:unstructured, component-optional=true}]), Config(type=mobiledebug, config=JcrPropertyMap [node=Node[NodeDelegate{tree=/libs/cq/config/rewriter/default/transformer-mobiledebug: { jcr:primaryType = nt:unstructured, component-optional = true}}], values={jcr:primaryType=nt:unstructured, component-optional=true}]), Config(type=contentsync, config=JcrPropertyMap [node=Node[NodeDelegate{tree=/libs/cq/config/rewriter/default/transformer-contentsync: { jcr:primaryType = nt:unstructured, component-optional = true}}], values={jcr:primaryType=nt:unstructured, component-optional=true}]), serializer=Config(type=htmlwriter, config={}))}
   7481 TIMER_END{7479,Request Processing} Dumping SlingRequestProgressTracker Entries

奇怪的是,该模板是很久以前删除的,不应对其进行任何引用。作为测试,我删除了crx-quickstart文件夹并从头开始。在没有安装任何项目的情况下进行全新安装后,我仍然看到该错误。我以为可能有些东西被缓存了,所以我删除了缓存文件夹中的adobe文件夹(我在OS X上)。我曾尝试将aem罐子移到完全不同的位置,但仍然遇到相同的问题。

Aem怎么可能知道从未安装的旧项目的名称? AEM是否在某些地方缓存这些引用?如何让它忘记它并停止给出404错误?

aem aem-6
1个回答
0
投票

原来是由于chrome进行了缓存。一旦我清除了与我的aem实例相关的缓存数据,错误就消失了。

© www.soinside.com 2019 - 2024. All rights reserved.