JDK-6285836 : SunPKCS11 is not working on Solaris-amd64 with 1.5.0_04-b05 64bit JDK
  • Type: Bug
  • Component: security-libs
  • Sub-Component: javax.crypto:pkcs11
  • Affected Version: 5.0u4
  • Priority: P2
  • Status: Closed
  • Resolution: Cannot Reproduce
  • OS: solaris_10
  • CPU: x86
  • Submitted: 2005-06-15
  • Updated: 2010-04-02
  • Resolved: 2005-06-16
Related Reports
Relates :  
Description
SunPKCS11 is not working on Solaris-amd64 using 1.5.0_04-b05 64bit JDK
with 64 bit JDK its saying 'SunPKCS11-Solaris provider not installed'

Test Machine details:
---------------------
bash-3.00# uname -a
SunOS urt-01 5.10 Generic_Patch i86pc i386 i86pc
bash-3.00# cat /etc/release
                        Solaris 10 7/05 s10x_u1wos_04 X86
           Copyright 2005 Sun Microsystems, Inc.  All Rights Reserved.
                        Use is subject to license terms.
                             Assembled 28 March 2005
JDK Version:
------------
JDK under test: (/export/updates/Regression/jdk1.5.0_04)
java version "1.5.0_04"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_04-b05)
Java HotSpot(TM) 64-Bit Server VM (build 1.5.0_04-b05, mixed mode)

Test Case : DefaultPKCS11
Location: <Regression-Worspace>/test/java/security/Provider/DefaultPKCS11.java

System.out:
-----------
Running on SunOS 5.10
Providers: [SUN version 1.5, SunRsaSign version 1.5, SunJSSE version 1.5, SunJCE version 1.5, SunJGSS version 1.0, SunSASL version 1.5]

System.err:
-----------

java.lang.Exception: SunPKCS11-Solaris provider not installed
	at DefaultPKCS11.main(DefaultPKCS11.java:38)
	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:585)
	at com.sun.javatest.regtest.MainWrapper$MainThread.run(MainWrapper.java:83)
	at java.lang.Thread.run(Thread.java:595)

JavaTest Message: Test threw exception: java.lang.Exception: SunPKCS11-Solaris provider not installed
JavaTest Message: shutting down test

STATUS:Failed.`main' threw exception: java.lang.Exception: SunPKCS11-Solaris provider not installed


bash-3.00# /export/updates/Regression/jdk1.5.0_04/bin/java -d64 DefaultPKCS11
Running on SunOS 5.10
Providers: [SUN version 1.5, SunRsaSign version 1.5, SunJSSE version 1.5, SunJCE version 1.5, SunJGSS version 1.0, SunSASL version 1.5]

Exception in thread "main" java.lang.Exception: SunPKCS11-Solaris provider not installed
        at DefaultPKCS11.main(DefaultPKCS11.java:39)


###@###.### 2005-06-15 09:45:40 GMT

Comments
EVALUATION I can reproduce the problem on urt-01.india running s10x_u1wos_04 but not on a machine running the current S10 U1 build 08: === <as130790@splendor java/security/Provider>uname -a SunOS splendor 5.10 Generic_118844-05 i86pc i386 i86pc <as130790@splendor java/security/Provider>cat /etc/release Solaris 10 10/05 s10x_u1wos_08 X86 Copyright 2005 Sun Microsystems, Inc. All Rights Reserved. Use is subject to license terms. Assembled 31 May 2005 <as130790@splendor java/security/Provider>/java/re/j2se/5.0u4/latest/binaries/solaris-amd64/bin/java -d64 -showversion DefaultPKCS11 java version "1.5.0_04" Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_04-b05) Java HotSpot(TM) 64-Bit Server VM (build 1.5.0_04-b05, mixed mode) Running on SunOS 5.10 Providers: [SunPKCS11-Solaris version 1.5, SUN version 1.5, SunRsaSign version 1.5, SunJSSE version 1.5, SunJCE version 1.5, SunJGSS version 1.0, SunSASL version 1.5] OK <as130790@splendor java/security/Provider> === Please upgrade your test machine to a current build and check if the test still fails. Marking incomplete. ###@###.### 2005-06-15 17:04:20 GMT not reproducible with the latest solaris build(s10x_u1wos_08) . ###@###.### 2005-06-16 09:34:54 GMT
15-06-2005