Hi,

I have inherited a jmanage 1.0.4 installation and I am having difficulties in getting it to start up.

I receive this error from pretty much every single script in the /bin directory:

Exception in thread "main" java.lang.RuntimeException: javax.crypto.BadPaddingException: Given final block not properly padded
        at org.jmanage.core.crypto.EncryptedKey.getDecrypted(EncryptedKey.java:116)
        at org.jmanage.core.crypto.EncryptedKey.<init>(EncryptedKey.java:69)
        at org.jmanage.core.crypto.KeyManager.readKey(KeyManager.java:53)
        at org.jmanage.core.crypto.Crypto.init(Crypto.java:47)
        at org.jmanage.webui.Startup.main(Startup.java:92)
Caused by: javax.crypto.BadPaddingException: Given final block not properly padded
        at com.sun.crypto.provider.SunJCE_h.b(DashoA12275)
        at com.sun.crypto.provider.SunJCE_h.b(DashoA12275)
        at com.sun.crypto.provider.SunJCE_af.b(DashoA12275)
        at com.sun.crypto.provider.PBEWithMD5AndDESCipher.engineDoFinal(DashoA12275)
        at javax.crypto.Cipher.doFinal(DashoA12275)
        at org.jmanage.core.crypto.EncryptedKey.getDecrypted(EncryptedKey.java:114)
        ... 4 more

OS: Solaris 10
Java: 1.5_017

Does anyone happen to know what could be causing this?  We have jmanage running on two identical Solaris machines, they both have JDK 1.5.  I have not attempted to restart the other instance because it is running, but I need to get it running again on this machine.

Thank you.