<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://community.appian.com/cfs-file/__key/system/syndication/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/"><channel><title>KB-2143 Database calls fail with "Connection has already been closed" for self-managed environments</title><link>https://community.appian.com/support/w/kb/1891/kb-2143-database-calls-fail-with-connection-has-already-been-closed-for-self-managed-environments</link><description /><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>KB-2143 Database calls fail with "Connection has already been closed" for self-managed environments</title><link>https://community.appian.com/support/w/kb/1891/kb-2143-database-calls-fail-with-connection-has-already-been-closed-for-self-managed-environments</link><pubDate>Mon, 17 Aug 2020 14:45:11 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:b5e56291-2097-494f-8f6a-61dc1975074a</guid><dc:creator>Elly Meng</dc:creator><comments>https://community.appian.com/support/w/kb/1891/kb-2143-database-calls-fail-with-connection-has-already-been-closed-for-self-managed-environments#comments</comments><description>Current Revision posted to Appian Knowledge Base by Elly Meng on 8/17/2020 2:45:11 PM&lt;br /&gt;
&lt;h2&gt;Symptoms&lt;/h2&gt; &lt;p&gt;After an upgrade or after new database calls are configured for an self-managed installation, calls to the database from the application server fail and the&lt;span&gt;&amp;nbsp;following error&amp;nbsp;is seen in the application server log:&lt;/span&gt;&lt;/p&gt; &lt;pre class="code-java"&gt;ERROR org.hibernate.transaction.JDBCTransaction - Could not toggle autocommit java.sql.SQLException: Connection has already been closed.&lt;/pre&gt; &lt;h2&gt;Cause&lt;/h2&gt; &lt;p&gt;The database connection has been abandoned since the query ran for more than the allotted time configured&amp;nbsp;in&amp;nbsp;&lt;code&gt;&lt;span&gt;removeAbandonedTimeOut&lt;/span&gt;&lt;/code&gt; (the default value is 60s).&lt;/p&gt; &lt;h2&gt;Action&lt;/h2&gt; &lt;p&gt;&lt;span&gt;Increase the value of&amp;nbsp;&lt;code&gt;removeAbandonedTimeOut&lt;/code&gt;&lt;/span&gt;&amp;nbsp;in&amp;nbsp;&lt;strong&gt;tomcat-resources.xml&amp;nbsp;&lt;/strong&gt;so that it is set to the longest running query the application may have.&lt;/p&gt; &lt;h2&gt;Affected Versions&lt;/h2&gt; &lt;p&gt;This article applies to Appian&amp;nbsp;19.1 and later.&lt;/p&gt; &lt;p&gt;Last Reviewed: August 2020&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;

&lt;div style="font-size: 90%;"&gt;Tags: database, application server, timeout, upgrade, infrastructure&lt;/div&gt;
</description></item><item><title>DRAFT SP-4611 Database calls fail with "Connection has already been closed" for on-premise environments</title><link>https://community.appian.com/support/w/kb/1891/kb-2143-database-calls-fail-with-connection-has-already-been-closed-for-self-managed-environments/revision/20</link><pubDate>Mon, 17 Aug 2020 14:33:21 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:b5e56291-2097-494f-8f6a-61dc1975074a</guid><dc:creator>Elly Meng</dc:creator><comments>https://community.appian.com/support/w/kb/1891/kb-2143-database-calls-fail-with-connection-has-already-been-closed-for-self-managed-environments#comments</comments><description>Revision 20 posted to Appian Knowledge Base by Elly Meng on 8/17/2020 2:33:21 PM&lt;br /&gt;
&lt;h2&gt;Symptoms&lt;/h2&gt;
&lt;p&gt;After an upgrade or after new database calls are configured for an on-premise installation, calls to the database from the application server fail and the&lt;span&gt;&amp;nbsp;following error&amp;nbsp;is seen in the application server log:&lt;/span&gt;&lt;/p&gt;
&lt;pre class="code-java"&gt;ERROR org.hibernate.transaction.JDBCTransaction - Could not toggle autocommit
java.sql.SQLException: Connection has already been closed.&lt;/pre&gt;
&lt;h2&gt;Cause&lt;/h2&gt;
&lt;p&gt;The database connection has been abandoned since the query ran for more than the allotted time configured&amp;nbsp;in&amp;nbsp;&lt;code&gt;&lt;span&gt;removeAbandonedTimeOut&lt;/span&gt;&lt;/code&gt; (the default value is 60s).&lt;/p&gt;
&lt;h2&gt;Action&lt;/h2&gt;
&lt;p&gt;&lt;span&gt;Increase the value of&amp;nbsp;&lt;code&gt;removeAbandonedTimeOut&lt;/code&gt;&lt;/span&gt;&amp;nbsp;in&amp;nbsp;&lt;strong&gt;tomcat-resources.xml&amp;nbsp;&lt;/strong&gt;so that it is set to the longest running query the application may have.&lt;/p&gt;
&lt;h2&gt;Affected Versions&lt;/h2&gt;
&lt;p&gt;This article applies to Appian&amp;nbsp;19.1 and later.&lt;/p&gt;
&lt;p&gt;Last Reviewed: August 2020&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;

&lt;div style="font-size: 90%;"&gt;Tags: database, application server, timeout, upgrade, infrastructure&lt;/div&gt;
</description></item><item><title>DRAFT SP-4611 Database calls fail with "Connection has already been closed" for on-premise environments</title><link>https://community.appian.com/support/w/kb/1891/kb-2143-database-calls-fail-with-connection-has-already-been-closed-for-self-managed-environments/revision/19</link><pubDate>Mon, 17 Aug 2020 14:33:03 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:b5e56291-2097-494f-8f6a-61dc1975074a</guid><dc:creator>Elly Meng</dc:creator><comments>https://community.appian.com/support/w/kb/1891/kb-2143-database-calls-fail-with-connection-has-already-been-closed-for-self-managed-environments#comments</comments><description>Revision 19 posted to Appian Knowledge Base by Elly Meng on 8/17/2020 2:33:03 PM&lt;br /&gt;
&lt;h2&gt;Symptoms&lt;/h2&gt;
&lt;p&gt;After an upgrade or after new database calls are configured for an on-premise installation, calls to the database from the application server fail and the&lt;span&gt;&amp;nbsp;following error&amp;nbsp;is seen in the application server log:&lt;/span&gt;&lt;/p&gt;
&lt;pre class="code-java"&gt;ERROR org.hibernate.transaction.JDBCTransaction - Could not toggle autocommit
java.sql.SQLException: Connection has already been closed.&lt;/pre&gt;
&lt;h2&gt;Cause&lt;/h2&gt;
&lt;p&gt;The database connection has been abandoned since the query ran for more than the allotted time configured&amp;nbsp;in&amp;nbsp;&lt;code&gt;&lt;span&gt;removeAbandonedTimeOut&lt;/span&gt;&lt;/code&gt; (&lt;code&gt;&lt;span&gt;t&lt;/span&gt;&lt;/code&gt;he default value is 60s).&lt;/p&gt;
&lt;h2&gt;Action&lt;/h2&gt;
&lt;p&gt;&lt;span&gt;Increase the value of&amp;nbsp;&lt;code&gt;removeAbandonedTimeOut&lt;/code&gt;&lt;/span&gt;&amp;nbsp;in&amp;nbsp;&lt;strong&gt;tomcat-resources.xml&amp;nbsp;&lt;/strong&gt;so that it is set to the longest running query the application may have.&lt;/p&gt;
&lt;h2&gt;Affected Versions&lt;/h2&gt;
&lt;p&gt;This article applies to Appian&amp;nbsp;19.1 and later.&lt;/p&gt;
&lt;p&gt;Last Reviewed: August 2020&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;

&lt;div style="font-size: 90%;"&gt;Tags: database, application server, timeout, upgrade, infrastructure&lt;/div&gt;
</description></item><item><title>DRAFT SP-4611 Database calls fail with "Connection has already been closed" for on-premise environments</title><link>https://community.appian.com/support/w/kb/1891/kb-2143-database-calls-fail-with-connection-has-already-been-closed-for-self-managed-environments/revision/18</link><pubDate>Mon, 17 Aug 2020 13:45:28 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:b5e56291-2097-494f-8f6a-61dc1975074a</guid><dc:creator>Kritesh Arora</dc:creator><comments>https://community.appian.com/support/w/kb/1891/kb-2143-database-calls-fail-with-connection-has-already-been-closed-for-self-managed-environments#comments</comments><description>Revision 18 posted to Appian Knowledge Base by Kritesh Arora on 8/17/2020 1:45:28 PM&lt;br /&gt;
&lt;h2&gt;Symptoms&lt;/h2&gt;
&lt;p&gt;After an upgrade or after new database calls are configured for an on-premise installation, calls to the database from the application server fail and the&lt;span&gt;&amp;nbsp;following error&amp;nbsp;is seen in the application server log:&lt;/span&gt;&lt;/p&gt;
&lt;pre class="code-java"&gt;ERROR org.hibernate.transaction.JDBCTransaction - Could not toggle autocommit
java.sql.SQLException: Connection has already been closed.&lt;/pre&gt;
&lt;h2&gt;Cause&lt;/h2&gt;
&lt;p&gt;The database connection has been abandoned since the query ran more than the time configured for &lt;code&gt;&lt;span&gt;removeAbandonedTimeOut&lt;/span&gt;&lt;/code&gt;. The default value is 60s.&lt;/p&gt;
&lt;h2&gt;Action&lt;/h2&gt;
&lt;p&gt;&lt;span&gt;Increase the value of&amp;nbsp; &lt;code&gt;removeAbandonedTimeOut&amp;nbsp;&lt;/code&gt;&lt;/span&gt;in&amp;nbsp;&lt;strong&gt;tomcat-resources.xml&amp;nbsp;&lt;/strong&gt;so that it is set to the longest running query your application may have.&lt;/p&gt;
&lt;h2&gt;Affected Versions&lt;/h2&gt;
&lt;p&gt;This article applies to Appian&amp;nbsp;19.1 and later.&lt;/p&gt;
&lt;p&gt;Last Reviewed: August 2020&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;

&lt;div style="font-size: 90%;"&gt;Tags: database, application server, timeout, upgrade, infrastructure&lt;/div&gt;
</description></item><item><title>DRAFT SP-4611 Database calls fail with "Connection has already been closed" for on-premise environments</title><link>https://community.appian.com/support/w/kb/1891/kb-2143-database-calls-fail-with-connection-has-already-been-closed-for-self-managed-environments/revision/17</link><pubDate>Mon, 17 Aug 2020 13:45:03 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:b5e56291-2097-494f-8f6a-61dc1975074a</guid><dc:creator>Kritesh Arora</dc:creator><comments>https://community.appian.com/support/w/kb/1891/kb-2143-database-calls-fail-with-connection-has-already-been-closed-for-self-managed-environments#comments</comments><description>Revision 17 posted to Appian Knowledge Base by Kritesh Arora on 8/17/2020 1:45:03 PM&lt;br /&gt;
&lt;h2&gt;Symptoms&lt;/h2&gt;
&lt;p&gt;After an upgrade or after new database calls are configured for an on-premise installation, calls to the database from the application server fail and the&lt;span&gt;&amp;nbsp;following error&amp;nbsp;is seen in the application server log:&lt;/span&gt;&lt;/p&gt;
&lt;pre class="code-java"&gt;ERROR org.hibernate.transaction.JDBCTransaction - Could not toggle autocommit
java.sql.SQLException: Connection has already been closed.&lt;/pre&gt;
&lt;h2&gt;Cause&lt;/h2&gt;
&lt;p&gt;The database connection has been abandoned since the query ran more than the time configured for &lt;span&gt;removeAbandonedTimeOut&lt;/span&gt;. The default value is 60s.&lt;/p&gt;
&lt;h2&gt;Action&lt;/h2&gt;
&lt;p&gt;&lt;span&gt;Increase the value of&amp;nbsp; &lt;code&gt;removeAbandonedTimeOut&amp;nbsp;&lt;/code&gt;&lt;/span&gt;in&amp;nbsp;&lt;strong&gt;tomcat-resources.xml&amp;nbsp;&lt;/strong&gt;so that it is set to the longest running query your application may have.&lt;/p&gt;
&lt;h2&gt;Affected Versions&lt;/h2&gt;
&lt;p&gt;This article applies to Appian&amp;nbsp;19.1 and later.&lt;/p&gt;
&lt;p&gt;Last Reviewed: August 2020&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;

&lt;div style="font-size: 90%;"&gt;Tags: database, application server, timeout, upgrade, infrastructure&lt;/div&gt;
</description></item><item><title>DRAFT SP-4611 Database calls fail with "Connection has already been closed" for on-premise environments</title><link>https://community.appian.com/support/w/kb/1891/kb-2143-database-calls-fail-with-connection-has-already-been-closed-for-self-managed-environments/revision/16</link><pubDate>Mon, 17 Aug 2020 13:44:47 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:b5e56291-2097-494f-8f6a-61dc1975074a</guid><dc:creator>Kritesh Arora</dc:creator><comments>https://community.appian.com/support/w/kb/1891/kb-2143-database-calls-fail-with-connection-has-already-been-closed-for-self-managed-environments#comments</comments><description>Revision 16 posted to Appian Knowledge Base by Kritesh Arora on 8/17/2020 1:44:47 PM&lt;br /&gt;
&lt;h2&gt;Symptoms&lt;/h2&gt;
&lt;p&gt;After an upgrade or after new database calls are configured for an on-premise installation, calls to the database from the application server fail and the&lt;span&gt;&amp;nbsp;following error&amp;nbsp;is seen in the application server log:&lt;/span&gt;&lt;/p&gt;
&lt;pre class="code-java"&gt;ERROR org.hibernate.transaction.JDBCTransaction - Could not toggle autocommit
java.sql.SQLException: Connection has already been closed.&lt;/pre&gt;
&lt;h2&gt;Cause&lt;/h2&gt;
&lt;p&gt;The database connection has been abandoned since the query ran more than the time configured for&amp;nbsp;removeAbandonedTimeout. The default value is 60s.&lt;/p&gt;
&lt;h2&gt;Action&lt;/h2&gt;
&lt;p&gt;&lt;span&gt;Increase the value of&amp;nbsp; &lt;code&gt;removeAbandonedTimeOut&amp;nbsp;&lt;/code&gt;&lt;/span&gt;in&amp;nbsp;&lt;strong&gt;tomcat-resources.xml&amp;nbsp;&lt;/strong&gt;so that it is set to the longest running query your application may have.&lt;/p&gt;
&lt;h2&gt;Affected Versions&lt;/h2&gt;
&lt;p&gt;This article applies to Appian&amp;nbsp;19.1 and later.&lt;/p&gt;
&lt;p&gt;Last Reviewed: August 2020&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;

&lt;div style="font-size: 90%;"&gt;Tags: database, application server, timeout, upgrade, infrastructure&lt;/div&gt;
</description></item><item><title>DRAFT SP-4611 Database calls fail with "Connection has already been closed" for on-premise environments</title><link>https://community.appian.com/support/w/kb/1891/kb-2143-database-calls-fail-with-connection-has-already-been-closed-for-self-managed-environments/revision/15</link><pubDate>Mon, 17 Aug 2020 13:42:45 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:b5e56291-2097-494f-8f6a-61dc1975074a</guid><dc:creator>Kritesh Arora</dc:creator><comments>https://community.appian.com/support/w/kb/1891/kb-2143-database-calls-fail-with-connection-has-already-been-closed-for-self-managed-environments#comments</comments><description>Revision 15 posted to Appian Knowledge Base by Kritesh Arora on 8/17/2020 1:42:45 PM&lt;br /&gt;
&lt;h2&gt;Symptoms&lt;/h2&gt;
&lt;p&gt;After an upgrade or after new database calls are configured for an on-premise installation, calls to the database from the application server fail and the&lt;span&gt;&amp;nbsp;following error&amp;nbsp;is seen in the application server log:&lt;/span&gt;&lt;/p&gt;
&lt;pre class="code-java"&gt;ERROR org.hibernate.transaction.JDBCTransaction - Could not toggle autocommit
java.sql.SQLException: Connection has already been closed.&lt;/pre&gt;
&lt;h2&gt;Cause&lt;/h2&gt;
&lt;pre&gt;&lt;span&gt;The database connection has been abandoned since the query ran more than time specified for&amp;nbsp;removeAbandonedTimeout.&lt;/span&gt;&lt;/pre&gt;
&lt;h2&gt;Action&lt;/h2&gt;
&lt;p&gt;&lt;span&gt;Increase the value of&amp;nbsp; &lt;code&gt;removeAbandonedTimeOut&amp;nbsp;&lt;/code&gt;&lt;/span&gt;in&amp;nbsp;&lt;strong&gt;tomcat-resources.xml&amp;nbsp;&lt;/strong&gt;so that it is set to the longest running query your application may have.&lt;/p&gt;
&lt;h2&gt;Affected Versions&lt;/h2&gt;
&lt;p&gt;This article applies to Appian&amp;nbsp;19.1 and later.&lt;/p&gt;
&lt;p&gt;Last Reviewed: August 2020&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;

&lt;div style="font-size: 90%;"&gt;Tags: database, application server, timeout, upgrade, infrastructure&lt;/div&gt;
</description></item><item><title>DRAFT SP-4611 Database calls fail with "Connection has already been closed" for on-premise environments</title><link>https://community.appian.com/support/w/kb/1891/kb-2143-database-calls-fail-with-connection-has-already-been-closed-for-self-managed-environments/revision/14</link><pubDate>Fri, 07 Aug 2020 17:09:29 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:b5e56291-2097-494f-8f6a-61dc1975074a</guid><dc:creator>Elly Meng</dc:creator><comments>https://community.appian.com/support/w/kb/1891/kb-2143-database-calls-fail-with-connection-has-already-been-closed-for-self-managed-environments#comments</comments><description>Revision 14 posted to Appian Knowledge Base by Elly Meng on 8/7/2020 5:09:29 PM&lt;br /&gt;
&lt;h2&gt;Symptoms&lt;/h2&gt;
&lt;p&gt;After an upgrade or after new database calls are configured for an on-premise installation, calls to the database from the application server fail and the&lt;span&gt;&amp;nbsp;following error&amp;nbsp;is seen in the application server log:&lt;/span&gt;&lt;/p&gt;
&lt;pre class="code-java"&gt;ERROR org.hibernate.transaction.JDBCTransaction - Could not toggle autocommit
java.sql.SQLException: Connection has already been closed.&lt;/pre&gt;
&lt;h2&gt;Cause&lt;/h2&gt;
&lt;p&gt;&lt;span&gt;Databases have a default timeout period after which connections are deemed &amp;quot;idle&amp;quot; and terminated, causing the a&lt;/span&gt;pplication server to be unable to make calls to the database.&lt;/p&gt;
&lt;h2&gt;Action&lt;/h2&gt;
&lt;p&gt;&lt;span&gt;Increase the value of&amp;nbsp; &lt;code&gt;removeAbandonedTimeOut&amp;nbsp;&lt;/code&gt;&lt;/span&gt;in&amp;nbsp;&lt;strong&gt;tomcat-resources.xml&amp;nbsp;&lt;/strong&gt;so that it is set to the longest running query your application may have.&lt;/p&gt;
&lt;h2&gt;Affected Versions&lt;/h2&gt;
&lt;p&gt;This article applies to Appian&amp;nbsp;19.1 and later.&lt;/p&gt;
&lt;p&gt;Last Reviewed: August 2020&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;

&lt;div style="font-size: 90%;"&gt;Tags: database, application server, timeout, upgrade, infrastructure&lt;/div&gt;
</description></item><item><title>KB-2139 Database calls fail with "Connection has already been closed" for on-premise environments</title><link>https://community.appian.com/support/w/kb/1891/kb-2143-database-calls-fail-with-connection-has-already-been-closed-for-self-managed-environments/revision/13</link><pubDate>Fri, 07 Aug 2020 17:07:24 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:b5e56291-2097-494f-8f6a-61dc1975074a</guid><dc:creator>Elly Meng</dc:creator><comments>https://community.appian.com/support/w/kb/1891/kb-2143-database-calls-fail-with-connection-has-already-been-closed-for-self-managed-environments#comments</comments><description>Revision 13 posted to Appian Knowledge Base by Elly Meng on 8/7/2020 5:07:24 PM&lt;br /&gt;
&lt;h2&gt;Symptoms&lt;/h2&gt;
&lt;p&gt;After an upgrade or after new database calls are configured for an on-premise installation, calls to the database from the application server fail and the&lt;span&gt;&amp;nbsp;following error&amp;nbsp;is seen in the application server log:&lt;/span&gt;&lt;/p&gt;
&lt;pre class="code-java"&gt;ERROR org.hibernate.transaction.JDBCTransaction - Could not toggle autocommit
java.sql.SQLException: Connection has already been closed.&lt;/pre&gt;
&lt;h2&gt;Cause&lt;/h2&gt;
&lt;p&gt;&lt;span&gt;Databases have a default timeout period after which connections are deemed &amp;quot;idle&amp;quot; and terminated, causing the a&lt;/span&gt;pplication server to be unable to make calls to the database.&lt;/p&gt;
&lt;h2&gt;Action&lt;/h2&gt;
&lt;p&gt;&lt;span&gt;Increase the value of&amp;nbsp; &lt;code&gt;removeAbandonedTimeOut&amp;nbsp;&lt;/code&gt;&lt;/span&gt;in&amp;nbsp;&lt;strong&gt;tomcat-resources.xml&amp;nbsp;&lt;/strong&gt;so that it is set to the longest running query your application may have.&lt;/p&gt;
&lt;h2&gt;Affected Versions&lt;/h2&gt;
&lt;p&gt;This article applies to Appian&amp;nbsp;19.1 and later.&lt;/p&gt;
&lt;p&gt;Last Reviewed: August 2020&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;

&lt;div style="font-size: 90%;"&gt;Tags: database, application server, timeout, upgrade, infrastructure&lt;/div&gt;
</description></item><item><title>KB-2139 Database calls fail with "Connection has already been closed" for on-premise installations</title><link>https://community.appian.com/support/w/kb/1891/kb-2143-database-calls-fail-with-connection-has-already-been-closed-for-self-managed-environments/revision/12</link><pubDate>Fri, 07 Aug 2020 17:04:57 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:b5e56291-2097-494f-8f6a-61dc1975074a</guid><dc:creator>Elly Meng</dc:creator><comments>https://community.appian.com/support/w/kb/1891/kb-2143-database-calls-fail-with-connection-has-already-been-closed-for-self-managed-environments#comments</comments><description>Revision 12 posted to Appian Knowledge Base by Elly Meng on 8/7/2020 5:04:57 PM&lt;br /&gt;
&lt;h2&gt;Symptoms&lt;/h2&gt;
&lt;p&gt;After an upgrade or after new database calls are configured for an on-premise installation, calls to the database from the application server fail and the&lt;span&gt;&amp;nbsp;following error&amp;nbsp;is seen in the application server log:&lt;/span&gt;&lt;/p&gt;
&lt;pre class="code-java"&gt;ERROR org.hibernate.transaction.JDBCTransaction - Could not toggle autocommit
java.sql.SQLException: Connection has already been closed.&lt;/pre&gt;
&lt;h2&gt;Cause&lt;/h2&gt;
&lt;p&gt;&lt;span&gt;Databases have a default timeout period after which connections are deemed &amp;quot;idle&amp;quot; and terminated, causing the a&lt;/span&gt;pplication server to be unable to make calls to the database.&lt;/p&gt;
&lt;h2&gt;Action&lt;/h2&gt;
&lt;p&gt;&lt;span&gt;Increase the value of&amp;nbsp; &lt;code&gt;removeAbandonedTimeOut&amp;nbsp;&lt;/code&gt;&lt;/span&gt;in&amp;nbsp;&lt;strong&gt;tomcat-resources.xml&amp;nbsp;&lt;/strong&gt;so that it is set to the longest running query your application may have.&lt;/p&gt;
&lt;h2&gt;Affected Versions&lt;/h2&gt;
&lt;p&gt;This article applies to Appian&amp;nbsp;19.1 and later.&lt;/p&gt;
&lt;p&gt;Last Reviewed: August 2020&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;

&lt;div style="font-size: 90%;"&gt;Tags: database, application server, timeout, upgrade, infrastructure&lt;/div&gt;
</description></item><item><title>SP-4611 Database calls fail with "Connection has already been closed" for on-premise installations</title><link>https://community.appian.com/support/w/kb/1891/kb-2143-database-calls-fail-with-connection-has-already-been-closed-for-self-managed-environments/revision/11</link><pubDate>Fri, 07 Aug 2020 16:57:06 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:b5e56291-2097-494f-8f6a-61dc1975074a</guid><dc:creator>Elly Meng</dc:creator><comments>https://community.appian.com/support/w/kb/1891/kb-2143-database-calls-fail-with-connection-has-already-been-closed-for-self-managed-environments#comments</comments><description>Revision 11 posted to Appian Knowledge Base by Elly Meng on 8/7/2020 4:57:06 PM&lt;br /&gt;
&lt;h2&gt;Symptoms&lt;/h2&gt;
&lt;p&gt;After an upgrade or after new database calls are configured for an on-premise installation, calls to the database from the application server fail and the&lt;span&gt;&amp;nbsp;following error&amp;nbsp;is seen in the application server log:&lt;/span&gt;&lt;/p&gt;
&lt;pre class="code-java"&gt;ERROR org.hibernate.transaction.JDBCTransaction - Could not toggle autocommit
java.sql.SQLException: Connection has already been closed.&lt;/pre&gt;
&lt;h2&gt;Cause&lt;/h2&gt;
&lt;p&gt;&lt;span&gt;Databases have a default timeout period after which connections are deemed &amp;quot;idle&amp;quot; and terminated, causing the a&lt;/span&gt;pplication server to be unable to make calls to the database.&lt;/p&gt;
&lt;h2&gt;Action&lt;/h2&gt;
&lt;p&gt;&lt;span&gt;Increase the value of&amp;nbsp; &lt;code&gt;removeAbandonedTimeOut&amp;nbsp;&lt;/code&gt;&lt;/span&gt;in&amp;nbsp;&lt;strong&gt;tomcat-resources.xml&amp;nbsp;&lt;/strong&gt;so that it is set to the longest running query your application may have.&lt;/p&gt;
&lt;h2&gt;Affected Versions&lt;/h2&gt;
&lt;p&gt;This article applies to Appian&amp;nbsp;19.1 and later.&lt;/p&gt;
&lt;p&gt;Last Reviewed: August 2020&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;

&lt;div style="font-size: 90%;"&gt;Tags: database, application server, timeout, upgrade, infrastructure&lt;/div&gt;
</description></item><item><title>SP-4611 Database calls fail with "Connection has already been closed" for on-premise installations</title><link>https://community.appian.com/support/w/kb/1891/kb-2143-database-calls-fail-with-connection-has-already-been-closed-for-self-managed-environments/revision/10</link><pubDate>Fri, 07 Aug 2020 14:50:12 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:b5e56291-2097-494f-8f6a-61dc1975074a</guid><dc:creator>Elly Meng</dc:creator><comments>https://community.appian.com/support/w/kb/1891/kb-2143-database-calls-fail-with-connection-has-already-been-closed-for-self-managed-environments#comments</comments><description>Revision 10 posted to Appian Knowledge Base by Elly Meng on 8/7/2020 2:50:12 PM&lt;br /&gt;
&lt;h2&gt;Symptoms&lt;/h2&gt;
&lt;p&gt;After an upgrade for an on-premise installation, calls to the database from the application server fail and the&lt;span&gt;&amp;nbsp;following error&amp;nbsp;is seen in the application server log:&lt;/span&gt;&lt;/p&gt;
&lt;pre class="code-java"&gt;ERROR org.hibernate.transaction.JDBCTransaction - Could not toggle autocommit
java.sql.SQLException: Connection has already been closed.&lt;/pre&gt;
&lt;h2&gt;Cause&lt;/h2&gt;
&lt;p&gt;&lt;span&gt;Databases have a default timeout period after which idle connections are terminated, causing the a&lt;/span&gt;pplication server to be unable to make calls to the database.&lt;/p&gt;
&lt;h2&gt;Action&lt;/h2&gt;
&lt;p&gt;&lt;span&gt;Increase the value of&amp;nbsp; &lt;code&gt;removeAbandonedTimeOut&amp;nbsp;&lt;/code&gt;&lt;/span&gt;in&amp;nbsp;&lt;strong&gt;tomcat-resources.xml&lt;/strong&gt;.&lt;/p&gt;
&lt;h2&gt;Affected Versions&lt;/h2&gt;
&lt;p&gt;This article applies to Appian&amp;nbsp;19.1 and later.&lt;/p&gt;
&lt;p&gt;Last Reviewed: August 2020&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;

&lt;div style="font-size: 90%;"&gt;Tags: database, application server, upgrade, infrastructure&lt;/div&gt;
</description></item><item><title>SP-4611 Database calls fail with "Connection has already been closed" for on-premise installations</title><link>https://community.appian.com/support/w/kb/1891/kb-2143-database-calls-fail-with-connection-has-already-been-closed-for-self-managed-environments/revision/9</link><pubDate>Tue, 14 Jul 2020 17:29:51 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:b5e56291-2097-494f-8f6a-61dc1975074a</guid><dc:creator>Kritesh Arora</dc:creator><comments>https://community.appian.com/support/w/kb/1891/kb-2143-database-calls-fail-with-connection-has-already-been-closed-for-self-managed-environments#comments</comments><description>Revision 9 posted to Appian Knowledge Base by Kritesh Arora on 7/14/2020 5:29:51 PM&lt;br /&gt;
&lt;h2&gt;Symptoms&lt;/h2&gt;
&lt;p&gt;Calls to the database from the app server fail after an upgrade for an on-premise installation.&amp;nbsp;&lt;span&gt;The following error can be seen in the application server log:&lt;/span&gt;&lt;/p&gt;
&lt;pre class="code-java"&gt;ERROR org.hibernate.transaction.JDBCTransaction - Could not toggle autocommit
java.sql.SQLException: Connection has already been closed.&lt;/pre&gt;
&lt;h2&gt;Cause&lt;/h2&gt;
&lt;p&gt;&lt;span&gt;Databases have a default timeout period after which idle connections are terminated, causing the a&lt;/span&gt;pp server to be unable to make calls to the database.&lt;/p&gt;
&lt;h2&gt;Action&lt;/h2&gt;
&lt;p&gt;&lt;span&gt;Increase the value of&amp;nbsp; &lt;code&gt;removeAbandonedTimeOut&amp;nbsp;&lt;/code&gt;&lt;/span&gt;in&amp;nbsp;&lt;strong&gt;tomcat-resources.xml&lt;/strong&gt;.&lt;/p&gt;
&lt;h2&gt;Affected Versions&lt;/h2&gt;
&lt;p&gt;This article applies to Appian&amp;nbsp;19.1 and later.&lt;/p&gt;
&lt;p&gt;Last Reviewed: June 2020&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;

&lt;div style="font-size: 90%;"&gt;Tags: database, application server, upgrade, infrastructure&lt;/div&gt;
</description></item><item><title>SP-4611 Database calls fail with "Connection has already been closed" for on-premise installations</title><link>https://community.appian.com/support/w/kb/1891/kb-2143-database-calls-fail-with-connection-has-already-been-closed-for-self-managed-environments/revision/8</link><pubDate>Tue, 14 Jul 2020 17:29:15 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:b5e56291-2097-494f-8f6a-61dc1975074a</guid><dc:creator>Kritesh Arora</dc:creator><comments>https://community.appian.com/support/w/kb/1891/kb-2143-database-calls-fail-with-connection-has-already-been-closed-for-self-managed-environments#comments</comments><description>Revision 8 posted to Appian Knowledge Base by Kritesh Arora on 7/14/2020 5:29:15 PM&lt;br /&gt;
&lt;h2&gt;Symptoms&lt;/h2&gt;
&lt;p&gt;Calls to the database from the app server fail after an upgrade or migration to another virtual machine or server for an on-premise installation.&amp;nbsp;&lt;span&gt;The following error can be seen in the application server log:&lt;/span&gt;&lt;/p&gt;
&lt;pre class="code-java"&gt;ERROR org.hibernate.transaction.JDBCTransaction - Could not toggle autocommit
java.sql.SQLException: Connection has already been closed.&lt;/pre&gt;
&lt;h2&gt;Cause&lt;/h2&gt;
&lt;p&gt;&lt;span&gt;Databases have a default timeout period after which idle connections are terminated, causing the a&lt;/span&gt;pp server to be unable to make calls to the database.&lt;/p&gt;
&lt;h2&gt;Action&lt;/h2&gt;
&lt;p&gt;&lt;span&gt;Increase the value of&amp;nbsp; &lt;code&gt;removeAbandonedTimeOut&amp;nbsp;&lt;/code&gt;&lt;/span&gt;in&amp;nbsp;&lt;strong&gt;tomcat-resources.xml&lt;/strong&gt;.&lt;/p&gt;
&lt;h2&gt;Affected Versions&lt;/h2&gt;
&lt;p&gt;This article applies to Appian&amp;nbsp;19.1 and later.&lt;/p&gt;
&lt;p&gt;Last Reviewed: June 2020&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;

&lt;div style="font-size: 90%;"&gt;Tags: database, application server, upgrade, infrastructure&lt;/div&gt;
</description></item><item><title>SP-4611 Database calls fail with "Connection has already been closed" for on-premise installations</title><link>https://community.appian.com/support/w/kb/1891/kb-2143-database-calls-fail-with-connection-has-already-been-closed-for-self-managed-environments/revision/7</link><pubDate>Mon, 29 Jun 2020 21:29:40 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:b5e56291-2097-494f-8f6a-61dc1975074a</guid><dc:creator>Rebecca Jonas</dc:creator><comments>https://community.appian.com/support/w/kb/1891/kb-2143-database-calls-fail-with-connection-has-already-been-closed-for-self-managed-environments#comments</comments><description>Revision 7 posted to Appian Knowledge Base by Rebecca Jonas on 6/29/2020 9:29:40 PM&lt;br /&gt;
&lt;h2&gt;Symptoms&lt;/h2&gt;
&lt;p&gt;Calls to the database from the app server fail after an upgrade or migration for an on-premise installation.&amp;nbsp;&lt;span&gt;The following error can be seen in the application server log:&lt;/span&gt;&lt;/p&gt;
&lt;pre class="code-java"&gt;ERROR org.hibernate.transaction.JDBCTransaction - Could not toggle autocommit
java.sql.SQLException: Connection has already been closed.&lt;/pre&gt;
&lt;h2&gt;Cause&lt;/h2&gt;
&lt;p&gt;&lt;span&gt;Databases have a default timeout period after which idle connections are terminated, causing the a&lt;/span&gt;pp server to be unable to make calls to the database.&lt;/p&gt;
&lt;h2&gt;Action&lt;/h2&gt;
&lt;p&gt;&lt;span&gt;Increase the value of&amp;nbsp; &lt;code&gt;removeAbandonedTimeOut&amp;nbsp;&lt;/code&gt;&lt;/span&gt;in&amp;nbsp;&lt;strong&gt;tomcat-resources.xml&lt;/strong&gt;.&lt;/p&gt;
&lt;h2&gt;Affected Versions&lt;/h2&gt;
&lt;p&gt;This article applies to Appian&amp;nbsp;19.1 and later.&lt;/p&gt;
&lt;p&gt;Last Reviewed: June 2020&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;

&lt;div style="font-size: 90%;"&gt;Tags: database, application server, upgrade, infrastructure&lt;/div&gt;
</description></item><item><title>SP-4611 Database calls fail with "Connection has already been closed" for on-premise installations</title><link>https://community.appian.com/support/w/kb/1891/kb-2143-database-calls-fail-with-connection-has-already-been-closed-for-self-managed-environments/revision/6</link><pubDate>Mon, 29 Jun 2020 21:29:13 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:b5e56291-2097-494f-8f6a-61dc1975074a</guid><dc:creator>Rebecca Jonas</dc:creator><comments>https://community.appian.com/support/w/kb/1891/kb-2143-database-calls-fail-with-connection-has-already-been-closed-for-self-managed-environments#comments</comments><description>Revision 6 posted to Appian Knowledge Base by Rebecca Jonas on 6/29/2020 9:29:13 PM&lt;br /&gt;
&lt;h2&gt;Symptoms&lt;/h2&gt;
&lt;p&gt;Calls to the database from the app server fail after an upgrade or migration for an on-premise installation.&amp;nbsp;&lt;span&gt;The following error can be seen in the application server log:&lt;/span&gt;&lt;/p&gt;
&lt;pre class="code-java"&gt;ERROR org.hibernate.transaction.JDBCTransaction - Could not toggle autocommit
java.sql.SQLException: Connection has already been closed.&lt;/pre&gt;
&lt;h2&gt;Cause&lt;/h2&gt;
&lt;p&gt;&lt;span&gt;Databases have a default timeout period after which idle connections are terminated, causing the a&lt;/span&gt;pp server to be unable to make calls to the database.&lt;/p&gt;
&lt;h2&gt;Action&lt;/h2&gt;
&lt;p&gt;&lt;span&gt;Increase the value of&amp;nbsp; &lt;code&gt;removeAbandonedTimeOut&amp;nbsp;&lt;/code&gt;&lt;/span&gt;in&amp;nbsp;&lt;strong&gt;tomcat-resources.xml&lt;/strong&gt;.&lt;/p&gt;
&lt;h2&gt;Affected Versions&lt;/h2&gt;
&lt;p&gt;This article applies to Appian&amp;nbsp;19.1 and later.&lt;/p&gt;
&lt;p&gt;Last Reviewed: June 2020&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;

&lt;div style="font-size: 90%;"&gt;Tags: database, application server&lt;/div&gt;
</description></item><item><title>Database calls fail with "Connection has already been closed" for on-premise installations</title><link>https://community.appian.com/support/w/kb/1891/kb-2143-database-calls-fail-with-connection-has-already-been-closed-for-self-managed-environments/revision/5</link><pubDate>Mon, 29 Jun 2020 21:28:18 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:b5e56291-2097-494f-8f6a-61dc1975074a</guid><dc:creator>Rebecca Jonas</dc:creator><comments>https://community.appian.com/support/w/kb/1891/kb-2143-database-calls-fail-with-connection-has-already-been-closed-for-self-managed-environments#comments</comments><description>Revision 5 posted to Appian Knowledge Base by Rebecca Jonas on 6/29/2020 9:28:18 PM&lt;br /&gt;
&lt;h2&gt;Symptoms&lt;/h2&gt;
&lt;p&gt;Calls to the database from the app server fail after an upgrade or migration for an on-premise installation.&amp;nbsp;&lt;span&gt;The following error can be seen in the application server log:&lt;/span&gt;&lt;/p&gt;
&lt;pre class="code-java"&gt;ERROR org.hibernate.transaction.JDBCTransaction - Could not toggle autocommit
java.sql.SQLException: Connection has already been closed.&lt;/pre&gt;
&lt;h2&gt;Cause&lt;/h2&gt;
&lt;p&gt;&lt;span&gt;Databases have a default timeout period after which idle connections are terminated, causing the a&lt;/span&gt;pp server to be unable to make calls to the database.&lt;/p&gt;
&lt;h2&gt;Action&lt;/h2&gt;
&lt;p&gt;&lt;span&gt;Increase the value of&amp;nbsp; &lt;code&gt;removeAbandonedTimeOut&amp;nbsp;&lt;/code&gt;&lt;/span&gt;in&amp;nbsp;&lt;strong&gt;tomcat-resources.xml&lt;/strong&gt;.&lt;/p&gt;
&lt;h2&gt;Affected Versions&lt;/h2&gt;
&lt;p&gt;This article applies to Appian&amp;nbsp;19.1 and later.&lt;/p&gt;
&lt;p&gt;Last Reviewed: June 2020&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;

&lt;div style="font-size: 90%;"&gt;Tags: database, application server&lt;/div&gt;
</description></item><item><title>Database calls fail with "Connection has already been closed" in tomcat logs for an on-premise installation</title><link>https://community.appian.com/support/w/kb/1891/kb-2143-database-calls-fail-with-connection-has-already-been-closed-for-self-managed-environments/revision/4</link><pubDate>Mon, 29 Jun 2020 14:05:09 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:b5e56291-2097-494f-8f6a-61dc1975074a</guid><dc:creator>Kritesh Arora</dc:creator><comments>https://community.appian.com/support/w/kb/1891/kb-2143-database-calls-fail-with-connection-has-already-been-closed-for-self-managed-environments#comments</comments><description>Revision 4 posted to Appian Knowledge Base by Kritesh Arora on 6/29/2020 2:05:09 PM&lt;br /&gt;
&lt;h2&gt;Symptoms&lt;/h2&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Calls to the database from app server fail after an upgrade or migration for an on-premise installation.&amp;nbsp;&lt;span&gt;The following error can be seen in the application server log:&lt;/span&gt;&lt;/p&gt;
&lt;pre class="code-java"&gt;ERROR org.hibernate.transaction.JDBCTransaction - Could not toggle autocommit
java.sql.SQLException: Connection has already been closed.&lt;br /&gt;&lt;br /&gt;&lt;/pre&gt;
&lt;h2&gt;Cause&lt;/h2&gt;
&lt;p&gt;&lt;span&gt;&amp;nbsp;Databases have a default timeout period after which it terminates idle connections, causing a&lt;/span&gt;pp server to not be able to make calls to the database.&lt;/p&gt;
&lt;h2&gt;Action&lt;/h2&gt;
&lt;p&gt;&lt;span&gt;Increase the value of&amp;nbsp; &lt;code&gt;removeAbandonedTimeOut&amp;nbsp;&lt;/code&gt;&lt;/span&gt;in the&amp;nbsp;&lt;strong&gt;tomcat-resources.xml&lt;/strong&gt;.&lt;/p&gt;
&lt;h2&gt;Affected Versions&lt;/h2&gt;
&lt;p&gt;This article applies to Appian&amp;nbsp;19.1 and later.&lt;/p&gt;
&lt;p&gt;Last Reviewed: June 2020&lt;/p&gt;
&lt;div class="code panel"&gt;&lt;/div&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;

&lt;div style="font-size: 90%;"&gt;Tags: database, application server&lt;/div&gt;
</description></item><item><title>Database calls fail with "Connection has already been closed" in tomcat logs</title><link>https://community.appian.com/support/w/kb/1891/kb-2143-database-calls-fail-with-connection-has-already-been-closed-for-self-managed-environments/revision/3</link><pubDate>Mon, 29 Jun 2020 14:02:14 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:b5e56291-2097-494f-8f6a-61dc1975074a</guid><dc:creator>Kritesh Arora</dc:creator><comments>https://community.appian.com/support/w/kb/1891/kb-2143-database-calls-fail-with-connection-has-already-been-closed-for-self-managed-environments#comments</comments><description>Revision 3 posted to Appian Knowledge Base by Kritesh Arora on 6/29/2020 2:02:14 PM&lt;br /&gt;
&lt;h2&gt;Symptoms&lt;/h2&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Calls to the database from app server fail after an upgrade or migration.&amp;nbsp;&lt;span&gt;The following error can be seen in the application server log:&lt;/span&gt;&lt;/p&gt;
&lt;pre class="code-java"&gt;ERROR org.hibernate.transaction.JDBCTransaction - Could not toggle autocommit
java.sql.SQLException: Connection has already been closed.&lt;br /&gt;&lt;br /&gt;&lt;/pre&gt;
&lt;h2&gt;Cause&lt;/h2&gt;
&lt;p&gt;&lt;span&gt;&amp;nbsp;Databases have a default timeout period after which it terminates idle connections, causing a&lt;/span&gt;pp server to not be able to make calls to the database.&lt;/p&gt;
&lt;h2&gt;Action&lt;/h2&gt;
&lt;p&gt;&lt;span&gt;Increase the value of&amp;nbsp; &lt;code&gt;removeAbandonedTimeOut&amp;nbsp;&lt;/code&gt;&lt;/span&gt;in the&amp;nbsp;&lt;strong&gt;tomcat-resources.xml&lt;/strong&gt;.&lt;/p&gt;
&lt;h2&gt;Affected Versions&lt;/h2&gt;
&lt;p&gt;This article applies to Appian&amp;nbsp;19.1 and later.&lt;/p&gt;
&lt;p&gt;Last Reviewed: June 2020&lt;/p&gt;
&lt;div class="code panel"&gt;&lt;/div&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;

&lt;div style="font-size: 90%;"&gt;Tags: database, application server&lt;/div&gt;
</description></item><item><title>Database calls fail with "Connection has already been closed" in tomcat logs</title><link>https://community.appian.com/support/w/kb/1891/kb-2143-database-calls-fail-with-connection-has-already-been-closed-for-self-managed-environments/revision/2</link><pubDate>Mon, 29 Jun 2020 14:00:31 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:b5e56291-2097-494f-8f6a-61dc1975074a</guid><dc:creator>Kritesh Arora</dc:creator><comments>https://community.appian.com/support/w/kb/1891/kb-2143-database-calls-fail-with-connection-has-already-been-closed-for-self-managed-environments#comments</comments><description>Revision 2 posted to Appian Knowledge Base by Kritesh Arora on 6/29/2020 2:00:31 PM&lt;br /&gt;
&lt;h2&gt;Symptoms&lt;/h2&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Calls to the database from app server fail after an upgrade or migration.&amp;nbsp;&lt;span&gt;The following error can be seen in the application server log:&lt;/span&gt;&lt;/p&gt;
&lt;pre class="code-java"&gt;ERROR org.hibernate.transaction.JDBCTransaction - Could not toggle autocommit
java.sql.SQLException: Connection has already been closed.&lt;br /&gt;&lt;br /&gt;&lt;/pre&gt;
&lt;h2&gt;Cause&lt;/h2&gt;
&lt;p&gt;&lt;span&gt;&amp;nbsp;Databases have a default timeout period after which it terminates idle connections, causing a&lt;/span&gt;pp server to not be able to make calls to the database.&lt;/p&gt;
&lt;h2&gt;Action&lt;/h2&gt;
&lt;p&gt;&lt;span&gt;Increase the value of&amp;nbsp; removeAbandonedTimeOut&amp;nbsp;&lt;/span&gt;in the&amp;nbsp;&lt;strong&gt;tomcat-resources.xml&lt;/strong&gt;.&lt;/p&gt;
&lt;h2&gt;Affected Versions&lt;/h2&gt;
&lt;p&gt;This article applies to Appian&amp;nbsp;19.1 and later.&lt;/p&gt;
&lt;p&gt;Last Reviewed: June 2020&lt;/p&gt;
&lt;div class="code panel"&gt;&lt;/div&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;

&lt;div style="font-size: 90%;"&gt;Tags: database, application server&lt;/div&gt;
</description></item><item><title>Database calls fail with "Connection has already been closed" in tomcat logs</title><link>https://community.appian.com/support/w/kb/1891/kb-2143-database-calls-fail-with-connection-has-already-been-closed-for-self-managed-environments/revision/1</link><pubDate>Mon, 29 Jun 2020 13:59:39 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:b5e56291-2097-494f-8f6a-61dc1975074a</guid><dc:creator>Kritesh Arora</dc:creator><comments>https://community.appian.com/support/w/kb/1891/kb-2143-database-calls-fail-with-connection-has-already-been-closed-for-self-managed-environments#comments</comments><description>Revision 1 posted to Appian Knowledge Base by Kritesh Arora on 6/29/2020 1:59:39 PM&lt;br /&gt;
&lt;h2&gt;Symptoms&lt;/h2&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Calls to the database from app server fail after an upgrade or migration.&amp;nbsp;&lt;span&gt;The following error can be seen in the application server log:&lt;/span&gt;&lt;/p&gt;
&lt;pre class="code-java"&gt;ERROR org.hibernate.transaction.JDBCTransaction - Could not toggle autocommit
java.sql.SQLException: Connection has already been closed.&lt;br /&gt;&lt;br /&gt;&lt;/pre&gt;
&lt;h2&gt;Cause&lt;/h2&gt;
&lt;p&gt;&lt;span&gt;&amp;nbsp;Databases have a default timeout period after which it terminates idle connections, causing a&lt;/span&gt;pp server to not be able to make calls to the database.&lt;/p&gt;
&lt;h2&gt;Action&lt;/h2&gt;
&lt;p&gt;&lt;span&gt;Increase the value of&amp;nbsp; removeAbandonedTimeOut&amp;nbsp;&lt;/span&gt;in the&amp;nbsp;&lt;strong&gt;tomcat-resources.xml&lt;/strong&gt;.&lt;/p&gt;
&lt;h2&gt;Affected Versions&lt;/h2&gt;
&lt;p&gt;This article applies to Appian&amp;nbsp;19.1 and later.&lt;/p&gt;
&lt;p&gt;Last Reviewed: June 2020&lt;/p&gt;
&lt;div class="code panel"&gt;&lt;/div&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;
</description></item></channel></rss>