harmony-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Gregory Shimansky <gshiman...@apache.org>
Subject Re: Reg: java.lang.SecurityException: K00ec
Date Thu, 05 Mar 2009 19:11:52 GMT
Hello Suneja

It is always better to send your questions to the development list rather than 
to individuals. I have a rather limited experience with IBM J9VM and java 
security. Could anyone here give Suneja some help?

On 5 March 2009 Nishant Suneja wrote:
> Hi
>
> I was looking for a solution pertaining to my problem regarding the above
> mentioned exception, when i came across this post of yours
> where you too had encountered a similar kind of exception.
>
> The work i am doing is that i have to install sun security provider on IBM
> J9VM environment.
> For that i copied the jce.jar, jsse.jar and sunjce_provider.jar from J2SE
> platform to J9VM environment.
> Now, when i run the program, i get the following error stack::
>
> j*ava.lang.SecurityException: K00ec
> java.util.jar.JarVerifier.verifyCertificate (Unknown Source)
> java.util.jar.JarVerifier.readCertificates (Unknown Source)*
> java.util.jar.JarFile.getInputStream (Unknown Source)
> java.net.URLClassLoader.findClassImpl (Unknown Source)
> java.net.URLClassLoader$4.run (Unknown Source)
> java.security.AccessController.doPrivileged (Unknown Source)
> java.net.URLClassLoader.findClass (Unknown Source)
> com.ibm.oti.vm.URLSystemClassLoader.findClass (Unknown Source)
> java.lang.ClassLoader.loadClass (Unknown Source)
> com.ibm.oti.vm.URLSystemClassLoader.loadClass (Unknown Source)
> java.lang.ClassLoader.loadClass (Unknown Source)
> com.ibm.oti.vm.URLSystemClassLoader.loadClass (Unknown Source)
> java.lang.ClassLoader.loadClass (Unknown Source)
> java.lang.Class.forNameImpl (Unknown Source)
> java.lang.Class.forName (Unknown Source)
> java.security.Security$1.run (Unknown Source)
> java.security.AccessController.doPrivileged (Unknown Source)
> java.security.Security.loadSecurityProviders (Unknown Source)
> java.security.Security.getProviders (Unknown Source)
> javax.net.ssl.SSLContext.getInstance (Unknown Source)
> org.jivesoftware.smack.XMPPConnection.proceedTLSReceived (Unknown Source)
> org.jivesoftware.smack.PacketReader.parsePackets (Unknown Source)
> org.jivesoftware.smack.PacketReader.access$000 (Unknown Source)
> org.jivesoftware.smack.PacketReader$1.run (Unknown Source)
> security:: false
> true
> *Failed to load the SHA-1 MessageDigest. Jive will be unable to function
> normally.*
> Exception in thread "main" java.lang.NullPointerException
> org.jivesoftware.smack.util.StringUtils.hash (Unknown Source)
> org.jivesoftware.smack.packet.Authentication.setDigest (Unknown Source)
> org.jivesoftware.smack.NonSASLAuthentication.authenticate (Unknown Source)
> org.jivesoftware.smack.XMPPConnection.login (Unknown Source)
> org.jivesoftware.smack.XMPPConnection.login (Unknown Source)
> xmpp.UC500Client.main (Unknown Source)
>
>
>
> So, basically the problem comes when the verification of the security
> provider jar files is done.
> Now, what could the reason for that ?
> Like in your post you mentioned " *SHA1 provider cannot be found by
> security API to check the signature*."
> Is this the problem here to ?
> How shall i go about solving this problem ?
> Kindly help.
>
> Nishant
-- 
Gregory

Mime
View raw message