java.lang.ExceptionInInitializerError in creating AWSCredentials on Ubuntu

46 views
Skip to first unread message

Kenji

unread,
Mar 26, 2009, 1:27:07 AM3/26/09
to JetS3t Users
Hi,

I am using Ubuntu and sun-java-6-1.6.0.10 + sunpkcs11.jar. I am trying
to run sample upload jet3St program. However, I got the following
error when I create AWSCredentials like the following. Does anybody
encounter this? If so, how can I resolve this issue?

AWSCredentials awsCredentials =
new AWSCredentials(awsAccessKey, awsSecretKey);

Error:

java.lang.ExceptionInInitializerError
at sun.text.normalizer.NormalizerBase.decompose(NormalizerBase.java:
707)
at sun.text.normalizer.NormalizerBase$NFKDMode.normalize
(NormalizerBase.java:348)
at sun.text.normalizer.NormalizerBase.normalize(NormalizerBase.java:
1592)
at sun.text.normalizer.NormalizerBase.normalize(NormalizerBase.java:
1573)
at java.text.Normalizer.normalize(Normalizer.java:146)
at sun.security.x509.AVA.toRFC2253CanonicalString(AVA.java:986)
at sun.security.x509.RDN.toRFC2253StringInternal(RDN.java:430)
at sun.security.x509.RDN.toRFC2253String(RDN.java:409)
at sun.security.x509.X500Name.getRFC2253CanonicalName(X500Name.java:
714)
at sun.security.x509.X500Name.equals(X500Name.java:400)
at sun.security.pkcs.PKCS7.getCertificate(PKCS7.java:609)
at sun.security.pkcs.SignerInfo.getCertificate(SignerInfo.java:202)
at sun.security.pkcs.SignerInfo.verify(SignerInfo.java:328)
at sun.security.pkcs.PKCS7.verify(PKCS7.java:494)
at sun.security.pkcs.PKCS7.verify(PKCS7.java:511)
at sun.security.util.SignatureFileVerifier.processImpl
(SignatureFileVerifier.java:199)
at sun.security.util.SignatureFileVerifier.process
(SignatureFileVerifier.java:176)
at java.util.jar.JarVerifier.processEntry(JarVerifier.java:277)
at java.util.jar.JarVerifier.update(JarVerifier.java:188)
at java.util.jar.JarFile.initializeVerifier(JarFile.java:321)
at java.util.jar.JarFile.getInputStream(JarFile.java:386)
at sun.misc.URLClassPath$JarLoader$2.getInputStream(URLClassPath.java:
689)
at sun.misc.Resource.cachedInputStream(Resource.java:59)
at sun.misc.Resource.getByteBuffer(Resource.java:154)
at java.net.URLClassLoader.defineClass(URLClassLoader.java:249)
at java.net.URLClassLoader.access$000(URLClassLoader.java:56)
at java.net.URLClassLoader$1.run(URLClassLoader.java:195)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
at java.lang.ClassLoader.loadClass(ClassLoader.java:252)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320)
Caused by: java.lang.RuntimeException: could not locate data
at sun.text.normalizer.NormalizerImpl.<clinit>(NormalizerImpl.java:
44)
... 56 more
... Removed 22 stack frames

James Murty

unread,
Mar 26, 2009, 2:26:58 AM3/26/09
to jets3t...@googlegroups.com
I believe the sunpkcs11.jar is kind of old, is there a reason you are using this with Java version 6?

All the encryption and certificate management tools you need should be included with a standard Java installation. At worst, you may need to install the full-strength cryptography provider to enable better encryption algorithms.

James

---
http://www.jamesmurty.com
Reply all
Reply to author
Forward
0 new messages