1 Reply Latest reply on Jan 30, 2013 6:39 AM by Day cq5 developer

    Issue in Performance testing in CQ5.4 for segment

    Day cq5 developer

      Hi All,

         We are facing segment related issue in PT, so created discussion around. Let us know if you are faced this earlier and how you have resolved?

       

      Thanks

      Yogesh,

       

      Logs are as below:

       

       

      ERROR GET /etc/segmentation.segment.js HTTP/1.1] libs.cq.personalization.components.segmentpage.segment$js$jsp error while building a segment /etc/segmentation/intranet/California/jcr:content/traits org.apache.sling.api.scripting.ScriptEvaluationException: javax.servlet.ServletException: javax.servlet.jsp.JspException: Error while executing script ../trait.js.jsp
      at org.apache.sling.scripting.core.impl.DefaultSlingScript.call(DefaultS lingScript.java:385)
      at org.apache.sling.scripting.core.impl.DefaultSlingScript.eval(DefaultS lingScript.java:170)
      at org.apache.sling.scripting.core.impl.DefaultSlingScript.service(Defau ltSlingScript.java:456)
      at org.apache.sling.engine.impl.request.RequestData.service(RequestData. java:491)
      at org.apache.sling.engine.impl.filter.SlingComponentFilterChain.render( SlingComponentFilterChain.java:45)
      at org.apache.sling.engine.impl.filter.AbstractSlingFilterChain.doFilter (AbstractSlingFilterChain.java:64)
      at com.day.cq.wcm.core.impl.WCMDebugFilter.doFilterWithErrorHandling(WCM DebugFilter.java:182)
      at com.day.cq.wcm.core.impl.WCMDebugFilter.doFilter(WCMDebugFilter.java: 149)
      at org.apache.sling.engine.impl.filter.AbstractSlingFilterChain.doFilter (AbstractSlingFilterChain.java:60)
      at com.day.cq.wcm.core.impl.WCMComponentFilter.doFilter(WCMComponentFilt er.java:219)
      at org.apache.sling.engine.impl.filter.AbstractSlingFilterChain.doFilter (AbstractSlingFilterChain.java:60)
      at org.apache.sling.engine.impl.SlingRequestProcessorImpl.processCompone nt(SlingRequestProcessorImpl.java:280)
      at org.apache.sling.engine.impl.SlingRequestProcessorImpl.dispatchReques t(SlingRequestProcessorImpl.java:320)
      at org.apache.sling.engine.impl.request.SlingRequestDispatcher.dispatch( SlingRequestDispatcher.java:208)
      at org.apache.sling.engine.impl.request.SlingRequestDispatcher.include(S lingRequestDispatcher.java:102)
      at com.day.cq.wcm.core.impl.WCMComponentFilter$ForwardRequestDispatcher. include(WCMComponentFilter.java:381)
      at org.apache.jsp.libs.cq.personalization.components.segmentpage.segment _js_jsp._jspService(segment_js_jsp.java:188)
      at org.apache.sling.scripting.jsp.jasper.runtime.HttpJspBase.service(Htt pJspBase.java:70)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
      at org.apache.sling.scripting.jsp.jasper.servlet.JspServletWrapper.servi ce(JspServletWrapper.java:419)
      at org.apache.sling.scripting.jsp.JspServletWrapperAdapter.service(JspSe rvletWrapperAdapter.java:59)
      at org.apache.sling.scripting.jsp.JspScriptEngineFactory.callJsp(JspScri ptEngineFactory.java:173)
      at org.apache.sling.scripting.jsp.JspScriptEngineFactory.access$100(JspS criptEngineFactory.java:84)
      at org.apache.sling.scripting.jsp.JspScriptEngineFactory$JspScriptEngine .eval(JspScriptEngineFactory.java:388)
      at org.apache.sling.scripting.core.impl.DefaultSlingScript.call(DefaultS lingScript.java:358)
      at org.apache.sling.scripting.core.impl.DefaultSlingScript.eval(DefaultS lingScript.java:170)
      at org.apache.sling.scripting.core.impl.DefaultSlingScript.service(Defau ltSlingScript.java:456)
      at org.apache.sling.engine.impl.request.RequestData.service(RequestData. java:491)
      at org.apache.sling.engine.impl.filter.SlingComponentFilterChain.render( SlingComponentFilterChain.java:45)
      at org.apache.sling.engine.impl.filter.AbstractSlingFilterChain.doFilter (AbstractSlingFilterChain.java:64)
      8293,2-9 89%
      Caused by: java.lang.NullPointerException
      at com.day.cq.wcm.api.WCMMode.toRequest(WCMMode.java:71)
      at org.apache.jsp.libs.cq.personalization.components.traits.logic.trait_ js_jsp._jspService(trait_js_jsp.java:204)
      at org.apache.sling.scripting.jsp.jasper.runtime.HttpJspBase.service(Htt pJspBase.java:70)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
      at org.apache.sling.scripting.jsp.jasper.servlet.JspServletWrapper.servi ce(JspServletWrapper.java:419)