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

NoClassDefFoundError: sun/misc/BASE64Decoder #36

Open
wooozii opened this issue Nov 16, 2021 · 0 comments
Open

NoClassDefFoundError: sun/misc/BASE64Decoder #36

wooozii opened this issue Nov 16, 2021 · 0 comments

Comments

@wooozii
Copy link

wooozii commented Nov 16, 2021

版本号:1.0.3
问题描述:jdk9 编译报错,替换了编译的class,启动报错
问题截图:

image
Caused by: java.lang.NoClassDefFoundError: sun/misc/BASE64Decoder
at org.apache.util.QEncodeUtil.base64Decode(QEncodeUtil.java:69)
at org.apache.util.QEncodeUtil.aesDecrypt(QEncodeUtil.java:161)
at org.jeecgframework.p3.core.aop.icorep3.check(icorep3.java:54)
at org.apache.commons.lang.StringUtil.lastIndexOf(StringUtil.java:1191)
at org.apache.commons.lang.StringUtil.(StringUtil.java:1383)
at org.apache.util.QEncodeUtil.aesDecrypt(QEncodeUtil.java:161)
at org.jeecgframework.p3.core.aop.icorep3.check(icorep3.java:54)
at org.apache.commons.lang.CommonRandomUtil.isNotEmpt(CommonRandomUtil.java:3952)
at org.apache.commons.lang.CommonRandomUtil.(CommonRandomUtil.java:119)
at com.jeecg.p3.config.mybatis.MybatisInterceptor.(MybatisInterceptor.java:37)
at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
at java.base/jdk.internal.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
at java.base/java.lang.reflect.Constructor.newInstance(Constructor.java:490)
at org.springframework.beans.BeanUtils.instantiateClass(BeanUtils.java:172)
at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:87)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateBean(AbstractAutowireCapableBeanFactory.java:1279)
... 146 common frames omitted
jdk9以上不再有sun.misc.BASE64Decoder和sun.misc.BASE64Encoder

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

1 participant