9 Replies Latest reply on Mar 29, 2011 3:43 PM by D F

    NumberFormatException: For input string: "size"

    D F Newbie

      I'm getting this exception when trying to print out the size of a list:

       

      java.lang.NumberFormatException: For input string: "size"
      at java.lang.NumberFormatException.forInputString(NumberFormatException.java:48)
      at java.lang.Integer.parseInt(Integer.java:449)
      at java.lang.Integer.parseInt(Integer.java:499)
      at javax.el.ListELResolver.toInteger(ListELResolver.java:407)
      at javax.el.ListELResolver.getValue(ListELResolver.java:199)
      at javax.el.CompositeELResolver.getValue(CompositeELResolver.java:175)
      at com.sun.faces.el.FacesCompositeELResolver.getValue(FacesCompositeELResolver.java:71)
      at org.apache.el.parser.AstValue.getValue(AstValue.java:134)
      at org.apache.el.parser.AstDeferredExpression.getValue(AstDeferredExpression.java:42)
      at org.apache.el.parser.AstCompositeExpression.getValue(AstCompositeExpression.java:47)
      at org.apache.el.ValueExpressionImpl.getValue(ValueExpressionImpl.java:187)
      at org.jboss.weld.el.WeldValueExpression.getValue(WeldValueExpression.java:55)
      at org.jboss.weld.el.WeldValueExpression.getValue(WeldValueExpression.java:55)
      at com.sun.faces.facelets.el.TagValueExpression.getValue(TagValueExpression.java:106)
      at javax.faces.component.ComponentStateHelper.eval(ComponentStateHelper.java:190)
      at javax.faces.component.ComponentStateHelper.eval(ComponentStateHelper.java:178)
      at org.richfaces.component.UIPanel.getHeader(UIPanel.java:118)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:597)
      at javax.faces.component.UIComponentBase$AttributesMap.get(UIComponentBase.java:2206)
      at org.richfaces.renderkit.html.PanelRenderer.encodeEnd(PanelRenderer.java:126)
      at javax.faces.component.UIComponentBase.encodeEnd(UIComponentBase.java:879)
      at javax.faces.component.UIComponent.encodeAll(UIComponent.java:1650)
      at javax.faces.component.UIComponent.encodeAll(UIComponent.java:1646)
      at javax.faces.component.UIComponent.encodeAll(UIComponent.java:1646)
      at com.sun.faces.application.view.FaceletViewHandlingStrategy.renderView(FaceletViewHandlingStrategy.java:389)
      at com.sun.faces.application.view.MultiViewHandler.renderView(MultiViewHandler.java:127)
      at javax.faces.application.ViewHandlerWrapper.renderView(ViewHandlerWrapper.java:269)
      at javax.faces.application.ViewHandlerWrapper.renderView(ViewHandlerWrapper.java:269)
      at com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:117)
      at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:97)

      ... and so on

       

       

      The code that is generating this looks like:

      <rich:panel id="myPanel" header="#{myClass.myList.size()}">

           ... inside panel stuff

      </rich:panel>

       

      this works fine in glassfish but not in JBoss, any idea's on what is happening here because I'm lost?