技术文章 - CS285349
在 Servigistics Parts Planning 中运行自动驾驶作业时解密数据库密码时出错
已修改: 17-Jan-2023
适用于
- Servigistics Service Parts Management 11.4.0.1
说明
- 运行自动驾驶作业时解密数据库密码出错
- Autopilot.log 包含:
- 解密数据库密码时出错\
.;嵌套异常是 java.lang.RuntimeException:解密数据库密码时出错。
线程“main”中的异常 org.springframework.beans.factory.BeanDefinitionStoreException:名称为“dat\”的无效 bean 定义
aSource' 在类路径资源 [spring/autoPilotClientContext.xml] 中定义:解密数据库密码时出错。;嵌套异常\
n 是 java.lang.RuntimeException:解密数据库密码时出错。
在 org.springframework.beans.factory.config.PlaceholderConfigurerSupport.doProcessProperties(PlaceholderConfigurerSupport.java:2\
11)
在 org.springframework.beans.factory.config.PropertyPlaceholderConfigurer.processProperties(PropertyPlaceholderConfigurer.java:2\
22)
在 org.springframework.beans.factory.config.PropertyResourceConfigurer.postProcessBeanFactory(PropertyResourceConfigurer.java:86)
在 org.springframework.context.support.PostProcessorRegistrationDelegate.invokeBeanFactoryPostProcessors(PostProcessorRegistration\
onDelegate.java:284)
在 org.springframework.context.support.PostProcessorRegistrationDelegate.invokeBeanFactoryPostProcessors(PostProcessorRegistration\
onDelegate.java:166)
在 org.springframework.context.support.AbstractApplicationContext.invokeBeanFactoryPostProcessors(AbstractApplicationContext.jav\
答:677)
在 org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:519)
在 com.svg.core.application.ApplicationContextUtil.loadContext(ApplicationContextUtil.java:20)
在 com.svg.core.autopilot.AutoPilotClient.main(AutoPilotClient.java:241)
Caused by: java.lang.RuntimeException: 解密数据库密码时出错。
在 com.svg.core.util.DBUtil.getDatabasePassword(DBUtil.java:996)
在 com.svg.core.spring.PropertyPlaceholderConfigurer.resolveProperty(PropertyPlaceholderConfigurer.java:82)
在 com.svg.core.spring.PropertyPlaceholderConfigurer.resolveSystemProperty(PropertyPlaceholderConfigurer.java:74)
在 org.springframework.beans.factory.config.PropertyPlaceholderConfigurer.resolvePlaceholder(PropertyPlaceholderConfigurer.java:\
159)
在 org.springframework.beans.factory.config.PropertyPlaceholderConfigurer$PropertyPlaceholderConfigurerResolver.resolvePlacehold\
呃(PropertyPlaceholderConfigurer.java:274)
在 org.springframework.util.PropertyPlaceholderHelper.parseStringValue(PropertyPlaceholderHelper.java:147)
在 org.springframework.util.PropertyPlaceholderHelper.replacePlaceholders(PropertyPlaceholderHelper.java:126)
在 org.springframework.beans.factory.config.PropertyPlaceholderConfigurer$PlaceholderResolvingStringValueResolver.resolveStringV\
值(PropertyPlaceholderConfigurer.java:258)
在 org.springframework.beans.factory.config.BeanDefinitionVisitor.resolveStringValue (BeanDefinitionVisitor.java:282)
在 org.springframework.beans.factory.config.BeanDefinitionVisitor.resolveValue(BeanDefinitionVisitor.java:204)
在 org.springframework.beans.factory.config.BeanDefinitionVisitor.visitPropertyValues(BeanDefinitionVisitor.java:141)
在 org.springframework.beans.factory.config.BeanDefinitionVisitor.visitBeanDefinition (BeanDefinitionVisitor.java:82)
在 org.springframework.beans.factory.config.PlaceholderConfigurerSupport.doProcessProperties(PlaceholderConfigurerSupport.java:2\
08)
... 还有 8 个
Caused by: javax.crypto.IllegalBlockSizeException: 使用填充密码解密时,输入长度必须是 8 的倍数
在 com.sun.crypto.provider.CipherCore.doFinal(CipherCore.java:913)
在 com.sun.crypto.provider.CipherCore.doFinal(CipherCore.java:824)
在 com.sun.crypto.provider.BlowfishCipher.engineDoFinal(BlowfishCipher.java:319)
在 javax.crypto.Cipher.doFinal(Cipher.java:2165)
在 com.svg.core.database.DBPassword.decrypt(DBPassword.java:74)
在 com.svg.core.util.DBUtil.getDatabasePassword(DBUtil.java:994)
... 还有 20 个
- 解密数据库密码时出错\
这是文章 285349 的 PDF 版本,可能已过期。最新版本 CS285349