Weblogic部署异常:PaddingException:无法执行取消填充:无效的填充字节 [英] Weblogic Deployment Exception : PaddingException: Could not perform unpadding: invalid pad byte
问题描述
仅向我最近想出了我的Web应用程序的部署异常(在从SVN存储库收到一些更改之后),内容是:
I have recently came up with a deployment Exception of my web application (after receiving some changes from the SVN Repository) that said:
<错误><任务'1'的ID为'1350377960779'的Deployer>.错误是:"com.rsa.jsafe.JSAFE_PaddingException:无法执行填充:无效的填充字节." com.rsa.jsafe.JSAFE_PaddingException:无法执行取消填充:无效的填充字节. 在com.rsa.jsafe.c.a(未知来源) 在com.rsa.jsafe.JSAFE_SymmetricCipher.decryptFinal(未知来源) 在weblogic.security.internal.encryption.JSafeEncryptionServiceImpl.decryptBytes(JSafeEncryptionServiceImpl.java:124) 在weblogic.security.internal.encryption.JSafeEncryptionServiceImpl.decryptString(JSafeEncryptionServiceImpl.java:184) 在weblogic.security.internal.encryption.ClearOrEncryptedService.decrypt(ClearOrEncryptedService.java:96) 被截断了.请参阅日志文件以获取完整的stacktrace 原因:com.rsa.jsafe.JSAFE_PaddingException:无法执行填充:无效的填充字节.
< Error > < Deployer > with ID '1350377960779' for task '1'. Error is: 'com.rsa.jsafe.JSAFE_PaddingException: Could not perform unpadding: invalid pad byte.' com.rsa.jsafe.JSAFE_PaddingException: Could not perform unpadding: invalid pad byte. at com.rsa.jsafe.c.a(Unknown Source) at com.rsa.jsafe.JSAFE_SymmetricCipher.decryptFinal(Unknown Source) at weblogic.security.internal.encryption.JSafeEncryptionServiceImpl.decryptBytes(JSafeEncryptionServiceImpl.java:124) at weblogic.security.internal.encryption.JSafeEncryptionServiceImpl.decryptString(JSafeEncryptionServiceImpl.java:184) at weblogic.security.internal.encryption.ClearOrEncryptedService.decrypt(ClearOrEncryptedService.java:96) Truncated. see log file for complete stacktrace Caused By: com.rsa.jsafe.JSAFE_PaddingException: Could not perform unpadding: invalid pad byte.
推荐答案
谷歌搜索答案并不是很有帮助.在检查了从我的SVN存储库收到的文件之后,我注意到jdbc应用程序资源已更改.
Googling to find an answer was not very helpful. After examining the files received from my SVN repository, i noticed that a jdbc application resource was changed.
更仔细地检查jdbc资源,我发现它使用的是password-encrypted
属性,该属性仅用于生产环境
Examining the jdbc resource more closely i found that it was using the password-encrypted
property which is used only for production environments
<password-encrypted>{AES}some+very+long+encrypted+string</password-encrypted>
所以我注释掉了该属性,并使用了用于开发环境的属性:
So I commented out this property and used the property used for the development environment:
<properties>
<property>
<name>user</name>
<value>MY_USER</value>
</property>
<property>
<name>password</name>
<value>MY_PASS_IN_PLAIN_TEXT</value>
</property>
</properties>
那很好用.
这篇关于Weblogic部署异常:PaddingException:无法执行取消填充:无效的填充字节的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!