Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-7021952

When I try "keytool -list" they throws java.lang.IllegalArgumentException

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Cannot Reproduce
    • Icon: P4 P4
    • None
    • 6u24
    • globalization

      FULL PRODUCT VERSION :
      modolo@horizon:~$ java -version
      java version "1.6.0_24"
      Java(TM) SE Runtime Environment (build 1.6.0_24-b07)
      Java HotSpot(TM) Server VM (build 19.1-b02, mixed mode)


      ADDITIONAL OS VERSION INFORMATION :
      modolo@horizon:~$ uname -a
      Linux horizon 2.6.35-27-generic-pae #47-Ubuntu SMP Fri Feb 11 22:40:41 UTC 2011 i686 GNU/Linux


      A DESCRIPTION OF THE PROBLEM :
      If I try to execute keytool -list I received a error:
      erro de keytool: java.lang.IllegalArgumentException: unknown format type at
      java.lang.IllegalArgumentException: unknown format type at
      at java.text.MessageFormat.makeFormat(MessageFormat.java:1442)
      at java.text.MessageFormat.applyPattern(MessageFormat.java:458)
      at java.text.MessageFormat.<init>(MessageFormat.java:350)
      at sun.security.tools.KeyTool.doPrintEntries(KeyTool.java:1649)
      at sun.security.tools.KeyTool.doCommands(KeyTool.java:871)
      at sun.security.tools.KeyTool.run(KeyTool.java:172)
      at sun.security.tools.KeyTool.main(KeyTool.java:166)

      STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
      modolo@horizon:~$ java -version
      java version "1.6.0_24"
      Java(TM) SE Runtime Environment (build 1.6.0_24-b07)
      Java HotSpot(TM) Server VM (build 19.1-b02, mixed mode)
      modolo@horizon:~$ keytool -list
      Insira a senha do armazenamento de chaves:

      Tipo de armazenamento de chaves: JKS
      Fornecedor de armazenamento de chaves: SUN

      erro de keytool: java.lang.IllegalArgumentException: unknown format type at
      modolo@horizon:~$ keytool -list -v
      Insira a senha do armazenamento de chaves:

      Tipo de armazenamento de chaves: JKS
      Fornecedor de armazenamento de chaves: SUN

      erro de keytool: java.lang.IllegalArgumentException: unknown format type at
      java.lang.IllegalArgumentException: unknown format type at
      at java.text.MessageFormat.makeFormat(MessageFormat.java:1442)
      at java.text.MessageFormat.applyPattern(MessageFormat.java:458)
      at java.text.MessageFormat.<init>(MessageFormat.java:350)
      at sun.security.tools.KeyTool.doPrintEntries(KeyTool.java:1649)
      at sun.security.tools.KeyTool.doCommands(KeyTool.java:871)
      at sun.security.tools.KeyTool.run(KeyTool.java:172)
      at sun.security.tools.KeyTool.main(KeyTool.java:166)
      modolo@horizon:~$


      modolo@horizon:~/bin/jre1.5.0_22/bin$ ./keytool -list
      Enter keystore password: changeit

      Keystore type: jks
      Keystore provider: SUN

      Your keystore contains 1 entry

      smtp.gmail.com, 23/02/2011, trustedCertEntry,
      Certificate fingerprint (MD5): 60:39:DE:FB:0A:D9:9E:43:26:E7:75:AC:60:48:A1:

      EXPECTED VERSUS ACTUAL BEHAVIOR :
      EXPECTED -
      modolo@horizon:~/bin/jre1.5.0_22/bin$ ./keytool -list
      Enter keystore password: changeit

      Keystore type: jks
      Keystore provider: SUN

      Your keystore contains 1 entry

      smtp.gmail.com, 23/02/2011, trustedCertEntry,
      Certificate fingerprint (MD5): 60:39:DE:FB:0A:D9:9E:43:26:E7:75:AC:60:48:A1:
      ACTUAL -
      erro de keytool: java.lang.IllegalArgumentException: unknown format type at
      modolo@horizon:~$ keytool -list -v
      Insira a senha do armazenamento de chaves:

      Tipo de armazenamento de chaves: JKS
      Fornecedor de armazenamento de chaves: SUN

      erro de keytool: java.lang.IllegalArgumentException: unknown format type at
      java.lang.IllegalArgumentException: unknown format type at
      at java.text.MessageFormat.makeFormat(MessageFormat.java:1442)
      at java.text.MessageFormat.applyPattern(MessageFormat.java:458)
      at java.text.MessageFormat.<init>(MessageFormat.java:350)
      at sun.security.tools.KeyTool.doPrintEntries(KeyTool.java:1649)
      at sun.security.tools.KeyTool.doCommands(KeyTool.java:871)
      at sun.security.tools.KeyTool.run(KeyTool.java:172)
      at sun.security.tools.KeyTool.main(KeyTool.java:166)
      modolo@horizon:~$

      ERROR MESSAGES/STACK TRACES THAT OCCUR :
      erro de keytool: java.lang.IllegalArgumentException: unknown format type at
      modolo@horizon:~$ keytool -list -v
      Insira a senha do armazenamento de chaves:

      Tipo de armazenamento de chaves: JKS
      Fornecedor de armazenamento de chaves: SUN

      erro de keytool: java.lang.IllegalArgumentException: unknown format type at
      java.lang.IllegalArgumentException: unknown format type at
      at java.text.MessageFormat.makeFormat(MessageFormat.java:1442)
      at java.text.MessageFormat.applyPattern(MessageFormat.java:458)
      at java.text.MessageFormat.<init>(MessageFormat.java:350)
      at sun.security.tools.KeyTool.doPrintEntries(KeyTool.java:1649)
      at sun.security.tools.KeyTool.doCommands(KeyTool.java:871)
      at sun.security.tools.KeyTool.run(KeyTool.java:172)
      at sun.security.tools.KeyTool.main(KeyTool.java:166)
      modolo@horizon:~$

      REPRODUCIBILITY :
      This bug can be reproduced always.

            mfang Michael Fang (Inactive)
            webbuggrp Webbug Group
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: