penghuazhou opened a new issue, #38308:
URL: https://github.com/apache/shardingsphere/issues/38308

   shardingshpere-proxy 
[5.5.3](https://github.com/apache/shardingsphere/releases/tag/5.5.3).
   
   bash start.sh, throw 
"'com.cedarsoftware.util.CaseInsensitiveMap$CaseInsensitiveString 
com.cedarsoftware.util.CaseInsensitiveMap$CaseInsensitiveString.of(java.lang.String)'"
 exception.
   
   ```
   
   OpenJDK 64-Bit Server VM warning: Setting LargePageSizeInBytes has no effect 
on this OS. Large page size is 2048K.
   OpenJDK 64-Bit Server VM warning: Failed to reserve shared memory. (error = 
12)
   OpenJDK 64-Bit Server VM warning: Failed to reserve shared memory. (error = 
12)
   OpenJDK 64-Bit Server VM warning: Failed to reserve shared memory. (error = 
12)
   SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder".
   SLF4J: Defaulting to no-operation (NOP) logger implementation
   SLF4J: See http://www.slf4j.org/codes.html#StaticLoggerBinder for further 
details.
   Exception in thread "main" java.lang.NoSuchMethodError: 
'com.cedarsoftware.util.CaseInsensitiveMap$CaseInsensitiveString 
com.cedarsoftware.util.CaseInsensitiveMap$CaseInsensitiveString.of(java.lang.String)'
           at 
org.apache.shardingsphere.infra.datanode.DataNode.hashCode(DataNode.java:173)
           at java.base/java.util.HashMap.hash(HashMap.java:340)
           at java.base/java.util.HashMap.put(HashMap.java:608)
           at 
org.apache.shardingsphere.sharding.rule.ShardingTable.generateDataNodes(ShardingTable.java:196)
           at 
org.apache.shardingsphere.sharding.rule.ShardingTable.<init>(ShardingTable.java:107)
           at 
org.apache.shardingsphere.sharding.rule.ShardingRule.createShardingTable(ShardingRule.java:191)
           at 
org.apache.shardingsphere.sharding.rule.ShardingRule.lambda$createShardingTables$11(ShardingRule.java:184)
           at 
java.base/java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:195)
           at 
java.base/java.util.LinkedList$LLSpliterator.forEachRemaining(LinkedList.java:1239)
           at 
java.base/java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:484)
           at 
java.base/java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:474)
           at 
java.base/java.util.stream.ReduceOps$ReduceOp.evaluateSequential(ReduceOps.java:913)
           at 
java.base/java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234)
           at 
java.base/java.util.stream.ReferencePipeline.collect(ReferencePipeline.java:578)
           at 
org.apache.shardingsphere.sharding.rule.ShardingRule.createShardingTables(ShardingRule.java:185)
           at 
org.apache.shardingsphere.sharding.rule.ShardingRule.<init>(ShardingRule.java:124)
           at 
org.apache.shardingsphere.sharding.rule.builder.ShardingRuleBuilder.build(ShardingRuleBuilder.java:42)
           at 
org.apache.shardingsphere.sharding.rule.builder.ShardingRuleBuilder.build(ShardingRuleBuilder.java:36)
           at 
org.apache.shardingsphere.infra.rule.builder.database.DatabaseRulesBuilder.build(DatabaseRulesBuilder.java:69)
           at 
org.apache.shardingsphere.infra.metadata.database.ShardingSphereDatabaseFactory.create(ShardingSphereDatabaseFactory.java:83)
           at 
org.apache.shardingsphere.infra.metadata.database.ShardingSphereDatabasesFactory.createGenericDatabases(ShardingSphereDatabasesFactory.java:96)
           at 
org.apache.shardingsphere.infra.metadata.database.ShardingSphereDatabasesFactory.create(ShardingSphereDatabasesFactory.java:84)
           at 
org.apache.shardingsphere.mode.metadata.factory.init.type.LocalConfigurationMetaDataContextsInitFactory.create(LocalConfigurationMetaDataContextsInitFactory.java:67)
           at 
org.apache.shardingsphere.mode.metadata.factory.MetaDataContextsFactory.create(MetaDataContextsFactory.java:80)
           at 
org.apache.shardingsphere.mode.manager.standalone.StandaloneContextManagerBuilder.build(StandaloneContextManagerBuilder.java:52)
           at 
org.apache.shardingsphere.proxy.initializer.BootstrapInitializer.createContextManager(BootstrapInitializer.java:61)
           at 
org.apache.shardingsphere.proxy.initializer.BootstrapInitializer.init(BootstrapInitializer.java:52)
           at org.apache.shardingsphere.proxy.Bootstrap.main(Bootstrap.java:64)
   
   ```
   
   database-sharding.yaml
   ```
   databaseName: sharding_db
   
   dataSources:
     ds_0:
       url: 
jdbc:mysql://127.0.0.1:3306/sharding?serverTimezone=UTC&useSSL=false&charset=utf8mb4&parseTime=True&allowPublicKeyRetrieval=true
       username: sharding
       password: sharding
       connectionTimeoutMilliseconds: 30000
       idleTimeoutMilliseconds: 60000
       maxLifetimeMilliseconds: 1800000
       maxPoolSize: 500
       minPoolSize: 10
       customPoolProps:
         leakDetectionThreshold: 30000
         registerMbeans: true
   
   rules:
   - !SHARDING
     tables:
       tbl_group:
         actualDataNodes: ds_0.tbl_group_${0}_${0}
         tableStrategy:
           complex:
             shardingColumns: app_id,group_id
             shardingAlgorithmName: tbl_group_strategy
     defaultDatabaseStrategy:
       none:
     defaultTableStrategy:
       none:
     defaultKeyGenerateStrategy:
       keyGeneratorName: snowflake
       column: id
   
     shardingAlgorithms:
       tbl_group_strategy:
         type: COMPLEX_INLINE
         props:
           algorithm-expression: 
tbl_group_${app_id}_${Math.abs(group_id.hashCode()) % 2}
   
     keyGenerators:
       snowflake:
         type: SNOWFLAKE
         props:
           worker-id: 561
   ```
   
   global.yaml
   ```
   #
   # Licensed to the Apache Software Foundation (ASF) under one or more
   # contributor license agreements.  See the NOTICE file distributed with
   # this work for additional information regarding copyright ownership.
   # The ASF licenses this file to You under the Apache License, Version 2.0
   # (the "License"); you may not use this file except in compliance with
   # the License.  You may obtain a copy of the License at
   #
   #     http://www.apache.org/licenses/LICENSE-2.0
   #
   # Unless required by applicable law or agreed to in writing, software
   # distributed under the License is distributed on an "AS IS" BASIS,
   # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
   # See the License for the specific language governing permissions and
   # limitations under the License.
   #
   
   
######################################################################################################
   #
   # If you want to configure governance, authorization and proxy properties, 
please refer to this file.
   #
   
######################################################################################################
   
   mode:
     type: Standalone
     repository:
       type: JDBC
   
   authority:
     users:
       - user: zego@%
         password: mranUgb1iEZAjAj3
     privilege:
       type: ALL_PERMITTED
   
   transaction:
     defaultType: LOCAL
     providerType: Atomikos
   
   sqlParser:
     sqlStatementCache:
       initialCapacity: 2000
       maximumSize: 65535
     parseTreeCache:
       initialCapacity: 128
       maximumSize: 1024
   
   sqlFederation:
     sqlFederationEnabled: false
     executionPlanCache:
       initialCapacity: 2000
       maximumSize: 65535
   
   props:
     system-log-level: INFO
     max-connections-size-per-query: 1
     kernel-executor-size: 16  # Infinite by default.
     proxy-frontend-flush-threshold: 128  # The default value is 128.
     # sql-show is the same as props in logger ShardingSphere-SQL, and its 
priority is lower than logging rule
     sql-show: false
     check-table-metadata-enabled: false
       # Proxy backend query fetch size. A larger value may increase the memory 
usage of ShardingSphere Proxy.
       # The default value is -1, which means set the minimum value for 
different JDBC drivers.
     proxy-backend-query-fetch-size: -1
     proxy-frontend-executor-size: 0 # Proxy frontend executor size. The 
default value is 0, which means let Netty decide.
     proxy-frontend-max-connections: 0 # Less than or equal to 0 means no 
limitation.
     proxy-default-port: 23307 # Proxy default port.
     proxy-netty-backlog: 1024 # Proxy netty backlog.
     proxy-frontend-ssl-enabled: false
     proxy-frontend-ssl-cipher: ''
     proxy-frontend-ssl-version: TLSv1.2,TLSv1.3
   ```


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

To unsubscribe, e-mail: 
[email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to