Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

eclipse+jdk1.8 项目没看到什么错误,但是Run As Java Application报出如下错误,哪位帮忙看下 谢谢 #1

Open
cavancao opened this issue Mar 29, 2018 · 2 comments

Comments

@cavancao
Copy link

2018-03-29 11:25:57.815 [main] ERROR [SpringApplication:833] - Application run failed
java.lang.RuntimeException: 解密错误,错误信息:
at top.ibase4j.core.util.SecurityUtil.decryptDes(SecurityUtil.java:134) ~[ibase4j-common-3.0.3.jar:?]
at top.ibase4j.core.config.Configs.postProcessEnvironment(Configs.java:53) ~[ibase4j-common-3.0.3.jar:?]
at org.springframework.boot.context.config.ConfigFileApplicationListener.onApplicationEnvironmentPreparedEvent(ConfigFileApplicationListener.java:183) ~[spring-boot-2.0.0.RELEASE.jar:2.0.0.RELEASE]
at org.springframework.boot.context.config.ConfigFileApplicationListener.onApplicationEvent(ConfigFileApplicationListener.java:169) ~[spring-boot-2.0.0.RELEASE.jar:2.0.0.RELEASE]
at org.springframework.context.event.SimpleApplicationEventMulticaster.doInvokeListener(SimpleApplicationEventMulticaster.java:172) ~[spring-context-5.0.2.RELEASE.jar:5.0.2.RELEASE]
at org.springframework.context.event.SimpleApplicationEventMulticaster.invokeListener(SimpleApplicationEventMulticaster.java:165) ~[spring-context-5.0.2.RELEASE.jar:5.0.2.RELEASE]
at org.springframework.context.event.SimpleApplicationEventMulticaster.multicastEvent(SimpleApplicationEventMulticaster.java:139) ~[spring-context-5.0.2.RELEASE.jar:5.0.2.RELEASE]
at org.springframework.context.event.SimpleApplicationEventMulticaster.multicastEvent(SimpleApplicationEventMulticaster.java:127) ~[spring-context-5.0.2.RELEASE.jar:5.0.2.RELEASE]
at org.springframework.boot.context.event.EventPublishingRunListener.environmentPrepared(EventPublishingRunListener.java:74) ~[spring-boot-2.0.0.RELEASE.jar:2.0.0.RELEASE]
at org.springframework.boot.SpringApplicationRunListeners.environmentPrepared(SpringApplicationRunListeners.java:54) ~[spring-boot-2.0.0.RELEASE.jar:2.0.0.RELEASE]
at org.springframework.boot.SpringApplication.prepareEnvironment(SpringApplication.java:351) [spring-boot-2.0.0.RELEASE.jar:2.0.0.RELEASE]
at org.springframework.boot.SpringApplication.run(SpringApplication.java:317) [spring-boot-2.0.0.RELEASE.jar:2.0.0.RELEASE]
at org.springframework.boot.SpringApplication.run(SpringApplication.java:1246) [spring-boot-2.0.0.RELEASE.jar:2.0.0.RELEASE]
at org.springframework.boot.SpringApplication.run(SpringApplication.java:1234) [spring-boot-2.0.0.RELEASE.jar:2.0.0.RELEASE]
at org.ibase4j.SysServiceApplication.main(SysServiceApplication.java:15) [classes/:?]
Caused by: javax.crypto.BadPaddingException: Given final block not properly padded
at com.sun.crypto.provider.CipherCore.doFinal(CipherCore.java:991) ~[sunjce_provider.jar:1.8.0_162]
at com.sun.crypto.provider.CipherCore.doFinal(CipherCore.java:847) ~[sunjce_provider.jar:1.8.0_162]
at com.sun.crypto.provider.DESCipher.engineDoFinal(DESCipher.java:314) ~[sunjce_provider.jar:1.8.0_162]
at javax.crypto.Cipher.doFinal(Cipher.java:2164) ~[?:1.8.0_171]
at top.ibase4j.core.support.security.coder.DESCoder.decrypt(DESCoder.java:86) ~[ibase4j-common-3.0.3.jar:?]
at top.ibase4j.core.util.SecurityUtil.decryptDes(SecurityUtil.java:132) ~[ibase4j-common-3.0.3.jar:?]
... 14 more

上面异常信息里显示的这些jar我都检查了,maven已经正常引入

我唯一改过的地方就是refer目录下的两个xml里面的声明版本改成了5.0,原来的4.0会有红叉错误:

其他数据库账号、密码(加密)、nginx/zookeeper/redis/activemq都启动了

@cavancao
Copy link
Author

我Java Application运行的是iBase4J-SYS-Service下面的org.ibase4j.SysServiceApplication

@wrrgit
Copy link

wrrgit commented Jun 19, 2018

我的导入eclipse报错??? 怎么弄,很多包报错,按maven导入的

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants