我是直接从 gitee 上把源码拉到 idea 上,可以在 idea 里运行,可以登录后台,总之一切正常;当我把它打包成 jar 包再运行,结果就死活上不了后台了,一直报错 401(博客页面还是正常的)
[ERROR]-[2021-05-26 14:08:43]-[org.b3log.solo.util.Solos:123]: Gets community user info failed,
jodd.http.HttpException: No appropriate protocol (protocol is disabled or cipher suites are inappropriate); <--- javax.net.ssl.SSLHandshakeException: No appropriate protocol (protocol is disabled or cipher suites are inappropriate),
at jodd.http.net.SocketHttpConnectionProvider.createHttpConnection(SocketHttpConnectionProvider.java:127) ~[solo.jar:?],
at jodd.http.HttpRequest.open(HttpRequest.java:775) ~[solo.jar:?],
at jodd.http.HttpRequest.open(HttpRequest.java:759) ~[solo.jar:?],
at jodd.http.HttpRequest._send(HttpRequest.java:887) ~[solo.jar:?],
at jodd.http.HttpRequest.send(HttpRequest.java:861) ~[solo.jar:?],
at org.b3log.solo.util.Solos.getUserInfo(Solos.java:112) [solo.jar:?],
at org.b3log.solo.processor.OAuthProcessor.authCallback(OAuthProcessor.java:135) [solo.jar:?],
at org.b3log.solo.processor.OAuthProcessor_$$_jvsta12_2b._d0authCallback(OAuthProcessor_$$_jvsta12_2b.java) [solo.jar:?],
at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:?],
at jdk.internal.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[?:?],
at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:?],
at java.lang.reflect.Method.invoke(Unknown Source) ~[?:?],
at org.b3log.latke.ioc.JavassistMethodHandler.invoke(JavassistMethodHandler.java:108) [solo.jar:?],
at org.b3log.solo.processor.OAuthProcessor_$$_jvsta12_2b.authCallback(OAuthProcessor_$$_jvsta12_2b.java) [solo.jar:?],
at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:?],
at jdk.internal.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[?:?],
at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:?],
at java.lang.reflect.Method.invoke(Unknown Source) ~[?:?],
at org.b3log.latke.http.handler.InvokeHandler.handle(InvokeHandler.java:45) [solo.jar:?],
at org.b3log.latke.http.RequestContext.handle(RequestContext.java:548) [solo.jar:?],
at org.b3log.latke.http.handler.RouteHandler.handle(RouteHandler.java:200) [solo.jar:?],
at org.b3log.latke.http.RequestContext.handle(RequestContext.java:548) [solo.jar:?],
at org.b3log.solo.processor.PermalinkHandler.handle(PermalinkHandler.java:71) [solo.jar:?],
at org.b3log.latke.http.RequestContext.handle(RequestContext.java:548) [solo.jar:?],
at org.b3log.solo.processor.InitCheckHandler.handle(InitCheckHandler.java:59) [solo.jar:?],
at org.b3log.latke.http.RequestContext.handle(RequestContext.java:548) [solo.jar:?],
at org.b3log.solo.processor.SkinHandler.handle(SkinHandler.java:59) [solo.jar:?],
at org.b3log.latke.http.RequestContext.handle(RequestContext.java:548) [solo.jar:?],
at org.b3log.latke.http.handler.StaticResourceHandler.handle(StaticResourceHandler.java:36) [solo.jar:?],
at org.b3log.latke.http.RequestContext.handle(RequestContext.java:548) [solo.jar:?],
at org.b3log.latke.http.Dispatcher.handle(Dispatcher.java:91) [solo.jar:?],
at org.b3log.latke.http.ServerHandler.channelRead0(ServerHandler.java:78) [solo.jar:?],
at org.b3log.latke.http.ServerHandler.channelRead0(ServerHandler.java:34) [solo.jar:?],
at io.netty.channel.SimpleChannelInboundHandler.channelRead(SimpleChannelInboundHandler.java:99) [solo.jar:?],
at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:379) [solo.jar:?],
at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:365) [solo.jar:?],
at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:357) [solo.jar:?],
at org.b3log.latke.http.WebSocketHandler.handleHttpRequest(WebSocketHandler.java:90) [solo.jar:?],
at org.b3log.latke.http.WebSocketHandler.channelRead0(WebSocketHandler.java:47) [solo.jar:?],
at io.netty.channel.SimpleChannelInboundHandler.channelRead(SimpleChannelInboundHandler.java:99) [solo.jar:?],
at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:379) [solo.jar:?],
at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:365) [solo.jar:?],
at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:357) [solo.jar:?],
at io.netty.handler.codec.MessageToMessageDecoder.channelRead(MessageToMessageDecoder.java:103) [solo.jar:?],
at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:379) [solo.jar:?],
at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:365) [solo.jar:?],
at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:357) [solo.jar:?],
at io.netty.channel.CombinedChannelDuplexHandler$DelegatingChannelHandlerContext.fireChannelRead(CombinedChannelDuplexHandler.java:436) [solo.jar:?],
at io.netty.handler.codec.ByteToMessageDecoder.fireChannelRead(ByteToMessageDecoder.java:324) [solo.jar:?],
at io.netty.handler.codec.ByteToMessageDecoder.channelRead(ByteToMessageDecoder.java:296) [solo.jar:?],
at io.netty.channel.CombinedChannelDuplexHandler.channelRead(CombinedChannelDuplexHandler.java:251) [solo.jar:?],
at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:379) [solo.jar:?],
at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:365) [solo.jar:?],
at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:357) [solo.jar:?],
at io.netty.channel.DefaultChannelPipeline$HeadContext.channelRead(DefaultChannelPipeline.java:1410) [solo.jar:?],
at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:379) [solo.jar:?],
at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:365) [solo.jar:?],
at io.netty.channel.DefaultChannelPipeline.fireChannelRead(DefaultChannelPipeline.java:919) [solo.jar:?],
at io.netty.channel.nio.AbstractNioByteChannel$NioByteUnsafe.read(AbstractNioByteChannel.java:163) [solo.jar:?],
at io.netty.channel.nio.NioEventLoop.processSelectedKey(NioEventLoop.java:714) [solo.jar:?],
at io.netty.channel.nio.NioEventLoop.processSelectedKeysOptimized(NioEventLoop.java:650) [solo.jar:?],
at io.netty.channel.nio.NioEventLoop.processSelectedKeys(NioEventLoop.java:576) [solo.jar:?],
at io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:493) [solo.jar:?],
at io.netty.util.concurrent.SingleThreadEventExecutor$4.run(SingleThreadEventExecutor.java:989) [solo.jar:?],
at io.netty.util.internal.ThreadExecutorMap$2.run(ThreadExecutorMap.java:74) [solo.jar:?],
at io.netty.util.concurrent.FastThreadLocalRunnable.run(FastThreadLocalRunnable.java:30) [solo.jar:?],
at java.lang.Thread.run(Unknown Source) [?:?],
Caused by: javax.net.ssl.SSLHandshakeException: No appropriate protocol (protocol is disabled or cipher suites are inappropriate),
at sun.security.ssl.HandshakeContext.<init>(Unknown Source) ~[?:?],
at sun.security.ssl.ClientHandshakeContext.<init>(Unknown Source) ~[?:?],
at sun.security.ssl.TransportContext.kickstart(Unknown Source) ~[?:?],
at sun.security.ssl.SSLSocketImpl.startHandshake(Unknown Source) ~[?:?],
at sun.security.ssl.SSLSocketImpl.startHandshake(Unknown Source) ~[?:?],
at jodd.http.net.SocketHttpSecureConnection.init(SocketHttpSecureConnection.java:43) ~[solo.jar:?],
at jodd.http.net.SocketHttpConnectionProvider.createHttpConnection(SocketHttpConnectionProvider.java:122) ~[solo.jar:?],
... 66 more,
[WARN ]-[2021-05-26 14:08:43]-[org.b3log.solo.processor.OAuthProcessor:137]: Can't get user info with token [d7cIImCAM3wtd6DB],
欢迎来到这里!
我们正在构建一个小众社区,大家在这里相互信任,以平等 • 自由 • 奔放的价值观进行分享交流。最终,希望大家能够找到与自己志同道合的伙伴,共同成长。
注册 关于