Could someone please let me know the circumstances under which
java.security.KeyStore.load(InputStream, char[]) throws a
NullPoiterException, as follows:
KeyStore keyStore = KeyStore.getInstance("IAIKKeyStore", "IAIK");
if (keyStore != null)
keyStore.load(keyStoreFile, keyStorePassword);
java.lang.NullPointerException
at iaik.security.keystore.IAIKKeyStore.a(Unknown Source)
at iaik.security.keystore.IAIKKeyStore.engineLoad(Unknown Source)
at java.security.KeyStore.load(KeyStore.java:652)
...
I have limited experience with Java security but I'm trying to shift a
webapp that uses the above code from an old machine with Tomcat and
JDK1.3.1 to a new machine with Tomcat 4 and JDK1.4.2 (have tried 1.4.1
as well).
Any help would be greatly appreciated.
Regards,
Andrew.
Karl
"Andrew Miskelly" <amis...@theweather.com.au> wrote in message
news:b34e23f5.04011...@posting.google.com...
>keyStore.load(keyStoreFile, keyStorePassword);
do a check the neither keyStoreFile (nor keyStorePassword) are null.
--
Canadian Mind Products, Roedy Green.
Coaching, problem solving, economical contract programming.
See http://mindprod.com/jgloss/jgloss.html for The Java Glossary.
Karl
"Roedy Green" <look-at-t...@mindprod.com> wrote in message
news:oclo009e5kli3q056...@4ax.com...
BTW, the code does actually check that keyStoreFile is not null and
for what it's worth the password is also not null.
Thanks for your responses.
Regards,
Andrew.
I am having a similiar problem in migrating an app, which uses the free Togeher SMIME Library, from WebLogin 6.1 (JDK 1.3.1) to WebLogic 8.1 (JDK 1.4.1).
I just wondered how to make the jar file signed. Or is there any other free library available that works under JKD 1.4.1?
Thanks,
Kris