Uploaded image for project: 'Commons OGNL (Dormant)'
  1. Commons OGNL (Dormant)
  2. OGNL-9

Cannot handle hivemind's messages.format

Attach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 2.7
    • 2.7
    • ExpressionCompiler
    • None

    Description

      A way to reproduce is
      <span jwcid="@Insert" value="ognl:messages.format('page-title', partners.size)"/>
      where partners.size returns an int...

      Error compiling expression on object $OurPartners_82@3c1[member/ourpartners/OurPartners] with expression node messages.format("page-title", partners.size) getter body:

      { return ((org.apache.hivemind.impl.AbstractMessages)(($OurPartners_82)$2).getMessages()).format("page-title", ((java.util.AbstractCollection)(($OurPartners_82)$2).getPartners()).size());}

      setter body: nullUnable to add method java.lang.Object get(ognl.OgnlContext, java.lang.Object) to class ognl.ASTChain10373568Accessor: [source error] format(java.lang.String,int) not found in org.apache.hivemind.impl.AbstractMessages

      org.apache.tapestry.services.impl.HiveMindExpressionCompiler.compileExpression(HiveMindExpressionCompiler.java:258)
      ognl.OgnlRuntime.compileExpression(OgnlRuntime.java:384)
      ognl.Ognl.compileExpression(Ognl.java:123)
      org.apache.tapestry.services.impl.ExpressionCacheImpl.parse(ExpressionCacheImpl.java:129)
      org.apache.tapestry.services.impl.ExpressionCacheImpl.getCompiledExpression(ExpressionCacheImpl.java:91)
      $ExpressionCache_1112fc97cc3.getCompiledExpression($ExpressionCache_1112fc97cc3.java)
      org.apache.tapestry.binding.ExpressionBinding.resolveExpression(ExpressionBinding.java:121)
      org.apache.tapestry.binding.ExpressionBinding.getObject(ExpressionBinding.java:112)
      org.apache.tapestry.binding.AbstractBinding.getObject(AbstractBinding.java:84)
      $Border_22.getTitle($Border_22.java)
      ognl.ASTProperty31122047Accessor.get(ASTProperty31122047Accessor.java)
      org.apache.tapestry.services.impl.ExpressionEvaluatorImpl.read(ExpressionEvaluatorImpl.java:131)
      $ExpressionEvaluator_1112fc97cc1.read($ExpressionEvaluator_1112fc97cc1.java)
      org.apache.tapestry.binding.ExpressionBinding.resolveExpression(ExpressionBinding.java:127)
      org.apache.tapestry.binding.ExpressionBinding.getObject(ExpressionBinding.java:112)
      org.apache.tapestry.binding.AbstractBinding.getObject(AbstractBinding.java:84)
      $Insert_6.getValue($Insert_6.java)
      org.apache.tapestry.components.Insert.renderComponent(Insert.java:48)
      org.apache.tapestry.AbstractComponent.render(AbstractComponent.java:708)

      1. org.apache.tapestry.services.impl.DefaultResponseBuilder.render(DefaultResponseBuilder.java:184)
      2. org.apache.tapestry.AbstractComponent.renderBody(AbstractComponent.java:521)
      3. org.apache.tapestry.html.Body.renderComponent(Body.java:38)

      Attachments

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            jkuhnert Jesse Kuhnert
            andyhot Andreas Andreou
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment