Skip to Main Content

Java Security

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

internal error: SHA-1 not available

843810Apr 16 2003 — edited Apr 24 2003
i have code i recently ported over from jdk1.2.2 with jce1.2.1 to jdk1.4.1_02. the code used to run perfectly and now i get this error:

failure (13665): Internal error: Unexpected error condition thrown (unknown exception,no description), stack: java.lang.InternalError: internal error: SHA-1 not available.
at sun.security.provider.SecureRandom.init(SecureRandom.java:86)
at sun.security.provider.SecureRandom.<init>(SecureRandom.java:65)
at java.security.SecureRandom.<init>(SecureRandom.java:131)
at com.sun.crypto.provider.SunJCE.<clinit>(DashoA6275)
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.lang.Class.newInstance0(Class.java:306)
at java.lang.Class.newInstance(Class.java:259)
at java.security.Provider.loadProvider(Provider.java:153)
at java.security.Security$2.run(Security.java:278)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.Security.reloadProviders(Security.java:274)
at java.security.Security.getProviders(Security.java:813)
at javax.crypto.Cipher.getInstance(DashoA6275)
at net.cainkade.util.EncryptionUtil.encrypt(EncryptionUtil.java:49)
at net.cainkade.util.EncryptionUtil.encrypt(EncryptionUtil.java:36)
at net.cainkade.portal.providers.sp.SPAuth.buildAuthToken(SPAuth.java:42)
at net.cainkade.portal.providers.sp.SPData.getAuth(SPData.java:116)
at net.cainkade.portal.servlet.CheckAuth.doPost(CheckAuth.java:50)
at net.cainkade.portal.servlet.CheckAuth.doGet(CheckAuth.java:30)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at com.iplanet.server.http.servlet.NSServletRunner.invokeServletService(NSServletRunner.java:919)
at com.iplanet.server.http.servlet.WebApplication.service(WebApplication.java:1061)
at com.iplanet.server.http.servlet.NSServletRunner.ServiceWebApp(NSServletRunner.java:981)


The MessageDigest.getInstance("SHA") executes fine but the code breaks in the Cipher class. I am assuming it is a configuration problem but i can't seem to locate it. I have searched the web and have found no answers. If anybody can help, i would be extremely grateful. thanks in advance for any help you can lend.

peace,
cainkade
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on May 22 2003
Added on Apr 16 2003
1 comment
794 views