AES SecretKeyFactory not available

Hi,
I found that there is a bug in using SecretKeyFactory keyFactory with reference to http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=7022467
I tried implementing with KeySpec too,but found one or the other error.
I'm posting here my code.Please help me out to decrypt.
import javax.crypto.Cipher;
import javax.crypto.SecretKey;
import javax.crypto.SecretKeyFactory;
import javax.crypto.spec.SecretKeySpec;
import org.apache.commons.codec.binary.Hex;
public class DecryptTest {
     public static void main(String[] args) throws Exception {
          String keyStr = "6a6b663472346c38736873346569727538346234333534376635333962353666";
          String eid = "bf940165bcc3bca12321a5cc4c753220129337b48ad129d880f718d147a2cd1bfa79de92239ef1bc06c2f05886b0cd5d";
          String rid = "00028e7353d9c4eca480a57a1ca9ba9b";
          int keysize = 256;
          // decode the key string into bytes (using Apache Commons)
          byte[] keyBytes = Hex.decodeHex(keyStr.toCharArray());
          // create a representation of the key
          SecretKeySpec spec = new SecretKeySpec(keyBytes, "AES");
          // turn the key spec into a usable key
          SecretKeyFactory keyFactory = SecretKeyFactory.getInstance("AES");
          SecretKey key = keyFactory.generateSecret(spec);
          // use a cipher to decrypt the eid
          Cipher cipher = Cipher.getInstance("AES");
          cipher.init(Cipher.DECRYPT_MODE, key);
          byte[] plainText = cipher.doFinal(Hex.decodeHex(eid.toCharArray())); // decode from Hex again
          String Eid = new String(plainText, "ASCII");
          System.out.println(Eid);
}

964782 wrote:
well I'm new to this encryption...and the work around again gave the same error..
import java.security.spec.KeySpec;
import javax.crypto.Cipher;
import javax.crypto.SecretKey;
import javax.crypto.SecretKeyFactory;
import javax.crypto.spec.SecretKeySpec;
import org.apache.commons.codec.binary.Hex;
public class DecryptTest {
     public static void main(String[] args) throws Exception {
          String keyStr = "6a6b663472346c38736873346569727538346234333534376635333962353666";
          String eid = "bf940165bcc3bca12321a5cc4c753220129337b48ad129d880f718d147a2cd1bfa79de92239ef1bc06c2f05886b0cd5d";
          String rid = "00028e7353d9c4eca480a57a1ca9ba9b";
          int keysize = 256;
          // decode the key string into bytes (using Apache Commons)
          byte[] keyBytes = Hex.decodeHex(keyStr.toCharArray());
          // create a representation of the key
          SecretKey spec = new SecretKeySpec(keyBytes, "AES");
          // turn the key spec into a usable key
          SecretKeyFactory keyFactory = SecretKeyFactory.getInstance("AES");
          SecretKey key = keyFactory.generateSecret((KeySpec) spec);
          // use a cipher to decrypt the eid
          Cipher cipher = Cipher.getInstance("AES/ECB/PKCS5Padding");
          cipher.init(Cipher.DECRYPT_MODE, key);
          byte[] plainText = cipher.doFinal(Hex.decodeHex(eid.toCharArray())); // decode from Hex again
          String Eid = new String(plainText, "ASCII");
          System.out.println(Eid);
I obviously did not make is clear enough. You don't actually need a SecretKeyFactory; you just generate the key using
SecretKey key = new SecretKeySpec(keyBytes, "AES");This way you don't need to use a SecretKeyFactory. Just use the above key to init() the Cipher.
and also I didn't get you on " The ciphertext in your code was not generated using the key in your code."
Thanks for your help!!If I apply the change I suggest I get
javax.crypto.BadPaddingException: Given final block not properly paddedwhich implies either the key is wrong or the ciphertext was not generated using the key or the block mode was different or the padding was different. For any given key bytes I can use AES in the JCE to decrypt ciphertext generated using both the BouncyCastle lightweight API and the OpenSSl library so I'm pretty sure the decryption process is correct so I think that your encryption process did not use that key or a different block mode was used or a different padding was used. Since I don't know how you generated that ciphertext I can't be more specific.

Similar Messages

  • The Default Gateway Is Not Available / Problem

    Hello, I recently purchased this HP Pavileon laptop, and I've been encountering this problem very often (every 2-10 minutes).  This problem is getting extremely frustrating as absolutely nobody has been able to provide a fix for this issue.
    When the laptop is on battery mode (this does not happen when plugged in); I commonly get disconnected from my wi-fi connection and to fix it, I must run the troubleshooter. This temporarily fixes the issue by resetting the wi-fi adapter.
    What I have tried and has not worked:
    * Turn off to save power option in the driver settings (in Device Manager) untickets
    * Updated drivers
    * New power plan
    * Tried different drivers
    * Complete system restore
    The wireless adapter is Realtek RTL 8188EE.  Upon running the troubleshooter, this is all the information from the detailed information section:
    Windows Network Diagnostics
    Publisher details
    Issues foundThe default gateway is not available
    The default gateway is not availableThe default gateway is a device that connects a local network or computer to the Internet. A broadband modem or router is usually the default gateway.
    Fixed
    Reset the "WiFi" adapter
    Completed
    Investigate router or broadband modem issues
    Not run
    Issues found
    Detection details
    6The default gateway is not availableFixed
    The default gateway is a device that connects a local network or computer to the Internet. A broadband modem or router is usually the default gateway.
    Reset the "WiFi" adapterCompleted
    This can sometimes resolve an intermittent problem.
    Network Diagnostics LogFile Name: 2D0FE1F0-C2C2-43B5-A857-2D2B3C4B8A51.Repair.1.etl Investigate router or broadband modem issuesNot run
    If you're connected to a hotspot or domain network, contact the network administrator. Otherwise: 1. Unplug or turn off the device. 2. Once all the lights on the device are off, wait at least 10 seconds. 3. Turn the device on or plug it back in to the power outlet. To restart a router or modem that has a built-in battery, press and quickly release the Reset button.
    Detection details
    Diagnostics Information (Network Adapter)
    Details about network adapter diagnosis:
    Network adapter WiFi driver information:
    Description . . . . . . . . . . : Realtek RTL8188EE 802.11b/g/n Wi-Fi Adapter
    Manufacturer . . . . . . . . . : Realtek Semiconductor Corp.
    Provider . . . . . . . . . . . : Realtek Semiconductor Corp.
    Version . . . . . . . . . . . : 2012.2.827.2013
    Inf File Name . . . . . . . . . : C:\WINDOWS\INF\oem8.inf
    Inf File Date . . . . . . . . . : 12 September 2013 10:17:00
    Section Name . . . . . . . . . : HP8188ee.ndi
    Hardware ID . . . . . . . . . . : pci\ven_10ec&dev_8179&subsys_197d103c
    Instance Status Flags . . . . . : 0x180200a
    Device Manager Status Code . . : 0
    IfType . . . . . . . . . . . . : 71
    Physical Media Type . . . . . . : 9
    Diagnostics Information (Wireless Connectivity)
    Details about wireless connectivity diagnosis:
    Information for connection being diagnosed
    Interface GUID: 7c04789b-0b43-472c-abd6-a84cb31e9053
    Interface name: Realtek RTL8188EE 802.11b/g/n Wi-Fi Adapter
    Interface type: Native WiFi
    Connection incident diagnosed
    Auto Configuration ID: 1
    Connection ID: 1
    Connection status summary
    Connection started at: 2014-07-24 04:19:49-759
    Profile match: Success
    Pre-Association: Success
    Association: Success
    Security and Authentication: Success
    List of visible access point(s): 0 item(s) total, 0 item(s) displayed
    Connection History
    Information for Auto Configuration ID 1
    List of visible networks: 1 item(s) total, 1 item(s) displayed
    BSS Type PHY Security Signal(RSSI) Compatible SSID
    Infra <unknown> Yes 100 Yes Matt
    List of preferred networks: 1 item(s)
    Profile: Matt
    SSID: Matt
    SSID length: 4
    Connection mode: Infra
    Security: Yes
    Set by group policy: No
    Connect even if network is not broadcasting: No
    Connectable: Yes
    Information for Connection ID 1
    Connection started at: 2014-07-24 04:19:49-759
    Auto Configuration ID: 1
    Profile: Matt
    SSID: Matt
    SSID length: 4
    Connection mode: Infra
    Security: Yes
    Pre-Association and Association
    Connectivity settings provided by hardware manufacturer (IHV): No
    Security settings provided by hardware manufacturer (IHV): No
    Profile matches network requirements: Success
    Pre-association status: Success
    Association status: Success
    Last AP: 98-fc-11-88-61-b8
    Security and Authentication
    Configured security type: WPA2-PSK
    Configured encryption type: CCMP(AES)
    802.1X protocol: No
    Key exchange initiated: Yes
    Unicast key received: Yes
    Multicast key received: Yes
    Number of security packets received: 0
    Number of security packets sent: 0
    Security attempt status: Success
    Connectivity
    Packet statistics
    Ndis Rx: 34302
    Ndis Tx: 32619
    Unicast decrypt success: 0
    Multicast decrypt success: 0
    Unicast decrypt failure: 0
    Multicast decrypt failure: 0
    Rx success: 0
    Rx failure: 0
    Tx success: 0
    Tx failure: 0
    Tx retry: 0
    Tx multiple retry: 0
    Tx max lifetime exceeded: 0
    Tx ACK failure: 0
    Roaming history: 0 item(s)
    Diagnostics Information (Wireless Connectivity)
    Details about wireless connectivity diagnosis:
    For complete information about this session see the wireless connectivity information event.
    Helper Class: Auto Configuration
    Initialise status: Success
    Information for connection being diagnosed
    Interface GUID: 7c04789b-0b43-472c-abd6-a84cb31e9053
    Interface name: Realtek RTL8188EE 802.11b/g/n Wi-Fi Adapter
    Interface type: Native WiFi
    Result of diagnosis: There may be problem
    Diagnostics Information (Wireless Network Adapter)
    Details about wireless network adapter diagnosis:
    For complete information about this session see the wireless connectivity information event.
    Helper Class: Native WiFi MSM
    Initialise status: Success
    Information for connection being diagnosed
    Interface GUID: 7c04789b-0b43-472c-abd6-a84cb31e9053
    Interface name: Realtek RTL8188EE 802.11b/g/n Wi-Fi Adapter
    Interface type: Native WiFi
    Profile: Matt
    SSID: Matt
    SSID length: 4
    Connection mode: Infra
    Security: Yes
    Connect even if network is not broadcasting: No
    Result of diagnosis: There may be problem
    Network Diagnostics LogFile Name: 2D0FE1F0-C2C2-43B5-A857-2D2B3C4B8A51.Diagnose.0.et​l
    Other Networking Configuration and LogsFile Name: NetworkConfiguration.cab Collection information Computer Name: LAPTOP Windows Version:6.3Architecture:x64Time:24 July 2014 04:34:47
    Windows Network Diagnostics Detects problems with network connectivity. Package Version:1.0Publisher:Microsoft Windows

    Run the HP Support Asssitant's Tune up application. There should be a new BIOS available. sp66866
    Have you installed the latest Windows 8.1 updates?
    Do not install optional video graphics updates.
    I was runnning into a similar problem with my HP product loan Envy Spectre 13 TouchSmart Ultrabook until I did the updates. I had upgraded my wireless router to a model with 802.11AC specification.
    Invoke the Device Manager and ensure that the box next to Allow this computer to turn off this device to save power is unchecked.
    ****Please click on Accept As Solution if a suggestion solves your problem. It helps others facing the same problem to find a solution easily****
    2015 Microsoft MVP - Windows Experience Consumer

  • Java.security.NosuchAlgorithmException: Algorithm DESede not available

    Dear All,
    I have created an adapter module using 3DES encryption/decryption algorithm for File/FTP adapter configuration and have deployed it at J2EE server of respective XI system.
    The alogorithm and adapter module are working fine in DEV & QA environments but in Mirror system(which is similar to Prod), I have been encountering Error:-
    java.security.NosuchAlgorithmException: Algorithm DESede not available
    Code snippet for reference:-
    // Convert the raw bytes to a secret key
    DESedeKeySpec keyspec = new DESedeKeySpec(rawkey);
    SecretKeyFactory keyfactory = SecretKeyFactory.getInstance("DESede");SecretKey key = keyfactory.generateSecret(keyspec);
    return key;
    Can you please suggest what could be issue here? Any inputs will be highly appreciated.
    Thanks and Best Regards
    Prashant Rajani

    Hi prometheuzz,
    Thanks for your inputs.
    Please find below the results we received on comparing the files on QA & mirror systems:-
    GXB - QA
    baup22g0:gxbdb:gxbadm 13> ls -lrt
    total 104
    -rwxr-xr-x 1 bin bin 2212 May 12 2004 local_policy.jar
    -rwxr-xr-x 1 bin bin 2199 May 12 2004 US_export_policy.jar
    -rwxr-xr-x 1 bin bin 6593 Oct 16 19:49 java.security
    -rwxr-xr-x 1 bin bin 2652 Oct 16 19:49 java.policy
    -rwxr-xr-x 1 bin bin 30337 Oct 16 19:49 cacerts
    GXC-Mirror
    bauc52g0:gxcdb:gxcadm 2> ls -lrt
    total 104
    -rwxr-xr-x 1 bin bin 2212 May 12 2004 local_policy.jar
    -rwxr-xr-x 1 bin bin 2199 May 12 2004 US_export_policy.jar
    -rwxr-xr-x 1 bin bin 6593 Oct 16 19:49 java.security
    -rwxr-xr-x 1 bin bin 2652 Oct 16 19:49 java.policy
    -rwxr-xr-x 1 bin bin 30337 Oct 16 19:49 cacerts
    bauc52g0:gxcdb:gxcadm 3>
    The results seem identical. Can you please let us know where we should target exactly?
    Thanks & Best Regards
    Prashant

  • Exception "algorithm ARC4 is not available from Provider Cryptix "

    hi all
    i am developing the application in which i am using two encryption/decryption algorithms one is "RC4" and second is "AES(256 bit key)".
    1.first i am taking the credit card number from database which is in
    the encrypted format using 'RC4".
    2.After taking the Credit card number from database i am decrypting them using RC4.
    3. After decrypting them i am encrypting them using "AES(256 bit key") and putting the paymentid and encrypted credit card number in HashMap.
    For that i have written following classes
    RC4EncMemory.java ( which is taking encrypted credit card number from database ,decrypting them using "RC4" and then encrypting them using "AES")
    import java.security.GeneralSecurityException;
    import java.security.Security;
    import java.sql.*;
    import java.util.*;
    import java.util.HashMap;
    import javax.crypto.SecretKey;
    import cryptix.jce.provider.key.RawSecretKey;
    import cryptix.provider.Cryptix;
    public class RC4EncMemory
         DbAccess db=null;
         RC4EncMemory crypt=null;
         PreparedStatement pstmt=null;
         ResultSet rs=null;
         EncryptionPerformance per=null;
         AESEccryption aes=null;
         private String originalCCnumber=null;
         private int paymantid;
         private byte[] b;
         private byte[] aesencrypted;
         public RC4EncMemory()
         {db=new DbAccess();}
         public void selectAllCCNumber()
              HashMap allccnumber=new HashMap(1000);
              String qry =DbAccess.getPropertyValue("cedera.ccnumber.selectccnumberFromPayment");
              System.out.println(qry);
              try
              {rs=db.getResultSet(qry);
              if(rs!=null)
              {     crypt=getInstance();
                   while(rs.next())
                        System.out.println("In while");
                        paymantid=rs.getInt("paymentid");
                        b=rs.getBytes("ccnumber");
                        System.out.println("paymantid >>> " + paymantid);
                        originalCCnumber=DecryptCCNumber(b);
                        Security.removeProvider("RC4");
                        System.out.println("decrypted original >>> " + originalCCnumber);
                        aesencrypted=getAESEncryption(originalCCnumber);
                        //allccnumber.put(new Integer(paymantid),new String(originalCCnumber));
                   Set key=allccnumber.keySet();
                   Iterator i=key.iterator();
                   while(i.hasNext())
                   {System.out.println(" Payment id from HashMap " +(Integer)i.next());
                   System.out.println("Size of the HashMap: >>" + allccnumber.size());
              else
                   System.out.println("empty");
              allccnumber.clear();
              }catch(SQLException exp)
                             System.out.println("Exception in SQL" + exp);
                        finally
                             try{          rs.close();
                                       pstmt.close();
                                       db.conn.close();
                             }catch(Exception er){}
         public String DecryptCCNumber(byte[] encryptedCCNumber)
              {     String decrypted=null;
                   if(encryptedCCNumber!=null)
                   {decrypted = decrypt(encryptedCCNumber);
                   return decrypted;
         public String decrypt(byte data[])
              if(data == null || data.length == 0)
              return null;
              try
                   xjava.security.Cipher cipher = xjava.security.Cipher.getInstance("RC4", "Cryptix");
                   cipher.initDecrypt(rsaKey);
                   byte out[] = cipher.crypt(data);
                   return new String(out);
              catch(GeneralSecurityException se)
              { System.out.println("SecurityException in decrypt method: " + se);
              return null;
         public static synchronized RC4EncMemory getInstance()
              if(_rc4decryption == null)
                   Security.addProvider(new Cryptix());
                   _rc4decryption = new RC4EncMemory();
                   makeRC4Key();
              return _rc4decryption;
    private static void makeRC4Key()
    {          String seed = "CvMjSpVrGsTnAj";
              rsaKey = new RawSecretKey("RC4", seed.getBytes());
    public byte[] getAESEncryption(String originalCCNumber)
    {     aes=AESEccryption.getInstance();
         return aes.encrypt(originalCCNumber);
    public static void main(String args[])
         RC4EncMemory mem1=new RC4EncMemory();
         mem1.selectAllCCNumber();
         private static SecretKey rsaKey = null;
         private static RC4EncMemory _rc4decryption = null;
    In the above programs i am getting the output as follows
    output:-
    in while
    paymantid >>> 3338157
    decrypted original >>> 5856373015065936
    inside encrypt method
    Original Data----->5856373015065936
    Encrypted Data----->[B@3cc0bc
    after encryption of data
    In while
    paymantid >>> 3338169
    SecurityException in decrypt method: java.security.NoSuchAlgorithmException: algorithm ARC4 is not available from provider Cryptix
    decrypted original >>> null
    In while
    paymantid >>> 3338290
    SecurityException in decrypt method: java.security.NoSuchAlgorithmException: algorithm ARC4 is not available from provider Cryptix
    decrypted original >>> null
    my program is able to decrypt the only first credit card numbers using RC4 and then encrypt it using AES(as shown in bold above) but it is not able decrypt the rest of the credit card number from the database using "RC4" and it is throwing above exception regarding the "RC4" algorithm .
    can anybody tell me what is reason behind this exception? my guess is the we cann't use the two providers simultaneously.
    please anybody help me
    AESEccryption.java(which helps to encrypt the credit card number in AES using encrypt method )
    import java.security.GeneralSecurityException;
    import java.security.Security;
    import java.sql.*;
    import javax.crypto.spec.SecretKeySpec;
    import org.bouncycastle.jce.provider.BouncyCastleProvider;
    import cryptix.provider.Cryptix;
    public class AESEccryption
         AESEccryption cryptAES=null;
         AESEccryption cryptAES1=null;
         public AESEccryption(){}
         public static synchronized AESEccryption getInstance()
              {     if(_aesEncryption == null)
                        Security.insertProviderAt(new BouncyCastleProvider(),3);
                        //Security.addProvider(new BouncyCastleProvider());
                        //Security.addProvider(new Cryptix());
                        _aesEncryption = new AESEccryption();
                        makeAESKey();
                   return _aesEncryption;
         private static void makeAESKey()
                   String seed = "FFF3454D1E9CCDE00101010101010101";
                   int length=seed.length();
                   if(length!=32)
                   {     System.out.println("Key size must be 32 characters only");
                        System.exit(0);
                   skeySpec = new SecretKeySpec(seed.getBytes(),0,32,"AES");
    public byte[] encrypt(String data)
         {     if(data == null)
              return null;
              try
              {     System.out.println("inside encrypt method");
                   javax.crypto.Cipher cipher = javax.crypto.Cipher.getInstance("AES");
                   cipher.init(javax.crypto.Cipher.ENCRYPT_MODE,skeySpec);
                   byte out[] = cipher.doFinal(data.getBytes());
                   return out;
              catch(GeneralSecurityException se)
                   System.out.println("SecurityException: " + se);
              return null;
         public static void main(String args[])throws Exception
         {     AESEccryption aesenc=new AESEccryption();
              aesenc.selectAllCCNumber();
              if(flag)
                   System.out.println("Flag " + flag);
         private static SecretKeySpec skeySpec = null;
         private static AESEccryption _aesEncryption = null;
    Regards
    Pandurang
    Message was edited by:
    andylimp12
    Message was edited by:
    andylimp12
    Message was edited by:
    andylimp12

    Hi Nith,
    Previously I have changed the document dispostal time out to 1 year but the error still occurs.
    Now I change the document inline size from 64 KB to 27 MB (estimated max document size) and see how the LCES behaves.
    I suspect if document size is larger than document inline size then LCES will write to some temp file. After that, user does not process the task for a long time, e.g. 3 days. And during the 3 days, the unix system/ websphere auto clear the temp file. After 3 days when user accesses the task again, LCES will complain "document is not in sending server side any more" ....
    I refer to : http://blogs.adobe.com/livecycle/2008/10/livecycle_tuning_knob_default.html
    For the Document sweep interval, I think, it relates Watch Folder, not this error so I don't change it.
    Regards,
    Anh

  • NoSuchAlgorithmException : Algorithm DESede not available

    Hi,
    Could any one tell me why this error comes
    The particular method which throws the Exception is
    SecretKeyFactory keyFactory = SecretKeyFactory.getInstance("DESede");
    The Exception stackTrace is
    java.security.NoSuchAlgorithmException: Algorithm DESede not available
    at javax.crypto.SunJCE_b.a(DashoA6275)
    at javax.crypto.SecretKeyFactory.getInstance(DashoA6275)
    at com.orbitech.armor.syncd.server.ArmorKeyTabFile.ReadKeyTabFile(ArmorK
    eyTabFile.java:173)
    at com.orbitech.armor.syncd.server.OracleRegistryPlugin.init(OracleRegis
    tryPlugin.java:210)
    at ArmorSystemServlet.processPrnInfo(ArmorSystemServlet.java:194)
    at ArmorSystemServlet.doPost(ArmorSystemServlet.java:137)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:733)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:826)
    at com.netscape.server.http.servlet.NSServletRunner.Service(NSServletRun
    ner.java:533)
    com.orbitech.armor.syncd.server.ArmorException: Error in Reading Keytab file
    at com.orbitech.armor.syncd.server.ArmorKeyTabFile.ReadKeyTabFile(ArmorK
    eyTabFile.java:212)
    at com.orbitech.armor.syncd.server.OracleRegistryPlugin.init(OracleRegis
    tryPlugin.java:210)
    at ArmorSystemServlet.processPrnInfo(ArmorSystemServlet.java:194)
    at ArmorSystemServlet.doPost(ArmorSystemServlet.java:137)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:733)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:826)
    at com.netscape.server.http.servlet.NSServletRunner.Service(NSServletRun
    ner.java:533)
    Im trying to use JCE api's in a servlet running under a iplanet ssl server. Also my classpath setting contains the jce jars as well.
    I am able to see very well the SunJCE provider and the algorithm are installed. The code I used too see them is
    System.out.println("Cipher algorithms : ");
    Object[] o = Security.getAlgorithms("Cipher").toArray();
    for (int i=0; i<o.length; i++) {
    System.out.println((String) o[ i ]);
    Cipher algorithms :
    BLOWFISH
    DESEDE
    PBEWITHMD5ANDTRIPLEDES
    DES
    PBEWITHMD5ANDDES
    System.out.println("MessageDigest algorithms : ");
    o = Security.getAlgorithms("MessageDigest").toArray();
    for (int i=0; i<o.length; i++) {
    System.out.println((String) o[ i ]);
    MessageDigest algorithms :
    MD5
    SHA
    System.out.println("Signature algorithms : ");
    o = Security.getAlgorithms("Signature").toArray();
    for (int i=0; i<o.length; i++) {
    System.out.println((String) o[ i ]);
    Signature algorithms :
    MD2WITHRSA
    MD5WITHRSA
    SHA1WITHDSA
    SHA1WITHRSA
    System.out.println("Mac algorithms : ");
    o = Security.getAlgorithms("Mac").toArray();
    for (int i=0; i<o.length; i++) {
    System.out.println((String) o[ i ]);
    Mac algorithms :
    HMACSHA1
    HMACMD5
    System.out.println("Keystore algorithms : ");
    o = Security.getAlgorithms("Keystore").toArray();
    for (int i=0; i<o.length; i++) {
    System.out.println((String) o[ i ]);
    Keystore algorithms :
    PKCS12
    JCEKS
    JKS
    System.out.println("Providers : ");
    Provider p[] = Security.getProviders();
    for(int i = 0; i<p.length; i++) {
    System.out.println( p.getName());
    Providers :
    SUN
    SunJSSE
    SunRsaSign
    SunJCE
    SunJGSS
    Thanks in advance
    regds........jp

    try this...it worked for me......
    put all four JCE jar files in the ext folder buried deep inside ur program files ...I have it in >> "C:\Program Files\Java\j2re1.4.1_02\lib\ext" folder .Now edit the file "C:\Program Files\Java\j2re1.4.1_02\lib\security\java.security" and add register ur provider by adding the line>> security.provider.2=com.sun.crypto.provider.SunJCE
    save the file and rerun the program..the exception should vanish..
    Sanjit R
    US Software Pvt Ltd
    Technopark,
    Trivandrum
    Kerala
    India

  • Sound Input not available with AJA IO

    Hi everyone,
    I have a problem with recording sound, using the voice over tool with my AJA IO.
    Whenever I try to select ProIO In as source for my, it says "The selected audio source is not available. Maybe it's used by another program, not or wrong connected or there's a conflict with the video output device" (that's not the exact original therms, I translated from German).
    I'm using the AJA IO to output video/audio to the sound booth via AES/EBU and Composite. I re-installed the AJA drivers and have no problems to record via SDI.
    Maybe it's not possible to output audio/video and simultaneously record audio with the AJA IO?
    Thanks in advance for your help!
    Best regards,
    Martin

    Too bad, I really hoped and expected, that this is possible. Unfortunately when I try to use my second sound interface (M-Audio FastTrack Pro), the whole system crashes. So I have to use the built-in line in, what is a shame.
    Anyway: Thanks for the info, Jerry!

  • My app store wont let me download apps, says they are not available in the uk please help??

    my app store wont let me download apps, says there not available in the uk?? please help??

    Try This...
    Close All Open Apps...  Sign Out of your Account... Perform a Reset... Try again...
    Reset  ( No Data will be Lost )
    Press and hold the Sleep/Wake button and the Home button at the same time for at least ten seconds, until the Apple logo appears. Release the Buttons.
    http://support.apple.com/kb/ht1430

  • Getting error while opening a saved for later notification: The selected action is not available. The cause may be related to security. Contact your system administrator to verify your permission level for this action.

    Hi All,
    While opening a saved for later notification, we are getting "The selected action is not available. The cause may be related to security. Contact your system administrator to verify your permission level for this action". error.
    This is a custom notification.
    Please help.
    Thanks
    Raghava

    HI All,
    Please help on this issue.
    Thanks
    Raghava

  • Laptop (Running Windows 8.1) no longer able to print and now see message Active Directory Domain Services is not available

    Have a very recent Lenovo Ideapad Laptop running Windows 8.1. Connected via USB port to HP LaserJet Pro CM1415 frw Color MFP Printer. Was able to print fine nearly 2 weeks ago, but something recently happened - either a new windows or office 2013 update
    or perhaps I blew away a certain file by mistake. I can see the printer installed but cannot print to it from anything (Word, Notepad, IE, Firefox etc.). The one thing to note is that usually when I plug or unplug a USB related device, Windows 8.1 recognizes
    this and makes a certain chime noise, but with the printer USB cable it never makes that noise - making me think that it never fully recognizes the printer. Also when I select the printer (from within the control panel) and right click for properties (via
    admin rights) It never lets me fully connect to it.
    I have tried all the usual remedies - remove, install all drivers, reinstall printer, Windows update, start/stop print spooler and all other printer related services,  etc. Its really annoying because this printer was working fine nearly 2
    weeks ago. Looking for any advice now. Thanks.
    -Chris

    Hi Chris,
    à
    I have tried all the usual remedies - remove, install all drivers, reinstall printer, Windows update, start/stop print spooler and all other printer related services, etc.
    I noticed that you had reinstalled the printer. Just a confirmation, when un-install this printer, please check
    if this printer still exist in registry. For more details, please refer to following KB.
    Registry entries for printing
    If printer entry still exist in registry, please delete that printer entry and re-install this printer again,
    then check if this issue still exists. (Please backup registry entries before operating registry. It will help us to avoid unexpected issue.)
    àand now see
    message Active Directory Domain Services is not available
    By the way, would you please let me know where/when get this
    Active Directory Domain Services is not available error message? Or provide a screenshot of it?
    (Please hide all protected or private information) Please check if all services are running correctly on the computer. Meanwhile, please refer to following article and check if can help you.
    Printer
    Problem: Active Directory Domain Services is currently unavailable – Why does windows say no printers are installed?
    Please Note: Since the web site is not hosted by Microsoft, the link may change without notice. Microsoft
    does not guarantee the accuracy of this information.
    If any update, please feel free to let me know.
    Hope this helps.
    Best regards,
    Justin Gu

  • My external hard drive is not recognized by Time Machine; "The backup disk is not available" according to Disk Utility

    I'm not completely tech savvy, but I'm having troubles with my external memory & time machine.  I'm a student, and thus its very important to me to be able to back up my computer.
    I wanted to back up my Time Machine the other day.  I clicked the icon at the top of the page (beside the battery icon, etc.) and the message "The backup disk is not available".  I have a 500GB Seagate passport (ie: http://www.bestbuy.com/site/Seagate---FreeAgent-GoFlex-500GB-External-USB-2.0-Po rtable-Hard-Drive---Silver/9929098.p?id=1218196478444&skuId=9929098)
    My macbook pro is version 10.7.5 Mac OS X Lion.  My external memory is only about a year old. It hasn't been dropped or anything; it permanently sits secured to my desk.
    What appears when I click "Repair Disk":
    Verify and Repair volume “Time Machine Backups”
    Checking file systemChecking Journaled HFS Plus volume.
    Detected a case-sensitive volume.
    Checking extents overflow file.
    Checking catalog file.
    Incorrect block count for file shutdown_time
    (It should be 1 instead of 0)
    Invalid node structure
    Rebuilding catalog B-tree.
    The volume Time Machine Backups could not be repaired.
    Volume repair complete.Updating boot support partitions for the volume as required.Error: Disk Utility can’t repair this disk. Back up as many of your files as possible, reformat the disk, and restore your backed-up files.
    After clicking "Repair Disk" this message pops up: "Disk Utility Stopped Repairing 'Time Machine Backups'  Disk utility can't repair this disk. Back up as many as your files as possible, reformat the disk, and restore your backed-up files."
    I don't want to wipe my memory on my external disk just in case the disk doesn't restore (as I do not have another disk to back up my computer on to).
    What is going on? Why is this happening out of the blue? How can I fix this?

    Sounds like it either has, or is about to die.
    If you don't need anything off the old drive, then yes, replace it immediately with something a little more reolaable. I use WD Caviar Black personally. But anything that has a known low failure rate.

  • In Pages 5.2, some fonts "not available", yet present in Font Book and working in other apps

    Using Pages 5.2, I open a document created in a previous version, and I get error messages about certain fonts within a font family being "not available" in OS X.  However, these supposedly unavailable fonts are present in Font Book and work just fine in all other apps running on OS X.  In fact, I still have the older version of Pages on my system, and it still finds the fonts without issue.  The specific fonts troubling me at the moment are Myriad Pro Semibold It and Myriad Pro Cond.  Pages 5.2 replaces them with Helvetica.  I have wasted hours of time trying to resolve this problem, and I am at a total loss.  What can I do?

    Like so many other thing is is probably gone. Why not use Pages 09 that has about 100 features more than Pages 5. If you haven't deleted it it should still be in Applications/iWork 09 folder.

  • My rue la la app for ipad suddenly dosent work so I deleted it now when I try to reinstall it the app store says that it not available in the us. It is still on my Iphone and working properly. What is this all about?

    My rue la la app for ipad stopped working. I deleted the app and tried to reinstall it,  it is no longer available in the app store and when I research it on safari and find it when i try to install it says that it is not available in the us store. What is that all about?

    My app did the exact same thing. It is still unavailable on the App Store and when Rue La La's site directs you to download their app, the "not available in the U.S. message appears. This happened to me last night. The app wasn't working, I deleted it and was just going to reinstall but was unable to find the app. I figured it was some glitch but I have tried multiple times this afternoon to no avail.

  • On a Mac, in Adobe Photoshop CC 2014, when adding audio to an edit, i get the message "Could not complete your request, because Dynamiclink is not available". When performing the exact same operation in Adobe Photoshop CC, i can add audio in the same way,

    On a Mac, in Adobe Photoshop CC 2014, when adding audio to an edit, i get the message "Could not complete your request, because Dynamiclink is not available".
    When performing the exact same operation in Adobe Photoshop CC, i can add audio in the same way, no error message. Any ideas to solve this, anyone? Would be greatly appreciated.

    I tried to update and it keeps telling me to get the Application Manager. And this is what happens
    Adobe Application Manager failed and it told me to download the Adobe Support Advisor.
    Adobe Support Advisor told me that there was an issue:" cpsid_82829s1: "A restart is pending," bootstrapper error has occurred. "Token Number: 40-87772-063201122012
    I followed the instructions it gave me to correct this issue:
    If you receive the error "Installer has detected that a machine restart is pending. It is recommended that you quit the installer, restart try again," do the following:
    #Restart the computer and try the installation again.
    #If the installation fails, delete the InProgress registry key: 
    Disclaimer: This procedure involves editing the Windows registry. Adobe doesn't provide support for editing the registry, which contains critical system and application information. Make sure to back up the registry before editing it. For more information about the registry, see Windows registry information for advanced users on the Microsoft support site, or contact Microsoft. 
    Launch Windows Registry Editor.
    (Windows XP) Choose Start > Run, type regedit in the Open text box and click OK.
    (Windows Vista/ Windows 7) Choose Start, type regedit in the Search box, and press Enter.
    Navigate to HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager.
    Delete the InProgress key.
    I was not able to find the "InProgress" key.

  • Saving master page in search template throws error "UserAgent not available, file operations may not be optimized"

    Hi Folks,
    I was trying to save basic search template master page "seattle.master" after making change to the template.
    I have added just "CompanyName" folder and update the line below in seattle.master.
    Change is this : <SharePoint:CssRegistration Name="Themable/CompanyName/corev15.css" runat="server"/>
    When I save it, and refresh page on browser, it shows "Something went wrong" error.
    ULS says the following error : "UserAgent not Available, file operation may not be optimized"
    Pls let us know if there is a solution.
    Any help Much appreciated !
    Thanks,
    Sal
    

    Hi Salman,
    Thanks for posting this issue, 
    Just remove this below given tag and check out. It might be happened that your control is conflicting with others. 
    Also, browse the below mentioned URL for more details
    http://social.msdn.microsoft.com/Forums/office/en-US/b32d1968-81f1-42cd-8f45-798406896335/how-apply-custom-master-page-to-performance-point-dashboard-useragent-not-available-file?forum=sharepointcustomization
    I hope this is helpful to you. If this works, Please mark it as Answered.
    Regards,
    Dharmendra Singh (MCPD-EA | MCTS)
    Blog : http://sharepoint-community.net/profile/DharmendraSingh

  • Data Federator data source not available causes Universe Connection error

    I created a Data Federator project that connects to 20 servers across US and Canada.  All data sources are SQL Server 2005.  The DF project maps 40 source objects into 4 target objects.  I created a universe based on the DF project and we have been quite pleased with Webi query response.  Today one of the source servers was taken off line and this generated a connection error when trying to access the universe (not trying to access the data source that failed).  We do not want the universe connection to error when one source server is not available u2013 is that possible?
    If the answer is no then I see us abandoning what appears to be a great solution for real time distributed reporting and resorting to ETL and moving data.

    Hi Chapman,
    Can you be little elobrate on what you have done to solve the issue.
    Thanks,
    Dayanand

Maybe you are looking for

  • Conditionally opening a new browser window from a JSP page

    When the user clicks on a button in my JSP page, I'd like to launch a new browser and display certain things in that browser window while leaving the original browser window open. The new browser should only be displayed if certain conditions are met

  • Sent email not recieved on othere end

    A week ago I sent an e-mail that was never recieved by the reciepient. It is still in my outbox, and is no showing up (asa it normally wouldn't becuase it would be deleted after sending) in my verizon.net account online. Is there any way to track wha

  • HP 7410 All in One - Won't boot up

    My 7410 Printer displays the HP Invent screen when powering on, but never goes past that.  I have tried the #6 option instructions with no success.  Any other ideas before I take it in for service? Thanks, Michele

  • HeartbeatMonitorListener fails

              I get this exception when weblogic starts up and connects to the queue. I think           i am getting the problem as i don't have license for jms cluster. It doesn't help           even when i turn off "Replicate JNDI name on cluster" opti

  • How to get XML form.

    Hi All, Can anybody suggest me how to get XML file of System form. Means i want XML file of Sales order. Where i get it ? Thanks,