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

[macosx] InvocationTargetException from keytool

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Cannot Reproduce
    • Icon: P4 P4
    • None
    • 7u4
    • security-libs

      From http://java.net/jira/browse/MACOSX_PORT-148

      Please see regression test: sun/security/tools/keytool/autotest.sh.
      Cmdline: keytool -debug -keystore NONE -storetype PKCS11 -providerName SunPKCS11-nss -providerClass sun.security.pkcs11.SunPKCS11 -providerArg p11-nss.txt -storepass test12 -list

      Exception: Exception in thread "main" java.lang.reflect.InvocationTargetException
      at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
      at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)
      at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
      at java.lang.reflect.Constructor.newInstance(Constructor.java:525)
      at sun.security.tools.KeyTool.doCommands(KeyTool.java:677)
      at sun.security.tools.KeyTool.run(KeyTool.java:338)
      at sun.security.tools.KeyTool.main(KeyTool.java:331)
      at KeyToolTest.test(KeyToolTest.java:157)
      at KeyToolTest.test(KeyToolTest.java:126)
      at KeyToolTest.testOK(KeyToolTest.java:173)
      at KeyToolTest.testPKCS11(KeyToolTest.java:508)
      at KeyToolTest.main(KeyToolTest.java:1304)
      Caused by: java.security.ProviderException: Library /Users/spb-standard/ledkov/jdk/test/sun/security/tools/keytool/../../pkcs11/nss/lib/bsd-i586/libsoftokn3.dylib does not exist
      at sun.security.pkcs11.SunPKCS11.<init>(SunPKCS11.java:292)
      at sun.security.pkcs11.SunPKCS11.<init>(SunPKCS11.java:103)

            weijun Weijun Wang
            juh Jason Uh (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: