1 Reply Latest reply on May 29, 2007 4:22 AM by Carsten Rudat

    [JSF] Problems with Tomahawk extensions (jboss-5.0.0.Beta2)

    Carsten Rudat Novice

      Hi all,

      I have an EAR with a WAR on jboss-5.0.0.Beta2. In my WAR I use JSF (RI 1.2 as delivered with JBoss) and Tomahawk 1.1.5 add-ons.

      When I try to use t:dataTable with sort-function, I get a NumberFormatException. I debugged the code and I saw

      (String) vb.getValue(getFacesContext())
      


      threw the exception, because the last token of my expression #{xyz.sortColumn} (sortColumn) was interpreted as an Integer.

      Has anyone an idea, if or how tomahawk-1.1.5 works with RI 1.2?

      Thanks,

      Carsten

        • 1. Re: [JSF] Problems with Tomahawk extensions (jboss-5.0.0.Bet
          Carsten Rudat Novice

          I'll try to post my stack-trace:

          java.lang.NumberFormatException: For input string: "sortColumn"
          at java.lang.NumberFormatException.forInputString(NumberFormatException.java:48)
          at java.lang.Integer.parseInt(Integer.java:447)
          at java.lang.Integer.parseInt(Integer.java:497)
          at javax.el.ListELResolver.coerce(ListELResolver.java:166)
          at javax.el.ListELResolver.getValue(ListELResolver.java:51)
          at javax.el.CompositeELResolver.getValue(CompositeELResolver.java:53)
          at com.sun.faces.el.FacesCompositeELResolver.getValue(FacesCompositeELResolver.java:64)
          at org.apache.el.parser.AstValue.getValue(AstValue.java:97)
          at org.apache.el.ValueExpressionImpl.getValue(ValueExpressionImpl.java:186)
          at com.sun.faces.application.ValueBindingValueExpressionAdapter.getValue(ValueBindingValueExpressionAdapter.java:102)
          at org.apache.myfaces.component.html.ext.HtmlDataTable.getSortColumn(HtmlDataTable.java:1071)
          at org.apache.myfaces.component.html.ext.HtmlDataTable.getSortColumnIndex(HtmlDataTable.java:1401)
          at org.apache.myfaces.renderkit.html.ext.HtmlTableRenderer.putSortedReqScopeParam(HtmlTableRenderer.java:885)
          at org.apache.myfaces.renderkit.html.ext.HtmlTableRenderer.beforeColumnHeaderOrFooter(HtmlTableRenderer.java:876)
          at org.apache.myfaces.shared_tomahawk.renderkit.html.HtmlTableRendererBase.renderColumnHeaderOrFooterRow(HtmlTableRendererBase.java:754)
          at org.apache.myfaces.shared_tomahawk.renderkit.html.HtmlTableRendererBase.renderColumnHeaderRow(HtmlTableRendererBase.java:686)
          at org.apache.myfaces.renderkit.html.ext.HtmlTableRenderer.renderColumnHeaderRow(HtmlTableRenderer.java:829)
          at org.apache.myfaces.shared_tomahawk.renderkit.html.HtmlTableRendererBase.renderFacet(HtmlTableRendererBase.java:589)
          at org.apache.myfaces.shared_tomahawk.renderkit.html.HtmlTableRendererBase.beforeBody(HtmlTableRendererBase.java:417)
          at org.apache.myfaces.renderkit.html.ext.HtmlTableRenderer.beforeBody(HtmlTableRenderer.java:221)
          at org.apache.myfaces.shared_tomahawk.renderkit.html.HtmlTableRendererBase.encodeChildren(HtmlTableRendererBase.java:127)
          at org.apache.myfaces.renderkit.html.ext.HtmlTableRenderer.encodeChildren(HtmlTableRenderer.java:187)
          at javax.faces.component.UIComponentBase.encodeChildren(UIComponentBase.java:809)
          at javax.faces.component.UIComponent.encodeAll(UIComponent.java:886)
          at javax.faces.render.Renderer.encodeChildren(Renderer.java:137)
          at javax.faces.component.UIComponentBase.encodeChildren(UIComponentBase.java:809)
          at javax.faces.component.UIComponent.encodeAll(UIComponent.java:886)
          at javax.faces.component.UIComponent.encodeAll(UIComponent.java:892)
          at com.sun.faces.application.ViewHandlerImpl.doRenderView(ViewHandlerImpl.java:244)
          at com.sun.faces.application.ViewHandlerImpl.renderView(ViewHandlerImpl.java:175)
          at com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:106)
          at com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:251)
          at com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:144)
          at javax.faces.webapp.FacesServlet.service(FacesServlet.java:245)
          at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
          at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
          at org.apache.myfaces.webapp.filter.ExtensionsFilter.doFilter(ExtensionsFilter.java:147)
          at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
          at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
          at com.genloop.web.CharacterEncodingFilter.doFilter(CharacterEncodingFilter.java:28)
          at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
          at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
          at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
          at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
          at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
          at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:231)
          at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
          at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:174)
          at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:525)
          at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:86)
          at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
          at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:104)
          at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
          at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:238)
          at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
          at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:624)
          at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
          at java.lang.Thread.run(Thread.java:613)
          10:19:59,115 ERROR [STDERR] 29.05.2007 10:19:59 org.exadel.jsf.PhaseTracker afterPhase
          INFO: AFTER RENDER_RESPONSE 6
          10:19:59,116 ERROR [[Faces Servlet]] Servlet.service() for servlet Faces Servlet threw exception
          java.lang.NumberFormatException: For input string: "sortColumn"
          at java.lang.NumberFormatException.forInputString(NumberFormatException.java:48)
          at java.lang.Integer.parseInt(Integer.java:447)
          at java.lang.Integer.parseInt(Integer.java:497)
          at javax.el.ListELResolver.coerce(ListELResolver.java:166)
          at javax.el.ListELResolver.getValue(ListELResolver.java:51)
          at javax.el.CompositeELResolver.getValue(CompositeELResolver.java:53)
          at com.sun.faces.el.FacesCompositeELResolver.getValue(FacesCompositeELResolver.java:64)
          at org.apache.el.parser.AstValue.getValue(AstValue.java:97)
          at org.apache.el.ValueExpressionImpl.getValue(ValueExpressionImpl.java:186)
          at com.sun.faces.application.ValueBindingValueExpressionAdapter.getValue(ValueBindingValueExpressionAdapter.java:102)
          at org.apache.myfaces.component.html.ext.HtmlDataTable.getSortColumn(HtmlDataTable.java:1071)
          at org.apache.myfaces.component.html.ext.HtmlDataTable.getSortColumnIndex(HtmlDataTable.java:1401)
          at org.apache.myfaces.renderkit.html.ext.HtmlTableRenderer.putSortedReqScopeParam(HtmlTableRenderer.java:885)
          at org.apache.myfaces.renderkit.html.ext.HtmlTableRenderer.beforeColumnHeaderOrFooter(HtmlTableRenderer.java:876)
          at org.apache.myfaces.shared_tomahawk.renderkit.html.HtmlTableRendererBase.renderColumnHeaderOrFooterRow(HtmlTableRendererBase.java:754)
          at org.apache.myfaces.shared_tomahawk.renderkit.html.HtmlTableRendererBase.renderColumnHeaderRow(HtmlTableRendererBase.java:686)
          at org.apache.myfaces.renderkit.html.ext.HtmlTableRenderer.renderColumnHeaderRow(HtmlTableRenderer.java:829)
          at org.apache.myfaces.shared_tomahawk.renderkit.html.HtmlTableRendererBase.renderFacet(HtmlTableRendererBase.java:589)
          at org.apache.myfaces.shared_tomahawk.renderkit.html.HtmlTableRendererBase.beforeBody(HtmlTableRendererBase.java:417)
          at org.apache.myfaces.renderkit.html.ext.HtmlTableRenderer.beforeBody(HtmlTableRenderer.java:221)
          at org.apache.myfaces.shared_tomahawk.renderkit.html.HtmlTableRendererBase.encodeChildren(HtmlTableRendererBase.java:127)
          at org.apache.myfaces.renderkit.html.ext.HtmlTableRenderer.encodeChildren(HtmlTableRenderer.java:187)
          at javax.faces.component.UIComponentBase.encodeChildren(UIComponentBase.java:809)
          at javax.faces.component.UIComponent.encodeAll(UIComponent.java:886)
          at javax.faces.render.Renderer.encodeChildren(Renderer.java:137)
          at javax.faces.component.UIComponentBase.encodeChildren(UIComponentBase.java:809)
          at javax.faces.component.UIComponent.encodeAll(UIComponent.java:886)
          at javax.faces.component.UIComponent.encodeAll(UIComponent.java:892)
          at com.sun.faces.application.ViewHandlerImpl.doRenderView(ViewHandlerImpl.java:244)
          at com.sun.faces.application.ViewHandlerImpl.renderView(ViewHandlerImpl.java:175)
          at com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:106)
          at com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:251)
          at com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:144)
          at javax.faces.webapp.FacesServlet.service(FacesServlet.java:245)
          at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
          at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
          at org.apache.myfaces.webapp.filter.ExtensionsFilter.doFilter(ExtensionsFilter.java:147)
          at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
          at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
          at com.genloop.web.CharacterEncodingFilter.doFilter(CharacterEncodingFilter.java:28)
          at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
          at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
          at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
          at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
          at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
          at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:231)
          at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
          at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:174)
          at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:525)
          at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:86)
          at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
          at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:104)
          at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
          at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:238)
          at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
          at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:624)
          at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
          at java.lang.Thread.run(Thread.java:613)
          10:19:59,715 INFO [WebUtil] Encountered a Runtime Exception and being transferred the the systemerror page
          java.lang.NumberFormatException: For input string: "sortColumn"
          at java.lang.NumberFormatException.forInputString(NumberFormatException.java:48)
          at java.lang.Integer.parseInt(Integer.java:447)
          at java.lang.Integer.parseInt(Integer.java:497)
          at javax.el.ListELResolver.coerce(ListELResolver.java:166)
          at javax.el.ListELResolver.getValue(ListELResolver.java:51)
          at javax.el.CompositeELResolver.getValue(CompositeELResolver.java:53)
          at com.sun.faces.el.FacesCompositeELResolver.getValue(FacesCompositeELResolver.java:64)
          at org.apache.el.parser.AstValue.getValue(AstValue.java:97)
          at org.apache.el.ValueExpressionImpl.getValue(ValueExpressionImpl.java:186)
          at com.sun.faces.application.ValueBindingValueExpressionAdapter.getValue(ValueBindingValueExpressionAdapter.java:102)
          at org.apache.myfaces.component.html.ext.HtmlDataTable.getSortColumn(HtmlDataTable.java:1071)
          at org.apache.myfaces.component.html.ext.HtmlDataTable.getSortColumnIndex(HtmlDataTable.java:1401)
          at org.apache.myfaces.renderkit.html.ext.HtmlTableRenderer.putSortedReqScopeParam(HtmlTableRenderer.java:885)
          at org.apache.myfaces.renderkit.html.ext.HtmlTableRenderer.beforeColumnHeaderOrFooter(HtmlTableRenderer.java:876)
          at org.apache.myfaces.shared_tomahawk.renderkit.html.HtmlTableRendererBase.renderColumnHeaderOrFooterRow(HtmlTableRendererBase.java:754)
          at org.apache.myfaces.shared_tomahawk.renderkit.html.HtmlTableRendererBase.renderColumnHeaderRow(HtmlTableRendererBase.java:686)
          at org.apache.myfaces.renderkit.html.ext.HtmlTableRenderer.renderColumnHeaderRow(HtmlTableRenderer.java:829)
          at org.apache.myfaces.shared_tomahawk.renderkit.html.HtmlTableRendererBase.renderFacet(HtmlTableRendererBase.java:589)
          at org.apache.myfaces.shared_tomahawk.renderkit.html.HtmlTableRendererBase.beforeBody(HtmlTableRendererBase.java:417)
          at org.apache.myfaces.renderkit.html.ext.HtmlTableRenderer.beforeBody(HtmlTableRenderer.java:221)
          at org.apache.myfaces.shared_tomahawk.renderkit.html.HtmlTableRendererBase.encodeChildren(HtmlTableRendererBase.java:127)
          at org.apache.myfaces.renderkit.html.ext.HtmlTableRenderer.encodeChildren(HtmlTableRenderer.java:187)
          at javax.faces.component.UIComponentBase.encodeChildren(UIComponentBase.java:809)
          at javax.faces.component.UIComponent.encodeAll(UIComponent.java:886)
          at javax.faces.render.Renderer.encodeChildren(Renderer.java:137)
          at javax.faces.component.UIComponentBase.encodeChildren(UIComponentBase.java:809)
          at javax.faces.component.UIComponent.encodeAll(UIComponent.java:886)
          at javax.faces.component.UIComponent.encodeAll(UIComponent.java:892)
          at com.sun.faces.application.ViewHandlerImpl.doRenderView(ViewHandlerImpl.java:244)
          at com.sun.faces.application.ViewHandlerImpl.renderView(ViewHandlerImpl.java:175)
          at com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:106)
          at com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:251)
          at com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:144)
          at javax.faces.webapp.FacesServlet.service(FacesServlet.java:245)
          at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
          at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
          at org.apache.myfaces.webapp.filter.ExtensionsFilter.doFilter(ExtensionsFilter.java:147)
          at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
          at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
          at com.genloop.web.CharacterEncodingFilter.doFilter(CharacterEncodingFilter.java:28)
          at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
          at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
          at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
          at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
          at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
          at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:231)
          at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
          at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:174)
          at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:525)
          at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:86)
          at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
          at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:104)
          at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
          at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:238)
          at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
          at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:624)
          at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
          at java.lang.Thread.run(Thread.java:613)