jQuery in Action, 3rd edition
The moose likes EJB and other Java EE Technologies and the fly likes EJB3-NoResultException Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "EJB3-NoResultException" Watch "EJB3-NoResultException" New topic


Sunil Huilgol

Joined: Jan 22, 2006
Posts: 8
I have used query.getSingleResult() and this is throwing a NoResultException if the data is not present in the db. My doubt is that I also am running another project configured by an associate who does not get this exception. Below is an example of what he has managed(assume data is not there in table) :

My question how can the check for null be possible. Shouldn't it throw a NoResultException.

The App Server used is JBoss 4.0.5. Is it a Jboss configuration which i am not sure or something else.

Any help is appreciated.
I agree. Here's the link: http://aspose.com/file-tools
subject: EJB3-NoResultException
It's not a secret anymore!