@Override public void fatalError(final SAXParseException exception) throws SAXException { LogFactory.getLogger().severe(exception.getMessage()); throw exception; }
@Override public void error(final SAXParseException exception) throws SAXException { LogFactory.getLogger().severe(exception.getMessage()); throw exception; }
@Override protected EntityManagerFactoryBuilder getEntityManagerFactoryBuilder(PersistenceUnitDescriptor persistenceUnitDescriptor, Map integration, ClassLoader providedClassLoader) { try { setField(persistenceUnitDescriptor, "jtaDataSource", null); setField(persistenceUnitDescriptor, "transactionType", PersistenceUnitTransactionType.RESOURCE_LOCAL); } catch (Exception ex) { LogFactory.getInstance().getLog().severe(null, ex); } return super.getEntityManagerFactoryBuilder(persistenceUnitDescriptor, integration, providedClassLoader); } }
log.severe("Error thrown as a SAXException: " + e.getMessage(), e); throw new SAXException(databaseChangeLog.getPhysicalFilePath() + ": " + e.getMessage(), e);
log.severe("Error thrown as a SAXException: " + e.getMessage(), e); e.printStackTrace(); throw new SAXException(e);
private void generateRollbackFile(Liquibase liquibase) throws LiquibaseException { if (this.rollbackFile != null) { OutputStreamWriter output = null; try { output = new OutputStreamWriter(new FileOutputStream(this.rollbackFile), ((GlobalConfiguration)LiquibaseConfiguration.getInstance().getConfiguration(GlobalConfiguration.class)).getOutputEncoding()); if (this.tag != null) { liquibase.futureRollbackSQL(this.tag, new Contexts(this.getContexts()), new LabelExpression(this.getLabels()), output); } else { liquibase.futureRollbackSQL(new Contexts(this.getContexts()), new LabelExpression(this.getLabels()), output); } } catch (IOException var11) { throw new LiquibaseException("Unable to generate rollback file.", var11); } finally { try { if (output != null) { output.close(); } } catch (IOException var10) { this.log.severe("Error closing output", var10); } } } }