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 {