shardingsphere icon indicating copy to clipboard operation
shardingsphere copied to clipboard

Proxy because "this.xaTransactionManagerProvider" is null'

Open cookiejoo opened this issue 1 year ago • 3 comments

Bug Report

proxy 5.4

use python conn proxy database error

################################################

import pymysql

conn = pymysql.connect(host='localhost', port=80, user='qoa_sharding', password='xxxx', database='xxx_sharding') cursor = conn.cursor()

try: sql = "SELECT * FROM test_ss WHERE cust_no = 'xxxx'" cursor.execute(sql)

results = cursor.fetchall()

for row in results:
    print(row)

except Exception as e: print("Error:", str(e)) finally: cursor.close() conn.close()

############################################################

Error: (30000, 'Unknown exception: Cannot invoke "org.apache.shardingsphere.transaction.xa.spi.XATransactionManagerProvider.getTransactionManager()" because "this.xaTransactionManagerProvider" is null')

############################################################# but use java jbdc conn this database is success。

cookiejoo avatar Jan 29 '24 08:01 cookiejoo

Try open transaction configuration.

zhaojinchao95 avatar Feb 14 '24 12:02 zhaojinchao95

There hasn't been any activity on this issue recently, and in order to prioritize active issues, it will be marked as stale.

github-actions[bot] avatar Mar 16 '24 20:03 github-actions[bot]

There hasn't been any activity on this issue recently, and in order to prioritize active issues, it will be marked as stale.

github-actions[bot] avatar May 16 '24 20:05 github-actions[bot]

Due to no feedback from the author for an long period, I am closing this issue for now.

terrymanu avatar Jul 07 '24 05:07 terrymanu