Commons OGNL
  1. Commons OGNL
  2. OGNL-20

expressions compilation complains about a null setter body

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 2.7
    • Fix Version/s: 2.7
    • Component/s: ExpressionCompiler
    • Labels:
      None
    • Environment:
      tapestry 4.12 SNAPSHOT

      Description

      following expressions worked well under 2.6.9:

      value="container.messages.getMessage(getBlockId())"

      or

      value="container.messages.getMessage(blockId)"

      java code:

      public abstract String getBlockId();

      public Block getSelectedBlock()

      { String selectedId = getSelectedBlockId(); if (selectedId == null) selectedId = (String)getBlockIds().get(0); return (Block) getContainer().getComponent(selectedId); }

      return the following error: "setter body: null " in detail:

      Unable to parse OGNL expression 'container.messages.getMessage(getBlockId())': Error compiling expression on object $TabPanel_41@778611c5[Home/$TabPanel] with expression node container.messages.getMessage(getBlockId()) getter body:

      { return ((org.apache.hivemind.impl.AbstractMessages)(($TabPanel_41)$2).getContainer()).getMessages()).getMessage(((org.apache.tapestry.AbstractComponent)(($TabPanel_41)$2).getBlockId());}

      setter body: null

        Activity

        Hide
        Jesse Kuhnert added a comment -

        I think there is more stack trace information that I need. There isn't enough there for me to know what is wrong.

        Show
        Jesse Kuhnert added a comment - I think there is more stack trace information that I need. There isn't enough there for me to know what is wrong.
        Hide
        Marco Valverde added a comment -

        the stack trace

        Show
        Marco Valverde added a comment - the stack trace
        Hide
        Marco Valverde added a comment -

        java source

        Show
        Marco Valverde added a comment - java source
        Hide
        Marco Valverde added a comment -

        component definition

        Show
        Marco Valverde added a comment - component definition
        Hide
        Marco Valverde added a comment -

        ok, i've added the stack trace and all necessary source files. i've got many situations in our current project wich worked perfectly with 2,6.9 and throwing the same stacktrace with 2.7.

        i think http://www.mail-archive.com/users@tapestry.apache.org/msg09927.html describes the same problem.

        thx.

        Show
        Marco Valverde added a comment - ok, i've added the stack trace and all necessary source files. i've got many situations in our current project wich worked perfectly with 2,6.9 and throwing the same stacktrace with 2.7. i think http://www.mail-archive.com/users@tapestry.apache.org/msg09927.html describes the same problem. thx.

          People

          • Assignee:
            Jesse Kuhnert
            Reporter:
            Marco Valverde
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development