From 90c531b0329cd1e842f3f883becbf97e26dc1416 Mon Sep 17 00:00:00 2001 From: Paul Foxworthy Date: Wed, 9 Nov 2016 00:44:27 +0000 Subject: [PATCH] Fixed typo in error messages git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1768808 13f79535-47bb-0310-9956-ffa450edef68 --- .../java/org/apache/ofbiz/entity/jdbc/SQLProcessor.java | 4 ++-- .../java/org/apache/ofbiz/entity/util/SequenceUtil.java | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/framework/entity/src/main/java/org/apache/ofbiz/entity/jdbc/SQLProcessor.java b/framework/entity/src/main/java/org/apache/ofbiz/entity/jdbc/SQLProcessor.java index 97ef9a270e..5143750629 100644 --- a/framework/entity/src/main/java/org/apache/ofbiz/entity/jdbc/SQLProcessor.java +++ b/framework/entity/src/main/java/org/apache/ofbiz/entity/jdbc/SQLProcessor.java @@ -260,12 +260,12 @@ public class SQLProcessor { _connection = TransactionFactoryLoader.getInstance().getConnection(helperInfo); if (Debug.verboseOn()) Debug.logVerbose("SQLProcessor:connection() : manualTx=" + _manualTX, module); } catch (SQLException sqle) { - throw new GenericDataSourceException("Unable to esablish a connection with the database.", sqle); + throw new GenericDataSourceException("Unable to establish a connection with the database.", sqle); } // make sure we actually did get a connection if (_connection == null) { - throw new GenericDataSourceException("Unable to esablish a connection with the database. Connection was null!"); + throw new GenericDataSourceException("Unable to establish a connection with the database. Connection was null!"); } // test the connection diff --git a/framework/entity/src/main/java/org/apache/ofbiz/entity/util/SequenceUtil.java b/framework/entity/src/main/java/org/apache/ofbiz/entity/util/SequenceUtil.java index 80f6b86e4c..22305d107e 100644 --- a/framework/entity/src/main/java/org/apache/ofbiz/entity/util/SequenceUtil.java +++ b/framework/entity/src/main/java/org/apache/ofbiz/entity/util/SequenceUtil.java @@ -194,14 +194,14 @@ public class SequenceUtil { try { connection = TransactionFactoryLoader.getInstance().getConnection(SequenceUtil.this.helperInfo); } catch (SQLException sqle) { - Debug.logWarning("Unable to esablish a connection with the database. Error was:" + sqle.toString(), module); + Debug.logWarning("Unable to establish a connection with the database. Error was:" + sqle.toString(), module); throw sqle; } catch (GenericEntityException e) { - Debug.logWarning("Unable to esablish a connection with the database. Error was: " + e.toString(), module); + Debug.logWarning("Unable to establish a connection with the database. Error was: " + e.toString(), module); throw e; } if (connection == null) { - throw new GenericEntityException("Unable to esablish a connection with the database, connection was null..."); + throw new GenericEntityException("Unable to establish a connection with the database, connection was null..."); } try {