rf-demo (JSF2): DataTable - ModifiableDataModel - ClassCastException: java.lang.Long
cannot be cast to java.lang.Integer
------------------------------------------------------------------------------------------------------------------------
Key: RF-8466
URL:
https://jira.jboss.org/jira/browse/RF-8466
Project: RichFaces
Issue Type: Bug
Security Level: Public (Everyone can see)
Components: examples, JSF 2.0
Affects Versions: 3.3.3.CR1
Environment: JBoss AS 6.0.0.M2
SunJDK 1.6.0_16
http://repository.jboss.org/maven2/org/richfaces/samples/richfaces-demo-j...
Reporter: Lukas Fryc
NOTE: You must overwrite s.tld in jboss-seam-ui to let richfaces-demo deploy properly (see
https://community.jboss.org/message/526933#526933 ).
NOTE: You must remove jboss-seam-jul from classpath to allow exception be thrown without
StackOverflowError by (see
https://jira.jboss.org/jira/browse/RF-8465 )
1. open richfaces-demo
2. go to Data Table component
3. switch to Modifiable Data Table tab
4. EXCEPTION
java.lang.ClassCastException: java.lang.Long cannot be cast to java.lang.Integer
at
org.richfaces.demo.modifiableModel.BaseModifiableHibernateDataModel.getRowCount(BaseModifiableHibernateDataModel.java:149)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:616)
at org.jboss.seam.util.Reflections.invoke(Reflections.java:22)
at org.jboss.seam.intercept.RootInvocationContext.proceed(RootInvocationContext.java:32)
at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:56)
at
org.jboss.seam.transaction.RollbackInterceptor.aroundInvoke(RollbackInterceptor.java:28)
at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:68)
at org.jboss.seam.core.BijectionInterceptor.aroundInvoke(BijectionInterceptor.java:77)
at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:68)
at
org.jboss.seam.core.MethodContextInterceptor.aroundInvoke(MethodContextInterceptor.java:44)
at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:68)
at org.jboss.seam.intercept.RootInterceptor.invoke(RootInterceptor.java:107)
at
org.jboss.seam.intercept.JavaBeanInterceptor.interceptInvocation(JavaBeanInterceptor.java:185)
at org.jboss.seam.intercept.JavaBeanInterceptor.invoke(JavaBeanInterceptor.java:103)
at
org.richfaces.demo.modifiableModel.HibernateDataModel_$$_javassist_seam_3.getRowCount(HibernateDataModel_$$_javassist_seam_3.java)
at org.ajax4jsf.component.UIDataAdaptorBase.getRowCount(UIDataAdaptorBase.java:248)
at org.richfaces.component.UIDatascroller.getRowCount(UIDatascroller.java:362)
at org.richfaces.component.UIDatascroller.getPageCount(UIDatascroller.java:334)
at org.richfaces.component.UIDatascroller.getPageCount(UIDatascroller.java:358)
at
org.richfaces.renderkit.html.DatascrollerTemplate.doEncodeEnd(DatascrollerTemplate.java:185)
...
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira