• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Ibatis queries returning null

 
Ranch Hand
Posts: 91
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi all,

I am facing the following issue with IBatis.

Whenever the Database is down or there is a problem with the query or configuration error like resultmap containing fields that do not exist, the IBatis query returns null instead of throwing an exception.

I am not able to distinguish between a null resulting from the query returning a null and the null returned due to other issues(DB down, configuration, etc.)

It would be very helpful if anyone can tell me if its an issue with my code or if this is the designed behavior of Ibatis. Any tips would also help.

Regards,
 
reply
    Bookmark Topic Watch Topic
  • New Topic