com.rsa.jsafe.JSAFE_PaddingException:WebLogic Server中的无效填充

问题描述

我正在使用listing_id = models.ForeignKey(Listing,on_delete=models.CASCADE,related_name='images')版本:WebLogic Server,当我尝试将12.1.3.0.0的目标设置为DataSource时,日志中显示以下错误

AdminServer

创建<2020.08.25. 10:51:27 CEST> <Error> <Deployer> <BEA-149265> <Failure occurred in the execution of deployment request with ID "71744041298900" for task "weblogic.deploy.configChangeTask.3". Error is: "com.rsa.jsafe.JSAFE_PaddingException: Invalid padding." com.rsa.jsafe.JSAFE_PaddingException: Invalid padding. 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:187) at weblogic.security.internal.encryption.ClearOrEncryptedService.decrypt(ClearOrEncryptedService.java:99) at sun.reflect.GeneratedMethodAccessor191.invoke(UnkNown Source) Truncated. see log file for complete stacktrace Caused By: com.rsa.jsafe.JSAFE_PaddingException: Invalid padding. 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:187) at weblogic.security.internal.encryption.ClearOrEncryptedService.decrypt(ClearOrEncryptedService.java:99) at sun.reflect.GeneratedMethodAccessor191.invoke(UnkNown Source) Truncated. see log file for complete stacktrace > <2020.08.25. 10:51:27 CEST> <Warning> <Deployer> <BEA-149004> <Failures were detected while initiating activate task for application "MyDS".> <2020.08.25. 10:51:27 CEST> <Warning> <Deployer> <BEA-149078> <Stack trace for message 149004 com.rsa.jsafe.JSAFE_PaddingException: Invalid padding. 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:187) at weblogic.security.internal.encryption.ClearOrEncryptedService.decrypt(ClearOrEncryptedService.java:99) at sun.reflect.GeneratedMethodAccessor191.invoke(UnkNown Source) Truncated. see log file for complete stacktrace Caused By: com.rsa.jsafe.JSAFE_PaddingException: Invalid padding. 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:187) at weblogic.security.internal.encryption.ClearOrEncryptedService.decrypt(ClearOrEncryptedService.java:99) at sun.reflect.GeneratedMethodAccessor191.invoke(UnkNown Source) Truncated. see log file for complete stacktrace > 后,连接测试成功运行。

解决方法

可以导入DataSource目录中的user_projects\domains\base_domain_new\config\jdbc\ xml。在这种情况下,您必须清除Password的{​​{1}}标签中的Confirm PasswordDataSource字段,然后点击Configuration\Connection Pool,然后一次输入密码再次。