Exception « EJB « JPA Q&A





1. LazyInitialization Exception    stackoverflow.com

I have 2 Hibernate objects : Dero and Motif. a Dero has a set of Motif. I load a Dero object from the DB fine. but when I try to access its set ...

2. Why can't I catch EJB exceptions?    stackoverflow.com

I can't seem to catch exceptions such as NoResultException or EJBException in my java ee 6 project. Is there something I am doing wrong? I have caught exceptions outside ...

3. JPA deceleration exception    stackoverflow.com

I am using jboss5.1.x EJB3.0 I am trying my first time with JPA, and I get this exception when I run the server:

java.lang.IllegalArgumentException: Can't find a persistence unit named 'java:/mracDS' 
.. this is ...

4. How to persist JPA entities even when EJB method throws an exception?    stackoverflow.com

I have an EJB, whose method (among other things) persists JPA entity. If the method throws an error, the transaction is rolled back and the entity is not persisted. However, I do ...

5. Better Exception Handling in JPA    stackoverflow.com

I used EJB3/JPA when persisting my entities and I am happy on how it is able to manage my DB related task. My only concern is on the exception handling. My sample ...

6. JPA2:i persist a entity ,there is no exception but the data is not saved in database    stackoverflow.com

I am using EJB to write a CRUD demo code on netbeans..when i write a code that can save data into database ,there is no error and exception but the data ...

7. Hibernate EJB3 Exception handling    forum.hibernate.org

Hi, I am using jboss/jsf/hibernate. Using a facade model, making my calls from a managed bean. i.e session bean -> called from JSF managed bean. I would like to catch constraint excetions , but I have been only successful catching a Runtime exception withing the mangaged bean. I have tried to catch ConstaingViolationException , but it just fall through. What would ...