安照文档配置springblade后启动报错

Blade 未结 2 1453
gyw742926306
gyw742926306 剑童 2021-04-26 16:06

一、该问题的重现步骤是什么?

1. 按照文档安装环境导入工程

2. 按文档提示运行

3.


二、你期待的结果是什么?实际看到的又是什么?

项目无法正常运行

三、你正在使用的是什么产品,什么版本?在什么操作系统上?

springblade开源版  Windows

四、请提供详细的错误堆栈信息,这很重要。

Error starting ApplicationContext. To display the conditions report re-run your application with 'debug' enabled.

2021-04-26 16:00:48.431 ERROR 10692 --- [           main] o.s.b.d.LoggingFailureAnalysisReporter   : 


***************************

APPLICATION FAILED TO START

***************************


Description:


Parameter 0 of constructor in org.springblade.core.swagger.SwaggerAutoConfiguration required a bean of type 'com.github.xiaoymin.knife4j.spring.extension.OpenApiExtensionResolver' that could not be found.



Action:


Consider defining a bean of type 'com.github.xiaoymin.knife4j.spring.extension.OpenApiExtensionResolver' in your configuration.

五、若有更多详细信息,请在下面提供。

java.util.concurrent.RejectedExecutionException: Task com.alibaba.nacos.shaded.io.grpc.internal.DelayedClientTransport$5@2c1be671 rejected from java.util.concurrent.ThreadPoolExecutor@5d1f8eea[Terminated, pool size = 0, active threads = 0, queued tasks = 0, completed tasks = 6]

at java.util.concurrent.ThreadPoolExecutor$AbortPolicy.rejectedExecution(ThreadPoolExecutor.java:2047) ~[na:1.8.0_40]

at java.util.concurrent.ThreadPoolExecutor.reject(ThreadPoolExecutor.java:823) ~[na:1.8.0_40]

at java.util.concurrent.ThreadPoolExecutor.execute(ThreadPoolExecutor.java:1369) ~[na:1.8.0_40]

at com.alibaba.nacos.shaded.io.grpc.internal.DelayedClientTransport.reprocess(DelayedClientTransport.java:297) ~[nacos-client-2.0.0.jar:na]

at com.alibaba.nacos.shaded.io.grpc.internal.ManagedChannelImpl.updateSubchannelPicker(ManagedChannelImpl.java:802) ~[nacos-client-2.0.0.jar:na]

at com.alibaba.nacos.shaded.io.grpc.internal.ManagedChannelImpl.panic(ManagedChannelImpl.java:789) ~[nacos-client-2.0.0.jar:na]

at com.alibaba.nacos.shaded.io.grpc.internal.ManagedChannelImpl$1.uncaughtException(ManagedChannelImpl.java:157) ~[nacos-client-2.0.0.jar:na]

at com.alibaba.nacos.shaded.io.grpc.SynchronizationContext.drain(SynchronizationContext.java:97) ~[nacos-client-2.0.0.jar:na]

at com.alibaba.nacos.shaded.io.grpc.SynchronizationContext.execute(SynchronizationContext.java:127) ~[nacos-client-2.0.0.jar:na]

at com.alibaba.nacos.shaded.io.grpc.internal.InternalSubchannel$TransportListener.transportShutdown(InternalSubchannel.java:535) ~[nacos-client-2.0.0.jar:na]

at com.alibaba.nacos.shaded.io.grpc.netty.shaded.io.grpc.netty.ClientTransportLifecycleManager.notifyShutdown(ClientTransportLifecycleManager.java:53) ~[nacos-client-2.0.0.jar:na]

at com.alibaba.nacos.shaded.io.grpc.netty.shaded.io.grpc.netty.ClientTransportLifecycleManager.notifyTerminated(ClientTransportLifecycleManager.java:69) ~[nacos-client-2.0.0.jar:na]

at com.alibaba.nacos.shaded.io.grpc.netty.shaded.io.grpc.netty.NettyClientTransport$5.operationComplete(NettyClientTransport.java:287) ~[nacos-client-2.0.0.jar:na]

at com.alibaba.nacos.shaded.io.grpc.netty.shaded.io.grpc.netty.NettyClientTransport$5.operationComplete(NettyClientTransport.java:281) ~[nacos-client-2.0.0.jar:na]

at com.alibaba.nacos.shaded.io.grpc.netty.shaded.io.netty.util.concurrent.DefaultPromise.notifyListener0(DefaultPromise.java:500) [nacos-client-2.0.0.jar:na]

at com.alibaba.nacos.shaded.io.grpc.netty.shaded.io.netty.util.concurrent.DefaultPromise.notifyListenersNow(DefaultPromise.java:474) [nacos-client-2.0.0.jar:na]

at com.alibaba.nacos.shaded.io.grpc.netty.shaded.io.netty.util.concurrent.DefaultPromise.notifyListeners(DefaultPromise.java:413) [nacos-client-2.0.0.jar:na]

at com.alibaba.nacos.shaded.io.grpc.netty.shaded.io.netty.util.concurrent.DefaultPromise.setValue0(DefaultPromise.java:538) [nacos-client-2.0.0.jar:na]

at com.alibaba.nacos.shaded.io.grpc.netty.shaded.io.netty.util.concurrent.DefaultPromise.setFailure0(DefaultPromise.java:531) [nacos-client-2.0.0.jar:na]

at com.alibaba.nacos.shaded.io.grpc.netty.shaded.io.netty.util.concurrent.DefaultPromise.setFailure(DefaultPromise.java:103) [nacos-client-2.0.0.jar:na]

at com.alibaba.nacos.shaded.io.grpc.netty.shaded.io.netty.channel.DefaultChannelPromise.setFailure(DefaultChannelPromise.java:89) [nacos-client-2.0.0.jar:na]

at com.alibaba.nacos.shaded.io.grpc.netty.shaded.io.grpc.netty.WriteBufferingAndExceptionHandler.failWrites(WriteBufferingAndExceptionHandler.java:236) [nacos-client-2.0.0.jar:na]

at com.alibaba.nacos.shaded.io.grpc.netty.shaded.io.grpc.netty.WriteBufferingAndExceptionHandler.access$100(WriteBufferingAndExceptionHandler.java:43) [nacos-client-2.0.0.jar:na]

at com.alibaba.nacos.shaded.io.grpc.netty.shaded.io.grpc.netty.WriteBufferingAndExceptionHandler$1ConnectListener.operationComplete(WriteBufferingAndExceptionHandler.java:145) [nacos-client-2.0.0.jar:na]

at com.alibaba.nacos.shaded.io.grpc.netty.shaded.io.grpc.netty.WriteBufferingAndExceptionHandler$1ConnectListener.operationComplete(WriteBufferingAndExceptionHandler.java:141) [nacos-client-2.0.0.jar:na]

at com.alibaba.nacos.shaded.io.grpc.netty.shaded.io.netty.util.concurrent.DefaultPromise.notifyListener0(DefaultPromise.java:500) [nacos-client-2.0.0.jar:na]

at com.alibaba.nacos.shaded.io.grpc.netty.shaded.io.netty.util.concurrent.DefaultPromise.notifyListeners0(DefaultPromise.java:493) [nacos-client-2.0.0.jar:na]

at com.alibaba.nacos.shaded.io.grpc.netty.shaded.io.netty.util.concurrent.DefaultPromise.notifyListenersNow(DefaultPromise.java:472) [nacos-client-2.0.0.jar:na]

at com.alibaba.nacos.shaded.io.grpc.netty.shaded.io.netty.util.concurrent.DefaultPromise.notifyListeners(DefaultPromise.java:413) [nacos-client-2.0.0.jar:na]

at com.alibaba.nacos.shaded.io.grpc.netty.shaded.io.netty.util.concurrent.DefaultPromise.setValue0(DefaultPromise.java:538) [nacos-client-2.0.0.jar:na]

at com.alibaba.nacos.shaded.io.grpc.netty.shaded.io.netty.util.concurrent.DefaultPromise.setFailure0(DefaultPromise.java:531) [nacos-client-2.0.0.jar:na]

at com.alibaba.nacos.shaded.io.grpc.netty.shaded.io.netty.util.concurrent.DefaultPromise.tryFailure(DefaultPromise.java:111) [nacos-client-2.0.0.jar:na]

at com.alibaba.nacos.shaded.io.grpc.netty.shaded.io.netty.channel.nio.AbstractNioChannel$AbstractNioUnsafe.fulfillConnectPromise(AbstractNioChannel.java:323) [nacos-client-2.0.0.jar:na]

at com.alibaba.nacos.shaded.io.grpc.netty.shaded.io.netty.channel.nio.AbstractNioChannel$AbstractNioUnsafe.finishConnect(AbstractNioChannel.java:339) [nacos-client-2.0.0.jar:na]

at com.alibaba.nacos.shaded.io.grpc.netty.shaded.io.netty.channel.nio.NioEventLoop.processSelectedKey(NioEventLoop.java:685) [nacos-client-2.0.0.jar:na]

at com.alibaba.nacos.shaded.io.grpc.netty.shaded.io.netty.channel.nio.NioEventLoop.processSelectedKeysOptimized(NioEventLoop.java:632) [nacos-client-2.0.0.jar:na]

at com.alibaba.nacos.shaded.io.grpc.netty.shaded.io.netty.channel.nio.NioEventLoop.processSelectedKeys(NioEventLoop.java:549) [nacos-client-2.0.0.jar:na]

at com.alibaba.nacos.shaded.io.grpc.netty.shaded.io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:511) [nacos-client-2.0.0.jar:na]

at com.alibaba.nacos.shaded.io.grpc.netty.shaded.io.netty.util.concurrent.SingleThreadEventExecutor$5.run(SingleThreadEventExecutor.java:918) [nacos-client-2.0.0.jar:na]

at com.alibaba.nacos.shaded.io.grpc.netty.shaded.io.netty.util.internal.ThreadExecutorMap$2.run(ThreadExecutorMap.java:74) [nacos-client-2.0.0.jar:na]

at com.alibaba.nacos.shaded.io.grpc.netty.shaded.io.netty.util.concurrent.FastThreadLocalRunnable.run(FastThreadLocalRunnable.java:30) [nacos-client-2.0.0.jar:na]

at java.lang.Thread.run(Thread.java:745) [na:1.8.0_40]


2条回答
  • 2021-04-26 16:07

    更新knife4j版本后需要有对应的配置,看下blade.yaml文件,将新的配置复制放到nacos。另外最新版的nacos是2.0.0了也要同步更新一下

    作者追问:2021-04-27 14:04

    :
      :
        : 1024
        : true
        :
          : 16
          : 400
    
    :
      :
        :
          : true
      :
        :
          : false
        :
          : 23333
    
    :
      :
        : true
      :
        : true
      :
        : false
    
    :
      :
        :
          :
            : :
        :
          : always
    
    :
      : true
      :
        : false
        : blade
        : blade
      :
        : true
        : true
        : false
        : http://localhost
        : true
        : false
        : POST
        : zh-CN
        : false
        : true
        : Copyright © 2021 SpringBlade All Rights Reserved
    
    :
      : SpringBlade : SpringBlade : 3.0.2
      : Powered By SpringBlade
      : https://bladex.cn
      : https://bladex.cn
      :
        : smallchill
        : smallchill@163.com
        : https://gitee.com/smallc
    
    :
      :
        : true
        :
          - /weixin
      :
        :
          - /test/**
        :
          - : sword
            :
              - /sword/**
          - : saber
            :
              - /saber/**
      :
        : tenant_id
        :
          - blade_notice


    0 讨论(0)
  • 2021-04-26 17:54

    解决了吗?怎么解决的

    0 讨论(0)
提交回复