You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@shardingsphere.apache.org by GitBox <gi...@apache.org> on 2020/04/24 02:38:26 UTC

[GitHub] [shardingsphere] fengyunhe opened a new issue #5299: i am running seata jdbc example use 4.1.1 version ,error in console

fengyunhe opened a new issue #5299:
URL: https://github.com/apache/shardingsphere/issues/5299


   ## Question
   
   I clone the code repository, and checkout branch to `4.1.0-release` , and start docker containers with docker/sharding-jdbc/docker-compose.yml , and install artifacts to local maven repository , it's all right.
   
   I to run example, but the version of example project is based on '5.0.0-RC1-SNAPSHOT' in pom file , i think the version  should is `4.1.1-SHAPSHOT` ,so i change example parent version to  `4.1.1-SHAPSHOT`,then the example code can compile to success.
   
   I am run a test (org.apache.shardingsphere.example.transaction.base.seata.raw.jdbc.SeataATOrderServiceTest#assertInsertSuccess) ,but the test get failured . the log in  console  :
   
   ```
   [INFO ] 2020-04-24 09:49:25,695 --main-- [com.zaxxer.hikari.HikariDataSource] HikariPool-3 - Starting... 
   [INFO ] 2020-04-24 09:49:25,719 --main-- [com.zaxxer.hikari.HikariDataSource] HikariPool-3 - Start completed. 
   [INFO ] 2020-04-24 09:49:25,720 --main-- [com.zaxxer.hikari.HikariDataSource] HikariPool-4 - Starting... 
   [INFO ] 2020-04-24 09:49:25,725 --main-- [com.zaxxer.hikari.HikariDataSource] HikariPool-4 - Start completed. 
   [INFO ] 2020-04-24 09:49:25,729 --main-- [org.apache.shardingsphere.core.log.ConfigurationLogger] ShardingRuleConfiguration:
   defaultDatabaseStrategy:
     inline:
       algorithmExpression: ds_${user_id % 2}
       shardingColumn: user_id
   defaultTableStrategy:
     none: ''
   tables:
     t_order:
       actualDataNodes: ds_${0..1}.t_order_${0..1}
       keyGenerator:
         column: order_id
         props:
           worker.id: 123
         type: SNOWFLAKE
       logicTable: t_order
       tableStrategy:
         inline:
           algorithmExpression: t_order_${order_id % 2}
           shardingColumn: order_id
    
   [INFO ] 2020-04-24 09:49:25,729 --main-- [org.apache.shardingsphere.core.log.ConfigurationLogger] Properties:
   sql.show: false
    
   [INFO ] 2020-04-24 09:49:25,731 --main-- [ShardingSphere-metadata] Loading 1 logic tables' meta data. 
   [INFO ] 2020-04-24 09:49:25,732 --main-- [ShardingSphere-metadata] Meta data load finished, cost 3 milliseconds. 
   [INFO ] 2020-04-24 09:49:25,733 --main-- [io.seata.config.FileConfiguration] The file name of the operation is seata.conf 
   [WARN ] 2020-04-24 09:49:25,735 --configOperate_4_2-- [io.seata.config.FileConfiguration] Could not found property sharding.transaction.seata.at.enable, try to use default value instead. 
   [INFO ] 2020-04-24 09:49:25,736 --main-- [io.seata.core.rpc.netty.NettyClientChannelManager] will connect to 127.0.0.1:8091 
   [INFO ] 2020-04-24 09:49:25,736 --main-- [io.seata.core.rpc.netty.RmRpcClient] RM will register :jdbc:mysql://localhost:3306/demo_ds_0,jdbc:mysql://localhost:3306/demo_ds_1 
   [INFO ] 2020-04-24 09:49:25,736 --main-- [io.seata.core.rpc.netty.NettyPoolableFactory] NettyPool create channel to transactionRole:RMROLE,address:127.0.0.1:8091,msg:< RegisterRMRequest{resourceIds='jdbc:mysql://localhost:3306/demo_ds_0,jdbc:mysql://localhost:3306/demo_ds_1', applicationId='jdbc-test', transactionServiceGroup='my_test_tx_group'} > 
   [INFO ] 2020-04-24 09:49:25,737 --NettyClientSelector_RMROLE_1-- [io.seata.core.rpc.netty.AbstractRpcRemoting] ChannelHandlerContext(RmRpcClient#0, [id: 0xda200a27]) will closed 
   [ERROR] 2020-04-24 09:49:25,737 --main-- [io.seata.core.rpc.netty.NettyClientChannelManager] 0304 register RM failed. 
   io.seata.common.exception.FrameworkException: can not connect to services-server.
   	at io.seata.core.rpc.netty.RpcClientBootstrap.getNewChannel(RpcClientBootstrap.java:195)
   	at io.seata.core.rpc.netty.NettyPoolableFactory.makeObject(NettyPoolableFactory.java:58)
   	at io.seata.core.rpc.netty.NettyPoolableFactory.makeObject(NettyPoolableFactory.java:34)
   	at org.apache.commons.pool.impl.GenericKeyedObjectPool.borrowObject(GenericKeyedObjectPool.java:1220)
   	at io.seata.core.rpc.netty.NettyClientChannelManager.doConnect(NettyClientChannelManager.java:206)
   	at io.seata.core.rpc.netty.NettyClientChannelManager.acquireChannel(NettyClientChannelManager.java:103)
   	at io.seata.core.rpc.netty.NettyClientChannelManager.reconnect(NettyClientChannelManager.java:175)
   	at io.seata.core.rpc.netty.RmRpcClient.registerResource(RmRpcClient.java:198)
   	at io.seata.rm.AbstractResourceManager.registerResource(AbstractResourceManager.java:120)
   	at io.seata.rm.datasource.DataSourceManager.registerResource(DataSourceManager.java:149)
   	at io.seata.rm.DefaultResourceManager.registerResource(DefaultResourceManager.java:114)
   	at io.seata.rm.datasource.DataSourceProxy.init(DataSourceProxy.java:91)
   	at io.seata.rm.datasource.DataSourceProxy.<init>(DataSourceProxy.java:80)
   	at io.seata.rm.datasource.DataSourceProxy.<init>(DataSourceProxy.java:69)
   	at org.apache.shardingsphere.transaction.base.seata.at.SeataATShardingTransactionManager.init(SeataATShardingTransactionManager.java:68)
   	at org.apache.shardingsphere.transaction.ShardingTransactionManagerEngine.init(ShardingTransactionManagerEngine.java:67)
   	at org.apache.shardingsphere.shardingjdbc.jdbc.core.context.ShardingRuntimeContext.<init>(ShardingRuntimeContext.java:52)
   	at org.apache.shardingsphere.shardingjdbc.jdbc.core.datasource.ShardingDataSource.<init>(ShardingDataSource.java:54)
   	at org.apache.shardingsphere.shardingjdbc.api.ShardingDataSourceFactory.createDataSource(ShardingDataSourceFactory.java:48)
   	at org.apache.shardingsphere.shardingjdbc.api.yaml.YamlShardingDataSourceFactory.createDataSource(YamlShardingDataSourceFactory.java:50)
   	at org.apache.shardingsphere.example.transaction.base.seata.raw.jdbc.SeataATOrderService.<init>(SeataATOrderService.java:42)
   	at org.apache.shardingsphere.example.transaction.base.seata.raw.jdbc.SeataATOrderServiceTest.setUp(SeataATOrderServiceTest.java:45)
   	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
   	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
   	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
   	at java.lang.reflect.Method.invoke(Method.java:498)
   	at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:50)
   	at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
   	at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:47)
   	at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:24)
   	at org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:27)
   	at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:325)
   	at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:78)
   	at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:57)
   	at org.junit.runners.ParentRunner$3.run(ParentRunner.java:290)
   	at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:71)
   	at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288)
   	at org.junit.runners.ParentRunner.access$000(ParentRunner.java:58)
   	at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:268)
   	at org.junit.runners.ParentRunner.run(ParentRunner.java:363)
   	at org.junit.runner.JUnitCore.run(JUnitCore.java:137)
   	at com.intellij.junit4.JUnit4IdeaTestRunner.startRunnerWithArgs(JUnit4IdeaTestRunner.java:68)
   	at com.intellij.rt.junit.IdeaTestRunner$Repeater.startRunnerWithArgs(IdeaTestRunner.java:33)
   	at com.intellij.rt.junit.JUnitStarter.prepareStreamsAndStart(JUnitStarter.java:230)
   	at com.intellij.rt.junit.JUnitStarter.main(JUnitStarter.java:58)
   Caused by: io.seata.common.exception.FrameworkException: connect failed, can not connect to services-server.
   	at io.seata.core.rpc.netty.RpcClientBootstrap.getNewChannel(RpcClientBootstrap.java:190)
   	... 44 common frames omitted
   Caused by: io.netty.channel.AbstractChannel$AnnotatedConnectException: Connection refused: /127.0.0.1:8091
   	at sun.nio.ch.SocketChannelImpl.checkConnect(Native Method)
   	at sun.nio.ch.SocketChannelImpl.finishConnect(SocketChannelImpl.java:714)
   	at io.netty.channel.socket.nio.NioSocketChannel.doFinishConnect(NioSocketChannel.java:327)
   	at io.netty.channel.nio.AbstractNioChannel$AbstractNioUnsafe.finishConnect(AbstractNioChannel.java:340)
   	at io.netty.channel.nio.NioEventLoop.processSelectedKey(NioEventLoop.java:632)
   	at io.netty.channel.nio.NioEventLoop.processSelectedKeysOptimized(NioEventLoop.java:579)
   	at io.netty.channel.nio.NioEventLoop.processSelectedKeys(NioEventLoop.java:496)
   	at io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:458)
   	at io.netty.util.concurrent.SingleThreadEventExecutor$5.run(SingleThreadEventExecutor.java:897)
   	at io.netty.util.concurrent.FastThreadLocalRunnable.run(FastThreadLocalRunnable.java:30)
   	at java.lang.Thread.run(Thread.java:748)
   Caused by: java.net.ConnectException: Connection refused
   	... 11 common frames omitted
   [ERROR] 2020-04-24 09:49:25,737 --main-- [io.seata.core.rpc.netty.NettyClientChannelManager] 0101 can not connect to 127.0.0.1:8091 cause:can not register RM,err:can not connect to services-server. 
   io.seata.common.exception.FrameworkException: can not register RM,err:can not connect to services-server.
   	at io.seata.core.rpc.netty.NettyClientChannelManager.doConnect(NettyClientChannelManager.java:210)
   	at io.seata.core.rpc.netty.NettyClientChannelManager.acquireChannel(NettyClientChannelManager.java:103)
   	at io.seata.core.rpc.netty.NettyClientChannelManager.reconnect(NettyClientChannelManager.java:175)
   	at io.seata.core.rpc.netty.RmRpcClient.registerResource(RmRpcClient.java:198)
   	at io.seata.rm.AbstractResourceManager.registerResource(AbstractResourceManager.java:120)
   	at io.seata.rm.datasource.DataSourceManager.registerResource(DataSourceManager.java:149)
   	at io.seata.rm.DefaultResourceManager.registerResource(DefaultResourceManager.java:114)
   	at io.seata.rm.datasource.DataSourceProxy.init(DataSourceProxy.java:91)
   	at io.seata.rm.datasource.DataSourceProxy.<init>(DataSourceProxy.java:80)
   	at io.seata.rm.datasource.DataSourceProxy.<init>(DataSourceProxy.java:69)
   	at org.apache.shardingsphere.transaction.base.seata.at.SeataATShardingTransactionManager.init(SeataATShardingTransactionManager.java:68)
   	at org.apache.shardingsphere.transaction.ShardingTransactionManagerEngine.init(ShardingTransactionManagerEngine.java:67)
   	at org.apache.shardingsphere.shardingjdbc.jdbc.core.context.ShardingRuntimeContext.<init>(ShardingRuntimeContext.java:52)
   	at org.apache.shardingsphere.shardingjdbc.jdbc.core.datasource.ShardingDataSource.<init>(ShardingDataSource.java:54)
   	at org.apache.shardingsphere.shardingjdbc.api.ShardingDataSourceFactory.createDataSource(ShardingDataSourceFactory.java:48)
   	at org.apache.shardingsphere.shardingjdbc.api.yaml.YamlShardingDataSourceFactory.createDataSource(YamlShardingDataSourceFactory.java:50)
   	at org.apache.shardingsphere.example.transaction.base.seata.raw.jdbc.SeataATOrderService.<init>(SeataATOrderService.java:42)
   	at org.apache.shardingsphere.example.transaction.base.seata.raw.jdbc.SeataATOrderServiceTest.setUp(SeataATOrderServiceTest.java:45)
   	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
   	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
   	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
   	at java.lang.reflect.Method.invoke(Method.java:498)
   	at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:50)
   	at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
   	at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:47)
   	at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:24)
   	at org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:27)
   	at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:325)
   	at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:78)
   	at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:57)
   	at org.junit.runners.ParentRunner$3.run(ParentRunner.java:290)
   	at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:71)
   	at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288)
   	at org.junit.runners.ParentRunner.access$000(ParentRunner.java:58)
   	at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:268)
   	at org.junit.runners.ParentRunner.run(ParentRunner.java:363)
   	at org.junit.runner.JUnitCore.run(JUnitCore.java:137)
   	at com.intellij.junit4.JUnit4IdeaTestRunner.startRunnerWithArgs(JUnit4IdeaTestRunner.java:68)
   	at com.intellij.rt.junit.IdeaTestRunner$Repeater.startRunnerWithArgs(IdeaTestRunner.java:33)
   	at com.intellij.rt.junit.JUnitStarter.prepareStreamsAndStart(JUnitStarter.java:230)
   	at com.intellij.rt.junit.JUnitStarter.main(JUnitStarter.java:58)
   [INFO ] 2020-04-24 09:49:25,738 --main-- [io.seata.core.rpc.netty.NettyClientChannelManager] will connect to 127.0.0.1:8091 
   [INFO ] 2020-04-24 09:49:25,738 --main-- [io.seata.core.rpc.netty.RmRpcClient] RM will register :jdbc:mysql://localhost:3306/demo_ds_0,jdbc:mysql://localhost:3306/demo_ds_1 
   [INFO ] 2020-04-24 09:49:25,738 --main-- [io.seata.core.rpc.netty.NettyPoolableFactory] NettyPool create channel to transactionRole:RMROLE,address:127.0.0.1:8091,msg:< RegisterRMRequest{resourceIds='jdbc:mysql://localhost:3306/demo_ds_0,jdbc:mysql://localhost:3306/demo_ds_1', applicationId='jdbc-test', transactionServiceGroup='my_test_tx_group'} > 
   [INFO ] 2020-04-24 09:49:25,739 --NettyClientSelector_RMROLE_1-- [io.seata.core.rpc.netty.AbstractRpcRemoting] ChannelHandlerContext(RmRpcClient#0, [id: 0xae74a3be]) will closed 
   [ERROR] 2020-04-24 09:49:25,739 --main-- [io.seata.core.rpc.netty.NettyClientChannelManager] 0304 register RM failed. 
   io.seata.common.exception.FrameworkException: can not connect to services-server.
   	at io.seata.core.rpc.netty.RpcClientBootstrap.getNewChannel(RpcClientBootstrap.java:195)
   	at io.seata.core.rpc.netty.NettyPoolableFactory.makeObject(NettyPoolableFactory.java:58)
   	at io.seata.core.rpc.netty.NettyPoolableFactory.makeObject(NettyPoolableFactory.java:34)
   	at org.apache.commons.pool.impl.GenericKeyedObjectPool.borrowObject(GenericKeyedObjectPool.java:1220)
   	at io.seata.core.rpc.netty.NettyClientChannelManager.doConnect(NettyClientChannelManager.java:206)
   	at io.seata.core.rpc.netty.NettyClientChannelManager.acquireChannel(NettyClientChannelManager.java:103)
   	at io.seata.core.rpc.netty.NettyClientChannelManager.reconnect(NettyClientChannelManager.java:175)
   	at io.seata.core.rpc.netty.RmRpcClient.registerResource(RmRpcClient.java:198)
   	at io.seata.rm.AbstractResourceManager.registerResource(AbstractResourceManager.java:120)
   	at io.seata.rm.datasource.DataSourceManager.registerResource(DataSourceManager.java:149)
   	at io.seata.rm.DefaultResourceManager.registerResource(DefaultResourceManager.java:114)
   	at io.seata.rm.datasource.DataSourceProxy.init(DataSourceProxy.java:91)
   	at io.seata.rm.datasource.DataSourceProxy.<init>(DataSourceProxy.java:80)
   	at io.seata.rm.datasource.DataSourceProxy.<init>(DataSourceProxy.java:69)
   	at org.apache.shardingsphere.transaction.base.seata.at.SeataATShardingTransactionManager.init(SeataATShardingTransactionManager.java:68)
   	at org.apache.shardingsphere.transaction.ShardingTransactionManagerEngine.init(ShardingTransactionManagerEngine.java:67)
   	at org.apache.shardingsphere.shardingjdbc.jdbc.core.context.ShardingRuntimeContext.<init>(ShardingRuntimeContext.java:52)
   	at org.apache.shardingsphere.shardingjdbc.jdbc.core.datasource.ShardingDataSource.<init>(ShardingDataSource.java:54)
   	at org.apache.shardingsphere.shardingjdbc.api.ShardingDataSourceFactory.createDataSource(ShardingDataSourceFactory.java:48)
   	at org.apache.shardingsphere.shardingjdbc.api.yaml.YamlShardingDataSourceFactory.createDataSource(YamlShardingDataSourceFactory.java:50)
   	at org.apache.shardingsphere.example.transaction.base.seata.raw.jdbc.SeataATOrderService.<init>(SeataATOrderService.java:42)
   	at org.apache.shardingsphere.example.transaction.base.seata.raw.jdbc.SeataATOrderServiceTest.setUp(SeataATOrderServiceTest.java:45)
   	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
   	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
   	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
   	at java.lang.reflect.Method.invoke(Method.java:498)
   	at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:50)
   	at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
   	at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:47)
   	at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:24)
   	at org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:27)
   	at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:325)
   	at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:78)
   	at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:57)
   	at org.junit.runners.ParentRunner$3.run(ParentRunner.java:290)
   	at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:71)
   	at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288)
   	at org.junit.runners.ParentRunner.access$000(ParentRunner.java:58)
   	at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:268)
   	at org.junit.runners.ParentRunner.run(ParentRunner.java:363)
   	at org.junit.runner.JUnitCore.run(JUnitCore.java:137)
   	at com.intellij.junit4.JUnit4IdeaTestRunner.startRunnerWithArgs(JUnit4IdeaTestRunner.java:68)
   	at com.intellij.rt.junit.IdeaTestRunner$Repeater.startRunnerWithArgs(IdeaTestRunner.java:33)
   	at com.intellij.rt.junit.JUnitStarter.prepareStreamsAndStart(JUnitStarter.java:230)
   	at com.intellij.rt.junit.JUnitStarter.main(JUnitStarter.java:58)
   Caused by: io.seata.common.exception.FrameworkException: connect failed, can not connect to services-server.
   	at io.seata.core.rpc.netty.RpcClientBootstrap.getNewChannel(RpcClientBootstrap.java:190)
   	... 44 common frames omitted
   Caused by: io.netty.channel.AbstractChannel$AnnotatedConnectException: Connection refused: /127.0.0.1:8091
   	at sun.nio.ch.SocketChannelImpl.checkConnect(Native Method)
   	at sun.nio.ch.SocketChannelImpl.finishConnect(SocketChannelImpl.java:714)
   	at io.netty.channel.socket.nio.NioSocketChannel.doFinishConnect(NioSocketChannel.java:327)
   	at io.netty.channel.nio.AbstractNioChannel$AbstractNioUnsafe.finishConnect(AbstractNioChannel.java:340)
   	at io.netty.channel.nio.NioEventLoop.processSelectedKey(NioEventLoop.java:632)
   	at io.netty.channel.nio.NioEventLoop.processSelectedKeysOptimized(NioEventLoop.java:579)
   	at io.netty.channel.nio.NioEventLoop.processSelectedKeys(NioEventLoop.java:496)
   	at io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:458)
   	at io.netty.util.concurrent.SingleThreadEventExecutor$5.run(SingleThreadEventExecutor.java:897)
   	at io.netty.util.concurrent.FastThreadLocalRunnable.run(FastThreadLocalRunnable.java:30)
   	at java.lang.Thread.run(Thread.java:748)
   Caused by: java.net.ConnectException: Connection refused
   	... 11 common frames omitted
   [ERROR] 2020-04-24 09:49:25,739 --main-- [io.seata.core.rpc.netty.NettyClientChannelManager] 0101 can not connect to 127.0.0.1:8091 cause:can not register RM,err:can not connect to services-server. 
   io.seata.common.exception.FrameworkException: can not register RM,err:can not connect to services-server.
   	at io.seata.core.rpc.netty.NettyClientChannelManager.doConnect(NettyClientChannelManager.java:210)
   	at io.seata.core.rpc.netty.NettyClientChannelManager.acquireChannel(NettyClientChannelManager.java:103)
   	at io.seata.core.rpc.netty.NettyClientChannelManager.reconnect(NettyClientChannelManager.java:175)
   	at io.seata.core.rpc.netty.RmRpcClient.registerResource(RmRpcClient.java:198)
   	at io.seata.rm.AbstractResourceManager.registerResource(AbstractResourceManager.java:120)
   	at io.seata.rm.datasource.DataSourceManager.registerResource(DataSourceManager.java:149)
   	at io.seata.rm.DefaultResourceManager.registerResource(DefaultResourceManager.java:114)
   	at io.seata.rm.datasource.DataSourceProxy.init(DataSourceProxy.java:91)
   	at io.seata.rm.datasource.DataSourceProxy.<init>(DataSourceProxy.java:80)
   	at io.seata.rm.datasource.DataSourceProxy.<init>(DataSourceProxy.java:69)
   	at org.apache.shardingsphere.transaction.base.seata.at.SeataATShardingTransactionManager.init(SeataATShardingTransactionManager.java:68)
   	at org.apache.shardingsphere.transaction.ShardingTransactionManagerEngine.init(ShardingTransactionManagerEngine.java:67)
   	at org.apache.shardingsphere.shardingjdbc.jdbc.core.context.ShardingRuntimeContext.<init>(ShardingRuntimeContext.java:52)
   	at org.apache.shardingsphere.shardingjdbc.jdbc.core.datasource.ShardingDataSource.<init>(ShardingDataSource.java:54)
   	at org.apache.shardingsphere.shardingjdbc.api.ShardingDataSourceFactory.createDataSource(ShardingDataSourceFactory.java:48)
   	at org.apache.shardingsphere.shardingjdbc.api.yaml.YamlShardingDataSourceFactory.createDataSource(YamlShardingDataSourceFactory.java:50)
   	at org.apache.shardingsphere.example.transaction.base.seata.raw.jdbc.SeataATOrderService.<init>(SeataATOrderService.java:42)
   	at org.apache.shardingsphere.example.transaction.base.seata.raw.jdbc.SeataATOrderServiceTest.setUp(SeataATOrderServiceTest.java:45)
   	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
   	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
   	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
   	at java.lang.reflect.Method.invoke(Method.java:498)
   	at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:50)
   	at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
   	at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:47)
   	at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:24)
   	at org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:27)
   	at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:325)
   	at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:78)
   	at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:57)
   	at org.junit.runners.ParentRunner$3.run(ParentRunner.java:290)
   	at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:71)
   	at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288)
   	at org.junit.runners.ParentRunner.access$000(ParentRunner.java:58)
   	at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:268)
   	at org.junit.runners.ParentRunner.run(ParentRunner.java:363)
   	at org.junit.runner.JUnitCore.run(JUnitCore.java:137)
   	at com.intellij.junit4.JUnit4IdeaTestRunner.startRunnerWithArgs(JUnit4IdeaTestRunner.java:68)
   	at com.intellij.rt.junit.IdeaTestRunner$Repeater.startRunnerWithArgs(IdeaTestRunner.java:33)
   	at com.intellij.rt.junit.JUnitStarter.prepareStreamsAndStart(JUnitStarter.java:230)
   	at com.intellij.rt.junit.JUnitStarter.main(JUnitStarter.java:58)
   [INFO ] 2020-04-24 09:49:25,820 --main-- [io.seata.core.rpc.netty.NettyClientChannelManager] will connect to 127.0.0.1:8091 
   [INFO ] 2020-04-24 09:49:25,820 --main-- [io.seata.core.rpc.netty.NettyPoolableFactory] NettyPool create channel to transactionRole:TMROLE,address:127.0.0.1:8091,msg:< RegisterTMRequest{applicationId='jdbc-test', transactionServiceGroup='my_test_tx_group'} > 
   [INFO ] 2020-04-24 09:49:25,821 --NettyClientSelector_TMROLE_1-- [io.seata.core.rpc.netty.AbstractRpcRemoting] ChannelHandlerContext(TmRpcClient#0, [id: 0xc0a2fc63]) will closed 
   [ERROR] 2020-04-24 09:49:25,821 --main-- [io.seata.core.rpc.netty.NettyClientChannelManager] 0304 register RM failed. 
   io.seata.common.exception.FrameworkException: can not connect to services-server.
   	at io.seata.core.rpc.netty.RpcClientBootstrap.getNewChannel(RpcClientBootstrap.java:195)
   	at io.seata.core.rpc.netty.NettyPoolableFactory.makeObject(NettyPoolableFactory.java:58)
   	at io.seata.core.rpc.netty.NettyPoolableFactory.makeObject(NettyPoolableFactory.java:34)
   	at org.apache.commons.pool.impl.GenericKeyedObjectPool.borrowObject(GenericKeyedObjectPool.java:1220)
   	at io.seata.core.rpc.netty.NettyClientChannelManager.doConnect(NettyClientChannelManager.java:206)
   	at io.seata.core.rpc.netty.NettyClientChannelManager.acquireChannel(NettyClientChannelManager.java:103)
   	at io.seata.core.rpc.netty.AbstractRpcRemotingClient.sendMsgWithResponse(AbstractRpcRemotingClient.java:229)
   	at io.seata.core.rpc.netty.AbstractRpcRemotingClient.sendMsgWithResponse(AbstractRpcRemotingClient.java:236)
   	at io.seata.tm.DefaultTransactionManager.syncCall(DefaultTransactionManager.java:95)
   	at io.seata.tm.DefaultTransactionManager.begin(DefaultTransactionManager.java:53)
   	at io.seata.tm.api.DefaultGlobalTransaction.begin(DefaultGlobalTransaction.java:102)
   	at io.seata.tm.api.DefaultGlobalTransaction.begin(DefaultGlobalTransaction.java:84)
   	at io.seata.tm.api.DefaultGlobalTransaction.begin(DefaultGlobalTransaction.java:79)
   	at org.apache.shardingsphere.transaction.base.seata.at.SeataATShardingTransactionManager.begin(SeataATShardingTransactionManager.java:101)
   	at org.apache.shardingsphere.shardingjdbc.jdbc.core.connection.ShardingConnection.setAutoCommit(ShardingConnection.java:141)
   	at org.apache.shardingsphere.example.transaction.base.seata.raw.jdbc.SeataATOrderService.insert(SeataATOrderService.java:78)
   	at org.apache.shardingsphere.example.transaction.base.seata.raw.jdbc.SeataATOrderServiceTest.assertInsertSuccess(SeataATOrderServiceTest.java:56)
   	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
   	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
   	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
   	at java.lang.reflect.Method.invoke(Method.java:498)
   	at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:50)
   	at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
   	at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:47)
   	at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17)
   	at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:26)
   	at org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:27)
   	at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:325)
   	at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:78)
   	at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:57)
   	at org.junit.runners.ParentRunner$3.run(ParentRunner.java:290)
   	at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:71)
   	at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288)
   	at org.junit.runners.ParentRunner.access$000(ParentRunner.java:58)
   	at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:268)
   	at org.junit.runners.ParentRunner.run(ParentRunner.java:363)
   	at org.junit.runner.JUnitCore.run(JUnitCore.java:137)
   	at com.intellij.junit4.JUnit4IdeaTestRunner.startRunnerWithArgs(JUnit4IdeaTestRunner.java:68)
   	at com.intellij.rt.junit.IdeaTestRunner$Repeater.startRunnerWithArgs(IdeaTestRunner.java:33)
   	at com.intellij.rt.junit.JUnitStarter.prepareStreamsAndStart(JUnitStarter.java:230)
   	at com.intellij.rt.junit.JUnitStarter.main(JUnitStarter.java:58)
   Caused by: io.seata.common.exception.FrameworkException: connect failed, can not connect to services-server.
   	at io.seata.core.rpc.netty.RpcClientBootstrap.getNewChannel(RpcClientBootstrap.java:190)
   	... 40 common frames omitted
   Caused by: io.netty.channel.AbstractChannel$AnnotatedConnectException: Connection refused: /127.0.0.1:8091
   	at sun.nio.ch.SocketChannelImpl.checkConnect(Native Method)
   	at sun.nio.ch.SocketChannelImpl.finishConnect(SocketChannelImpl.java:714)
   	at io.netty.channel.socket.nio.NioSocketChannel.doFinishConnect(NioSocketChannel.java:327)
   	at io.netty.channel.nio.AbstractNioChannel$AbstractNioUnsafe.finishConnect(AbstractNioChannel.java:340)
   	at io.netty.channel.nio.NioEventLoop.processSelectedKey(NioEventLoop.java:632)
   	at io.netty.channel.nio.NioEventLoop.processSelectedKeysOptimized(NioEventLoop.java:579)
   	at io.netty.channel.nio.NioEventLoop.processSelectedKeys(NioEventLoop.java:496)
   	at io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:458)
   	at io.netty.util.concurrent.SingleThreadEventExecutor$5.run(SingleThreadEventExecutor.java:897)
   	at io.netty.util.concurrent.FastThreadLocalRunnable.run(FastThreadLocalRunnable.java:30)
   	at java.lang.Thread.run(Thread.java:748)
   Caused by: java.net.ConnectException: Connection refused
   	... 11 common frames omitted
   
   io.seata.common.exception.FrameworkException: can not register RM,err:can not connect to services-server.
   
   	at io.seata.core.rpc.netty.NettyClientChannelManager.doConnect(NettyClientChannelManager.java:210)
   	at io.seata.core.rpc.netty.NettyClientChannelManager.acquireChannel(NettyClientChannelManager.java:103)
   	at io.seata.core.rpc.netty.AbstractRpcRemotingClient.sendMsgWithResponse(AbstractRpcRemotingClient.java:229)
   	at io.seata.core.rpc.netty.AbstractRpcRemotingClient.sendMsgWithResponse(AbstractRpcRemotingClient.java:236)
   	at io.seata.tm.DefaultTransactionManager.syncCall(DefaultTransactionManager.java:95)
   	at io.seata.tm.DefaultTransactionManager.begin(DefaultTransactionManager.java:53)
   	at io.seata.tm.api.DefaultGlobalTransaction.begin(DefaultGlobalTransaction.java:102)
   	at io.seata.tm.api.DefaultGlobalTransaction.begin(DefaultGlobalTransaction.java:84)
   	at io.seata.tm.api.DefaultGlobalTransaction.begin(DefaultGlobalTransaction.java:79)
   	at org.apache.shardingsphere.transaction.base.seata.at.SeataATShardingTransactionManager.begin(SeataATShardingTransactionManager.java:101)
   	at org.apache.shardingsphere.shardingjdbc.jdbc.core.connection.ShardingConnection.setAutoCommit(ShardingConnection.java:141)
   	at org.apache.shardingsphere.example.transaction.base.seata.raw.jdbc.SeataATOrderService.insert(SeataATOrderService.java:78)
   	at org.apache.shardingsphere.example.transaction.base.seata.raw.jdbc.SeataATOrderServiceTest.assertInsertSuccess(SeataATOrderServiceTest.java:56)
   	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
   	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
   	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
   	at java.lang.reflect.Method.invoke(Method.java:498)
   	at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:50)
   	at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
   	at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:47)
   	at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17)
   	at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:26)
   	at org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:27)
   	at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:325)
   	at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:78)
   	at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:57)
   	at org.junit.runners.ParentRunner$3.run(ParentRunner.java:290)
   	at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:71)
   	at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288)
   	at org.junit.runners.ParentRunner.access$000(ParentRunner.java:58)
   	at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:268)
   	at org.junit.runners.ParentRunner.run(ParentRunner.java:363)
   	at org.junit.runner.JUnitCore.run(JUnitCore.java:137)
   	at com.intellij.junit4.JUnit4IdeaTestRunner.startRunnerWithArgs(JUnit4IdeaTestRunner.java:68)
   	at com.intellij.rt.junit.IdeaTestRunner$Repeater.startRunnerWithArgs(IdeaTestRunner.java:33)
   	at com.intellij.rt.junit.JUnitStarter.prepareStreamsAndStart(JUnitStarter.java:230)
   	at com.intellij.rt.junit.JUnitStarter.main(JUnitStarter.java:58)
   
   ```
   
   **I can't find reason. and I don't know what service on port 8091**
   


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [shardingsphere] fengyunhe commented on issue #5299: i am running seata jdbc example use 4.1.1 version ,error in console

Posted by GitBox <gi...@apache.org>.
fengyunhe commented on issue #5299:
URL: https://github.com/apache/shardingsphere/issues/5299#issuecomment-618771493


   I recommend a chrome plugin help to expand GitHub page to max width.
   https://chrome.google.com/webstore/detail/widescreen-for-github/elikdceclccjilahimjfceoalhdbndan/related?utm_source=chrome-ntp-icon 


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [shardingsphere] cherrylzhao commented on issue #5299: i am running seata jdbc example use 4.1.1 version ,error in console

Posted by GitBox <gi...@apache.org>.
cherrylzhao commented on issue #5299:
URL: https://github.com/apache/shardingsphere/issues/5299#issuecomment-618782771


    Requirement before running this test:
    1. create undo_log table in demo_ds_0 and demo_ds_1
    2. startup seata-server-1.0.0 (https://github.com/seata/seata/releases)
        make sure:
        - registry.type = "file"
        - config.ype = "file"
        - service.vgroup_mapping.my_test_tx_group = "default"


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [shardingsphere] fengyunhe commented on issue #5299: i am running seata jdbc example use 4.1.1 version ,error in console

Posted by GitBox <gi...@apache.org>.
fengyunhe commented on issue #5299:
URL: https://github.com/apache/shardingsphere/issues/5299#issuecomment-618783674


   > Requirement before running this test:
   > 
   > 1. create undo_log table in demo_ds_0 and demo_ds_1
   > 2. startup seata-server-1.0.0 (https://github.com/seata/seata/releases)
   >    make sure:
   >    
   >    * registry.type = "file"
   >    * config.ype = "file"
   >    * service.vgroup_mapping.my_test_tx_group = "default"
   
   thank you very much , that is the reason of my failed 


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org