-
Bug
-
Resolution: Cannot Reproduce
-
P3
-
None
-
7
-
generic
-
generic
sun.security.provider.certpath.OCSPChecker will thrown NullPointerException to init the CertificatRevokedException.
----------
e.getCause(): java.lang.NullPointerException
e.getLocalizedMessage(): java.lang.NullPointerException
e.getIndex(): 0
RESULT: FALSE
java.security.cert.CertPathValidatorException: java.lang.NullPointerException
at sun.security.provider.certpath.PKIXMasterCertPathValidator.validate(PKIXMasterCertPathValidator.java:155)
at sun.security.provider.certpath.PKIXCertPathValidator.doValidate(PKIXCertPathValidator.java:322)
at sun.security.provider.certpath.PKIXCertPathValidator.engineValidate(PKIXCertPathValidator.java:187)
at java.security.cert.CertPathValidator.validate(CertPathValidator.java:268)
at TestOCSP.run(TestOCSP.java:209)
at TestOCSP.main(TestOCSP.java:60)
Caused by: java.lang.NullPointerException
at java.security.cert.CertificateRevokedException.<init>(CertificateRevokedException.java:93)
at sun.security.provider.certpath.OCSPChecker.check(OCSPChecker.java:378)
at sun.security.provider.certpath.PKIXMasterCertPathValidator.validate(PKIXMasterCertPathValidator.java:133)
... 5 more
-------------
steps to reproduce this problem :
1. cd /java/sqe/comp/jsn/all_workspace/7_int/security/src/CertPath/CertPathValidatorTest
2. cp -r OCSP <whatever you want to copied place>
3. cd <<whatever you want to copied place>
4. javac TestOCSP.java
5. java TestOCSP ./testcase/openssl/OpenSSL_User_Revoke
In step 5 , if we use jdk 6 release, i.g. /java/re/jdk/6.0/latest/binaries/solaris-sparc/bin/java , you will get the correct exception as below :
---------
e.getCause(): null
e.getLocalizedMessage(): Certificate has been revoked
e.getIndex(): 0
RESULT: PASS
----------
But , it we use jdk 7 latest build or our nightly build , we will see NullPointerException.
----------
e.getCause(): java.lang.NullPointerException
e.getLocalizedMessage(): java.lang.NullPointerException
e.getIndex(): 0
RESULT: FALSE
java.security.cert.CertPathValidatorException: java.lang.NullPointerException
at sun.security.provider.certpath.PKIXMasterCertPathValidator.validate(PKIXMasterCertPathValidator.java:155)
at sun.security.provider.certpath.PKIXCertPathValidator.doValidate(PKIXCertPathValidator.java:322)
at sun.security.provider.certpath.PKIXCertPathValidator.engineValidate(PKIXCertPathValidator.java:187)
at java.security.cert.CertPathValidator.validate(CertPathValidator.java:268)
at TestOCSP.run(TestOCSP.java:209)
at TestOCSP.main(TestOCSP.java:60)
Caused by: java.lang.NullPointerException
at java.security.cert.CertificateRevokedException.<init>(CertificateRevokedException.java:93)
at sun.security.provider.certpath.OCSPChecker.check(OCSPChecker.java:378)
at sun.security.provider.certpath.PKIXMasterCertPathValidator.validate(PKIXMasterCertPathValidator.java:133)
... 5 more
-------------
steps to reproduce this problem :
1. cd /java/sqe/comp/jsn/all_workspace/7_int/security/src/CertPath/CertPathValidatorTest
2. cp -r OCSP <whatever you want to copied place>
3. cd <<whatever you want to copied place>
4. javac TestOCSP.java
5. java TestOCSP ./testcase/openssl/OpenSSL_User_Revoke
In step 5 , if we use jdk 6 release, i.g. /java/re/jdk/6.0/latest/binaries/solaris-sparc/bin/java , you will get the correct exception as below :
---------
e.getCause(): null
e.getLocalizedMessage(): Certificate has been revoked
e.getIndex(): 0
RESULT: PASS
----------
But , it we use jdk 7 latest build or our nightly build , we will see NullPointerException.