Problems with HMAC when switching to Java 6
- by Pablo Fernandez
We have recently switched to java6 and it's mandatory in the project.
One of our apps that used to work is failing, with this stacktrace (relevant part)
java.lang.NoClassDefFoundError: Could not initialize class com.apple.crypto.provider.HmacSHA1
sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
java.lang.reflect.Constructor.newInstance(Constructor.java:513)
java.lang.Class.newInstance0(Class.java:355)
java.lang.Class.newInstance(Class.java:308)
java.security.Provider$Service.newInstance(Provider.java:1221)
javax.crypto.Mac.a(DashoA13*..)
javax.crypto.Mac.init(DashoA13*..)
Has anyone had this problem before?
Thanks a lot