11-30-2016 03:25 AM
I look forward to answering. Thank you
type Exception report
message class configured for MessageDigest(provider: BC) cannot be found.
description The server encountered an internal error that prevented it from fulfilling this request.
exception
java.lang.RuntimeException: class configured for MessageDigest(provider: BC) cannot be found.
com.uwiseone.sso.server.service.security.MD4PasswordEncoder.md4(MD4PasswordEncoder.java:96)
com.uwiseone.sso.server.service.security.MD4PasswordEncoder.encodeInternal(MD4PasswordEncoder.java:79)
com.uwiseone.sso.server.service.security.MD4PasswordEncoder.encodePassword(MD4PasswordEncoder.java:74)
com.uwiseone.sso.server.service.CustomAuthenticationProvider.authenticate(CustomAuthenticationProvider.java:81)
org.springframework.security.authentication.ProviderManager.authenticate(ProviderManager.java:156)
org.springframework.security.authentication.ProviderManager.authenticate(ProviderManager.java:177)
com.uwiseone.sso.server.service.CustomUsernamePasswordAuthenticationFilter.attemptAuthentication(CustomUsernamePasswordAuthenticationFilter.java:51)
org.springframework.security.web.authentication.AbstractAuthenticationProcessingFilter.doFilter(AbstractAuthenticationProcessingFilter.java:211)
org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342)
org.springframework.security.web.authentication.logout.LogoutFilter.doFilter(LogoutFilter.java:110)
org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342)
org.springframework.security.web.header.HeaderWriterFilter.doFilterInternal(HeaderWriterFilter.java:57)
org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:108)
org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342)
org.springframework.security.web.context.SecurityContextPersistenceFilter.doFilter(SecurityContextPersistenceFilter.java:87)
org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342)
org.springframework.security.web.context.request.async.WebAsyncManagerIntegrationFilter.doFilterInternal(WebAsyncManagerIntegrationFilter.java:50)
org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:108)
org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342)
org.springframework.security.web.FilterChainProxy.doFilterInternal(FilterChainProxy.java:192)
org.springframework.security.web.FilterChainProxy.doFilter(FilterChainProxy.java:160)
org.springframework.web.filter.DelegatingFilterProxy.invokeDelegate(DelegatingFilterProxy.java:344)
org.springframework.web.filter.DelegatingFilterProxy.doFilter(DelegatingFilterProxy.java:261)
root cause
java.security.NoSuchAlgorithmException: class configured for MessageDigest(provider: BC) cannot be found.
java.security.Provider$Service.getImplClass(Provider.java:1292)
java.security.Provider$Service.newInstance(Provider.java:1237)
sun.security.jca.GetInstance.getInstance(GetInstance.java:236)
sun.security.jca.GetInstance.getInstance(GetInstance.java:164)
java.security.Security.getImpl(Security.java:695)
java.security.MessageDigest.getInstance(MessageDigest.java:167)
com.uwiseone.sso.server.service.security.MD4PasswordEncoder.md4(MD4PasswordEncoder.java:93)
com.uwiseone.sso.server.service.security.MD4PasswordEncoder.encodeInternal(MD4PasswordEncoder.java:79)
com.uwiseone.sso.server.service.security.MD4PasswordEncoder.encodePassword(MD4PasswordEncoder.java:74)
com.uwiseone.sso.server.service.CustomAuthenticationProvider.authenticate(CustomAuthenticationProvider.java:81)
org.springframework.security.authentication.ProviderManager.authenticate(ProviderManager.java:156)
org.springframework.security.authentication.ProviderManager.authenticate(ProviderManager.java:177)
com.uwiseone.sso.server.service.CustomUsernamePasswordAuthenticationFilter.attemptAuthentication(CustomUsernamePasswordAuthenticationFilter.java:51)
org.springframework.security.web.authentication.AbstractAuthenticationProcessingFilter.doFilter(AbstractAuthenticationProcessingFilter.java:211)
org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342)
org.springframework.security.web.authentication.logout.LogoutFilter.doFilter(LogoutFilter.java:110)
org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342)
org.springframework.security.web.header.HeaderWriterFilter.doFilterInternal(HeaderWriterFilter.java:57)
org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:108)
org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342)
org.springframework.security.web.context.SecurityContextPersistenceFilter.doFilter(SecurityContextPersistenceFilter.java:87)
org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342)
org.springframework.security.web.context.request.async.WebAsyncManagerIntegrationFilter.doFilterInternal(WebAsyncManagerIntegrationFilter.java:50)
org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:108)
org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342)
org.springframework.security.web.FilterChainProxy.doFilterInternal(FilterChainProxy.java:192)
org.springframework.security.web.FilterChainProxy.doFilter(FilterChainProxy.java:160)
org.springframework.web.filter.DelegatingFilterProxy.invokeDelegate(DelegatingFilterProxy.java:344)
org.springframework.web.filter.DelegatingFilterProxy.doFilter(DelegatingFilterProxy.java:261)
root cause
java.lang.ClassNotFoundException: org.bouncycastle.jce.provider.JDKMessageDigest$MD4
org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1714)
org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1559)
java.security.Provider$Service.getImplClass(Provider.java:1281)
java.security.Provider$Service.newInstance(Provider.java:1237)
sun.security.jca.GetInstance.getInstance(GetInstance.java:236)
sun.security.jca.GetInstance.getInstance(GetInstance.java:164)
java.security.Security.getImpl(Security.java:695)
java.security.MessageDigest.getInstance(MessageDigest.java:167)
com.uwiseone.sso.server.service.security.MD4PasswordEncoder.md4(MD4PasswordEncoder.java:93)
com.uwiseone.sso.server.service.security.MD4PasswordEncoder.encodeInternal(MD4PasswordEncoder.java:79)
com.uwiseone.sso.server.service.security.MD4PasswordEncoder.encodePassword(MD4PasswordEncoder.java:74)
com.uwiseone.sso.server.service.CustomAuthenticationProvider.authenticate(CustomAuthenticationProvider.java:81)
org.springframework.security.authentication.ProviderManager.authenticate(ProviderManager.java:156)
org.springframework.security.authentication.ProviderManager.authenticate(ProviderManager.java:177)
com.uwiseone.sso.server.service.CustomUsernamePasswordAuthenticationFilter.attemptAuthentication(CustomUsernamePasswordAuthenticationFilter.java:51)
org.springframework.security.web.authentication.AbstractAuthenticationProcessingFilter.doFilter(AbstractAuthenticationProcessingFilter.java:211)
org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342)
org.springframework.security.web.authentication.logout.LogoutFilter.doFilter(LogoutFilter.java:110)
org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342)
org.springframework.security.web.header.HeaderWriterFilter.doFilterInternal(HeaderWriterFilter.java:57)
org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:108)
org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342)
org.springframework.security.web.context.SecurityContextPersistenceFilter.doFilter(SecurityContextPersistenceFilter.java:87)
org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342)
org.springframework.security.web.context.request.async.WebAsyncManagerIntegrationFilter.doFilterInternal(WebAsyncManagerIntegrationFilter.java:50)
org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:108)
org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342)
org.springframework.security.web.FilterChainProxy.doFilterInternal(FilterChainProxy.java:192)
org.springframework.security.web.FilterChainProxy.doFilter(FilterChainProxy.java:160)
org.springframework.web.filter.DelegatingFilterProxy.invokeDelegate(DelegatingFilterProxy.java:344)
org.springframework.web.filter.DelegatingFilterProxy.doFilter(DelegatingFilterProxy.java:261)
note The full stack trace of the root cause is available in the Apache Tomcat/7.0.42 logs.
11-30-2016 08:24 AM
Hi Jinho,
Would you please share a context for this stacktrace?
For example:
What are you trying to do?
Which is the source code that generate this error?
Cheers.
12-21-2016 05:59 PM
Form the stacktrace it appears that issue has either nothing or almost nothing to do with Alfresco. Maybe you should contact UWISEONE for help / support on this as a library of theirs seems to be involved.
12-21-2016 09:18 PM
The root cause is java.lang.ClassNotFoundException: org.bouncycastle.jce.provider.JDKMessageDigest$MD4
It seems BouncyCastle Security provider is not installed correctly
1.Please check to make sure bcprov-jdk***.jar is in your classpath.
2.Please check if provider is registered correctly,there are two options to register provider:
1 modify %JDK_HOME%\jre\lib\security\java.security file
2.check if the provider is programatically registered in your uwiseone:
Tags
Find what you came for
We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.