title: javax.validation.ValidationException: HV000028: Unexpected exception during isValid call while using an f:convertNumber inside a p/h:dataTable
body: <p>I'm trying to use an <code>&lt;f:convertNumber&gt;</code> inside a <code>&lt;p:dataTable&gt;</code> like the following.</p>
  
  <pre><code>&lt;p:column headerText="Text"&gt;
      &lt;p:cellEditor&gt;
          &lt;f:facet name="output"&gt;
              &lt;h:outputText value="#{country.countryCode}"/&gt;
          &lt;/f:facet&gt;
          &lt;f:facet name="input"&gt;
              &lt;p:inputText value="#{country.countryCode}" required="true"&gt;
                  &lt;f:validateLength minimum="1" maximum="45"/&gt;
                  &lt;f:convertNumber integerOnly="true" type="number"/&gt;
              &lt;/p:inputText&gt;
          &lt;/f:facet&gt;
      &lt;/p:cellEditor&gt;
  &lt;/p:column&gt;
  </code></pre>
  
  <p>Where <code>country.countryCode</code> is a String type property in the associated data model.</p>
  
  <p>I'm getting the following exception:</p>
  
  <pre><code>INFO:   javax.validation.ValidationException: HV000028: Unexpected exception during isValid call.
  javax.validation.ValidationException: HV000028: Unexpected exception during isValid call.
      at org.hibernate.validator.internal.engine.constraintvalidation.ConstraintTree.validateSingleConstraint(ConstraintTree.java:284)
      at org.hibernate.validator.internal.engine.constraintvalidation.ConstraintTree.validateConstraints(ConstraintTree.java:133)
      at org.hibernate.validator.internal.engine.constraintvalidation.ConstraintTree.validateConstraints(ConstraintTree.java:91)
      at org.hibernate.validator.internal.metadata.core.MetaConstraint.validateConstraint(MetaConstraint.java:85)
      at org.hibernate.validator.internal.engine.ValidatorImpl.validatePropertyForDefaultGroup(ValidatorImpl.java:855)
      at org.hibernate.validator.internal.engine.ValidatorImpl.validatePropertyForCurrentGroup(ValidatorImpl.java:768)
      at org.hibernate.validator.internal.engine.ValidatorImpl.validateValueInContext(ValidatorImpl.java:725)
      at org.hibernate.validator.internal.engine.ValidatorImpl.validateValue(ValidatorImpl.java:184)
      at javax.faces.validator.BeanValidator.validate(BeanValidator.java:315)
      at javax.faces.component.UIInput.validateValue(UIInput.java:1165)
      at javax.faces.component.UIInput.validate(UIInput.java:983)
      at javax.faces.component.UIInput.executeValidate(UIInput.java:1249)
      at javax.faces.component.UIInput.processValidators(UIInput.java:712)
      at javax.faces.component.UIComponentBase.processValidators(UIComponentBase.java:1258)
      at org.primefaces.component.celleditor.CellEditor.processValidators(CellEditor.java:82)
      at org.primefaces.component.api.UIData.process(UIData.java:339)
      at org.primefaces.component.api.UIData.processChildren(UIData.java:323)
      at org.primefaces.component.api.UIData.processPhase(UIData.java:285)
      at org.primefaces.component.api.UIData.processValidators(UIData.java:259)
      at org.primefaces.component.datatable.DataTable.processValidators(DataTable.java:622)
      at com.sun.faces.context.PartialViewContextImpl$PhaseAwareVisitCallback.visit(PartialViewContextImpl.java:592)
      at com.sun.faces.component.visit.PartialVisitContext.invokeVisitCallback(PartialVisitContext.java:183)
      at org.primefaces.component.api.UIData.visitTree(UIData.java:692)
      at javax.faces.component.UIComponent.visitTree(UIComponent.java:1701)
      at javax.faces.component.UIComponent.visitTree(UIComponent.java:1701)
      at javax.faces.component.UIForm.visitTree(UIForm.java:371)
      at javax.faces.component.UIComponent.visitTree(UIComponent.java:1701)
      at javax.faces.component.UIComponent.visitTree(UIComponent.java:1701)
      at javax.faces.component.UIComponent.visitTree(UIComponent.java:1701)
      at javax.faces.component.UIComponent.visitTree(UIComponent.java:1701)
      at com.sun.faces.context.PartialViewContextImpl.processComponents(PartialViewContextImpl.java:406)
      at com.sun.faces.context.PartialViewContextImpl.processPartial(PartialViewContextImpl.java:269)
      at javax.faces.context.PartialViewContextWrapper.processPartial(PartialViewContextWrapper.java:219)
      at org.primefaces.context.PrimePartialViewContext.processPartial(PrimePartialViewContext.java:60)
      at javax.faces.component.UIViewRoot.processValidators(UIViewRoot.java:1193)
      at com.sun.faces.lifecycle.ProcessValidationsPhase.execute(ProcessValidationsPhase.java:76)
      at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:101)
      at com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:198)
      at javax.faces.webapp.FacesServlet.service(FacesServlet.java:646)
      at org.apache.catalina.core.StandardWrapper.service(StandardWrapper.java:1682)
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:344)
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:214)
      at org.primefaces.webapp.filter.FileUploadFilter.doFilter(FileUploadFilter.java:70)
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:256)
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:214)
      at filter.NoCacheFilter.doFilter(NoCacheFilter.java:28)
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:256)
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:214)
      at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:316)
      at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:160)
      at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:734)
      at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:673)
      at com.sun.enterprise.web.WebPipeline.invoke(WebPipeline.java:99)
      at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:174)
      at org.apache.catalina.connector.CoyoteAdapter.doService(CoyoteAdapter.java:357)
      at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:260)
      at com.sun.enterprise.v3.services.impl.ContainerMapper.service(ContainerMapper.java:188)
      at org.glassfish.grizzly.http.server.HttpHandler.runService(HttpHandler.java:191)
      at org.glassfish.grizzly.http.server.HttpHandler.doHandle(HttpHandler.java:168)
      at org.glassfish.grizzly.http.server.HttpServerFilter.handleRead(HttpServerFilter.java:189)
      at org.glassfish.grizzly.filterchain.ExecutorResolver$9.execute(ExecutorResolver.java:119)
      at org.glassfish.grizzly.filterchain.DefaultFilterChain.executeFilter(DefaultFilterChain.java:288)
      at org.glassfish.grizzly.filterchain.DefaultFilterChain.executeChainPart(DefaultFilterChain.java:206)
      at org.glassfish.grizzly.filterchain.DefaultFilterChain.execute(DefaultFilterChain.java:136)
      at org.glassfish.grizzly.filterchain.DefaultFilterChain.process(DefaultFilterChain.java:114)
      at org.glassfish.grizzly.ProcessorExecutor.execute(ProcessorExecutor.java:77)
      at org.glassfish.grizzly.nio.transport.TCPNIOTransport.fireIOEvent(TCPNIOTransport.java:838)
      at org.glassfish.grizzly.strategies.AbstractIOStrategy.fireIOEvent(AbstractIOStrategy.java:113)
      at org.glassfish.grizzly.strategies.WorkerThreadIOStrategy.run0(WorkerThreadIOStrategy.java:115)
      at org.glassfish.grizzly.strategies.WorkerThreadIOStrategy.access$100(WorkerThreadIOStrategy.java:55)
      at org.glassfish.grizzly.strategies.WorkerThreadIOStrategy$WorkerThreadRunnable.run(WorkerThreadIOStrategy.java:135)
      at org.glassfish.grizzly.threadpool.AbstractThreadPool$Worker.doWork(AbstractThreadPool.java:564)
      at org.glassfish.grizzly.threadpool.AbstractThreadPool$Worker.run(AbstractThreadPool.java:544)
      at java.lang.Thread.run(Thread.java:722)
  Caused by: java.lang.ClassCastException: java.lang.Long cannot be cast to java.lang.CharSequence
      at org.hibernate.validator.internal.constraintvalidators.SizeValidatorForCharSequence.isValid(SizeValidatorForCharSequence.java:33)
      at org.hibernate.validator.internal.engine.constraintvalidation.ConstraintTree.validateSingleConstraint(ConstraintTree.java:281)
      ... 73 more
  
  WARNING:   javax.validation.ValidationException: HV000028: Unexpected exception during isValid call.
  javax.faces.FacesException: javax.validation.ValidationException: HV000028: Unexpected exception during isValid call.
      at com.sun.faces.context.PartialViewContextImpl.processPartial(PartialViewContextImpl.java:276)
      at javax.faces.context.PartialViewContextWrapper.processPartial(PartialViewContextWrapper.java:219)
      at org.primefaces.context.PrimePartialViewContext.processPartial(PrimePartialViewContext.java:60)
      at javax.faces.component.UIViewRoot.processValidators(UIViewRoot.java:1193)
      at com.sun.faces.lifecycle.ProcessValidationsPhase.execute(ProcessValidationsPhase.java:76)
      at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:101)
      at com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:198)
      at javax.faces.webapp.FacesServlet.service(FacesServlet.java:646)
      at org.apache.catalina.core.StandardWrapper.service(StandardWrapper.java:1682)
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:344)
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:214)
      at org.primefaces.webapp.filter.FileUploadFilter.doFilter(FileUploadFilter.java:70)
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:256)
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:214)
      at filter.NoCacheFilter.doFilter(NoCacheFilter.java:28)
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:256)
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:214)
      at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:316)
      at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:160)
      at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:734)
      at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:673)
      at com.sun.enterprise.web.WebPipeline.invoke(WebPipeline.java:99)
      at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:174)
      at org.apache.catalina.connector.CoyoteAdapter.doService(CoyoteAdapter.java:357)
      at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:260)
      at com.sun.enterprise.v3.services.impl.ContainerMapper.service(ContainerMapper.java:188)
      at org.glassfish.grizzly.http.server.HttpHandler.runService(HttpHandler.java:191)
      at org.glassfish.grizzly.http.server.HttpHandler.doHandle(HttpHandler.java:168)
      at org.glassfish.grizzly.http.server.HttpServerFilter.handleRead(HttpServerFilter.java:189)
      at org.glassfish.grizzly.filterchain.ExecutorResolver$9.execute(ExecutorResolver.java:119)
      at org.glassfish.grizzly.filterchain.DefaultFilterChain.executeFilter(DefaultFilterChain.java:288)
      at org.glassfish.grizzly.filterchain.DefaultFilterChain.executeChainPart(DefaultFilterChain.java:206)
      at org.glassfish.grizzly.filterchain.DefaultFilterChain.execute(DefaultFilterChain.java:136)
      at org.glassfish.grizzly.filterchain.DefaultFilterChain.process(DefaultFilterChain.java:114)
      at org.glassfish.grizzly.ProcessorExecutor.execute(ProcessorExecutor.java:77)
      at org.glassfish.grizzly.nio.transport.TCPNIOTransport.fireIOEvent(TCPNIOTransport.java:838)
      at org.glassfish.grizzly.strategies.AbstractIOStrategy.fireIOEvent(AbstractIOStrategy.java:113)
      at org.glassfish.grizzly.strategies.WorkerThreadIOStrategy.run0(WorkerThreadIOStrategy.java:115)
      at org.glassfish.grizzly.strategies.WorkerThreadIOStrategy.access$100(WorkerThreadIOStrategy.java:55)
      at org.glassfish.grizzly.strategies.WorkerThreadIOStrategy$WorkerThreadRunnable.run(WorkerThreadIOStrategy.java:135)
      at org.glassfish.grizzly.threadpool.AbstractThreadPool$Worker.doWork(AbstractThreadPool.java:564)
      at org.glassfish.grizzly.threadpool.AbstractThreadPool$Worker.run(AbstractThreadPool.java:544)
      at java.lang.Thread.run(Thread.java:722)
  Caused by: javax.validation.ValidationException: HV000028: Unexpected exception during isValid call.
      at org.hibernate.validator.internal.engine.constraintvalidation.ConstraintTree.validateSingleConstraint(ConstraintTree.java:284)
      at org.hibernate.validator.internal.engine.constraintvalidation.ConstraintTree.validateConstraints(ConstraintTree.java:133)
      at org.hibernate.validator.internal.engine.constraintvalidation.ConstraintTree.validateConstraints(ConstraintTree.java:91)
      at org.hibernate.validator.internal.metadata.core.MetaConstraint.validateConstraint(MetaConstraint.java:85)
      at org.hibernate.validator.internal.engine.ValidatorImpl.validatePropertyForDefaultGroup(ValidatorImpl.java:855)
      at org.hibernate.validator.internal.engine.ValidatorImpl.validatePropertyForCurrentGroup(ValidatorImpl.java:768)
      at org.hibernate.validator.internal.engine.ValidatorImpl.validateValueInContext(ValidatorImpl.java:725)
      at org.hibernate.validator.internal.engine.ValidatorImpl.validateValue(ValidatorImpl.java:184)
      at javax.faces.validator.BeanValidator.validate(BeanValidator.java:315)
      at javax.faces.component.UIInput.validateValue(UIInput.java:1165)
      at javax.faces.component.UIInput.validate(UIInput.java:983)
      at javax.faces.component.UIInput.executeValidate(UIInput.java:1249)
      at javax.faces.component.UIInput.processValidators(UIInput.java:712)
      at javax.faces.component.UIComponentBase.processValidators(UIComponentBase.java:1258)
      at org.primefaces.component.celleditor.CellEditor.processValidators(CellEditor.java:82)
      at org.primefaces.component.api.UIData.process(UIData.java:339)
      at org.primefaces.component.api.UIData.processChildren(UIData.java:323)
      at org.primefaces.component.api.UIData.processPhase(UIData.java:285)
      at org.primefaces.component.api.UIData.processValidators(UIData.java:259)
      at org.primefaces.component.datatable.DataTable.processValidators(DataTable.java:622)
      at com.sun.faces.context.PartialViewContextImpl$PhaseAwareVisitCallback.visit(PartialViewContextImpl.java:592)
      at com.sun.faces.component.visit.PartialVisitContext.invokeVisitCallback(PartialVisitContext.java:183)
      at org.primefaces.component.api.UIData.visitTree(UIData.java:692)
      at javax.faces.component.UIComponent.visitTree(UIComponent.java:1701)
      at javax.faces.component.UIComponent.visitTree(UIComponent.java:1701)
      at javax.faces.component.UIForm.visitTree(UIForm.java:371)
      at javax.faces.component.UIComponent.visitTree(UIComponent.java:1701)
      at javax.faces.component.UIComponent.visitTree(UIComponent.java:1701)
      at javax.faces.component.UIComponent.visitTree(UIComponent.java:1701)
      at javax.faces.component.UIComponent.visitTree(UIComponent.java:1701)
      at com.sun.faces.context.PartialViewContextImpl.processComponents(PartialViewContextImpl.java:406)
      at com.sun.faces.context.PartialViewContextImpl.processPartial(PartialViewContextImpl.java:269)
      ... 42 more
  Caused by: java.lang.ClassCastException: java.lang.Long cannot be cast to java.lang.CharSequence
      at org.hibernate.validator.internal.constraintvalidators.SizeValidatorForCharSequence.isValid(SizeValidatorForCharSequence.java:33)
      at org.hibernate.validator.internal.engine.constraintvalidation.ConstraintTree.validateSingleConstraint(ConstraintTree.java:281)
      ... 73 more
  
  SEVERE:   javax.validation.ValidationException: HV000028: Unexpected exception during isValid call.
      at org.hibernate.validator.internal.engine.constraintvalidation.ConstraintTree.validateSingleConstraint(ConstraintTree.java:284)
      at org.hibernate.validator.internal.engine.constraintvalidation.ConstraintTree.validateConstraints(ConstraintTree.java:133)
      at org.hibernate.validator.internal.engine.constraintvalidation.ConstraintTree.validateConstraints(ConstraintTree.java:91)
      at org.hibernate.validator.internal.metadata.core.MetaConstraint.validateConstraint(MetaConstraint.java:85)
      at org.hibernate.validator.internal.engine.ValidatorImpl.validatePropertyForDefaultGroup(ValidatorImpl.java:855)
      at org.hibernate.validator.internal.engine.ValidatorImpl.validatePropertyForCurrentGroup(ValidatorImpl.java:768)
      at org.hibernate.validator.internal.engine.ValidatorImpl.validateValueInContext(ValidatorImpl.java:725)
      at org.hibernate.validator.internal.engine.ValidatorImpl.validateValue(ValidatorImpl.java:184)
      at javax.faces.validator.BeanValidator.validate(BeanValidator.java:315)
      at javax.faces.component.UIInput.validateValue(UIInput.java:1165)
      at javax.faces.component.UIInput.validate(UIInput.java:983)
      at javax.faces.component.UIInput.executeValidate(UIInput.java:1249)
      at javax.faces.component.UIInput.processValidators(UIInput.java:712)
      at javax.faces.component.UIComponentBase.processValidators(UIComponentBase.java:1258)
      at org.primefaces.component.celleditor.CellEditor.processValidators(CellEditor.java:82)
      at org.primefaces.component.api.UIData.process(UIData.java:339)
      at org.primefaces.component.api.UIData.processChildren(UIData.java:323)
      at org.primefaces.component.api.UIData.processPhase(UIData.java:285)
      at org.primefaces.component.api.UIData.processValidators(UIData.java:259)
      at org.primefaces.component.datatable.DataTable.processValidators(DataTable.java:622)
      at com.sun.faces.context.PartialViewContextImpl$PhaseAwareVisitCallback.visit(PartialViewContextImpl.java:592)
      at com.sun.faces.component.visit.PartialVisitContext.invokeVisitCallback(PartialVisitContext.java:183)
      at org.primefaces.component.api.UIData.visitTree(UIData.java:692)
      at javax.faces.component.UIComponent.visitTree(UIComponent.java:1701)
      at javax.faces.component.UIComponent.visitTree(UIComponent.java:1701)
      at javax.faces.component.UIForm.visitTree(UIForm.java:371)
      at javax.faces.component.UIComponent.visitTree(UIComponent.java:1701)
      at javax.faces.component.UIComponent.visitTree(UIComponent.java:1701)
      at javax.faces.component.UIComponent.visitTree(UIComponent.java:1701)
      at javax.faces.component.UIComponent.visitTree(UIComponent.java:1701)
      at com.sun.faces.context.PartialViewContextImpl.processComponents(PartialViewContextImpl.java:406)
      at com.sun.faces.context.PartialViewContextImpl.processPartial(PartialViewContextImpl.java:269)
      at javax.faces.context.PartialViewContextWrapper.processPartial(PartialViewContextWrapper.java:219)
      at org.primefaces.context.PrimePartialViewContext.processPartial(PrimePartialViewContext.java:60)
      at javax.faces.component.UIViewRoot.processValidators(UIViewRoot.java:1193)
      at com.sun.faces.lifecycle.ProcessValidationsPhase.execute(ProcessValidationsPhase.java:76)
      at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:101)
      at com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:198)
      at javax.faces.webapp.FacesServlet.service(FacesServlet.java:646)
      at org.apache.catalina.core.StandardWrapper.service(StandardWrapper.java:1682)
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:344)
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:214)
      at org.primefaces.webapp.filter.FileUploadFilter.doFilter(FileUploadFilter.java:70)
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:256)
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:214)
      at filter.NoCacheFilter.doFilter(NoCacheFilter.java:28)
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:256)
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:214)
      at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:316)
      at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:160)
      at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:734)
      at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:673)
      at com.sun.enterprise.web.WebPipeline.invoke(WebPipeline.java:99)
      at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:174)
      at org.apache.catalina.connector.CoyoteAdapter.doService(CoyoteAdapter.java:357)
      at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:260)
      at com.sun.enterprise.v3.services.impl.ContainerMapper.service(ContainerMapper.java:188)
      at org.glassfish.grizzly.http.server.HttpHandler.runService(HttpHandler.java:191)
      at org.glassfish.grizzly.http.server.HttpHandler.doHandle(HttpHandler.java:168)
      at org.glassfish.grizzly.http.server.HttpServerFilter.handleRead(HttpServerFilter.java:189)
      at org.glassfish.grizzly.filterchain.ExecutorResolver$9.execute(ExecutorResolver.java:119)
      at org.glassfish.grizzly.filterchain.DefaultFilterChain.executeFilter(DefaultFilterChain.java:288)
      at org.glassfish.grizzly.filterchain.DefaultFilterChain.executeChainPart(DefaultFilterChain.java:206)
      at org.glassfish.grizzly.filterchain.DefaultFilterChain.execute(DefaultFilterChain.java:136)
      at org.glassfish.grizzly.filterchain.DefaultFilterChain.process(DefaultFilterChain.java:114)
      at org.glassfish.grizzly.ProcessorExecutor.execute(ProcessorExecutor.java:77)
      at org.glassfish.grizzly.nio.transport.TCPNIOTransport.fireIOEvent(TCPNIOTransport.java:838)
      at org.glassfish.grizzly.strategies.AbstractIOStrategy.fireIOEvent(AbstractIOStrategy.java:113)
      at org.glassfish.grizzly.strategies.WorkerThreadIOStrategy.run0(WorkerThreadIOStrategy.java:115)
      at org.glassfish.grizzly.strategies.WorkerThreadIOStrategy.access$100(WorkerThreadIOStrategy.java:55)
      at org.glassfish.grizzly.strategies.WorkerThreadIOStrategy$WorkerThreadRunnable.run(WorkerThreadIOStrategy.java:135)
      at org.glassfish.grizzly.threadpool.AbstractThreadPool$Worker.doWork(AbstractThreadPool.java:564)
      at org.glassfish.grizzly.threadpool.AbstractThreadPool$Worker.run(AbstractThreadPool.java:544)
      at java.lang.Thread.run(Thread.java:722)
  Caused by: java.lang.ClassCastException: java.lang.Long cannot be cast to java.lang.CharSequence
      at org.hibernate.validator.internal.constraintvalidators.SizeValidatorForCharSequence.isValid(SizeValidatorForCharSequence.java:33)
      at org.hibernate.validator.internal.engine.constraintvalidation.ConstraintTree.validateSingleConstraint(ConstraintTree.java:281)
      ... 73 more
  </code></pre>
  
  <p>Why doesn't <code>&lt;f:convertNumber&gt;</code> work inside a <code>&lt;p:dataTable&gt;</code>? Can it be made to work?</p>