Technote

(troubleshooting)
Exception caught after restoring a WebSphere Commerce database
Problem(Abstract)
You restore your WebSphere Commerce database then see the following error in SystemOut.log during checkout.

[6/21/06 10:08:19:220 EDT] 5a4c5a4c SystemErr R %3DES-F-DCRYPT; Exception caught while decrypting
[6/21/06 10:08:19:220 EDT] 5a4c5a4c SystemErr R ; javax.crypto.BadPaddingException: Given final block not properly padded
[6/21/06 10:08:19:570 EDT] b840b84 SystemOut O 2006.06.21 10:08:19.570 DataBeanManager activate_1
CMN0420E: The following command exception has occurred during processing: "java.lang.NullPointerException".java.lang.NullPointerException
at com.ibm.commerce.payment.utils.PMClientAuthenticator.getPasswordAuthentication(PMClientAuthenticator.java:202)
at com.ibm.commerce.payment.beans.PaymentPolicyListDataBean.findSupportedCassettesAndAccountsForStore(PaymentPolicyListDataBean.java:510)
at com.ibm.commerce.payment.beans.PaymentPolicyListDataBean.populate(PaymentPolicyListDataBean.java:863)
at ...
Cause The restored database has encrypted data that uses a different merchant key than the WebSphere Commerce instance into which it is being restored. This causes an error because the decryption cannot proceed using the new merchant key. Resolving the problem The merchant key is stored in the instance.xml file. Update the value to contain the correct merchant key that was used at the time of the database backup. Once the instance file is updated, it should be propagated into ear to ensure that the collapsed copy is updated
Cross Reference information
Segment Product Component Platform Version Edition
Commerce WebSphere Commerce Enterprise Configuration AIX, i5/OS, Linux, Solaris, Windows 6.0, 6.0.0.1, 6.0.0.2, 6.0.0.3, 6.0.0.4
Commerce WebSphere Commerce Business Edition Configuration AIX, i5/OS, Linux, Solaris, Windows 5.6, 5.6.1, 5.6.1.1, 5.6.1.2, 5.6.1.3, 5.6.1.4, 6.0, 6.0.0.1, 6.0.0.2, 6.0.0.3, 6.0.0.4
Commerce WebSphere Commerce Professional Edition Configuration AIX, i5/OS, Linux, Solaris, Windows 5.6, 5.6.1, 5.6.1.1, 5.6.1.2, 5.6.1.3, 5.6.1.4, 6.0, 6.0.0.1, 6.0.0.2, 6.0.0.3, 6.0.0.4
   

Document Information

Current web document: http://www.ibm.com/support/docview.wss?uid=swg21252740