ucarGroup/DataLink

启动work报错

chengcheng13 opened this issue · 2 comments

2019-04-25 15:16:23.643 [main] ERROR com.ucar.datalink.common.utils.DbConfigEncryption - something goes wrong when decrypt
java.lang.NumberFormatException: For input string: "pa"
at java.lang.NumberFormatException.forInputString(NumberFormatException.java:65) ~[na:1.8.0_121]
at java.lang.Integer.parseInt(Integer.java:580) ~[na:1.8.0_121]
at com.ucar.datalink.common.utils.DbConfigEncryption.hexStr2ByteArr(DbConfigEncryption.java:104) ~[dl-common-0.0.2.jar:na]
at com.ucar.datalink.common.utils.DbConfigEncryption.decrypt(DbConfigEncryption.java:45) ~[dl-common-0.0.2.jar:na]
at com.ucar.datalink.biz.utils.DLPropertiesPersister.load(DLPropertiesPersister.java:24) [dl-biz-0.0.2.jar:na]
at org.springframework.core.io.support.PropertiesLoaderUtils.fillProperties(PropertiesLoaderUtils.java:99) [spring-core-4.1.6.RELEASE.jar
:4.1.6.RELEASE]

这个是数据库密码不对,解密出错,你是不是解密了两次?

要么直接配置明文,要么通过程序进行加密后配置密文
看您这问题,应该是加密了两次