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 2019/12/04 07:32:25 UTC

[GitHub] [incubator-shardingsphere] xiaolongyuan commented on issue #3658: java.lang.NoSuchMethodError: com.google.common.util.concurrent.MoreExecutors.sameThreadExecutor()

xiaolongyuan commented on issue #3658: java.lang.NoSuchMethodError: com.google.common.util.concurrent.MoreExecutors.sameThreadExecutor()
URL: https://github.com/apache/incubator-shardingsphere/issues/3658#issuecomment-561515156
 
 
   config:
   
   ```
         tables:
           account_bill:
             key-generator:
               column: id
               type: LEAF_SNOWFLAKE
               props:
                 serverList: 172.16.3.150:2181
                 serviceId: account_bill_id
                 maxTimeDifference: 1000
   ```
   
   project guava 18.0
   
   Error:
   
   ```
   
   
   
   java.lang.NoSuchMethodError: org.apache.curator.CuratorZookeeperClient.startAdvancedTracer(Ljava/lang/String;)Lorg/apache/curator/drivers/OperationTrace;
   
   	at org.apache.curator.framework.imps.ExistsBuilderImpl.pathInForegroundStandard(ExistsBuilderImpl.java:221)
   	at org.apache.curator.framework.imps.ExistsBuilderImpl.pathInForeground(ExistsBuilderImpl.java:216)
   	at org.apache.curator.framework.imps.ExistsBuilderImpl.forPath(ExistsBuilderImpl.java:175)
   	at org.apache.curator.framework.imps.ExistsBuilderImpl.forPath(ExistsBuilderImpl.java:32)
   	at org.apache.shardingsphere.orchestration.reg.zookeeper.curator.CuratorZookeeperRegistryCenter.isExisted(CuratorZookeeperRegistryCenter.java:156)
   	at org.apache.shardingsphere.orchestration.internal.keygen.LeafSnowflakeKeyGenerator.initializeTimeNodeIfNeed(LeafSnowflakeKeyGenerator.java:199)
   	at org.apache.shardingsphere.orchestration.internal.keygen.LeafSnowflakeKeyGenerator.initializeLeafSnowflakeKeyGeneratorIfNeed(LeafSnowflakeKeyGenerator.java:121)
   	at org.apache.shardingsphere.orchestration.internal.keygen.LeafSnowflakeKeyGenerator.generateKey(LeafSnowflakeKeyGenerator.java:112)
   	at org.apache.shardingsphere.core.rule.ShardingRule.generateKey(ShardingRule.java:362)
   	at org.apache.shardingsphere.core.route.router.sharding.keygen.GeneratedKey.createGeneratedKey(GeneratedKey.java:105)
   	at org.apache.shardingsphere.core.route.router.sharding.keygen.GeneratedKey.getGenerateKey(GeneratedKey.java:68)
   	at org.apache.shardingsphere.core.route.router.sharding.ShardingRouter.route(ShardingRouter.java:99)
   	at org.apache.shardingsphere.core.route.PreparedStatementRoutingEngine.route(PreparedStatementRoutingEngine.java:63)
   	at org.apache.shardingsphere.core.PreparedQueryShardingEngine.route(PreparedQueryShardingEngine.java:59)
   	at org.apache.shardingsphere.core.BaseShardingEngine.executeRoute(BaseShardingEngine.java:91)
   	at org.apache.shardingsphere.core.BaseShardingEngine.shard(BaseShardingEngine.java:74)
   	at org.apache.shardingsphere.shardingjdbc.jdbc.core.statement.ShardingPreparedStatement.shard(ShardingPreparedStatement.java:222)
   	at org.apache.shardingsphere.shardingjdbc.jdbc.core.statement.ShardingPreparedStatement.execute(ShardingPreparedStatement.java:163)
   	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.apache.ibatis.logging.jdbc.PreparedStatementLogger.invoke(PreparedStatementLogger.java:59)
   	at com.sun.proxy.$Proxy74.execute(Unknown Source)
   	at org.apache.ibatis.executor.statement.PreparedStatementHandler.update(PreparedStatementHandler.java:47)
   	at org.apache.ibatis.executor.statement.RoutingStatementHandler.update(RoutingStatementHandler.java:74)
   	at org.apache.ibatis.executor.ReuseExecutor.doUpdate(ReuseExecutor.java:52)
   	at org.apache.ibatis.executor.BaseExecutor.update(BaseExecutor.java:117)
   	at org.apache.ibatis.session.defaults.DefaultSqlSession.update(DefaultSqlSession.java:197)
   	at org.apache.ibatis.session.defaults.DefaultSqlSession.insert(DefaultSqlSession.java:184)
   	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.mybatis.spring.SqlSessionTemplate$SqlSessionInterceptor.invoke(SqlSessionTemplate.java:433)
   	at com.sun.proxy.$Proxy65.insert(Unknown Source)
   	at org.mybatis.spring.SqlSessionTemplate.insert(SqlSessionTemplate.java:278)
   	at org.apache.ibatis.binding.MapperMethod.execute(MapperMethod.java:62)
   ```

----------------------------------------------------------------
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


With regards,
Apache Git Services