微信小程序的异常 Last unit does not have enough

2020-08-31 20:53:45

 [] [] [ERROR]-[Thread: qtp1942406066-12]-[com.yuanju.yshop.weixin.WxappConfigService.setThreadLocalAppId()]: appId为空

java.lang.IllegalArgumentException: Last unit does not have enough valid bits

at java.util.Base64$Decoder.decode0(Unknown Source)

at java.util.Base64$Decoder.decode(Unknown Source)

at java.util.Base64$Decoder.decode(Unknown Source)

at com.jfinal.kit.Base64Kit$Java8Base64.decode(Base64Kit.java:134)

at com.jfinal.kit.Base64Kit.decode(Base64Kit.java:82)

at com.jfinal.weixin.sdk.encrypt.WxaBizDataCrypt.decrypt(WxaBizDataCrypt.java:37)

at com.jfinal.wxaapp.api.WxaUserApi.getUserInfo(WxaUserApi.java:55)

at com.yuanju.yshop.api.wxapp.AuthController.setUserInfo(AuthController.java:91)

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)

at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)

at java.lang.reflect.Method.invoke(Unknown Source)

at com.jfinal.aop.Invocation.invoke(Invocation.java:83)

at com.yuanju.yshop.platform.interceptor.ParamPkgInterceptor.intercept(ParamPkgInterceptor.java:100)

at com.jfinal.aop.Invocation.invoke(Invocation.java:77)

at com.yuanju.yshop.platform.interceptor.ApiInterceptor.interceptor(ApiInterceptor.java:139)

at com.yuanju.yshop.platform.interceptor.AuthInterceptor.intercept(AuthInterceptor.java:48)

at com.jfinal.aop.Invocation.invoke(Invocation.java:77)

at com.jfinal.plugin.activerecord.tx.TxByMethods.intercept(TxByMethods.java:57)

at com.jfinal.aop.Invocation.invoke(Invocation.java:77)

at com.jfinal.core.ActionHandler.handle(ActionHandler.java:90)

at com.yuanju.yshop.platform.handler.GlobalHandler.handle(GlobalHandler.java:91)

at com.jfinal.core.JFinalFilter.doFilter(JFinalFilter.java:89)

at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1652)

at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:585)

at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:143)

at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:577)

at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:223)

at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1127)

at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:515)

at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:185)

at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1061)

at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:141)

at org.eclipse.jetty.server.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:215)

at org.eclipse.jetty.server.handler.HandlerCollection.handle(HandlerCollection.java:110)

at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:97)

at org.eclipse.jetty.server.Server.handle(Server.java:497)

at org.eclipse.jetty.server.HttpChannel.handle(HttpChannel.java:310)

at org.eclipse.jetty.server.HttpConnection.onFillable(HttpConnection.java:257)

at org.eclipse.jetty.io.AbstractConnection$2.run(AbstractConnection.java:540)

at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:635)

at org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:555)

at java.lang.Thread.run(Unknown Source)


评论区

杜福忠

2020-08-31 22:10

appId为空 ? 要不贴下码? com.yuanju.yshop.weixin.WxappConfigService.setThreadLocalAppId()

杜福忠

2020-08-31 22:12

Base64Kit.java:134 》》缺少参数啊,断点调试一下IllegalArgumentException

热门反馈

扫码入社