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

tests fail when trying to create x509 certificate

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: P3 P3
    • None
    • 1.4.0
    • security-libs
    • None

      when tried to do this:

      FileInputStream fis;

                  try {
                       fis = new FileInputStream("cert_file");
                       CertificateFactory cf
                                            = CertificateFactory.getInstance("X.509");
                       cert[0] = (Certificate) cf.generateCertificate(fis); -->

      The following error is thrown


      This failure effects lot of other tests.


      Exception in thread "main" java.lang.ExceptionInInitializerError
          at sun.security.x509.CertificateIssuerName.<init>(CertificateIssuerName.java:59)
          at sun.security.x509.X509CertInfo.parse(X509CertInfo.java:666)
          at sun.security.x509.X509CertInfo.<init>(X509CertInfo.java:155)
          at sun.security.x509.X509CertImpl.parse(X509CertImpl.java:1268)
          at sun.security.x509.X509CertImpl.<init>(X509CertImpl.java:189)
          at sun.security.provider.X509Factory.engineGenerateCertificate(X509Factory.java:98)
          at java.security.cert.CertificateFactory.generateCertificate(CertificateFactory.jav
      a:300)
          at AP.main(AP.java:150)
      Caused by: java.util.MissingResourceException: Can't find bundle for base name sun.secu
      rity.util.Resources, locale en
          at java.util.ResourceBundle.throwMissingResourceException(ResourceBundle.java:800)
          at java.util.ResourceBundle.getBundleImpl(ResourceBundle.java:770)
          at java.util.ResourceBundle.getBundle(ResourceBundle.java:514)
          at javax.security.auth.x500.X500Principal.<clinit>(X500Principal.java:32)
          ... 8 more

            rmartisunw Ramachandran Marti (Inactive)
            slakkara Sriramulu Lakkaraju (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: