List of usage examples for javax.naming NamingException getSuppressed
public final synchronized Throwable[] getSuppressed()
From source file:org.nuxeo.runtime.jtajca.NuxeoContainer.java
protected static void uninstall() throws NamingException { if (installContext == null) { throw new RuntimeException("Nuxeo container not installed"); }//from ww w. ja v a2 s . c o m try { NamingException errors = new NamingException("Cannot shutdown connection managers"); for (ConnectionManagerWrapper cm : connectionManagers.values()) { try { cm.dispose(); } catch (RuntimeException cause) { errors.addSuppressed(cause); } } if (errors.getSuppressed().length > 0) { log.error("Cannot shutdown some pools", errors); throw errors; } } finally { log.trace("Uninstalling nuxeo container", installContext); installContext = null; rootContext = null; tm = null; tmRecoverable = null; tmSynchRegistry = null; ut = null; connectionManagers.clear(); } }