jeecgboot/jeewx-boot

NoClassDefFoundError: sun/misc/BASE64Decoder

wooozii opened this issue · 0 comments

版本号: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