/** * Prints this <code>JDOException</code> and its backtrace to the * standard error output. * Print nested Throwables' stack trace as well. */ public void printStackTrace() { printStackTrace (System.err); }
/** * Prints this <code>JDOException</code> and its backtrace to the * standard error output. * Print nested Throwables' stack trace as well. */ public void printStackTrace() { printStackTrace (System.err); }
enhancer = JDOHelper.getEnhancer(); } catch (JDOException jdoex) { jdoex.printStackTrace(); // outputs to stderr exit(ENHANCER_NO_JDO_ENHANCER_FOUND);
enhancer = JDOHelper.getEnhancer(); } catch (JDOException jdoex) { jdoex.printStackTrace(); // outputs to stderr exit(ENHANCER_NO_JDO_ENHANCER_FOUND);
public static void removeDb(String dbName) { if (!ZooHelper.dbExists(dbName)) { return; } try { closePM(); } catch (JDOException e) { e.printStackTrace(); } //TODO implement loop ala http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=4724038 ? //-> Entry from 23-MARCH-2005 #2 // for (int i = 0; i < 100; i++) { // System.gc(); // System.runFinalization(); // //Thread.sleep(100); // } try { ZooHelper.removeDb(dbName); } catch (JDOUserException e) { //ignore } }
file.close(); } catch (JDOException e) { e.printStackTrace();