<?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-1930 "Unexpected exception resolving reference" error after upgrading to Appian version 18.3 and later</title><link>https://community.appian.com/support/w/kb/1432/kb-1930-unexpected-exception-resolving-reference-error-after-upgrading-to-appian-version-18-3-and-later</link><description /><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>KB-1930 "Unexpected exception resolving reference" error after upgrading to Appian version 18.3 and later</title><link>https://community.appian.com/support/w/kb/1432/kb-1930-unexpected-exception-resolving-reference-error-after-upgrading-to-appian-version-18-3-and-later</link><pubDate>Mon, 06 May 2019 07:26:40 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:42a86159-bde3-47b1-bda2-b62f871891e1</guid><dc:creator>Parmida Borhani</dc:creator><comments>https://community.appian.com/support/w/kb/1432/kb-1930-unexpected-exception-resolving-reference-error-after-upgrading-to-appian-version-18-3-and-later#comments</comments><description>Current Revision posted to Appian Knowledge Base by Parmida Borhani on 5/6/2019 7:26:40 AM&lt;br /&gt;
&lt;h2&gt;&lt;span style="font-weight:400;"&gt;Symptoms&lt;/span&gt;&lt;/h2&gt;
&lt;p&gt;&lt;span style="font-weight:400;"&gt;An issue with decoding the data source password occurs when starting Tomcat after an upgrade from Appian 18.2 and earlier to Appian 18.3 and later.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;When starting up Tomcat for the first time, the following warning is logged&amp;nbsp;in the application server log:&lt;/p&gt;
&lt;pre&gt;WARNING [HOSTNAME-startStop-1] org.apache.naming.NamingContext.lookup Unexpected exception resolving reference&lt;br /&gt;&amp;nbsp;javax.crypto.BadPaddingException: Given final block not properly padded. Such issues can arise if a bad key is used during decryption.&lt;/pre&gt;
&lt;h2&gt;&lt;span style="font-weight:400;"&gt;Cause&lt;/span&gt;&lt;/h2&gt;
&lt;p&gt;T&lt;span style="font-family:inherit;"&gt;his occurs when there is an issue decoding the password field in &lt;/span&gt;the &lt;code&gt;&amp;lt;APPIAN_HOME&amp;gt;/tomcat/apache-tomcat/tomcatResources.xml&lt;/code&gt; file.&lt;/p&gt;
&lt;h2&gt;&lt;span style="font-weight:400;"&gt;Action&lt;/span&gt;&lt;/h2&gt;
&lt;p&gt;&lt;span style="font-weight:400;"&gt;Use the Configure Script to &lt;a href="https://docs.appian.com/suite/help/latest/Configure_Script.html#encoding-passwords-for-use-in-data-source-configurations"&gt;encode&amp;nbsp;the data source password&lt;/a&gt; and use the output to fill in the &lt;a href="https://docs.appian.com/suite/help/latest/Configuring_Relational_Databases.html#provide-data-source-connection-information"&gt;password property&lt;/a&gt; in&lt;/span&gt; the &lt;span style="font-weight:400;"&gt;&lt;code&gt;&amp;lt;APPIAN_HOME&amp;gt;/tomcat/apache-tomcat/tomcatResources.xml&lt;/code&gt; file.&lt;/span&gt;&lt;/p&gt;
&lt;h2&gt;&lt;span style="font-weight:400;"&gt;Affected Versions&lt;/span&gt;&lt;/h2&gt;
&lt;p&gt;&lt;span style="font-weight:400;"&gt;This article applies to Appian 18.3 and later.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-weight:400;"&gt;Last Reviewed: May 2019&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;

&lt;div style="font-size: 90%;"&gt;Tags: Tomcat, installation, application server, upgrade&lt;/div&gt;
</description></item><item><title>DRAFT KB-XXXX "Unexpected exception resolving reference" error after upgrading to Appian version 18.3 and later</title><link>https://community.appian.com/support/w/kb/1432/kb-1930-unexpected-exception-resolving-reference-error-after-upgrading-to-appian-version-18-3-and-later/revision/13</link><pubDate>Mon, 06 May 2019 00:51:15 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:42a86159-bde3-47b1-bda2-b62f871891e1</guid><dc:creator>Tom Ryan</dc:creator><comments>https://community.appian.com/support/w/kb/1432/kb-1930-unexpected-exception-resolving-reference-error-after-upgrading-to-appian-version-18-3-and-later#comments</comments><description>Revision 13 posted to Appian Knowledge Base by Tom Ryan on 5/6/2019 12:51:15 AM&lt;br /&gt;
&lt;h2&gt;&lt;span style="font-weight:400;"&gt;Symptoms&lt;/span&gt;&lt;/h2&gt;
&lt;p&gt;&lt;span style="font-weight:400;"&gt;An issue with decoding the data source password occurs when starting Tomcat after an upgrade from Appian 18.2 and earlier to Appian 18.3 and later.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;When starting up Tomcat for the first time, the following warning is logged&amp;nbsp;in the application server log:&lt;/p&gt;
&lt;pre&gt;WARNING [HOSTNAME-startStop-1] org.apache.naming.NamingContext.lookup Unexpected exception resolving reference&lt;br /&gt;&amp;nbsp;javax.crypto.BadPaddingException: Given final block not properly padded. Such issues can arise if a bad key is used during decryption.&lt;/pre&gt;
&lt;h2&gt;&lt;span style="font-weight:400;"&gt;Cause&lt;/span&gt;&lt;/h2&gt;
&lt;p&gt;T&lt;span style="font-family:inherit;"&gt;his occurs when there is an issue decoding the password field in &lt;/span&gt;the &lt;code&gt;&amp;lt;APPIAN_HOME&amp;gt;/tomcat/apache-tomcat/tomcatResources.xml&lt;/code&gt; file.&lt;/p&gt;
&lt;h2&gt;&lt;span style="font-weight:400;"&gt;Action&lt;/span&gt;&lt;/h2&gt;
&lt;p&gt;&lt;span style="font-weight:400;"&gt;Use the Configure Script to &lt;a href="https://docs.appian.com/suite/help/latest/Configure_Script.html#encoding-passwords-for-use-in-data-source-configurations"&gt;encode&amp;nbsp;the data source password&lt;/a&gt; and use the output to fill in the &lt;a href="https://docs.appian.com/suite/help/latest/Configuring_Relational_Databases.html#provide-data-source-connection-information"&gt;password property&lt;/a&gt; in&lt;/span&gt; the &lt;span style="font-weight:400;"&gt;&lt;code&gt;&amp;lt;APPIAN_HOME&amp;gt;/tomcat/apache-tomcat/tomcatResources.xml&lt;/code&gt; file.&lt;/span&gt;&lt;/p&gt;
&lt;h2&gt;&lt;span style="font-weight:400;"&gt;Affected Versions&lt;/span&gt;&lt;/h2&gt;
&lt;p&gt;&lt;span style="font-weight:400;"&gt;This article applies to Appian 18.3 and later.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-weight:400;"&gt;Last Reviewed: May 2019&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;

&lt;div style="font-size: 90%;"&gt;Tags: Tomcat, installation, application server, upgrade&lt;/div&gt;
</description></item><item><title>DRAFT KB-XXXX "Unexpected exception resolving reference" error after upgrading to Appian version 18.3 and later</title><link>https://community.appian.com/support/w/kb/1432/kb-1930-unexpected-exception-resolving-reference-error-after-upgrading-to-appian-version-18-3-and-later/revision/12</link><pubDate>Fri, 03 May 2019 13:40:27 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:42a86159-bde3-47b1-bda2-b62f871891e1</guid><dc:creator>Jordan Horwat</dc:creator><comments>https://community.appian.com/support/w/kb/1432/kb-1930-unexpected-exception-resolving-reference-error-after-upgrading-to-appian-version-18-3-and-later#comments</comments><description>Revision 12 posted to Appian Knowledge Base by Jordan Horwat on 5/3/2019 1:40:27 PM&lt;br /&gt;
&lt;h2&gt;&lt;span style="font-weight:400;"&gt;Symptoms&lt;/span&gt;&lt;/h2&gt;
&lt;p&gt;&lt;span style="font-weight:400;"&gt;An issue with a bad key encryption occurs when starting Tomcat after an upgrade from Appian 18.2 and earlier to Appian 18.3 and later.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;When starting up Tomcat for the first time, the following warning is logged&amp;nbsp;in the application server log:&lt;/p&gt;
&lt;pre&gt;WARNING [HOSTNAME-startStop-1] org.apache.naming.NamingContext.lookup Unexpected exception resolving reference&lt;br /&gt;&amp;nbsp;javax.crypto.BadPaddingException: Given final block not properly padded. Such issues can arise if a bad key is used during decryption.&lt;/pre&gt;
&lt;h2&gt;&lt;span style="font-weight:400;"&gt;Cause&lt;/span&gt;&lt;/h2&gt;
&lt;p&gt;T&lt;span style="font-family:inherit;"&gt;his occurs when the wrong encryption for the p&lt;/span&gt;assword section is used within the &lt;code&gt;&amp;lt;APPIAN_HOME&amp;gt;/tomcat/apache-tomcat/tomcatResources.xml&lt;/code&gt; file.&lt;/p&gt;
&lt;h2&gt;&lt;span style="font-weight:400;"&gt;Action&lt;/span&gt;&lt;/h2&gt;
&lt;p&gt;&lt;span style="font-weight:400;"&gt;Use the Configure Script to &lt;a href="https://docs.appian.com/suite/help/latest/Configure_Script.html#encoding-passwords-for-use-in-data-source-configurations"&gt;encode&amp;nbsp;the data source password&lt;/a&gt; and use the output to fill in the &lt;a href="https://docs.appian.com/suite/help/latest/Configuring_Relational_Databases.html#provide-data-source-connection-information"&gt;password property&lt;/a&gt; in&lt;/span&gt; the &lt;span style="font-weight:400;"&gt;&lt;code&gt;&amp;lt;APPIAN_HOME&amp;gt;/tomcat/apache-tomcat/tomcatResources.xml&lt;/code&gt; file.&lt;/span&gt;&lt;/p&gt;
&lt;h2&gt;&lt;span style="font-weight:400;"&gt;Affected Versions&lt;/span&gt;&lt;/h2&gt;
&lt;p&gt;&lt;span style="font-weight:400;"&gt;This article applies to Appian 18.3 and later.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-weight:400;"&gt;Last Reviewed: May 2019&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;

&lt;div style="font-size: 90%;"&gt;Tags: Tomcat, installation, application server, upgrade&lt;/div&gt;
</description></item><item><title>Unexpected exception resolving reference error occurring after upgrading to Appian versions 18.3 and later</title><link>https://community.appian.com/support/w/kb/1432/kb-1930-unexpected-exception-resolving-reference-error-after-upgrading-to-appian-version-18-3-and-later/revision/11</link><pubDate>Fri, 03 May 2019 13:39:22 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:42a86159-bde3-47b1-bda2-b62f871891e1</guid><dc:creator>Jordan Horwat</dc:creator><comments>https://community.appian.com/support/w/kb/1432/kb-1930-unexpected-exception-resolving-reference-error-after-upgrading-to-appian-version-18-3-and-later#comments</comments><description>Revision 11 posted to Appian Knowledge Base by Jordan Horwat on 5/3/2019 1:39:22 PM&lt;br /&gt;
&lt;h2&gt;&lt;span style="font-weight:400;"&gt;Symptoms&lt;/span&gt;&lt;/h2&gt;
&lt;p&gt;&lt;span style="font-weight:400;"&gt;An issue with a bad key encryption occurs when starting Tomcat after an upgrade from Appian 18.2 and earlier to Appian 18.3 and later.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;When starting up Tomcat for the first time, the following warning is logged&amp;nbsp;in the application server log:&lt;/p&gt;
&lt;pre&gt;WARNING [HOSTNAME-startStop-1] org.apache.naming.NamingContext.lookup Unexpected exception resolving reference&lt;br /&gt;&amp;nbsp;javax.crypto.BadPaddingException: Given final block not properly padded. Such issues can arise if a bad key is used during decryption.&lt;/pre&gt;
&lt;h2&gt;&lt;span style="font-weight:400;"&gt;Cause&lt;/span&gt;&lt;/h2&gt;
&lt;p&gt;T&lt;span style="font-family:inherit;"&gt;his occurs when the wrong encryption for the p&lt;/span&gt;assword section is used within the &lt;code&gt;&amp;lt;APPIAN_HOME&amp;gt;/tomcat/apache-tomcat/tomcatResources.xml&lt;/code&gt; file.&lt;/p&gt;
&lt;h2&gt;&lt;span style="font-weight:400;"&gt;Action&lt;/span&gt;&lt;/h2&gt;
&lt;p&gt;&lt;span style="font-weight:400;"&gt;Use the Configure Script to &lt;a href="https://docs.appian.com/suite/help/latest/Configure_Script.html#encoding-passwords-for-use-in-data-source-configurations"&gt;encode&amp;nbsp;the data source password&lt;/a&gt; and use the output to fill in the &lt;a href="https://docs.appian.com/suite/help/latest/Configuring_Relational_Databases.html#provide-data-source-connection-information"&gt;password property&lt;/a&gt; in&lt;/span&gt; the &lt;span style="font-weight:400;"&gt;&lt;code&gt;&amp;lt;APPIAN_HOME&amp;gt;/tomcat/apache-tomcat/tomcatResources.xml&lt;/code&gt; file.&lt;/span&gt;&lt;/p&gt;
&lt;h2&gt;&lt;span style="font-weight:400;"&gt;Affected Versions&lt;/span&gt;&lt;/h2&gt;
&lt;p&gt;&lt;span style="font-weight:400;"&gt;This article applies to Appian 18.3 and later.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-weight:400;"&gt;Last Reviewed: May 2019&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;

&lt;div style="font-size: 90%;"&gt;Tags: Tomcat, installation, application server, upgrade&lt;/div&gt;
</description></item><item><title>Unexpected exception resolving reference error occurring after upgrading to Appian versions 18.3 and later</title><link>https://community.appian.com/support/w/kb/1432/kb-1930-unexpected-exception-resolving-reference-error-after-upgrading-to-appian-version-18-3-and-later/revision/10</link><pubDate>Fri, 03 May 2019 00:36:10 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:42a86159-bde3-47b1-bda2-b62f871891e1</guid><dc:creator>Ahmad Chakhachiro</dc:creator><comments>https://community.appian.com/support/w/kb/1432/kb-1930-unexpected-exception-resolving-reference-error-after-upgrading-to-appian-version-18-3-and-later#comments</comments><description>Revision 10 posted to Appian Knowledge Base by Ahmad Chakhachiro on 5/3/2019 12:36:10 AM&lt;br /&gt;
&lt;h2&gt;&lt;span style="font-weight:400;"&gt;Symptoms&lt;/span&gt;&lt;/h2&gt;
&lt;p&gt;&lt;span style="font-weight:400;"&gt;An issue with a bad key encryption occurs when starting Tomcat after performing an upgrade of Appian from a version which required the customer to install their own application server.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;When starting up Tomcat for the first time the following warning is logged within the application server log:&lt;/p&gt;
&lt;pre&gt;WARNING [HOSTNAME-startStop-1] org.apache.naming.NamingContext.lookup Unexpected exception resolving reference&lt;br /&gt;&amp;nbsp;javax.crypto.BadPaddingException: Given final block not properly padded. Such issues can arise if a bad key is used during decryption.&lt;/pre&gt;
&lt;h2&gt;&lt;span style="font-weight:400;"&gt;Cause&lt;/span&gt;&lt;/h2&gt;
&lt;p&gt;T&lt;span style="font-family:inherit;"&gt;his occurs when using the wrong encryption for the p&lt;/span&gt;assword section within &lt;code&gt;the &amp;lt;APPIAN_HOME&amp;gt;/tomcat/apache-tomcat/tomcatResources.xml&lt;/code&gt; file.&lt;/p&gt;
&lt;h2&gt;&lt;span style="font-weight:400;"&gt;Action&lt;/span&gt;&lt;/h2&gt;
&lt;p&gt;&lt;span style="font-weight:400;"&gt;Use the Configure Script to &lt;a href="https://docs.appian.com/suite/help/latest/Configure_Script.html#encoding-passwords-for-use-in-data-source-configurations"&gt;encode your data source password&lt;/a&gt; and use the output to fill in the &lt;a href="https://docs.appian.com/suite/help/latest/Configuring_Relational_Databases.html#provide-data-source-connection-information"&gt;password property&lt;/a&gt; in &lt;code&gt;the &amp;lt;APPIAN_HOME&amp;gt;/tomcat/apache-tomcat/tomcatResources.xml&lt;/code&gt; file.&lt;/span&gt;&lt;/p&gt;
&lt;h2&gt;&lt;span style="font-weight:400;"&gt;Affected Versions&lt;/span&gt;&lt;/h2&gt;
&lt;p&gt;&lt;span style="font-weight:400;"&gt;This article applies to Appian 18.3 and later.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-weight:400;"&gt;Last Reviewed: May 2019&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;

&lt;div style="font-size: 90%;"&gt;Tags: Tomcat, installation, application server, upgrade&lt;/div&gt;
</description></item><item><title>Unexpected exception resolving reference error occurring after upgrading to Appian versions 18.3 and later</title><link>https://community.appian.com/support/w/kb/1432/kb-1930-unexpected-exception-resolving-reference-error-after-upgrading-to-appian-version-18-3-and-later/revision/9</link><pubDate>Fri, 03 May 2019 00:29:44 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:42a86159-bde3-47b1-bda2-b62f871891e1</guid><dc:creator>Ahmad Chakhachiro</dc:creator><comments>https://community.appian.com/support/w/kb/1432/kb-1930-unexpected-exception-resolving-reference-error-after-upgrading-to-appian-version-18-3-and-later#comments</comments><description>Revision 9 posted to Appian Knowledge Base by Ahmad Chakhachiro on 5/3/2019 12:29:44 AM&lt;br /&gt;
&lt;h2&gt;&lt;span style="font-weight:400;"&gt;Symptoms&lt;/span&gt;&lt;/h2&gt;
&lt;p&gt;&lt;span style="font-weight:400;"&gt;An issue with a bad key encryption occurs when starting Tomcat after performing an upgrade of Appian from a version which required the customer to install their own application server.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;When starting up Tomcat for the first time the following warning is logged within the application server log:&lt;/p&gt;
&lt;pre&gt;WARNING [HOSTNAME-startStop-1] org.apache.naming.NamingContext.lookup Unexpected exception resolving reference&lt;br /&gt;&amp;nbsp;javax.crypto.BadPaddingException: Given final block not properly padded. Such issues can arise if a bad key is used during decryption.&lt;/pre&gt;
&lt;h2&gt;&lt;span style="font-weight:400;"&gt;Cause&lt;/span&gt;&lt;/h2&gt;
&lt;p&gt;T&lt;span style="font-family:inherit;"&gt;his occurs when using the wrong encryption for the p&lt;/span&gt;assword section within &lt;code&gt;the &amp;lt;APPIAN_HOME&amp;gt;/tomcat/apache-tomcat/tomcatResources.xml&lt;/code&gt; file.&lt;/p&gt;
&lt;h2&gt;&lt;span style="font-weight:400;"&gt;Action&lt;/span&gt;&lt;/h2&gt;
&lt;p&gt;&lt;span style="font-weight:400;"&gt;Use the Configure Script to &lt;a href="https://docs.appian.com/suite/help/latest/Configure_Script.html#encoding-passwords-for-use-in-data-source-configurations"&gt;encode your data source password&lt;/a&gt; and use the output to fill in the &lt;a href="https://docs.appian.com/suite/help/latest/Configuring_Relational_Databases.html#provide-data-source-connection-information"&gt;password property&lt;/a&gt; in &lt;code&gt;the &amp;lt;APPIAN_HOME&amp;gt;/tomcat/apache-tomcat/tomcatResources.xml&lt;/code&gt; file.&lt;/span&gt;&lt;/p&gt;
&lt;h2&gt;&lt;span style="font-weight:400;"&gt;Affected Versions&lt;/span&gt;&lt;/h2&gt;
&lt;p&gt;&lt;span style="font-weight:400;"&gt;This article applies to Appian 18.3 and later.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-weight:400;"&gt;Last Reviewed: May 2019&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;

&lt;div style="font-size: 90%;"&gt;Tags: Tomcat, 19.1, 18.4, upgrade, 18.3&lt;/div&gt;
</description></item><item><title>Bad Key Encryption error occurs after upgrading to Appian versions 18.3 onwards</title><link>https://community.appian.com/support/w/kb/1432/kb-1930-unexpected-exception-resolving-reference-error-after-upgrading-to-appian-version-18-3-and-later/revision/8</link><pubDate>Thu, 02 May 2019 04:44:22 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:42a86159-bde3-47b1-bda2-b62f871891e1</guid><dc:creator>Ahmad Chakhachiro</dc:creator><comments>https://community.appian.com/support/w/kb/1432/kb-1930-unexpected-exception-resolving-reference-error-after-upgrading-to-appian-version-18-3-and-later#comments</comments><description>Revision 8 posted to Appian Knowledge Base by Ahmad Chakhachiro on 5/2/2019 4:44:22 AM&lt;br /&gt;
&lt;p&gt;An issue with a bad key encryption occurs when starting tomcat after performing an upgrade of Appian from a version which required the customer to install their own application server.&lt;/p&gt;
&lt;h2&gt;&lt;span style="font-weight:400;"&gt;Symptoms&lt;/span&gt;&lt;/h2&gt;
&lt;p&gt;When starting up tomcat for the first time the following warning is logged within the application server log:&lt;/p&gt;
&lt;pre&gt;WARNING [HOSTNAME-startStop-1] org.apache.naming.NamingContext.lookup Unexpected exception resolving reference&lt;br /&gt;&amp;nbsp;javax.crypto.BadPaddingException: Given final block not properly padded. Such issues can arise if a bad key is used during decryption.&lt;/pre&gt;
&lt;h2&gt;&lt;span style="font-weight:400;"&gt;Cause&lt;/span&gt;&lt;/h2&gt;
&lt;p&gt;T&lt;span style="font-family:inherit;"&gt;his occurs due to using the wrong encryption for the p&lt;/span&gt;assword section within your &lt;code&gt;&amp;lt;APPIAN_HOME&amp;gt;/tomcat/apache-tomcat/tomcatResources.xml&lt;/code&gt; file.&lt;/p&gt;
&lt;h2&gt;&lt;span style="font-weight:400;"&gt;Action&lt;/span&gt;&lt;/h2&gt;
&lt;p&gt;&lt;span style="font-weight:400;"&gt;Use the Configure Script to &lt;a href="https://docs.appian.com/suite/help/latest/Configure_Script.html#encoding-passwords-for-use-in-data-source-configurations"&gt;encode your data source password&lt;/a&gt; and use the output to fill in the &lt;a href="https://docs.appian.com/suite/help/latest/Configuring_Relational_Databases.html#provide-data-source-connection-information"&gt;password property&lt;/a&gt; in your &lt;code&gt;&amp;lt;APPIAN_HOME&amp;gt;/tomcat/apache-tomcat/tomcatResources.xml&lt;/code&gt; file.&lt;/span&gt;&lt;/p&gt;
&lt;h2&gt;&lt;span style="font-weight:400;"&gt;Affected Versions&lt;/span&gt;&lt;/h2&gt;
&lt;p&gt;&lt;span style="font-weight:400;"&gt;This article applies to Appian 18.3 and later.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;

&lt;div style="font-size: 90%;"&gt;Tags: Tomcat, 19.1, 18.4, upgrade, 18.3&lt;/div&gt;
</description></item><item><title>Bad Key Encryption error occurs after upgrading to Appian versions 18.3 onwards</title><link>https://community.appian.com/support/w/kb/1432/kb-1930-unexpected-exception-resolving-reference-error-after-upgrading-to-appian-version-18-3-and-later/revision/7</link><pubDate>Thu, 02 May 2019 01:30:12 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:42a86159-bde3-47b1-bda2-b62f871891e1</guid><dc:creator>Ahmad Chakhachiro</dc:creator><comments>https://community.appian.com/support/w/kb/1432/kb-1930-unexpected-exception-resolving-reference-error-after-upgrading-to-appian-version-18-3-and-later#comments</comments><description>Revision 7 posted to Appian Knowledge Base by Ahmad Chakhachiro on 5/2/2019 1:30:12 AM&lt;br /&gt;
&lt;p&gt;An issue with a bad key encryption occurs when starting tomcat after performing an upgrade of Appian from a version which required the customer to install their own application server.&lt;/p&gt;
&lt;h2&gt;&lt;span style="font-weight:400;"&gt;Symptoms&lt;/span&gt;&lt;/h2&gt;
&lt;p&gt;When starting up tomcat for the first time the following warning is logged within the application server log:&lt;/p&gt;
&lt;pre&gt;WARNING [HOSTNAME-startStop-1] org.apache.naming.NamingContext.lookup Unexpected exception resolving reference&lt;br /&gt;&amp;nbsp;javax.crypto.BadPaddingException: Given final block not properly padded. Such issues can arise if a bad key is used during decryption.&lt;/pre&gt;
&lt;h2&gt;&lt;span style="font-weight:400;"&gt;Cause&lt;/span&gt;&lt;/h2&gt;
&lt;p&gt;T&lt;span style="font-family:inherit;"&gt;his occurs due to using the wrong encryption for the p&lt;/span&gt;assword section within your &lt;code&gt;&amp;lt;APPIAN_HOME&amp;gt;/tomcat/apache-tomcat/tomcatResources.xml&lt;/code&gt; file.&lt;/p&gt;
&lt;h2&gt;&lt;span style="font-weight:400;"&gt;Action&lt;/span&gt;&lt;/h2&gt;
&lt;p&gt;&lt;span style="font-weight:400;"&gt;Use the Configure Script to &lt;a href="https://docs.appian.com/suite/help/19.1/Configure_Script.html#encoding-passwords-for-use-in-data-source-configurations" rel="noopener noreferrer" target="_blank"&gt;encode your data source password&lt;/a&gt; and use the output to fill in the &lt;a href="https://docs.appian.com/suite/help/19.1/Configuring_Relational_Databases.html#provide-data-source-connection-information"&gt;password property&lt;/a&gt; in your &lt;code&gt;&amp;lt;APPIAN_HOME&amp;gt;/tomcat/apache-tomcat/tomcatResources.xml&lt;/code&gt; file.&lt;/span&gt;&lt;/p&gt;
&lt;h2&gt;&lt;span style="font-weight:400;"&gt;Affected Versions&lt;/span&gt;&lt;/h2&gt;
&lt;p&gt;&lt;span style="font-weight:400;"&gt;This article applies to Appian 18.3 and later.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;

&lt;div style="font-size: 90%;"&gt;Tags: Tomcat, 19.1, 18.4, upgrade, 18.3&lt;/div&gt;
</description></item><item><title>Bad Key Encryption error occurs after upgrading to Appian versions 18.3 onwards</title><link>https://community.appian.com/support/w/kb/1432/kb-1930-unexpected-exception-resolving-reference-error-after-upgrading-to-appian-version-18-3-and-later/revision/6</link><pubDate>Thu, 02 May 2019 01:29:55 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:42a86159-bde3-47b1-bda2-b62f871891e1</guid><dc:creator>Ahmad Chakhachiro</dc:creator><comments>https://community.appian.com/support/w/kb/1432/kb-1930-unexpected-exception-resolving-reference-error-after-upgrading-to-appian-version-18-3-and-later#comments</comments><description>Revision 6 posted to Appian Knowledge Base by Ahmad Chakhachiro on 5/2/2019 1:29:55 AM&lt;br /&gt;
&lt;p&gt;An issue with a bad key encryption occurs when starting tomcat after performing an upgrade of Appian from a version which required the customer to install their own application server.&lt;/p&gt;
&lt;h2&gt;&lt;span style="font-weight:400;"&gt;Symptoms&lt;/span&gt;&lt;/h2&gt;
&lt;p&gt;When starting up tomcat for the first time the following warning is logged within the application server log:&lt;/p&gt;
&lt;pre&gt;WARNING [HOSTNAME-startStop-1] org.apache.naming.NamingContext.lookup Unexpected exception resolving reference&lt;br /&gt;&amp;nbsp;javax.crypto.BadPaddingException: Given final block not properly padded. Such issues can arise if a bad key is used during decryption.&lt;/pre&gt;
&lt;div&gt;WARNING [HOSTNAME-startStop-1] org.apache.naming.NamingContext.lookup Unexpected exception resolving reference&lt;br /&gt;&amp;nbsp;javax.crypto.BadPaddingException: Given final block not properly padded. Such issues can arise if a bad key is used during decryption.&lt;/div&gt;
&lt;h2&gt;&lt;span style="font-weight:400;"&gt;Cause&lt;/span&gt;&lt;/h2&gt;
&lt;p&gt;T&lt;span style="font-family:inherit;"&gt;his occurs due to using the wrong encryption for the p&lt;/span&gt;assword section within your &lt;code&gt;&amp;lt;APPIAN_HOME&amp;gt;/tomcat/apache-tomcat/tomcatResources.xml&lt;/code&gt; file.&lt;/p&gt;
&lt;h2&gt;&lt;span style="font-weight:400;"&gt;Action&lt;/span&gt;&lt;/h2&gt;
&lt;p&gt;&lt;span style="font-weight:400;"&gt;Use the Configure Script to &lt;a href="https://docs.appian.com/suite/help/19.1/Configure_Script.html#encoding-passwords-for-use-in-data-source-configurations" rel="noopener noreferrer" target="_blank"&gt;encode your data source password&lt;/a&gt; and use the output to fill in the &lt;a href="https://docs.appian.com/suite/help/19.1/Configuring_Relational_Databases.html#provide-data-source-connection-information"&gt;password property&lt;/a&gt; in your &lt;code&gt;&amp;lt;APPIAN_HOME&amp;gt;/tomcat/apache-tomcat/tomcatResources.xml&lt;/code&gt; file.&lt;/span&gt;&lt;/p&gt;
&lt;h2&gt;&lt;span style="font-weight:400;"&gt;Affected Versions&lt;/span&gt;&lt;/h2&gt;
&lt;p&gt;&lt;span style="font-weight:400;"&gt;This article applies to Appian 18.3 and later.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;

&lt;div style="font-size: 90%;"&gt;Tags: Tomcat, 19.1, 18.4, upgrade, 18.3&lt;/div&gt;
</description></item><item><title>Bad Key Encryption error occurs after upgrading to Appian versions 18.3 onwards</title><link>https://community.appian.com/support/w/kb/1432/kb-1930-unexpected-exception-resolving-reference-error-after-upgrading-to-appian-version-18-3-and-later/revision/5</link><pubDate>Thu, 02 May 2019 01:29:11 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:42a86159-bde3-47b1-bda2-b62f871891e1</guid><dc:creator>Ahmad Chakhachiro</dc:creator><comments>https://community.appian.com/support/w/kb/1432/kb-1930-unexpected-exception-resolving-reference-error-after-upgrading-to-appian-version-18-3-and-later#comments</comments><description>Revision 5 posted to Appian Knowledge Base by Ahmad Chakhachiro on 5/2/2019 1:29:11 AM&lt;br /&gt;
&lt;p&gt;An issue with a bad key encryption occurs when starting tomcat after performing an upgrade of Appian from a version which required the customer to install their own application server.&lt;/p&gt;
&lt;h2&gt;&lt;span style="font-weight:400;"&gt;Symptoms&lt;/span&gt;&lt;/h2&gt;
&lt;p&gt;When starting up tomcat for the first time the following warning is logged within the application server log:&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;WARNING [HOSTNAME-startStop-1] org.apache.naming.NamingContext.lookup Unexpected exception resolving reference&lt;br /&gt;&amp;nbsp;javax.crypto.BadPaddingException: Given final block not properly padded. Such issues can arise if a bad key is used during decryption.&lt;/p&gt;
&lt;/blockquote&gt;
&lt;h2&gt;&lt;span style="font-weight:400;"&gt;Cause&lt;/span&gt;&lt;/h2&gt;
&lt;p&gt;T&lt;span style="font-family:inherit;"&gt;his occurs due to using the wrong encryption for the p&lt;/span&gt;assword section within your &lt;code&gt;&amp;lt;APPIAN_HOME&amp;gt;/tomcat/apache-tomcat/tomcatResources.xml&lt;/code&gt; file.&lt;/p&gt;
&lt;h2&gt;&lt;span style="font-weight:400;"&gt;Action&lt;/span&gt;&lt;/h2&gt;
&lt;p&gt;&lt;span style="font-weight:400;"&gt;Use the Configure Script to &lt;a href="https://docs.appian.com/suite/help/19.1/Configure_Script.html#encoding-passwords-for-use-in-data-source-configurations" rel="noopener noreferrer" target="_blank"&gt;encode your data source password&lt;/a&gt; and use the output to fill in the &lt;a href="https://docs.appian.com/suite/help/19.1/Configuring_Relational_Databases.html#provide-data-source-connection-information"&gt;password property&lt;/a&gt; in your &lt;code&gt;&amp;lt;APPIAN_HOME&amp;gt;/tomcat/apache-tomcat/tomcatResources.xml&lt;/code&gt; file.&lt;/span&gt;&lt;/p&gt;
&lt;h2&gt;&lt;span style="font-weight:400;"&gt;Affected Versions&lt;/span&gt;&lt;/h2&gt;
&lt;p&gt;&lt;span style="font-weight:400;"&gt;This article applies to Appian 18.3 and later.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;

&lt;div style="font-size: 90%;"&gt;Tags: Tomcat, 19.1, 18.4, upgrade, 18.3&lt;/div&gt;
</description></item><item><title>Bad Key Encryption error occurs after upgrading to Appian versions 18.3 onwards</title><link>https://community.appian.com/support/w/kb/1432/kb-1930-unexpected-exception-resolving-reference-error-after-upgrading-to-appian-version-18-3-and-later/revision/4</link><pubDate>Thu, 02 May 2019 01:26:38 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:42a86159-bde3-47b1-bda2-b62f871891e1</guid><dc:creator>Ahmad Chakhachiro</dc:creator><comments>https://community.appian.com/support/w/kb/1432/kb-1930-unexpected-exception-resolving-reference-error-after-upgrading-to-appian-version-18-3-and-later#comments</comments><description>Revision 4 posted to Appian Knowledge Base by Ahmad Chakhachiro on 5/2/2019 1:26:38 AM&lt;br /&gt;
&lt;p&gt;An issue with a bad key encryption occurs when starting tomcat after performing an upgrade of Appian from a version which required the customer to install their own application server.&lt;/p&gt;
&lt;h2&gt;&lt;span style="font-weight:400;"&gt;Symptoms&lt;/span&gt;&lt;/h2&gt;
&lt;p&gt;When starting up tomcat for the first time the following warning is logged within the application server log:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;WARNING [HOSTNAME-startStop-1] org.apache.naming.NamingContext.lookup Unexpected exception resolving reference
 javax.crypto.BadPaddingException: Given final block not properly padded. Such issues can arise if a bad key is used during decryption.&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;h2&gt;&lt;span style="font-weight:400;"&gt;Cause&lt;/span&gt;&lt;/h2&gt;
&lt;p&gt;T&lt;span style="font-family:inherit;"&gt;his occurs due to using the wrong encryption for the p&lt;/span&gt;assword section within your &lt;code&gt;&amp;lt;APPIAN_HOME&amp;gt;/tomcat/apache-tomcat/tomcatResources.xml&lt;/code&gt; file.&lt;/p&gt;
&lt;h2&gt;&lt;span style="font-weight:400;"&gt;Action&lt;/span&gt;&lt;/h2&gt;
&lt;p&gt;&lt;span style="font-weight:400;"&gt;Use the Configure Script to &lt;a href="https://docs.appian.com/suite/help/19.1/Configure_Script.html#encoding-passwords-for-use-in-data-source-configurations" rel="noopener noreferrer" target="_blank"&gt;encode your data source password&lt;/a&gt; and use the output to fill in the &lt;a href="https://docs.appian.com/suite/help/19.1/Configuring_Relational_Databases.html#provide-data-source-connection-information"&gt;password property&lt;/a&gt; in your &lt;code&gt;&amp;lt;APPIAN_HOME&amp;gt;/tomcat/apache-tomcat/tomcatResources.xml&lt;/code&gt; file.&lt;/span&gt;&lt;/p&gt;
&lt;h2&gt;&lt;span style="font-weight:400;"&gt;Affected Versions&lt;/span&gt;&lt;/h2&gt;
&lt;p&gt;&lt;span style="font-weight:400;"&gt;This article applies to Appian 18.3 and later.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;

&lt;div style="font-size: 90%;"&gt;Tags: Tomcat, 19.1, 18.4, upgrade, 18.3&lt;/div&gt;
</description></item><item><title>Bad Key Encryption error occurs after upgrading to Appian versions 18.3 onwards</title><link>https://community.appian.com/support/w/kb/1432/kb-1930-unexpected-exception-resolving-reference-error-after-upgrading-to-appian-version-18-3-and-later/revision/3</link><pubDate>Thu, 02 May 2019 01:24:07 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:42a86159-bde3-47b1-bda2-b62f871891e1</guid><dc:creator>Ahmad Chakhachiro</dc:creator><comments>https://community.appian.com/support/w/kb/1432/kb-1930-unexpected-exception-resolving-reference-error-after-upgrading-to-appian-version-18-3-and-later#comments</comments><description>Revision 3 posted to Appian Knowledge Base by Ahmad Chakhachiro on 5/2/2019 1:24:07 AM&lt;br /&gt;
&lt;p&gt;An issue with a bad key encryption occurs when starting tomcat after performing an upgrade of Appian from a version which required the customer to install their own application server.&lt;/p&gt;
&lt;h2&gt;&lt;span style="font-weight:400;"&gt;Symptoms&lt;/span&gt;&lt;/h2&gt;
&lt;p&gt;When starting up tomcat for the first time the following error is logged within the application server log:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;Caused by: javax.crypto.BadPaddingException: Given final block not properly padded. Such issues can arise if a bad key is used during decryption.
    at com.sun.crypto.provider.CipherCore.doFinal(CipherCore.java:991)
    at com.sun.crypto.provider.CipherCore.doFinal(CipherCore.java:847)
    at com.sun.crypto.provider.BlowfishCipher.engineDoFinal(BlowfishCipher.java:319)
    at javax.crypto.Cipher.doFinal(Cipher.java:2164)
    at com.appiancorp.tomcat.encoding.EncodingCryptographer.decodePassword(EncodingCryptographer.java:25)
    at com.appiancorp.tomcat.datasource.EncodedPasswordDataSourceFactory.getObjectInstance(EncodedPasswordDataSourceFactory.java:36)
    at org.apache.naming.factory.FactoryBase.getObjectInstance(FactoryBase.java:94)
    at javax.naming.spi.NamingManager.getObjectInstance(NamingManager.java:321)
    at org.apache.naming.NamingContext.lookup(NamingContext.java:839&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;h2&gt;&lt;span style="font-weight:400;"&gt;Cause&lt;/span&gt;&lt;/h2&gt;
&lt;p&gt;T&lt;span style="font-family:inherit;"&gt;his occurs due to using the wrong encryption for the p&lt;/span&gt;assword section within your &lt;code&gt;&amp;lt;APPIAN_HOME&amp;gt;/tomcat/apache-tomcat/tomcatResources.xml&lt;/code&gt; file.&lt;/p&gt;
&lt;h2&gt;&lt;span style="font-weight:400;"&gt;Action&lt;/span&gt;&lt;/h2&gt;
&lt;p&gt;&lt;span style="font-weight:400;"&gt;Use the Configure Script to &lt;a href="https://docs.appian.com/suite/help/19.1/Configure_Script.html#encoding-passwords-for-use-in-data-source-configurations" rel="noopener noreferrer" target="_blank"&gt;encode your data source password&lt;/a&gt; and use the output to fill in the &lt;a href="https://docs.appian.com/suite/help/19.1/Configuring_Relational_Databases.html#provide-data-source-connection-information"&gt;password property&lt;/a&gt; in your &lt;code&gt;&amp;lt;APPIAN_HOME&amp;gt;/tomcat/apache-tomcat/tomcatResources.xml&lt;/code&gt; file.&lt;/span&gt;&lt;/p&gt;
&lt;h2&gt;&lt;span style="font-weight:400;"&gt;Affected Versions&lt;/span&gt;&lt;/h2&gt;
&lt;p&gt;&lt;span style="font-weight:400;"&gt;This article applies to Appian 18.3 and later.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;

&lt;div style="font-size: 90%;"&gt;Tags: Tomcat, 19.1, 18.4, upgrade, 18.3&lt;/div&gt;
</description></item><item><title>Bad Key Encryption error occurs after upgrading to Appian versions 18.3 onwards</title><link>https://community.appian.com/support/w/kb/1432/kb-1930-unexpected-exception-resolving-reference-error-after-upgrading-to-appian-version-18-3-and-later/revision/2</link><pubDate>Thu, 02 May 2019 01:23:08 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:42a86159-bde3-47b1-bda2-b62f871891e1</guid><dc:creator>Ahmad Chakhachiro</dc:creator><comments>https://community.appian.com/support/w/kb/1432/kb-1930-unexpected-exception-resolving-reference-error-after-upgrading-to-appian-version-18-3-and-later#comments</comments><description>Revision 2 posted to Appian Knowledge Base by Ahmad Chakhachiro on 5/2/2019 1:23:08 AM&lt;br /&gt;
&lt;p&gt;An issue with a bad key encryption occurs when starting tomcat after performing an upgrade of Appian from a version which required the customer to install their own application server.&lt;/p&gt;
&lt;h2&gt;&lt;span style="font-weight:400;"&gt;Symptoms&lt;/span&gt;&lt;/h2&gt;
&lt;p&gt;When starting up tomcat for the first time the following error is logged within the application server log:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;Caused by: javax.crypto.BadPaddingException: Given final block not properly padded. Such issues can arise if a bad key is used during decryption.
    at com.sun.crypto.provider.CipherCore.doFinal(CipherCore.java:991)
    at com.sun.crypto.provider.CipherCore.doFinal(CipherCore.java:847)
    at com.sun.crypto.provider.BlowfishCipher.engineDoFinal(BlowfishCipher.java:319)
    at javax.crypto.Cipher.doFinal(Cipher.java:2164)
    at com.appiancorp.tomcat.encoding.EncodingCryptographer.decodePassword(EncodingCryptographer.java:25)
    at com.appiancorp.tomcat.datasource.EncodedPasswordDataSourceFactory.getObjectInstance(EncodedPasswordDataSourceFactory.java:36)
    at org.apache.naming.factory.FactoryBase.getObjectInstance(FactoryBase.java:94)
    at javax.naming.spi.NamingManager.getObjectInstance(NamingManager.java:321)
    at org.apache.naming.NamingContext.lookup(NamingContext.java:839&lt;/pre&gt;&lt;/p&gt;
&lt;h2&gt;&lt;span style="font-weight:400;"&gt;Cause&lt;/span&gt;&lt;/h2&gt;
&lt;p&gt;T&lt;span style="font-family:inherit;"&gt;his occurs due to using the wrong encryption for the p&lt;/span&gt;assword section within your &lt;code&gt;&amp;lt;APPIAN_HOME&amp;gt;/tomcat/apache-tomcat/tomcatResources.xml&lt;/code&gt; file.&lt;/p&gt;
&lt;h2&gt;&lt;span style="font-weight:400;"&gt;Action&lt;/span&gt;&lt;/h2&gt;
&lt;p&gt;&lt;span style="font-weight:400;"&gt;Use the Configure Script to &lt;a href="https://docs.appian.com/suite/help/19.1/Configure_Script.html#encoding-passwords-for-use-in-data-source-configurations" rel="noopener noreferrer" target="_blank"&gt;encode your data source password&lt;/a&gt; and use the output to fill in the &lt;a href="https://docs.appian.com/suite/help/19.1/Configuring_Relational_Databases.html#provide-data-source-connection-information"&gt;password property&lt;/a&gt; in your &lt;code&gt;&amp;lt;APPIAN_HOME&amp;gt;/tomcat/apache-tomcat/tomcatResources.xml&lt;/code&gt; file.&lt;/span&gt;&lt;/p&gt;
&lt;h2&gt;&lt;span style="font-weight:400;"&gt;Affected Versions&lt;/span&gt;&lt;/h2&gt;
&lt;p&gt;&lt;span style="font-weight:400;"&gt;This article applies to Appian 18.3 and later.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;

&lt;div style="font-size: 90%;"&gt;Tags: Tomcat, 19.1, 18.4, upgrade, 18.3&lt;/div&gt;
</description></item><item><title>Bad Key Encryption error occurs after upgrading to Appian versions 18.3 onwards</title><link>https://community.appian.com/support/w/kb/1432/kb-1930-unexpected-exception-resolving-reference-error-after-upgrading-to-appian-version-18-3-and-later/revision/1</link><pubDate>Thu, 02 May 2019 01:22:40 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:42a86159-bde3-47b1-bda2-b62f871891e1</guid><dc:creator>Ahmad Chakhachiro</dc:creator><comments>https://community.appian.com/support/w/kb/1432/kb-1930-unexpected-exception-resolving-reference-error-after-upgrading-to-appian-version-18-3-and-later#comments</comments><description>Revision 1 posted to Appian Knowledge Base by Ahmad Chakhachiro on 5/2/2019 1:22:40 AM&lt;br /&gt;
&lt;p&gt;An issue with a bad key encryption occurs when starting tomcat after performing an upgrade of Appian from a version which required the customer to install their own application server.&lt;/p&gt;
&lt;h2&gt;&lt;span style="font-weight:400;"&gt;Symptoms&lt;/span&gt;&lt;/h2&gt;
&lt;p&gt;When starting up tomcat for the first time the following error is logged within the application server log:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;Caused by: javax.crypto.BadPaddingException: Given final block not properly padded. Such issues can arise if a bad key is used during decryption.
    at com.sun.crypto.provider.CipherCore.doFinal(CipherCore.java:991)
    at com.sun.crypto.provider.CipherCore.doFinal(CipherCore.java:847)
    at com.sun.crypto.provider.BlowfishCipher.engineDoFinal(BlowfishCipher.java:319)
    at javax.crypto.Cipher.doFinal(Cipher.java:2164)
    at com.appiancorp.tomcat.encoding.EncodingCryptographer.decodePassword(EncodingCryptographer.java:25)
    at com.appiancorp.tomcat.datasource.EncodedPasswordDataSourceFactory.getObjectInstance(EncodedPasswordDataSourceFactory.java:36)
    at org.apache.naming.factory.FactoryBase.getObjectInstance(FactoryBase.java:94)
    at javax.naming.spi.NamingManager.getObjectInstance(NamingManager.java:321)
    at org.apache.naming.NamingContext.lookup(NamingContext.java:839&lt;/pre&gt;&lt;/p&gt;
&lt;h2&gt;&lt;span style="font-weight:400;"&gt;Cause&lt;/span&gt;&lt;/h2&gt;
&lt;p&gt;T&lt;span style="font-family:inherit;"&gt;his occurs due to using the wrong encryption for the p&lt;/span&gt;assword section within your &lt;span style="background-color:#999999;"&gt;&lt;code&gt;&amp;lt;APPIAN_HOME&amp;gt;/tomcat/apache-tomcat/tomcatResources.xml&lt;/code&gt;&lt;/span&gt; file.&lt;/p&gt;
&lt;h2&gt;&lt;span style="font-weight:400;"&gt;Action&lt;/span&gt;&lt;/h2&gt;
&lt;p&gt;&lt;span style="font-weight:400;"&gt;Use the Configure Script to &lt;a href="https://docs.appian.com/suite/help/19.1/Configure_Script.html#encoding-passwords-for-use-in-data-source-configurations" rel="noopener noreferrer" target="_blank"&gt;encode your data source password&lt;/a&gt; and use the output to fill in the &lt;a href="https://docs.appian.com/suite/help/19.1/Configuring_Relational_Databases.html#provide-data-source-connection-information"&gt;password property&lt;/a&gt; in your &lt;span style="background-color:#999999;"&gt;&lt;code&gt;&amp;lt;APPIAN_HOME&amp;gt;/tomcat/apache-tomcat/tomcatResources.xml&lt;/code&gt;&lt;/span&gt; file.&lt;/span&gt;&lt;/p&gt;
&lt;h2&gt;&lt;span style="font-weight:400;"&gt;Affected Versions&lt;/span&gt;&lt;/h2&gt;
&lt;p&gt;&lt;span style="font-weight:400;"&gt;This article applies to Appian 18.3 and later.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;

&lt;div style="font-size: 90%;"&gt;Tags: Tomcat, 19.1, 18.4, upgrade, 18.3&lt;/div&gt;
</description></item></channel></rss>