kpioneer123 commented on issue #7380:
URL: https://github.com/apache/shardingsphere/issues/7380#issuecomment-695946142


   **Other errors** @cherrylzhao @kimmking 
   ```
       @Override
       @GlobalTransactional(timeoutMills = 300000,name = 
"account-service",rollbackFor = Exception.class)
       public void shardingSeata() throws Exception {
           TransactionTypeHolder.set(TransactionType.BASE);
           System.out.println("开始全局事务,XID = " + RootContext.getXID());
           BookPunchDTO bookPunch = new BookPunchDTO();
   ...
   ```
   If I add this code: **TransactionTypeHolder.set(TransactionType.BASE);**
   **result display error**
   ```
   15:14:47.702 INFO  [main]  io.seata.tm.api.DefaultGlobalTransaction  - Begin 
new global transaction [39.106.112.246:8091:51326895299584000]
   开始全局事务,XID = 39.106.112.246:8091:51326895299584000
   15:14:47.758 INFO  [main]  io.seata.tm.api.DefaultGlobalTransaction  - 
[39.106.112.246:8091:51326895299584000] rollback status: Rollbacked
   
   org.springframework.transaction.CannotCreateTransactionException: Could not 
open JDBC Connection for transaction; nested exception is 
java.lang.NullPointerException: Cannot find transaction manager of [BASE]
   
        at 
org.springframework.jdbc.datasource.DataSourceTransactionManager.doBegin(DataSourceTransactionManager.java:308)
        at 
org.springframework.transaction.support.AbstractPlatformTransactionManager.startTransaction(AbstractPlatformTransactionManager.java:400)
   
   ```
   


----------------------------------------------------------------
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:
[email protected]


Reply via email to