[
https://issues.jboss.org/browse/RF-11710?page=com.atlassian.jira.plugin.s...
]
Jan Papousek updated RF-11710:
------------------------------
Attachment: jsf2demo-original.zip
rich:validator - selection size validation fails
------------------------------------------------
Key: RF-11710
URL:
https://issues.jboss.org/browse/RF-11710
Project: RichFaces
Issue Type: Bug
Security Level: Public(Everyone can see)
Components: component-validators
Affects Versions: 4.1.0.CR1
Environment: RichFaces 4.1.0-SNAPSHOT
Metamer 4.1.0-SNAPSHOT r.22936
Mojarra 2.1.3-SNAPSHOT
JBoss AS 7.0.2.Final
Java(TM) SE Runtime Environment 1.6.0_25-b06 @ Linux
Firefox 7.0.1 @ Linux x86_64
RichFaces 4.1.0-SNAPSHOT
Metamer 4.1.0-SNAPSHOT r.22936
Mojarra 2.1.3-SNAPSHOT
Apache Tomcat 7.0.22
Java(TM) SE Runtime Environment 1.6.0_25-b06 @ Linux
Firefox 7.0.1 @ Linux x86_64
RichFaces 4.1.0-SNAPSHOT
Metamer 4.1.0-SNAPSHOT r.22936
Mojarra 2.1.3-SNAPSHOT
JBoss AS 7.0.2.Final
Java(TM) SE Runtime Environment 1.6.0_22-b04 @ Linux
Firefox 7.0.1 @ Linux x86_64
Reporter: Jan Papousek
Assignee: Jan Papousek
Attachments: jsf2demo-original.zip
The selection size validation on the page
http://localhost:8080/metamer-mojarra/faces/components/richValidator/csv.... throws the
following exception (this is from JBoss AS):
{code}
15:45:39,631 SEVERE [org.richfaces.log.Context] (http-0.0.0.0-0.0.0.0-8080-1) Unexpected
exception during isValid call: javax.validation.ValidationException: Unexpected exception
during isValid call
at
org.hibernate.validator.engine.ConstraintTree.validateSingleConstraint(ConstraintTree.java:281)
[hibernate-validator-4.2.0.Final.jar:4.2.0.Final]
at
org.hibernate.validator.engine.ConstraintTree.validateConstraints(ConstraintTree.java:153)
[hibernate-validator-4.2.0.Final.jar:4.2.0.Final]
at
org.hibernate.validator.engine.ConstraintTree.validateConstraints(ConstraintTree.java:117)
[hibernate-validator-4.2.0.Final.jar:4.2.0.Final]
at
org.hibernate.validator.metadata.MetaConstraint.validateConstraint(MetaConstraint.java:84)
[hibernate-validator-4.2.0.Final.jar:4.2.0.Final]
at
org.hibernate.validator.engine.ValidatorImpl.validatePropertyForDefaultGroup(ValidatorImpl.java:829)
[hibernate-validator-4.2.0.Final.jar:4.2.0.Final]
at
org.hibernate.validator.engine.ValidatorImpl.validatePropertyForCurrentGroup(ValidatorImpl.java:742)
[hibernate-validator-4.2.0.Final.jar:4.2.0.Final]
at
org.hibernate.validator.engine.ValidatorImpl.validateValueInContext(ValidatorImpl.java:699)
[hibernate-validator-4.2.0.Final.jar:4.2.0.Final]
at org.hibernate.validator.engine.ValidatorImpl.validateValue(ValidatorImpl.java:176)
[hibernate-validator-4.2.0.Final.jar:4.2.0.Final]
at javax.faces.validator.BeanValidator.validate(BeanValidator.java:306)
[jboss-jsf-api_2.1_spec-2.0.0.Beta1.jar:2.0.0.Beta1]
at javax.faces.component.UIInput.validateValue(UIInput.java:1149)
[jboss-jsf-api_2.1_spec-2.0.0.Beta1.jar:2.0.0.Beta1]
at javax.faces.component.UISelectMany.validateValue(UISelectMany.java:581)
[jboss-jsf-api_2.1_spec-2.0.0.Beta1.jar:2.0.0.Beta1]
at javax.faces.component.UIInput.validate(UIInput.java:967)
[jboss-jsf-api_2.1_spec-2.0.0.Beta1.jar:2.0.0.Beta1]
at javax.faces.component.UIInput.executeValidate(UIInput.java:1233)
[jboss-jsf-api_2.1_spec-2.0.0.Beta1.jar:2.0.0.Beta1]
at javax.faces.component.UIInput.processValidators(UIInput.java:698)
[jboss-jsf-api_2.1_spec-2.0.0.Beta1.jar:2.0.0.Beta1]
at javax.faces.component.UIComponentBase.processValidators(UIComponentBase.java:1214)
[jboss-jsf-api_2.1_spec-2.0.0.Beta1.jar:2.0.0.Beta1]
at javax.faces.component.UIForm.processValidators(UIForm.java:253)
[jboss-jsf-api_2.1_spec-2.0.0.Beta1.jar:2.0.0.Beta1]
at
org.richfaces.context.PartialViewExecuteVisitCallback.visit(PartialViewExecuteVisitCallback.java:55)
[richfaces-core-impl-4.1.0-20111114.102006-146.jar:]
at
org.richfaces.context.BaseExtendedVisitContext.invokeVisitCallback(BaseExtendedVisitContext.java:321)
[richfaces-core-impl-4.1.0-20111114.102006-146.jar:]
at javax.faces.component.UIForm.visitTree(UIForm.java:354)
[jboss-jsf-api_2.1_spec-2.0.0.Beta1.jar:2.0.0.Beta1]
at javax.faces.component.UIComponent.visitTree(UIComponent.java:1600)
[jboss-jsf-api_2.1_spec-2.0.0.Beta1.jar:2.0.0.Beta1]
at javax.faces.component.UIComponent.visitTree(UIComponent.java:1600)
[jboss-jsf-api_2.1_spec-2.0.0.Beta1.jar:2.0.0.Beta1]
at javax.faces.component.UIComponent.visitTree(UIComponent.java:1600)
[jboss-jsf-api_2.1_spec-2.0.0.Beta1.jar:2.0.0.Beta1]
at
org.richfaces.context.ExtendedPartialViewContextImpl.executeComponents(ExtendedPartialViewContextImpl.java:237)
[richfaces-core-impl-4.1.0-20111114.102006-146.jar:]
at
org.richfaces.context.ExtendedPartialViewContextImpl.processPartialExecutePhase(ExtendedPartialViewContextImpl.java:217)
[richfaces-core-impl-4.1.0-20111114.102006-146.jar:]
at
org.richfaces.context.ExtendedPartialViewContextImpl.processPartial(ExtendedPartialViewContextImpl.java:196)
[richfaces-core-impl-4.1.0-20111114.102006-146.jar:]
at javax.faces.component.UIViewRoot.processValidators(UIViewRoot.java:1170)
[jboss-jsf-api_2.1_spec-2.0.0.Beta1.jar:2.0.0.Beta1]
at
com.sun.faces.lifecycle.ProcessValidationsPhase.execute(ProcessValidationsPhase.java:76)
[jsf-impl-2.1.3-b02-jbossorg-2.jar:2.1.3-SNAPSHOT]
at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:101)
[jsf-impl-2.1.3-b02-jbossorg-2.jar:2.1.3-SNAPSHOT]
at com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:118)
[jsf-impl-2.1.3-b02-jbossorg-2.jar:2.1.3-SNAPSHOT]
at javax.faces.webapp.FacesServlet.service(FacesServlet.java:593)
[jboss-jsf-api_2.1_spec-2.0.0.Beta1.jar:2.0.0.Beta1]
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:329)
[jbossweb-7.0.1.Final.jar:7.0.2.Final]
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:248)
[jbossweb-7.0.1.Final.jar:7.0.2.Final]
at org.richfaces.tests.metamer.TestIdentityFilter.doFilter(TestIdentityFilter.java:93)
[classes:]
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:280)
[jbossweb-7.0.1.Final.jar:7.0.2.Final]
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:248)
[jbossweb-7.0.1.Final.jar:7.0.2.Final]
at org.richfaces.webapp.PushFilter.doFilter(PushFilter.java:130)
[richfaces-core-impl-4.1.0-20111114.102006-146.jar:]
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:280)
[jbossweb-7.0.1.Final.jar:7.0.2.Final]
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:248)
[jbossweb-7.0.1.Final.jar:7.0.2.Final]
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:275)
[jbossweb-7.0.1.Final.jar:7.0.2.Final]
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:161)
[jbossweb-7.0.1.Final.jar:7.0.2.Final]
at
org.jboss.as.web.security.SecurityContextAssociationValve.invoke(SecurityContextAssociationValve.java:139)
[jboss-as-web-7.0.2.Final.jar:7.0.2.Final]
at org.jboss.as.web.NamingValve.invoke(NamingValve.java:57)
[jboss-as-web-7.0.2.Final.jar:7.0.2.Final]
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:154)
[jbossweb-7.0.1.Final.jar:7.0.2.Final]
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
[jbossweb-7.0.1.Final.jar:7.0.2.Final]
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
[jbossweb-7.0.1.Final.jar:7.0.2.Final]
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:362)
[jbossweb-7.0.1.Final.jar:7.0.2.Final]
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:877)
[jbossweb-7.0.1.Final.jar:7.0.2.Final]
at
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:667)
[jbossweb-7.0.1.Final.jar:7.0.2.Final]
at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:952)
[jbossweb-7.0.1.Final.jar:7.0.2.Final]
at java.lang.Thread.run(Thread.java:662) [:1.6.0_25]
Caused by: java.lang.ClassCastException: [Ljava.lang.String; cannot be cast to
java.util.Collection
at
org.hibernate.validator.constraints.impl.SizeValidatorForCollection.isValid(SizeValidatorForCollection.java:29)
[hibernate-validator-4.2.0.Final.jar:4.2.0.Final]
at
org.hibernate.validator.engine.ConstraintTree.validateSingleConstraint(ConstraintTree.java:278)
[hibernate-validator-4.2.0.Final.jar:4.2.0.Final]
... 49 more
{code}
*It works correctly when the container is started on OpenJDK 1.6.0_22-b22*.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:
https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see:
http://www.atlassian.com/software/jira