[JBoss-user] [EJB 3.0] - Re: JBoss 4.0.3 - EJB 3.0 - Exception caused by UNIQUE const

2006-01-19 Thread laboratory
solved adding (rollback=true) to ApplicationException tnx anyway ;) View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3918371#3918371 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3918371 -

[JBoss-user] [EJB 3.0] - Re: JBoss 4.0.3 - EJB 3.0 - Exception caused by UNIQUE const

2006-01-19 Thread laboratory
can't fix this problem, am i doing something wrong? My Exception: | @ApplicationException | public class CreateAccountException extends Exception { | | public CreateAccountException(String message) { | super(message); | } | } | My Entity Field: | @Column(

[JBoss-user] [EJB 3.0] - Re: JBoss 4.0.3 - EJB 3.0 - Exception caused by UNIQUE const

2005-12-20 Thread Jonefun
Any checked exceptions raised should all be annotated with @ApplicationException so that the container does not raise them as a RuntimeException which is what is happening in this case. Cheers Jono View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3913570#39135

[JBoss-user] [EJB 3.0] - Re: JBoss 4.0.3 - EJB 3.0 - Exception caused by UNIQUE const

2005-12-15 Thread trofimov
I have a similar problem. My Slsb have method: | public void addUser(User user) throws Exception { | try { | em.persist(user); | em.flush(); |} catch (ConstraintViolationException e) { | throw new UserAlreadyExistsException( |