Exception in thread “main” io.seata.common.loader.EnhancedServiceNotFoundException: not found service provider for : io.seata.server.session.SessionManager caused by java.lang.IllegalStateException: Extension instance(definition: io.seata.common.loader.ExtensionDefinition@b50cc2f, class: interface io.seata.server.session.SessionManager) could not be instantiated: the name of service provider for [io.seata.core.store.db.DataSourceGenerator] name is null Caused by: java.lang.IllegalArgumentException: the name of service provider for [io.seata.core.store.db.DataSourceGenerator] name is null

    1610803450655.png

    1. 问题分析
      当我启动seata,添加-m db 参数的时候就报错
    1. sh ../bin/seata-server.sh -h 127.0.0.1 -p 8091 -m db
    1. 症状原因
      • 如果你配置了register.conf中的nacos,并且file.conf文件中配置了数据库db,99%是nacos注册中心的事了,因为在seata启动的时候会去注册中心拉取配置文件,file.conf关于数据库的配置全部从注册中心nacos获取

    1610803450683.png

    1610803450716.png

    1610803450752.png

    上面的配置文件是如何导入nacos注册中心的呢?

    请参考:30-(cloud) ALibaba Seata处理分布式事务.md