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

TEST_BUG: Regtest-test .../CRLNullPointer.java fails (hardcoded URL)

    XMLWordPrintable

Details

    • mantis
    • x86
    • linux, solaris_8, windows_xp
    • Verified

    Description



      Name: asR10013 Date: 09/24/2002


      Filed By : J2SE-SQA [###@###.###
      JDK : JDK1.4.2-b02
      Testbase : RegTest-test
      Platform[s] : RedHat Linux 7.2 (GNOME), Windows XP Home, Solaris 8 (sparc), Solaris 8 (x86)
      Falling test[s]:
          sun/security/provider/certpath/LDAPCertStore/CRLNullPointer.java

      The Regtest-test test sun/security/provider/certpath/LDAPCertStore/CRLNullPointer.java fails on JDK1.4.2-b02.
      This is a new test and it fails on JDK1.4.1-b21 too.
      The probable cause of the failure is that the test uses the hardcoded "oasis.ireland"
      server name which is not available to outside SWAN.

      jtr file location:
      ==================
      /net/jtgb4u4c.eng/export/sail15/results/mantis/b02/regtest/linux/redhat7.2_gnome_smp__linux-24/workDir/test/sun/security/provider/certpath/LDAPCertStore/CRLNullPointer.jtr

      How to reproduce:
      =================
      Run the following script (you may need to change variables)
       
      --- script start ---

      #!/bin/bash

      PS=':'
      JDK=/net/linux-15/export/home/java/jdk1.4.2/linux
      TEST_BASE=/net/linux-15/export/home/java/regtest
      JT=/net/linux-15/export/home/java/jct/lib/javatest.jar
      JTREG=/net/linux-15/export/home/java/jct/lib/jtreg.jar

      TEST_BASE_ROOT=$TEST_BASE/test
      TEST_PACKAGE=sun/security/provider/certpath/LDAPCertStore

      TEST_SHORT_NAME=CRLNullPointer
      TEST_NAME=$TEST_PACKAGE/$TEST_SHORT_NAME

      TEST_SRC=$TEST_BASE_ROOT/${TEST_NAME}.java

      export CLASSPATH=.${PS}${JDK}${PS}${JDK}/lib/tools.jar${PS}${TEST_BASE}${PS}${TEST_BASE_ROOT}/${TEST_PACKAGE}${PS}${JT}${PS}${JTREG}

      $JDK/bin/javac -g -classpath $CLASSPATH -d . $TEST_SRC

      $JDK/bin/java -cp $CLASSPATH $TEST_SHORT_NAME


      --- script end ---


      Test output:
      ============

      Exception in thread "main" java.security.InvalidAlgorithmParameterException: unable to create InitialDirContext using supplied parameters
              at sun.security.provider.certpath.LDAPCertStore.createInitialDirContext(LDAPCertStore.java:210)
              at sun.security.provider.certpath.LDAPCertStore.<init>(LDAPCertStore.java:162)
              at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
              at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
              at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
              at java.lang.reflect.Constructor.newInstance(Constructor.java:274)
              at java.security.Security.doGetImpl(Security.java:1134)
              at java.security.Security.getImpl(Security.java:1053)
              at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
              at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
              at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
              at java.lang.reflect.Method.invoke(Method.java:324)
              at java.security.cert.CertStore.getInstance(CertStore.java:230)
              at CRLNullPointer.main(CRLNullPointer.java:14)


      ======================================================================

      Attachments

        Activity

          People

            andreas Andreas Sterbenz
            alssunw Als Als (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: