Jahia Dev Forum > Error: org.jahia.services.rend...

0 (0 Good)
0 (0 Bad)

Error: org.jahia.services.render.RenderException

by  akharii »  2014/05/14 13:51

hi,

i upgrade my jahia6 to DF7.0, (not easily ^^) but now i have just one last bug.

In fact before DF7.0 i have a modul (for menu tab like following pict)

 

 

I think this part of code bug :

 
<c:set var="decide" value="${jcr:getMeAndParentsOfType(renderContext.mainResource.node, 'jnt:page')[0]}" />
 
 
<c:if test="${jcr:getParentOfType(decide,'jnt:page') != currentNode.resolveSite.home}">
 
<c:if test="${jcr:getParentOfType(jcr:getParentOfType(decide,'jnt:page'),'jnt:page') eq currentNode.resolveSite.home}">
 
<c:set var="current" value="${jcr:getMeAndParentsOfType(renderContext.mainResource.node, 'jnt:page')[0]}" />
</c:if>
<c:if test="${jcr:getParentOfType(jcr:getParentOfType(jcr:getParentOfType(decide,'jnt:page'),'jnt:page'),'jnt:page') eq currentNode.resolveSite.home}">
>
<c:set var="current" value="${jcr:getParentsOfType(renderContext.mainResource.node, 'jnt:page')[0]}" />
</c:if>        
 
</c:if>
 
<c:if test="${jcr:getParentOfType(decide,'jnt:page') eq currentNode.resolveSite.home}">
<c:if test="${empty currentResource.moduleParams.base}">
<c:set var="current" value="${jcr:getMeAndParentsOfType(renderContext.mainResource.node, 'jnt:page')[0]}" />
</c:if>
</c:if>

 

for this time i replace all of this block by 1 line :

<c:set var="current" value="${jcr:getMeAndParentsOfType(renderContext.mainResource.node, 'jnt:page')[0]}" />

but this is not anyway i want.

 

this is an extract of my error:

Error: org.jahia.services.render.RenderException: javax.el.ELException: Problems calling function 'jcr:getParentOfType'org.jahia.services.render.filter.RenderFilterException: org.jahia.services.render.RenderException: javax.el.ELException: Problems calling function 'jcr:getParentOfType'

 

Sincerely, Anthony.

 

  • Error: org.jahia.services.render.RenderException
    2014/05/14 14:41

    akharii <p> hi,</p> <p> i upgrade my jahia6 to DF7.0, (not easily ^^) but now i have just one last bug.</p> <p> In fact before DF7.0 i have a modul (for menu tab like following pict)</p> <p> <img alt="" src="http://img4.hostingpics.net/pics/871401Capture1.png" style="width: 605px; height: 167px;" /></p> <p> &nbsp;</p> <p> &nbsp;</p> <p> I think this part of code bug :</p> <div> &nbsp;</div> <blockquote> <div> &lt;c:set var=&quot;decide&quot; value=&quot;${jcr:getMeAndParentsOfType(renderContext.mainResource.node, &#39;jnt:page&#39;)[0]}&quot; /&gt;</div> <div> &nbsp;</div> <div> &nbsp;</div> <div> &lt;c:if test=&quot;${jcr:getParentOfType(decide,&#39;jnt:page&#39;) != currentNode.resolveSite.home}&quot;&gt;</div> <div> &nbsp;</div> <div> &lt;c:if test=&quot;${jcr:getParentOfType(jcr:getParentOfType(decide,&#39;jnt:page&#39;),&#39;jnt:page&#39;) eq currentNode.resolveSite.home}&quot;&gt;</div> <div> &nbsp;</div> <div> &lt;c:set var=&quot;current&quot; value=&quot;${jcr:getMeAndParentsOfType(renderContext.mainResource.node, &#39;jnt:page&#39;)[0]}&quot; /&gt;</div> <div> &lt;/c:if&gt;</div> <div> &lt;c:if test=&quot;${jcr:getParentOfType(jcr:getParentOfType(jcr:getParentOfType(decide,&#39;jnt:page&#39;),&#39;jnt:page&#39;),&#39;jnt:page&#39;) eq currentNode.resolveSite.home}&quot;&gt;</div> <div> &gt;</div> <div> &lt;c:set var=&quot;current&quot; value=&quot;${jcr:getParentsOfType(renderContext.mainResource.node, &#39;jnt:page&#39;)[0]}&quot; /&gt;</div> <div> &lt;/c:if&gt; &nbsp; &nbsp; &nbsp; &nbsp;</div> <div> &nbsp;</div> <div> &lt;/c:if&gt;</div> <div> &nbsp;</div> <div> &lt;c:if test=&quot;${jcr:getParentOfType(decide,&#39;jnt:page&#39;) eq currentNode.resolveSite.home}&quot;&gt;</div> <div> &lt;c:if test=&quot;${empty currentResource.moduleParams.base}&quot;&gt;</div> <div> &lt;c:set var=&quot;current&quot; value=&quot;${jcr:getMeAndParentsOfType(renderContext.mainResource.node, &#39;jnt:page&#39;)[0]}&quot; /&gt;</div> <div> &lt;/c:if&gt;</div> <div> &lt;/c:if&gt;</div> </blockquote> <p> &nbsp;</p> <p> for this time i replace all of this block by 1 line :</p> <blockquote> <p> &lt;c:set var=&quot;current&quot; value=&quot;${jcr:getMeAndParentsOfType(renderContext.mainResource.node, &#39;jnt:page&#39;)[0]}&quot; /&gt;</p> </blockquote> <p> but this is not anyway i want.</p> <p> &nbsp;</p> <p> this is an extract of my error:</p> <pre class="pre-dev" style="padding: 7.5px; font-family: Monaco, Menlo, Consolas, 'Courier New', monospace; font-size: 11px; color: rgb(51, 51, 51); border-top-left-radius: 3px; border-top-right-radius: 3px; border-bottom-right-radius: 3px; border-bottom-left-radius: 3px; margin-top: 10px; margin-bottom: 8px; line-height: 16px; word-break: break-all; word-wrap: break-word; white-space: pre-wrap; background-color: rgba(255, 255, 255, 0.65098); border: 1px solid rgba(0, 0, 0, 0.14902); background-image: none; background-attachment: scroll; background-position: 0px 0px; background-repeat: repeat repeat;"> Error: org.jahia.services.render.RenderException: javax.el.ELException: Problems calling function &#39;jcr:getParentOfType&#39;org.jahia.services.render.filter.RenderFilterException: org.jahia.services.render.RenderException: javax.el.ELException: Problems calling function &#39;jcr:getParentOfType&#39;</pre> <p> &nbsp;</p> <p> <span style="color: rgb(51, 51, 51); font-family: Verdana; line-height: 18px;">Sincerely, Anthony.</span></p> <p> &nbsp;</p>

  • Number of messages  9
    Registration date May 14, 2014
    1 (1 Good)
    0 (0 Bad)

    Re : Error: org.jahia.services.render.RenderException

    by  shuber »  2014/05/14 14:56

    Could you please try by replacing all occurences of currentNode.resolveSite with renderContext.site ?

    Best regards,

      Serge Huber.

    Serge Huber (shuber)

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

    Re : Re : Error: org.jahia.services.render.RenderException

    by  akharii »  2014/05/14 15:05

    Haha u are the best.

    Thanks u so much !

  • Re : Re : Error: org.jahia.services.render.RenderException
    2014/05/14 15:05

    akharii <p> Haha u are the best.</p> <p> Thanks u so much !</p>

  • Number of messages  9
    Registration date May 14, 2014
    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