[jboss-user] [EJB 3.0] - Failure with EJB on JBoss : is this a bug ?
fredatwork
do-not-reply at jboss.com
Mon Nov 19 03:47:08 EST 2007
Hello,
I'm using JBoss Seam 2.0.0 GA on top of a JBoss AS 4.2.1 GA.
I developed a simple web page with a seam component referencing a POJO retrieved by hibernate (EJB 3.0 entity bean). This component has 'page' scope, that is, it is serialized into the page (as JSF state).
The serialization fails with this exception :
WARN [lifecycle] executePhase(RESTORE_VIEW 1,com.sun.faces.context.FacesContextImpl at 1ecab7c) threw exception
| java.lang.ClassCastException: cannot assign instance of org.hibernate.proxy.pojo.javassist.SerializableProxy to field com.rubis.equity.domain.EqtDaoEquity.market of type com.rubis.market.domain.EqtDaoMarket in instance of com.rubis.equity.domain.EqtDaoStock
It may be a JBoss AS bug. Please check a similar issue : http://jira.jboss.com/jira/browse/JBAS-3952.
My Seam component that is serialized with the JSF holds a serializable EJB entity with a non-initializzed lazy many-to-one relationship. This is totally similar to the JIRA bug. However, in my case, this has nothing to do with java JRE: my JBoss AS server and JSF client are running on the same 1.5.0 JRE.
Is this a bug ? Should I open a JIRA issue ?
Fred
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4105918#4105918
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4105918
More information about the jboss-user
mailing list