1 Reply Latest reply on May 1, 2013 3:54 AM by limjohnny88

    Server Error at /libs/wcm/core/content/reference.json

    limjohnny88 Level 1

      Hi all,

       

      I am currently faced with an server error.

      When I tried to right click and 'activate' a content, it doesn't do anything.

      As the ajax call have failed.

       

      Can I know how to resolve it?

       

      Thanks

       

       

       

       

       

      Internal Server Error

       

      Cannot serve request to /libs/wcm/core/content/reference.json in com.day.cq.wcm.core.impl.reference.ActivationReferenceSearchServlet Exception: java.lang.NullPointerException         at com.day.cq.personalization.impl.TargetedContentManagerImpl.collector(TargetedContentManag erImpl.java:336)         at com.day.cq.personalization.impl.TargetedContentManagerImpl.validateCache(TargetedContentM anagerImpl.java:321)         at com.day.cq.personalization.impl.TargetedContentManagerImpl.getCampaigns(TargetedContentMa nagerImpl.java:253)         at com.day.cq.personalization.impl.CampaignReferenceProvider.findReferences(CampaignReferenc eProvider.java:67)         at com.day.cq.wcm.core.impl.reference.ActivationReferenceSearchServlet.doGet(ActivationRefer enceSearchServlet.java:113)         at org.apache.sling.api.servlets.SlingSafeMethodsServlet.mayService(SlingSafeMethodsServlet. java:268)         at org.apache.sling.api.servlets.SlingSafeMethodsServlet.service(SlingSafeMethodsServlet.jav a:344)         at org.apache.sling.api.servlets.SlingSafeMethodsServlet.service(SlingSafeMethodsServlet.jav a:375)         at org.apache.sling.engine.impl.request.RequestData.service(RequestData.java:508)         at org.apache.sling.engine.impl.filter.SlingComponentFilterChain.render(SlingComponentFilter Chain.java:45)         at org.apache.sling.engine.impl.filter.AbstractSlingFilterChain.doFilter(AbstractSlingFilter Chain.java:64)         at com.day.cq.wcm.core.impl.WCMDebugFilter.doFilter(WCMDebugFilter.java:148)         at org.apache.sling.engine.impl.filter.AbstractSlingFilterChain.doFilter(AbstractSlingFilter Chain.java:60)         at com.day.cq.wcm.core.impl.WCMComponentFilter.filterRootInclude(WCMComponentFilter.java:333 )         at com.day.cq.wcm.core.impl.WCMComponentFilter.doFilter(WCMComponentFilter.java:160)         at org.apache.sling.engine.impl.filter.AbstractSlingFilterChain.doFilter(AbstractSlingFilter Chain.java:60)         at org.apache.sling.engine.impl.SlingRequestProcessorImpl.processComponent(SlingRequestProce ssorImpl.java:254)         at org.apache.sling.engine.impl.filter.RequestSlingFilterChain.render(RequestSlingFilterChai n.java:49)         at org.apache.sling.engine.impl.filter.AbstractSlingFilterChain.doFilter(AbstractSlingFilter Chain.java:64)         at com.day.cq.wcm.core.impl.warp.TimeWarpFilter.doFilter(TimeWarpFilter.java:106)         at org.apache.sling.engine.impl.filter.AbstractSlingFilterChain.doFilter(AbstractSlingFilter Chain.java:60)         at com.day.cq.wcm.mobile.core.impl.redirect.RedirectFilter.doFilter(RedirectFilter.java:290)          at org.apache.sling.engine.impl.filter.AbstractSlingFilterChain.doFilter(AbstractSlingFilter Chain.java:60)         at org.apache.sling.engine.impl.debug.RequestProgressTrackerLogFilter.doFilter(RequestProgre ssTrackerLogFilter.java:59)         at org.apache.sling.engine.impl.filter.AbstractSlingFilterChain.doFilter(AbstractSlingFilter Chain.java:60)         at com.day.cq.theme.impl.ThemeResolverFilter.doFilter(ThemeResolverFilter.java:76)         at org.apache.sling.engine.impl.filter.AbstractSlingFilterChain.doFilter(AbstractSlingFilter Chain.java:60)         at com.adobe.granite.optout.impl.OptOutFilter.doFilter(OptOutFilter.java:74)         at org.apache.sling.engine.impl.filter.AbstractSlingFilterChain.doFilter(AbstractSlingFilter Chain.java:60)         at com.day.cq.wcm.foundation.forms.impl.FormsHandlingServlet.doFilter(FormsHandlingServlet.j ava:220)         at org.apache.sling.engine.impl.filter.AbstractSlingFilterChain.doFilter(AbstractSlingFilter Chain.java:60)         at com.day.cq.wcm.core.impl.WCMRequestFilter.doFilter(WCMRequestFilter.java:90)         at org.apache.sling.engine.impl.filter.AbstractSlingFilterChain.doFilter(AbstractSlingFilter Chain.java:60)         at com.day.cq.wcm.designimporter.CanvasPageDeleteRequestFilter.doFilter(CanvasPageDeleteRequ estFilter.java:87)         at org.apache.sling.engine.impl.filter.AbstractSlingFilterChain.doFilter(AbstractSlingFilter Chain.java:60)         at org.apache.sling.rewriter.impl.RewriterFilter.doFilter(RewriterFilter.java:83)         at org.apache.sling.engine.impl.filter.AbstractSlingFilterChain.doFilter(AbstractSlingFilter Chain.java:60)         at org.apache.sling.i18n.impl.I18NFilter.doFilter(I18NFilter.java:127)         at org.apache.sling.engine.impl.filter.AbstractSlingFilterChain.doFilter(AbstractSlingFilter Chain.java:60)         at org.apache.sling.bgservlets.impl.BackgroundServletStarterFilter.doFilter(BackgroundServle tStarterFilter.java:135)         at org.apache.sling.engine.impl.filter.AbstractSlingFilterChain.doFilter(AbstractSlingFilter Chain.java:60)         at org.apache.sling.engine.impl.SlingRequestProcessorImpl.processRequest(SlingRequestProcess orImpl.java:151)         at org.apache.sling.engine.impl.SlingMainServlet.service(SlingMainServlet.java:206)         at org.apache.felix.http.base.internal.handler.ServletHandler.doHandle(ServletHandler.java:9 6)         at org.apache.felix.http.base.internal.handler.ServletHandler.handle(ServletHandler.java:79)          at org.apache.felix.http.base.internal.dispatch.ServletPipeline.handle(ServletPipeline.java: 42)         at org.apache.felix.http.base.internal.dispatch.InvocationFilterChain.doFilter(InvocationFil terChain.java:49)         at org.apache.felix.http.base.internal.dispatch.HttpFilterChain.doFilter(HttpFilterChain.jav a:33)         at org.apache.sling.i18n.impl.I18NFilter.doFilter(I18NFilter.java:127)         at org.apache.felix.http.base.internal.handler.FilterHandler.doHandle(FilterHandler.java:88)          at org.apache.felix.http.base.internal.handler.FilterHandler.handle(FilterHandler.java:76)          at org.apache.felix.http.base.internal.dispatch.InvocationFilterChain.doFilter(InvocationFil terChain.java:47)         at org.apache.felix.http.base.internal.dispatch.HttpFilterChain.doFilter(HttpFilterChain.jav a:33)         at com.adobe.granite.license.impl.LicenseCheckFilter.doFilter(LicenseCheckFilter.java:179)          at org.apache.felix.http.base.internal.handler.FilterHandler.doHandle(FilterHandler.java:88)          at org.apache.felix.http.base.internal.handler.FilterHandler.handle(FilterHandler.java:76)          at org.apache.felix.http.base.internal.dispatch.InvocationFilterChain.doFilter(InvocationFil terChain.java:47)         at org.apache.felix.http.base.internal.dispatch.HttpFilterChain.doFilter(HttpFilterChain.jav a:33)         at org.apache.sling.security.impl.ReferrerFilter.doFilter(ReferrerFilter.java:259)         at org.apache.felix.http.base.internal.handler.FilterHandler.doHandle(FilterHandler.java:88)          at org.apache.felix.http.base.internal.handler.FilterHandler.handle(FilterHandler.java:76)          at org.apache.felix.http.base.internal.dispatch.InvocationFilterChain.doFilter(InvocationFil terChain.java:47)         at org.apache.felix.http.base.internal.dispatch.HttpFilterChain.doFilter(HttpFilterChain.jav a:33)         at org.apache.felix.http.sslfilter.internal.SslFilter.doFilter(SslFilter.java:55)         at org.apache.felix.http.base.internal.handler.FilterHandler.doHandle(FilterHandler.java:88)          at org.apache.felix.http.base.internal.handler.FilterHandler.handle(FilterHandler.java:76)          at org.apache.felix.http.base.internal.dispatch.InvocationFilterChain.doFilter(InvocationFil terChain.java:47)         at org.apache.felix.http.base.internal.dispatch.HttpFilterChain.doFilter(HttpFilterChain.jav a:33)         at org.apache.sling.engine.impl.log.RequestLoggerFilter.doFilter(RequestLoggerFilter.java:75 )         at org.apache.felix.http.base.internal.handler.FilterHandler.doHandle(FilterHandler.java:88)          at org.apache.felix.http.base.internal.handler.FilterHandler.handle(FilterHandler.java:76)          at org.apache.felix.http.base.internal.dispatch.InvocationFilterChain.doFilter(InvocationFil terChain.java:47)         at org.apache.felix.http.base.internal.dispatch.HttpFilterChain.doFilter(HttpFilterChain.jav a:33)         at org.apache.felix.http.base.internal.dispatch.FilterPipeline.dispatch(FilterPipeline.java: 48)         at org.apache.felix.http.base.internal.dispatch.Dispatcher.dispatch(Dispatcher.java:39)          at org.apache.felix.http.base.internal.DispatcherServlet.service(DispatcherServlet.java:67)          at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)         at com.day.j2ee.servletengine.ServletRuntimeEnvironment.service(ServletRuntimeEnvironment.ja va:250)         at com.day.j2ee.servletengine.RequestDispatcherImpl.doFilter(RequestDispatcherImpl.java:321)          at com.day.j2ee.servletengine.RequestDispatcherImpl.service(RequestDispatcherImpl.java:340)          at com.day.j2ee.servletengine.RequestDispatcherImpl.service(RequestDispatcherImpl.java:383)          at com.day.j2ee.servletengine.ServletHandlerImpl.process(ServletHandlerImpl.java:360)          at com.day.j2ee.servletengine.HttpListener$Worker.run(HttpListener.java:644)         at java.lang.Thread.run(Unknown Source) Request Progress:       0 (2013-05-01 17:07:30) TIMER_START{Request Processing}       0 (2013-05-01 17:07:30) COMMENT timer_end format is {,}       0 (2013-05-01 17:07:30) LOG Method=GET, PathInfo=/libs/wcm/core/content/reference.json       0 (2013-05-01 17:07:30) TIMER_START{ResourceResolution}       0 (2013-05-01 17:07:30) TIMER_END{0,ResourceResolution} URI=/libs/wcm/core/content/reference.json resolves to Resource=, type=wcm/core/reference, path=/libs/wcm/core/content/reference, resource=[JcrNodeResource, type=wcm/core/reference, superType=null, path=/libs/wcm/core/content/reference]       0 (2013-05-01 17:07:30) LOG Resource Path Info: SlingRequestPathInfo: path='/libs/wcm/core/content/reference', selectorString='null', extension='json', suffix='null'       0 (2013-05-01 17:07:30) TIMER_START{ServletResolution}       0 (2013-05-01 17:07:30) TIMER_START{resolveServlet(, type=wcm/core/reference, path=/libs/wcm/core/content/reference, resource=[JcrNodeResource, type=wcm/core/reference, superType=null, path=/libs/wcm/core/content/reference])}       0 (2013-05-01 17:07:30) TIMER_END{0,resolveServlet(, type=wcm/core/reference, path=/libs/wcm/core/content/reference, resource=[JcrNodeResource, type=wcm/core/reference, superType=null, path=/libs/wcm/core/content/reference])} Using servlet com.day.cq.wcm.core.impl.reference.ActivationReferenceSearchServlet       0 (2013-05-01 17:07:30) TIMER_END{0,ServletResolution} URI=/libs/wcm/core/content/reference.json handled by Servlet=com.day.cq.wcm.core.impl.reference.ActivationReferenceSearchServlet       0 (2013-05-01 17:07:30) LOG Applying Requestfilters       0 (2013-05-01 17:07:30) LOG Calling filter: org.apache.sling.bgservlets.impl.BackgroundServletStarterFilter       0 (2013-05-01 17:07:30) LOG Calling filter: org.apache.sling.i18n.impl.I18NFilter       0 (2013-05-01 17:07:30) LOG Calling filter: org.apache.sling.rewriter.impl.RewriterFilter       0 (2013-05-01 17:07:30) LOG Calling filter: com.day.cq.wcm.designimporter.CanvasPageDeleteRequestFilter       0 (2013-05-01 17:07:30) LOG Calling filter: com.day.cq.wcm.core.impl.WCMRequestFilter       0 (2013-05-01 17:07:30) LOG Calling filter: com.day.cq.wcm.foundation.forms.impl.FormsHandlingServlet       0 (2013-05-01 17:07:30) LOG Calling filter: com.adobe.granite.optout.impl.OptOutFilter       0 (2013-05-01 17:07:30) LOG Calling filter: com.day.cq.theme.impl.ThemeResolverFilter       0 (2013-05-01 17:07:30) LOG Calling filter: org.apache.sling.engine.impl.debug.RequestProgressTrackerLogFilter       0 (2013-05-01 17:07:30) LOG Calling filter: com.day.cq.wcm.mobile.core.impl.redirect.RedirectFilter       0 (2013-05-01 17:07:30) LOG RedirectFilter did not redirect (request extension does not match)       0 (2013-05-01 17:07:30) LOG Calling filter: com.day.cq.wcm.core.impl.warp.TimeWarpFilter       0 (2013-05-01 17:07:30) LOG Applying Componentfilters       0 (2013-05-01 17:07:30) LOG Calling filter: com.day.cq.wcm.core.impl.WCMComponentFilter       0 (2013-05-01 17:07:30) LOG Calling filter: com.day.cq.wcm.core.impl.WCMDebugFilter       0 (2013-05-01 17:07:30) TIMER_START{com.day.cq.wcm.core.impl.reference.ActivationReferenceSearchServlet#0}       0 (2013-05-01 17:07:30) TIMER_END{0,com.day.cq.wcm.core.impl.reference.ActivationReferenceSearchServlet#0}       0 (2013-05-01 17:07:30) LOG Applying Error filters       0 (2013-05-01 17:07:30) LOG Calling filter: org.apache.sling.rewriter.impl.RewriterFilter       0 (2013-05-01 17:07:30) TIMER_START{handleError:throwable=java.lang.NullPointerException}      16 (2013-05-01 17:07:30) TIMER_END{16,handleError:throwable=java.lang.NullPointerException} Using handler /apps/sling/servlet/errorhandler/default.jsp      31 (2013-05-01 17:07:30) 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@dcca29c), Config(type=mobiledebug, config=org.apache.sling.jcr.resource.JcrPropertyMap@75c7b6d7), Config(type=contentsync, config=org.apache.sling.jcr.resource.JcrPropertyMap@ab519aa), serializer=Config(type=htmlwriter, config={}))}      78 (2013-05-01 17:07:30) TIMER_END{78,Request Processing} Dumping SlingRequestProgressTracker Entries  ApacheSling/2.2 (Day-Servlet-Engine/4.1.42, Java HotSpot(TM) 64-Bit Server VM 1.6.0_29, Windows Server 2008 R2 6.1 amd64)