[jboss-user] [JBoss AOP] - AspectJ handler pointcut designator ??

2007-11-30 Thread jtonic
catch block? Best regards, jtonic View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4109382#4109382 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4109382 __

[jboss-user] [JBoss AOP] - Re: Catching LazyInitialization exception within an Intercep

2007-11-30 Thread jtonic
27;ve mentioned. IMHO reflection is the solution. The following are the hibernate methods that help me doing the LIE interceptor: Hibernate.isInitialized(object); Hibernate.initialize(object); session.lock(object, LockType); Regards, jtonic "mlouna" wrote : You're absolutely r

[jboss-user] [JBoss AOP] - Re: Catching LazyInitialization exception within an Intercep

2007-11-28 Thread jtonic
IMO getXXX() invocation does't throw LIE on lazy collection. It return an unitialized PersistenceCollection. If you trie to invoke a collection method on it get an LIE. Ex.: Collection children = parent.getChildren(); // doesn't throw LIE col.iterator(); //throws LIE Regar

[jboss-user] [EJB 3.0] - [ClassCastException] problem with merge() for abstract entit

2006-10-04 Thread jtonic
nd detached instance of MedicalPersonnel and assign with mp */ mp = em.merge(mp); //ClassCastException What can I do against this? Thx in advance, jtonic. Error StackTrace: Exception in thread "main" javax.ejb.EJBException: java.la

[jboss-user] [EJB 3.0] - ClassCastException

2006-10-02 Thread jtonic
tions), is that a bug? Certainly it drives me crazy. Thx in advance for your help, jtonic. Full stack trace of any exception that occurs: javax.ejb.EJBException: java.lang.ClassCastException: ro.iqbyte.arhimed.model.core.common.entities.adm.Physician at org.jboss.ejb3.tx.Ej