Uploaded image for project: 'Links directory'
  1. Links directory
  2. LINKS-190

An error occurs when dynamic information are not loaded yet

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major Major
    • 2.13.0
    • 2.13.0
    • None
    • Chrome
    • 4.4 RC2

      How to reproduce it :

      • I configured link directory into a skin :
      1. Into the header.xsl, import :
         <xsl:import href="plugin:link-directory://pages/services/directory/utils/thumbnails_utils.xsl"/>
      1. Into the header.xsl, add :
         <xsl:apply-templates select="cms/inputData/linkDirectory[@id='topMenu']/links/link" mode="thumbnails"><xsl:apply-templates select="cms/inputData/linkDirectory[@id='topMenu']/links/link" mode="thumbnails">                     <xsl:with-param name="uniqueId" select="$uniqueId"/>                 </xsl:apply-templates>
      1. Into the head.xsl, add into the common-script template :
       <xsl:call-template name="link-dynamic-info-js">
                  <xsl:with-param name="themes" select="/cms/inputData/linkDirectory/themes"/>
              </xsl:call-template>
      1. Add in the conf/ folder, the attachment file link-directory.xml
      2. In the cms/_admin, configure the messaging tab of the main configuration
      3. Into WEB-INF/param/runtime.xml, use :
        <org.ametys.plugins.messagingconnector.MessagingConnector>org.ametys.plugins.exchange.GraphConnector</org.ametys.plugins.messagingconnector.MessagingConnector> 

      Configure links into the link directory tool of the CMS with the expected theme TOP_MENU
      Preview : on load, an error occurs :

       Date:			Tue Mar 02 09:55:13 CET 2021 (1614675313782)
      Thread:		http-nio-10020-exec-8
      Message #:	32145
      Level:		ERROR
      NDC:			
      Category:	org.ametys.runtime.servlet.RuntimeServlet
      Message:		Internal Cocoon Problem
      Location:	org.ametys.runtime.servlet.RuntimeServlet.service(RuntimeServlet.java:584)
      Thrown:
      java.lang.StackOverflowError
      	at org.ametys.core.util.SizeUtils._sizeOf(SizeUtils.java:79)
      	at org.ametys.core.util.SizeUtils._sizeOf(SizeUtils.java:126)
      	at org.ametys.core.util.SizeUtils._sizeOf(SizeUtils.java:126)
      	at org.ametys.core.util.SizeUtils._sizeOf(SizeUtils.java:126)
      	at org.ametys.core.util.SizeUtils._sizeOf(SizeUtils.java:126)
      	at org.ametys.core.util.SizeUtils._sizeOf(SizeUtils.java:126)
      	at org.ametys.core.util.SizeUtils._sizeOf(SizeUtils.java:126)

      The events of the calendar are however well displayed after a delay

        1. link-directory.xml
          1 kB
        2. image (1).png
          image (1).png
          145 kB
        3. extrait-logs.txt
          220 kB

            cedric Cédric Damioli
            llopez Laure Lopez
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: