I have created a login() function to check against a USER database. I would query the USER table by injecting a java object that extends the EntityQuery Seam framework class. When the user is not found, the application would throw a NoResultException. However, when I catched the NoResultException, and do nothing, I get an error log saying that the Transaction was inactive. From then on, my app is not stable anymore. I need to restart the app.
Do i have to do some code when catching the NoResultException exception?
I have done this using the query from the EntityQuery class.
However, when I am using the query from the EntityManager.createQuery(), I am not getting the same exceptions.
Why is this happening?