Jahia Template Forum > [SOLVED] Error when...

0 (0 Good)
0 (0 Bad)

[SOLVED] Error when accessing a container JCRPath

by  mesdocs »  2011/06/07 20:05

Hello,

I got an error when accessing a container JCRPath :

Caused by: javax.el.ELException: Error reading 'JCRPath' on type org.jahia.data.beans.ContainerBean

Here is the code where the error occurs

[code:zsyyve8q]lt;template

  (mesdocs)

Number of messages  53
Registration date
0 (0 Good)
0 (0 Bad)

Re: Error when accessing a container JCRPath

by  pap@commaro.com »  2011/06/07 20:05

Hello Mesdocs,

are there more details in the logs, for instance also a nested exception which caused the ELException ?

Regards,
Benjamin

Benjamin Papez (pap@commaro.com)

Number of messages  220
Registration date
0 (0 Good)
0 (0 Bad)

Re: Error when accessing a container JCRPath

by  mesdocs »  2011/06/07 20:05

Hi Benjamin,

This is the console logs.

2010-03-03 18:44:38,800: INFO [jsp.jahia.templates.Logger] - mail :
2010-03-03 18:44:39,662: ERROR [org.jahia.engines.EngineRenderer] - Root cause : Error while forwarding the Engine /jsp/jahia/templates/my-templates/myActus.jsp : javax.servlet.jsp.JspException: javax.servlet.ServletException: javax.servlet.jsp.JspException: javax.el.ELException: Error reading 'JCRPath' on type org.jahia.data.beans.ContainerBean -gt; BAILING OUT
javax.servlet.ServletException: javax.servlet.jsp.JspException: javax.servlet.ServletException: javax.servlet.jsp.JspException: javax.el.ELException: Error reading 'JCRPath' on type org.jahia.data.beans.ContainerBean
at org.apache.jasper.runtime.PageContextImpl.doHandlePageException(PageContextImpl.java:848)
at org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:781)
at org.apache.jsp.jsp.jahia.templates.my_002dtemplates.layout.layout_jsp._jspService(layout_jsp.java:647)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:374)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:342)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:267)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:630)
at org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDispatcher.java:535)
at org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispatcher.java:472)
at org.apache.jasper.runtime.JspRuntimeLibrary.include(JspRuntimeLibrary.java:968)
at org.apache.jsp.jsp.jahia.templates.my_002dtemplates.myActus_jsp._jspx_meth_c_005fif_005f0(myActus_jsp.java:205)
at org.apache.jsp.jsp.jahia.templates.my_002dtemplates.myActus_jsp._jspService(myActus_jsp.java:83)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:374)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:342)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:267)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:630)
at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:436)
at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:374)
at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:302)
at org.jahia.engines.EngineRenderer.renderCore(EngineRenderer.java:239)
at org.jahia.engines.EngineRenderer.render(EngineRenderer.java:105)
at org.jahia.engines.core.Core_Engine.processCore(Core_Engine.java:177)
at org.jahia.engines.core.Core_Engine.handleActions(Core_Engine.java:120)
at org.jahia.operations.valves.EngineValve.processEngineRequest(EngineValve.java:192)
at org.jahia.operations.valves.EngineValve.invoke(EngineValve.java:95)
at org.jahia.pipelines.impl.GenericPipeline.invokeNext(GenericPipeline.java:165)
at org.jahia.operations.valves.SkeletonAggregatorValve.invoke(SkeletonAggregatorValve.java:100)
at org.jahia.pipelines.impl.GenericPipeline.invokeNext(GenericPipeline.java:165)
at org.jahia.operations.valves.PlutoProcessActionValve.invoke(PlutoProcessActionValve.java:183)
at org.jahia.pipelines.impl.GenericPipeline.invokeNext(GenericPipeline.java:165)
at org.jahia.operations.valves.ThemeValve.invoke(ThemeValve.java:109)
at org.jahia.pipelines.impl.GenericPipeline.invokeNext(GenericPipeline.java:165)
at org.jahia.operations.valves.UserAgentViewSwitcherValve.invoke(UserAgentViewSwitcherValve.java:75)
at org.jahia.pipelines.impl.GenericPipeline.invokeNext(GenericPipeline.java:165)
at org.jahia.operations.valves.HistoryValve.invoke(HistoryValve.java:64)
at org.jahia.pipelines.impl.GenericPipeline.invokeNext(GenericPipeline.java:165)
at org.jahia.operations.valves.PageAccessCheckValve.invoke(PageAccessCheckValve.java:89)
at org.jahia.pipelines.impl.GenericPipeline.invokeNext(GenericPipeline.java:165)
at org.jahia.operations.valves.OperationModeCheckValve.invoke(OperationModeCheckValve.java:101)
at org.jahia.pipelines.impl.GenericPipeline.invokeNext(GenericPipeline.java:165)
at org.jahia.operations.valves.SiteCheckValve.invoke(SiteCheckValve.java:95)
at org.jahia.pipelines.impl.GenericPipeline.invokeNext(GenericPipeline.java:165)
at org.jahia.pipelines.impl.GenericPipeline.invoke(GenericPipeline.java:152)
at org.jahia.operations.OperationManager.handleOperations(OperationManager.java:97)
at org.jahia.bin.JahiaAction.execute(JahiaAction.java:91)
at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:431)
at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:236)
at org.jahia.bin.JahiaRequestProcessor.process(JahiaRequestProcessor.java:99)
at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1196)
at org.jahia.bin.Jahia.process(Jahia.java:1575)
at org.jahia.bin.Jahia.service(Jahia.java:869)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.jahia.bin.filters.jcr.JcrSessionFilter.doFilter(JcrSessionFilter.java:56)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.tuckey.web.filters.urlrewrite.RuleChain.handleRewrite(RuleChain.java:164)
at org.tuckey.web.filters.urlrewrite.RuleChain.doRules(RuleChain.java:141)
at org.tuckey.web.filters.urlrewrite.UrlRewriter.processRequest(UrlRewriter.java:90)
at org.tuckey.web.filters.urlrewrite.UrlRewriteFilter.doFilter(UrlRewriteFilter.java:417)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.jahia.bin.filters.ResponseCacheControlFilter.doFilter(ResponseCacheControlFilter.java:110)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:433)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:568)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:286)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:845)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
at java.lang.Thread.run(Thread.java:799)
Caused by: javax.servlet.ServletException: javax.servlet.jsp.JspException: javax.el.ELException: Error reading 'JCRPath' on type org.jahia.data.beans.ContainerBean
at org.apache.jasper.runtime.PageContextImpl.doHandlePageException(PageContextImpl.java:848)
at org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:781)
at org.apache.jsp.jsp.jahia.templates.my_002dtemplates.layout.actus.spaceContent_jsp._jspService(spaceContent_jsp.java:101)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:374)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:342)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:267)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:630)
at org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDispatcher.java:535)
at org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispatcher.java:472)
at org.apache.taglibs.standard.tag.common.core.ImportSupport.acquireString(ImportSupport.java:296)
at org.apache.taglibs.standard.tag.common.core.ImportSupport.doEndTag(ImportSupport.java:161)
at org.apache.jsp.jsp.jahia.templates.my_002dtemplates.layout.layout_jsp._jspx_meth_template_005finclude_005f3(layout_jsp.java:1988)
at org.apache.jsp.jsp.jahia.templates.my_002dtemplates.layout.layout_jsp._jspx_meth_c_005fif_005f5(layout_jsp.java:1941)
at org.apache.jsp.jsp.jahia.templates.my_002dtemplates.layout.layout_jsp._jspService(layout_jsp.java:564)
... 85 more
Caused by: javax.el.ELException: Error reading 'JCRPath' on type org.jahia.data.beans.ContainerBean
at javax.el.BeanELResolver.getValue(BeanELResolver.java:66)
at javax.el.CompositeELResolver.getValue(CompositeELResolver.java:53)
at org.apache.el.parser.AstValue.getValue(AstValue.java:118)
at org.apache.el.ValueExpressionImpl.getValue(ValueExpressionImpl.java:186)
at org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate(PageContextImpl.java:925)
at org.apache.jsp.jsp.jahia.templates.my_002dtemplates.containers.actusContent.actusDisplay_jsp._jspx_meth_template_005fcontainer_005f2(actusDisplay_jsp.java:1147)
at org.apache.jsp.jsp.jahia.templates.my_002dtemplates.containers.actusContent.actusDisplay_jsp._jspx_meth_template_005fcontainerList_005f2(actusDisplay_jsp.java:1017)
at org.apache.jsp.jsp.jahia.templates.my_002dtemplates.containers.actusContent.actusDisplay_jsp._jspx_meth_c_005fwhen_005f0(actusDisplay_jsp.java:965)
at org.apache.jsp.jsp.jahia.templates.my_002dtemplates.containers.actusContent.actusDisplay_jsp._jspService(actusDisplay_jsp.java:264)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:374)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:342)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:267)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:630)
at org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDispatcher.java:535)
at org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispatcher.java:472)
at org.apache.taglibs.standard.tag.common.core.ImportSupport.acquireString(ImportSupport.java:296)
at org.apache.taglibs.standard.tag.common.core.ImportSupport.doEndTag(ImportSupport.java:161)
at org.apache.jsp.jsp.jahia.templates.my_002dtemplates.layout.actus.spaceContent_jsp._jspx_meth_template_005finclude_005f1(spaceContent_jsp.java:251)
at org.apache.jsp.jsp.jahia.templates.my_002dtemplates.layout.actus.spaceContent_jsp._jspService(spaceContent_jsp.java:93)
... 101 more
Caused by: java.lang.NumberFormatException: For input string:

  (mesdocs)

Number of messages  53
Registration date
0 (0 Good)
0 (0 Bad)

Re: Error when accessing a container JCRPath

by  pap@commaro.com »  2011/06/07 20:05

Hello,

this is a bug, which is present in the community edition. If you have the ability to build your own Jahia installation, you could fix it by editing the method JahiaContentNodeImpl.initFieldItem and add the check for lt;empty

Benjamin Papez (pap@commaro.com)

Number of messages  220
Registration date
0 (0 Good)
0 (0 Bad)

Re: Error when accessing a container JCRPath

by  mesdocs »  2011/06/07 20:05

Hi Benjamin,

Thank you for your answer.
I have successfully rebuild the core project of jahia.
The problem is solved.

Regards,

Mesdocs.

  (mesdocs)

Number of messages  53
Registration date
Contact
Share
Feedback

Get in touch

Whether you are a current user or if you are just evaluating Jahia, we are here to help.

Contact us

Share this page