Article - CS285349

Error decrypting database password while running autopilot job in Servigistics Parts Planning

Modified: 28-May-2018   


Applies To

  • Servigistics Service Parts Management 11.4.0.1

Description

  • Error decrypting database password while running autopilot job
  • Autopilot.log contains:
    • Error decrypting database password\
      .; nested exception is java.lang.RuntimeException: Error decrypting database password.
      Exception in thread "main" org.springframework.beans.factory.BeanDefinitionStoreException: Invalid bean definition with name 'dat\
      aSource' defined in class path resource [spring/autoPilotClientContext.xml]: Error decrypting database password.; nested exceptio\
      n is java.lang.RuntimeException: Error decrypting database password.
          at org.springframework.beans.factory.config.PlaceholderConfigurerSupport.doProcessProperties(PlaceholderConfigurerSupport.java:2\
      11)
          at org.springframework.beans.factory.config.PropertyPlaceholderConfigurer.processProperties(PropertyPlaceholderConfigurer.java:2\
      22)
          at org.springframework.beans.factory.config.PropertyResourceConfigurer.postProcessBeanFactory(PropertyResourceConfigurer.java:86)
          at org.springframework.context.support.PostProcessorRegistrationDelegate.invokeBeanFactoryPostProcessors(PostProcessorRegistrati\
      onDelegate.java:284)
          at org.springframework.context.support.PostProcessorRegistrationDelegate.invokeBeanFactoryPostProcessors(PostProcessorRegistrati\
      onDelegate.java:166)
          at org.springframework.context.support.AbstractApplicationContext.invokeBeanFactoryPostProcessors(AbstractApplicationContext.jav\
      a:677)
          at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:519)
          at com.svg.core.application.ApplicationContextUtil.loadContext(ApplicationContextUtil.java:20)
          at com.svg.core.autopilot.AutoPilotClient.main(AutoPilotClient.java:241)
      Caused by: java.lang.RuntimeException: Error decrypting database password.
          at com.svg.core.util.DBUtil.getDatabasePassword(DBUtil.java:996)
          at com.svg.core.spring.PropertyPlaceholderConfigurer.resolveProperty(PropertyPlaceholderConfigurer.java:82)
          at com.svg.core.spring.PropertyPlaceholderConfigurer.resolveSystemProperty(PropertyPlaceholderConfigurer.java:74)
          at org.springframework.beans.factory.config.PropertyPlaceholderConfigurer.resolvePlaceholder(PropertyPlaceholderConfigurer.java:\
      159)
          at org.springframework.beans.factory.config.PropertyPlaceholderConfigurer$PropertyPlaceholderConfigurerResolver.resolvePlacehold\
      er(PropertyPlaceholderConfigurer.java:274)
          at org.springframework.util.PropertyPlaceholderHelper.parseStringValue(PropertyPlaceholderHelper.java:147)
          at org.springframework.util.PropertyPlaceholderHelper.replacePlaceholders(PropertyPlaceholderHelper.java:126)
          at org.springframework.beans.factory.config.PropertyPlaceholderConfigurer$PlaceholderResolvingStringValueResolver.resolveStringV\
      alue(PropertyPlaceholderConfigurer.java:258)
          at org.springframework.beans.factory.config.BeanDefinitionVisitor.resolveStringValue(BeanDefinitionVisitor.java:282)
          at org.springframework.beans.factory.config.BeanDefinitionVisitor.resolveValue(BeanDefinitionVisitor.java:204)
          at org.springframework.beans.factory.config.BeanDefinitionVisitor.visitPropertyValues(BeanDefinitionVisitor.java:141)
          at org.springframework.beans.factory.config.BeanDefinitionVisitor.visitBeanDefinition(BeanDefinitionVisitor.java:82)
          at org.springframework.beans.factory.config.PlaceholderConfigurerSupport.doProcessProperties(PlaceholderConfigurerSupport.java:2\
      08)
          ... 8 more
      Caused by: javax.crypto.IllegalBlockSizeException: Input length must be multiple of 8 when decrypting with padded cipher
          at com.sun.crypto.provider.CipherCore.doFinal(CipherCore.java:913)
          at com.sun.crypto.provider.CipherCore.doFinal(CipherCore.java:824)
          at com.sun.crypto.provider.BlowfishCipher.engineDoFinal(BlowfishCipher.java:319)
          at javax.crypto.Cipher.doFinal(Cipher.java:2165)
          at com.svg.core.database.DBPassword.decrypt(DBPassword.java:74)
          at com.svg.core.util.DBUtil.getDatabasePassword(DBUtil.java:994)
          ... 20 more
This is a printer-friendly version of Article 285349 and may be out of date. For the latest version click CS285349