Uploaded image for project: 'Tiles'
  1. Tiles
  2. TILES-547

NoSuchDefinitionException appears randomly when using wildcard/regex-based definitions with l10n

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.2.x, 3.0.0
    • Fix Version/s: 2.2.3, 3.0.0
    • Component/s: tiles-core
    • Labels:
      None

      Description

      For instance, the selenium test suits leads to this exception for /freemarker/testinsertdefinition_wildcard.ftl, unless the browser is configured for the locale it_IT:

      org.apache.tiles.definition.NoSuchDefinitionException: freemarker.test.definitionOne.messageHello
      org.apache.tiles.impl.BasicTilesContainer.render(BasicTilesContainer.java:625)
      org.apache.tiles.impl.BasicTilesContainer.render(BasicTilesContainer.java:321)
      org.apache.tiles.template.InsertDefinitionModel.end(InsertDefinitionModel.java:104)
      org.apache.tiles.freemarker.template.InsertDefinitionFMModel.execute(InsertDefinitionFMModel.java:72)
      freemarker.core.Environment.visit(Environment.java:262)
      freemarker.core.UnifiedCall.accept(UnifiedCall.java:126)
      freemarker.core.Environment.visit(Environment.java:209)
      freemarker.core.MixedContent.accept(MixedContent.java:92)
      freemarker.core.Environment.visit(Environment.java:209)
      freemarker.core.Environment.process(Environment.java:189)
      freemarker.template.Template.process(Template.java:237)
      freemarker.ext.servlet.FreemarkerServlet.process(FreemarkerServlet.java:458)
      freemarker.ext.servlet.FreemarkerServlet.doGet(FreemarkerServlet.java:397)
      javax.servlet.http.HttpServlet.service(HttpServlet.java:617)
      javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
      org.apache.tiles.test.filter.SecurityWrappingFilter.doFilter(SecurityWrappingFilter.java:56)

      The problem does not occur if we request the page directly on a freshly started instance.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                nlebas Nicolas Le Bas
                Reporter:
                nlebas Nicolas Le Bas
              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: