Sometimes on OS X 10.6.x with JDK6 loading the Hmac provider produces an
exception that looks like the one pasted at the end of this issue. Googling
around it seems like this is an OS X JDK bug. The patch provided allows you to
load and use the Bouncycastle security provider if it is available on the
classpath for encoding the AWSConnection data packet.
java.lang.InternalError: Could not start up the CDSA libraries.
at java.lang.ClassLoader$NativeLibrary.load(Native Method)
at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1878)
at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1779)
at java.lang.Runtime.loadLibrary0(Runtime.java:823)
at java.lang.System.loadLibrary(System.java:1045)
at com.apple.crypto.provider.HmacCore.<clinit>(HmacCore.java:26)
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:513)
at java.lang.Class.newInstance0(Class.java:355)
at java.lang.Class.newInstance(Class.java:308)
at java.security.Provider$Service.newInstance(Provider.java:1221)
at javax.crypto.Mac.a(DashoA13*..)
at javax.crypto.Mac.init(DashoA13*..)
at com.xerox.amazonws.common.AWSConnection.encode(AWSConnection.java:153)
at com.xerox.amazonws.common.AWSQueryConnection.makeRequest(AWSQueryConnection.java:301)
Original issue reported on code.google.com by james.w....@gmail.com on 6 Oct 2010 at 4:28
Original issue reported on code.google.com by
james.w....@gmail.com
on 6 Oct 2010 at 4:28Attachments: