_______________________________________________________________
Document Information
| Document Number: | 336334562 |
| Functional Area: | WebSphere Commerce Suite |
| Subfunctional Area: | Troubleshooting |
| Sub-Subfunctional Area: | General |
| OS/400 Release: | V5R3M0; V5R4M0; V6R1M0 |
| Product: | ENG ISERIES WCS BE (5733WC500) ISERIES PROF ENTRY (5733WC501) WCS PRO AS/400 (5798WC500) WEBSPHERE COMMERCE SUITE V5.5 (5724A1890) |
| Product Release: | N/A |
_______________________________________________________________
Document Title
Solutions for Algorithm DESede Not Available Exception with WCS on IBM iSeries
Document Description
Problem
*** Error Message ***
Fatal exception in creating TripleDESCipher
java.security.NoSuchAlgorithmException: Algorithm DESede not available
java/lang/Throwable.<init>(Ljava/lang/String;)V+4 (Throwable.java:85)
java/lang/Exception.<init>(Ljava/lang/String;)V+1 (Exception.java:33)
java/security/GeneralSecurityException.<init>(Ljava/lang/String;)V+1 (GeneralSecurityException.java:39)
java/security/NoSuchAlgorithmException.<init>(Ljava/lang/String;)V+1 (NoSuchAlgorithmException.java:36)
javax/crypto/b.a(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)[Ljava/lang/Object;+0 ([DashoPro-V1.2-120198]:0)
javax/crypto/Cipher.getInstance(Ljava/lang/String;)Ljavax/crypto/Cipher;+0 ([DashoPro-V1.2-120198]:0)
com/ibm/commerce/util/CipherObjectPool.create()Ljava/lang/Object;+0 (CipherObjectPool.java:15)
com/ibm/commerce/util/WCObjectPool.checkout()Ljava/lang/Object;+0 (WCObjectPool.java:38)
com/ibm/commerce/util/wrapper/nc_cryptx.encrypt(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;+0 (nc_cryptx.java:277)
com/ibm/commerce/util/nc_crypt.encrypt(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;+0 (nc_crypt.java:56)
com/ibm/commerce/util/ChangePassword.doUpdate(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava
/lang/String;Ljava/lang/String;Ljava/lang/String;)V+0 (ChangePassword.java:29)
com/ibm/commerce/util/ChangePassword.main([Ljava/lang/String;)V+0 (ChangePassword.java:93)
%3DES-F-CIPHERINIT; Exception caught while initializing the cipher object. ; java.lang.NullPointerException
ERROR: null
Java program completed
*** End of error message ***
Cause
The incorrect JDK level is specified in SystemDefault.properties for the user profile issuing the command or thesecurity.provider.3=com.ibm.crypto.provider.IBMJCE is missing or commented out in the java.security file for the specific JDK version.
| WCS Version | JDK Version |
| 5.1 | 1.2 |
| 5.4 | 1.3 |
| 5.5 | 1.3 |
Solution
| 1 | Ensure the correct Java version is specified in the SystemDefault.properties being used to issue the command. Sample SystemDefault.properties: java.version=x.x where x.x is the version of the JDK associated with the WCS version being used. |
| 2 | Open the /QIBM/ProdData/Java400/jdkXX/lib/security/java.security file where XX is the JDK version associated with the WCS version. In the java.security file, find the following section: # List of providers and their preference orders (see above): # security.provider.1=sun.security.provider.Sun security.provider.2=com.sun.rsajca.Provider security.provider.3=com.ibm.crypto.provider.IBMJCE #security.provider.3=com.ibm.crypto.provider.IBMJCE Ensure the security.provider.3=com.ibm.crypto.provider.IBMJCE line is not commented out. If this line is commented out, remove the "#" from in front of the security.provider.3=com.ibm.crypto.provider.IBMJCE line, and save the file. |
| 3 | If this error is seen on the Configuration Manager client side (for WCS 5.4 and 5.1), ensure that the config_env.bat path points to the JDK supplied with the WAS admin console (set PATH=e:\jdk1.3.1\bin;%PATH%"). The e:\jdk1.3.1\bin must be changed to the path of the JDK that will be used to start the RAWTGui.jar. The path of the JDK for IBM® WebSphere® administrative console is suggested; for example, C:\WebSphere\appserver\java\bin. |
__________________________________________________________________
PMR Number: | ||
Related APARs: | ||
Related Public Documents: |
- IBM disclaims all warranties, whether express or implied, including, but not limited to, the implied warranties of merchantability and fitness for a particular purpose. By furnishing this document, IBM grants no licenses to any related patents or copyrights. Copyright © 1996,1997,1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 IBM Corporation. Any trademarks and product or brand names referenced in this document are the property of their respective owners. Consult the Terms of use link for trademark information.
