-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 
Author Message
 Post subject: How to catch errors from JDBCExceptionReporter ?
PostPosted: Fri Nov 27, 2009 6:18 am 
Regular
Regular

Joined: Thu Apr 14, 2005 10:39 am
Posts: 115
Hi,

I encountered the problem that I get an error.
Quote:
11:06:55,203 ERROR JDBCExceptionReporter:78 - Eingabe/Ausgabe-Fehler {0} beim Senden an das Backend.


which my catch-clause doesn't seem to catch.

Code:
catch (final org.hibernate.StaleObjectStateException sose) {
       /* clean up */
       if (tx != null) {
      tx.rollback();
       }

       if (s != null && s.isOpen()) {
      s.close();
       }

       /* wrong version */
       handleCatchClause(sose, s);
            ...
   }
   catch (final Throwable thrown) {
       showErrorMessage(errorMessage + thrown.getLocalizedMessage(), errorTitle);
       if (tx != null) {
      tx.rollback();
       }
       handleCatchClause(thrown, s);

       return false;
   }
   finally {
       if (s != null && s.isOpen()) {
      s.close();
       }
   }


So my program freezes.

How can I avoid this?

Thanks.

Greetings Michael


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.