Uploaded image for project: 'Struts 2'
  1. Struts 2
  2. WW-1243

doubleselect tag causes exception, indicating invalid stack constitution assumption

    XMLWordPrintableJSON

Details

    Description

      When rendering
      http://localhost:8080/showcase/tags/ui/example!input.action

      the following exeption is thrown:
      2006-03-16 18:59:50,991 WARN [OgnlValueStack.java:207] : Caught an exception while evaluating expression 'top == 'North' ?

      {'Oregon', 'Washington'}

      :

      {'Texas', 'Florida'}

      ' against value stack
      java.lang.IllegalArgumentException: invalid comparison: com.opensymphony.webwork.showcase.UITagExample and java.lang.String
      at ognl.OgnlOps.compareWithConversion(OgnlOps.java:93)
      at ognl.OgnlOps.isEqual(OgnlOps.java:142)
      at ognl.OgnlOps.equal(OgnlOps.java:533)
      at ognl.ASTEq.getValueBody(ASTEq.java:51)
      at ognl.SimpleNode.evaluateGetValueBody(SimpleNode.java:170)
      at ognl.SimpleNode.getValue(SimpleNode.java:210)
      at ognl.ASTTest.getValueBody(ASTTest.java:49)
      at ognl.SimpleNode.evaluateGetValueBody(SimpleNode.java:170)
      at ognl.SimpleNode.getValue(SimpleNode.java:210)
      at ognl.Ognl.getValue(Ognl.java:333)
      at ognl.Ognl.getValue(Ognl.java:310)
      at com.opensymphony.xwork.util.OgnlUtil.getValue(OgnlUtil.java:188)
      at com.opensymphony.xwork.util.OgnlValueStack.findValue(OgnlValueStack.java:198)
      at com.opensymphony.webwork.components.Component.findValue(Component.java:230)
      at com.opensymphony.webwork.components.DoubleListUIBean.evaluateExtraParams(DoubleListUIBean.java:108)
      at com.opensymphony.webwork.components.DoubleSelect.evaluateExtraParams(DoubleSelect.java:43)
      at com.opensymphony.webwork.components.UIBean.evaluateParams(UIBean.java:874)
      at com.opensymphony.webwork.components.UIBean.end(UIBean.java:581)
      at com.opensymphony.webwork.views.jsp.ComponentTagSupport.doEndTag(ComponentTagSupport.java:21)
      at org.apache.jsp.tags.ui.example_jsp._jspx_meth_ww_doubleselect_0(org.apache.jsp.tags.ui.example_jsp:419)
      at org.apache.jsp.tags.ui.example_jsp._jspx_meth_ww_form_0(org.apache.jsp.tags.ui.example_jsp:202)
      at org.apache.jsp.tags.ui.example_jsp._jspService(org.apache.jsp.tags.ui.example_jsp:111)
      ...

      Attachments

        Activity

          People

            rgielen René Gielen
            rgielen René Gielen
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: