Thursday, October 09, 2008

Oracle BEA Weblogic Server 10 "invalid pad byte" error

First of first, BEA has the worst error message ever, it just does not make any sense, maybe just for me!

When switch to a new weblogic domain, we like to copy the configuration files to the new domain in order to reserve some configurations works, such as JMS, JDBC settings.

However, you may get com.rsa.jsafe.JSAFE_PaddingException: Could not perform unpadding: invalid pad byte.

Does this give you any hint that your password-encrypt is incorrect?

You may need to re-encrypt your password in the new domain by using the BEA supplied tool to archive this goal.
java -cp ./weblogic/server/lib/weblogic.jar -Dweblogic.RootDirectory={your domain} {your plain text password}


Harish Chandra said...

This error message does not give any clue what is the problem.

All domain as different salt for encryption so sometime if you miss to update the encrypted password with the new salt you get this error.

My team is creating multiple WLS clustered env so we had this issue.


Alexander Lipatov said...

Thank you! Very useful information. WebLogic must has name "WomanLogic" ;-)