Closed TonyLuo closed 4 years ago
Can you try to analyze and just provide related code with database access code?
For example, the code of ssl
and log
is too confuse for debug.
Can you submit a test-case to reproduce this issue, thx. @TonyLuo
@terrymanu @kimmking pls refer to this repository : https://github.com/TonyLuo/test-shardingsphere After server started, you can run following command to reproduce this issue:
curl 'http://localhost:8080/api/authenticate' -H 'Content-Type: application/json;charset=UTF-8' -H 'Accept: application/json, text/plain, */*' --data-binary '{"username":"admin","password":"admin","rememberMe":false}'
hi guys, any update on this issue?
I just label this issue as volunteer wanted, anybody who interested with this issue, please discuss here.
I upgrade the shardingjdbc version to be 4.0.0, it still has the same issue...
I found this exception:
java.sql.SQLException: Can''t call commit when autocommit=true
It works when I comment this jpa configuration entry : hibernate.connection.provider_disables_autocommit.
Will it have any impact to do this? @terrymanu
jpa:
database-platform: org.hibernate.dialect.MySQL8Dialect
database: MYSQL
show-sql: true
properties:
hibernate.id.new_generator_mappings: true
# hibernate.connection.provider_disables_autocommit: true
hibernate.cache.use_second_level_cache: true
hibernate.cache.use_query_cache: false
hibernate.generate_statistics: false
Bug Report
For English only, other languages will not accept.
Before report a bug, make sure you have:
Please pay attention on issues you submitted, because we maybe need more details. If no response more than 7 days and we cannot reproduce it on current information, we will close it.
Please answer these questions before submitting your issue. Thanks!
Which version of ShardingSphere did you use?
4.0.0-RC3
Which project did you use? Sharding-JDBC or Sharding-Proxy?
Sharding-JDBC
Expected behavior
Actual behavior
Reason analyze (If you can)
Steps to reproduce the behavior, such as: SQL to execute, sharding rule configuration, when exception occur etc.
Example codes for reproduce this issue (such as a github link).