org.apache.sling.api.scripting.ScriptEvaluationException:
Page | = | /content/test-1 | |
Resource Path | = | /content/test-1/jcr:content/parContent/left_nav | |
Cell | = | left-nav | |
Cell Search Path | = | page/parContent|parsys/left-nav|parbase | |
Component Path | = | /apps/******/components/content/left-nav |
0 TIMER_START{Request Processing} 1 COMMENT timer_end format is {<elapsed microseconds>,<timer name>} <optional message> 6 LOG Method=GET, PathInfo=null 9 TIMER_START{handleSecurity} 722 TIMER_END{712,handleSecurity} authenticator org.apache.sling.auth.core.impl.SlingAuthenticator@7b53f021 returns true 871 TIMER_START{ResourceResolution} 929 TIMER_END{56,ResourceResolution} URI=/content/test-1/jcr:content/parContent/left_nav..html resolves to Resource=JcrNodeResource, type=amica/components/content/left-nav, superType=null, path=/content/test-1/jcr:content/parContent/left_nav 934 LOG Resource Path Info: SlingRequestPathInfo: path='/content/test-1/jcr:content/parContent/left_nav', selectorString='null', extension='html', suffix='null' 934 TIMER_START{ServletResolution} 935 TIMER_START{resolveServlet(/content/test-1/jcr:content/parContent/left_nav)} 947 TIMER_END{10,resolveServlet(/content/test-1/jcr:content/parContent/left_nav)} Using servlet /apps/amica/components/content/left-nav/left-nav.jsp 948 TIMER_END{13,ServletResolution} URI=/content/test-1/jcr:content/parContent/left_nav..html handled by Servlet=/apps/amica/components/content/left-nav/left-nav.jsp 950 LOG Applying Requestfilters 951 LOG Calling filter: com.adobe.granite.resourceresolverhelper.impl.ResourceResolverHelperImpl 954 LOG Calling filter: org.apache.sling.i18n.impl.I18NFilter 955 LOG Calling filter: com.adobe.granite.httpcache.impl.InnerCacheFilter 959 LOG Calling filter: org.apache.sling.rewriter.impl.RewriterFilter 961 LOG Calling filter: com.adobe.cq.mcm.campaign.servlets.CampaignCopyTracker 963 LOG Calling filter: com.adobe.cq.history.impl.HistoryRequestFilter 1173 LOG Calling filter: com.day.cq.wcm.core.impl.WCMRequestFilter 1181 LOG Calling filter: com.adobe.cq.wcm.core.components.internal.servlets.CoreFormHandlingServlet 1184 LOG Calling filter: com.adobe.granite.optout.impl.OptOutFilter 1188 LOG Calling filter: com.day.cq.wcm.foundation.forms.impl.FormsHandlingServlet 1191 LOG Calling filter: com.adobe.cq.social.commons.cors.CORSAuthenticationFilter 1193 LOG Calling filter: org.apache.sling.engine.impl.debug.RequestProgressTrackerLogFilter 1196 LOG Calling filter: com.amica.adc.amicacom.core.filters.LoggingFilter 1197 LOG Calling filter: com.day.cq.wcm.mobile.core.impl.redirect.RedirectFilter 1200 LOG Calling filter: com.day.cq.wcm.core.impl.AuthoringUIModeServiceImpl 1258 LOG Calling filter: org.apache.sling.security.impl.ContentDispositionFilter 1260 LOG Calling filter: com.adobe.granite.csrf.impl.CSRFFilter 1263 LOG Calling filter: com.adobe.granite.rest.assets.impl.AssetContentDispositionFilter 1266 LOG Calling filter: com.adobe.granite.requests.logging.impl.RequestLoggerImpl 1269 LOG Calling filter: com.adobe.granite.rest.impl.servlet.ApiResourceFilter 1274 LOG Calling filter: com.day.cq.dam.core.impl.assetlinkshare.AdhocAssetShareAuthHandler 1276 LOG Calling filter: com.day.cq.dam.core.impl.servlet.ActivityRecordHandler 1286 LOG Calling filter: com.adobe.cq.social.ugcbase.security.impl.SaferSlingPostServlet 1287 LOG Calling filter: com.day.cq.wcm.core.impl.warp.TimeWarpFilter 1292 LOG Applying Componentfilters 1293 LOG Calling filter: com.day.cq.personalization.impl.TargetComponentFilter 1296 LOG Calling filter: com.day.cq.wcm.core.impl.WCMComponentFilter 1487 LOG Calling filter: com.day.cq.wcm.core.impl.WCMDebugFilter 1506 TIMER_START{/apps/amica/components/content/left-nav/left-nav.jsp#0} 3446 LOG SCRIPT ERROR: 3450 TIMER_END{1943,/apps/amica/components/content/left-nav/left-nav.jsp#0} 4559 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={}))} 5825 TIMER_END{5824,Request Processing} Dumping SlingRequestProgressTracker Entries
*ERROR* [0:0:0:0:0:0:0:1 [1509739725800] GET /content/test-1/jcr:content/parContent/left_nav..html HTTP/1.1] com.day.cq.wcm.core.impl.WCMDebugFilter Exception:
org.apache.sling.api.scripting.ScriptEvaluationException:
at org.apache.sling.scripting.core.impl.DefaultSlingScript.call(DefaultSlingScript.java:416)
at org.apache.sling.scripting.core.impl.DefaultSlingScript.eval(DefaultSlingScript.java:184)
at org.apache.sling.scripting.core.impl.DefaultSlingScript.service(DefaultSlingScript.java:491)
at org.apache.sling.engine.impl.request.RequestData.service(RequestData.java:552)
at org.apache.sling.engine.impl.filter.SlingComponentFilterChain.render(SlingComponentFilterChain.java:44)
at org.apache.sling.engine.impl.filter.AbstractSlingFilterChain.doFilter(AbstractSlingFilterChain.java:77)
at com.day.cq.wcm.core.impl.WCMDebugFilter.doFilterWithErrorHandling(WCMDebugFilter.java:192)
at com.day.cq.wcm.core.impl.WCMDebugFilter.doFilter(WCMDebugFilter.java:159)
at org.apache.sling.engine.impl.filter.AbstractSlingFilterChain.doFilter(AbstractSlingFilterChain.java:68)
at com.day.cq.wcm.core.impl.WCMComponentFilter.filterRootInclude(WCMComponentFilter.java:375)
at com.day.cq.wcm.core.impl.WCMComponentFilter.doFilter(WCMComponentFilter.java:190)
at org.apache.sling.engine.impl.filter.AbstractSlingFilterChain.doFilter(AbstractSlingFilterChain.java:68)
at com.day.cq.personalization.impl.TargetComponentFilter.doFilter(TargetComponentFilter.java:96)
at org.apache.sling.engine.impl.filter.AbstractSlingFilterChain.doFilter(AbstractSlingFilterChain.java:68)
at org.apache.sling.engine.impl.SlingRequestProcessorImpl.processComponent(SlingRequestProcessorImpl.java:282)
at org.apache.sling.engine.impl.filter.RequestSlingFilterChain.render(RequestSlingFilterChain.java:49)
at org.apache.sling.engine.impl.filter.AbstractSlingFilterChain.doFilter(AbstractSlingFilterChain.java:71)
at com.day.cq.wcm.core.impl.warp.TimeWarpFilter.doFilter(TimeWarpFilter.java:109)
at org.apache.sling.engine.impl.filter.AbstractSlingFilterChain.doFilter(AbstractSlingFilterChain.java:68)
at com.adobe.cq.social.ugcbase.security.impl.SaferSlingPostServlet.doFilter(SaferSlingPostServlet.java:114)
at org.apache.sling.engine.impl.filter.AbstractSlingFilterChain.doFilter(AbstractSlingFilterChain.java:68)
at com.day.cq.dam.core.impl.servlet.ActivityRecordHandler.doFilter(ActivityRecordHandler.java:154)
at org.apache.sling.engine.impl.filter.AbstractSlingFilterChain.doFilter(AbstractSlingFilterChain.java:68)
at com.day.cq.dam.core.impl.assetlinkshare.AdhocAssetShareAuthHandler.doFilter(AdhocAssetShareAuthHandler.java:436)
at org.apache.sling.engine.impl.filter.AbstractSlingFilterChain.doFilter(AbstractSlingFilterChain.java:68)
at org.apache.sling.engine.impl.filter.AbstractSlingFilterChain.doFilter(AbstractSlingFilterChain.java:73)
at com.adobe.granite.rest.impl.servlet.ApiResourceFilter.doFilter(ApiResourceFilter.java:70)
at org.apache.sling.engine.impl.filter.AbstractSlingFilterChain.doFilter(AbstractSlingFilterChain.java:68)
at com.adobe.granite.requests.logging.impl.RequestLoggerImpl.doFilter(RequestLoggerImpl.java:126)
at org.apache.sling.engine.impl.filter.AbstractSlingFilterChain.doFilter(AbstractSlingFilterChain.java:68)
at com.adobe.granite.rest.assets.impl.AssetContentDispositionFilter.doFilter(AssetContentDispositionFilter.java:96)
at org.apache.sling.engine.impl.filter.AbstractSlingFilterChain.doFilter(AbstractSlingFilterChain.java:68)
at com.adobe.granite.csrf.impl.CSRFFilter.doFilter(CSRFFilter.java:217)
at org.apache.sling.engine.impl.filter.AbstractSlingFilterChain.doFilter(AbstractSlingFilterChain.java:68)
at org.apache.sling.security.impl.ContentDispositionFilter.doFilter(ContentDispositionFilter.java:180)
at org.apache.sling.engine.impl.filter.AbstractSlingFilterChain.doFilter(AbstractSlingFilterChain.java:68)
at com.day.cq.wcm.core.impl.AuthoringUIModeServiceImpl.doFilter(AuthoringUIModeServiceImpl.java:367)
at org.apache.sling.engine.impl.filter.AbstractSlingFilterChain.doFilter(AbstractSlingFilterChain.java:68)
at com.day.cq.wcm.mobile.core.impl.redirect.RedirectFilter.doFilter(RedirectFilter.java:248)
at org.apache.sling.engine.impl.filter.AbstractSlingFilterChain.doFilter(AbstractSlingFilterChain.java:68)
at com.amica.adc.amicacom.core.filters.LoggingFilter.doFilter(LoggingFilter.java:56)
at org.apache.sling.engine.impl.filter.AbstractSlingFilterChain.doFilter(AbstractSlingFilterChain.java:68)
at org.apache.sling.engine.impl.debug.RequestProgressTrackerLogFilter.doFilter(RequestProgressTrackerLogFilter.java:107)
at org.apache.sling.engine.impl.filter.AbstractSlingFilterChain.doFilter(AbstractSlingFilterChain.java:68)
at com.adobe.cq.social.commons.cors.CORSAuthenticationFilter.doFilter(CORSAuthenticationFilter.java:91)
at org.apache.sling.engine.impl.filter.AbstractSlingFilterChain.doFilter(AbstractSlingFilterChain.java:68)
at com.day.cq.wcm.foundation.forms.FormsHandlingServletHelper.handleFilter(FormsHandlingServletHelper.java:221)
at com.day.cq.wcm.foundation.forms.impl.FormsHandlingServlet.doFilter(FormsHandlingServlet.java:138)
at org.apache.sling.engine.impl.filter.AbstractSlingFilterChain.doFilter(AbstractSlingFilterChain.java:68)
at com.adobe.granite.optout.impl.OptOutFilter.doFilter(OptOutFilter.java:76)
at org.apache.sling.engine.impl.filter.AbstractSlingFilterChain.doFilter(AbstractSlingFilterChain.java:68)
at com.day.cq.wcm.foundation.forms.FormsHandlingServletHelper.handleFilter(FormsHandlingServletHelper.java:221)
at com.adobe.cq.wcm.core.components.internal.servlets.CoreFormHandlingServlet.doFilter(CoreFormHandlingServlet.java:131)
at org.apache.sling.engine.impl.filter.AbstractSlingFilterChain.doFilter(AbstractSlingFilterChain.java:68)
at com.day.cq.wcm.core.impl.WCMRequestFilter.doFilter(WCMRequestFilter.java:90)
at org.apache.sling.engine.impl.filter.AbstractSlingFilterChain.doFilter(AbstractSlingFilterChain.java:68)
at com.adobe.cq.history.impl.HistoryRequestFilter.doFilter(HistoryRequestFilter.java:122)
at org.apache.sling.engine.impl.filter.AbstractSlingFilterChain.doFilter(AbstractSlingFilterChain.java:68)
at com.adobe.cq.mcm.campaign.servlets.CampaignCopyTracker.doFilter(CampaignCopyTracker.java:100)
at org.apache.sling.engine.impl.filter.AbstractSlingFilterChain.doFilter(AbstractSlingFilterChain.java:68)
at org.apache.sling.rewriter.impl.RewriterFilter.doFilter(RewriterFilter.java:83)
at org.apache.sling.engine.impl.filter.AbstractSlingFilterChain.doFilter(AbstractSlingFilterChain.java:68)
at com.adobe.granite.httpcache.impl.InnerCacheFilter.doFilter(InnerCacheFilter.java:81)
at com.adobe.granite.httpcache.impl.InnerCacheFilter.doFilter(InnerCacheFilter.java:60)
at org.apache.sling.engine.impl.filter.AbstractSlingFilterChain.doFilter(AbstractSlingFilterChain.java:68)
at org.apache.sling.i18n.impl.I18NFilter.doFilter(I18NFilter.java:138)
at org.apache.sling.engine.impl.filter.AbstractSlingFilterChain.doFilter(AbstractSlingFilterChain.java:68)
at org.apache.sling.engine.impl.filter.AbstractSlingFilterChain.doFilter(AbstractSlingFilterChain.java:73)
at com.adobe.granite.resourceresolverhelper.impl.ResourceResolverHelperImpl.doFilter(ResourceResolverHelperImpl.java:83)
at org.apache.sling.engine.impl.filter.AbstractSlingFilterChain.doFilter(AbstractSlingFilterChain.java:68)
at org.apache.sling.engine.impl.SlingRequestProcessorImpl.doProcessRequest(SlingRequestProcessorImpl.java:151)
at org.apache.sling.engine.impl.SlingMainServlet.service(SlingMainServlet.java:219)
at org.apache.felix.http.base.internal.handler.ServletHandler.handle(ServletHandler.java:85)
at org.apache.felix.http.base.internal.dispatch.InvocationChain.doFilter(InvocationChain.java:79)
at com.adobe.granite.license.impl.LicenseCheckFilter.doFilter(LicenseCheckFilter.java:308)
at org.apache.felix.http.base.internal.handler.FilterHandler.handle(FilterHandler.java:135)
at org.apache.felix.http.base.internal.dispatch.InvocationChain.doFilter(InvocationChain.java:74)
at org.apache.felix.http.sslfilter.internal.SslFilter.doFilter(SslFilter.java:96)
at org.apache.felix.http.base.internal.handler.FilterHandler.handle(FilterHandler.java:135)
at org.apache.felix.http.base.internal.dispatch.InvocationChain.doFilter(InvocationChain.java:74)
at org.apache.sling.security.impl.ReferrerFilter.doFilter(ReferrerFilter.java:295)
at org.apache.felix.http.base.internal.handler.FilterHandler.handle(FilterHandler.java:135)
at org.apache.felix.http.base.internal.dispatch.InvocationChain.doFilter(InvocationChain.java:74)
at org.apache.sling.i18n.impl.I18NFilter.doFilter(I18NFilter.java:138)
at org.apache.felix.http.base.internal.handler.FilterHandler.handle(FilterHandler.java:135)
at org.apache.felix.http.base.internal.dispatch.InvocationChain.doFilter(InvocationChain.java:74)
at org.apache.sling.featureflags.impl.FeatureManager.doFilter(FeatureManager.java:116)
at org.apache.felix.http.base.internal.handler.FilterHandler.handle(FilterHandler.java:135)
at org.apache.felix.http.base.internal.dispatch.InvocationChain.doFilter(InvocationChain.java:74)
at org.apache.sling.engine.impl.log.RequestLoggerFilter.doFilter(RequestLoggerFilter.java:72)
at org.apache.felix.http.base.internal.handler.FilterHandler.handle(FilterHandler.java:135)
at org.apache.felix.http.base.internal.dispatch.InvocationChain.doFilter(InvocationChain.java:74)
at org.apache.felix.http.base.internal.dispatch.Dispatcher.dispatch(Dispatcher.java:128)
at org.apache.felix.http.base.internal.dispatch.DispatcherServlet.service(DispatcherServlet.java:49)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:725)
at org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:812)
at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:587)
at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:221)
at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1127)
at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:515)
at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:185)
at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1061)
at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:141)
at org.eclipse.jetty.server.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:215)
at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:97)
at org.eclipse.jetty.server.Server.handle(Server.java:499)
at org.eclipse.jetty.server.HttpChannel.handle(HttpChannel.java:311)
at org.eclipse.jetty.server.HttpConnection.onFillable(HttpConnection.java:257)
at org.eclipse.jetty.io.AbstractConnection$2.run(AbstractConnection.java:544)
at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:635)
at org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:555)
at java.lang.Thread.run(Unknown Source)
Caused by: org.apache.sling.api.SlingException:
at org.apache.sling.scripting.jsp.jasper.servlet.JspServletWrapper.handleJspExceptionInternal(JspServletWrapper.java:691)
at org.apache.sling.scripting.jsp.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:608)
at org.apache.sling.scripting.jsp.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:533)
at org.apache.sling.scripting.jsp.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:449)
at org.apache.sling.scripting.jsp.JspScriptEngineFactory.callJsp(JspScriptEngineFactory.java:346)
at org.apache.sling.scripting.jsp.JspScriptEngineFactory.access$100(JspScriptEngineFactory.java:101)
at org.apache.sling.scripting.jsp.JspScriptEngineFactory$JspScriptEngine.eval(JspScriptEngineFactory.java:607)
at org.apache.sling.scripting.core.impl.DefaultSlingScript.call(DefaultSlingScript.java:388)
... 111 common frames omitted
Caused by: java.lang.NullPointerException: null
at org.apache.jsp.apps.amica.components.content.left_002dnav.left_002dnav_jsp._jspService(left_002dnav_jsp.java:191)
at org.apache.sling.scripting.jsp.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:725)
at org.apache.sling.scripting.jsp.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:502)
... 116 common frames omitted
Solved! Go to Solution.
Caused by: java.lang.NullPointerException: null
at org.apache.jsp.apps.amica.components.content.left_002dnav.left_002dnav_jsp._jspService(le ft_002dnav_jsp.java:191)
Snippet of the stack trace clearly indicates that it is a null pointer that is originating from the component script because of which you may be seeing an error when you include this component on to the page. You may have to take a look at the JSP and figure out what is going on.
Caused by: java.lang.NullPointerException: null
at org.apache.jsp.apps.amica.components.content.left_002dnav.left_002dnav_jsp._jspService(le ft_002dnav_jsp.java:191)
Snippet of the stack trace clearly indicates that it is a null pointer that is originating from the component script because of which you may be seeing an error when you include this component on to the page. You may have to take a look at the JSP and figure out what is going on.
Can you please share the component code? You need to review your component code. you might be using something which is deprecated now.
Please check the below code
<%@include file="/apps/***/global.jsp"%>
<%@ page import="java.util.Iterator,
com.day.cq.wcm.api.PageFilter,
com.day.cq.commons.Doctype,
com.day.text.Text,
org.apache.commons.lang.StringEscapeUtils"
%>
<%
Iterator<Page> children = null;
Page child = null;
String parent = null;
ValueMap props = null;
String pageID = null;
boolean isSamePage = false;
String links = null;
String linkType = null;
String webURL = null;
String directorURL = null;
String directLink = null;
String directorLink = null;
String defaultID = null;
String parentLink = null;
// get navigation root page Page
Page navRootPage = currentPage;
parent = navRootPage.getParent().getName();
%>
<ul class="leftNav">
<%
if(!properties.get("parent",false)){
navRootPage = currentPage.getParent();
}
%>
<%
String title = null;
if (navRootPage != null) {
children = navRootPage.listChildren(new PageFilter(request));
if(!children.hasNext()){
navRootPage = currentPage.getParent();
children = navRootPage.listChildren(new PageFilter(request));
}
boolean firstLink = true;
while (children.hasNext()) {
if(firstLink){
if(properties.get("parent",false))
child = currentPage;
else
child = currentPage.getParent();
}
else{
child = children.next();
}
props = child.getProperties();
pageID = props.get("promoIDField","");
webURL = props.get("directLink","");
linkType = props.get("linkType","");
directorURL = props.get("directorLink","");
directorLink = props.get("link","");
directLink = props.get("directLink","");
if(currentPage.getPath().equals(child.getPath())){
isSamePage = true;
} else {
isSamePage = false;
}
if(isSamePage){
links = "javascript:void('0');";
}
if(!isSamePage){
if(linkType.equals("") ||linkType.equals("none")){
links = child.getPath()+".html";
}
if(linkType.equals("directorList")){
if(directLink.indexOf("tp://") > -1 || directLink.indexOf("tps://") > -1){
links = webURL;
}else if(directLink.equals("")){
links = child.getPath()+".html";
}else {
links = webURL+".html";
}
}else if(linkType.equals("link")){
links = "javascript:Director.directRequest('"+directorURL+"');";
}
}
title = child.getNavigationTitle();
if(firstLink){
title = properties.get("categoryTitle","");
firstLink = false;
}else if (title == null || title.equals("")) {
title = child.getTitle();
}
%>
<li>
<a id="<%= pageID %>" href= "<%= links %>"
class='<%=isSamePage ? "current disabled" : "" %>'
>
<%= StringEscapeUtils.escapeXml(title)%>
</a>
</li>
<%
}
}
%>
</ul>
Views
Replies
Total Likes
what version of AEM are you using?
Views
Replies
Total Likes
We are doing upgrade from 5.6.1 to 6.3
Views
Replies
Total Likes
Views
Likes
Replies
Views
Like
Replies