xianlongbai commented on issue #4886: Handler dispatch failed; nested exception 
is java.lang.NoClassDefFoundError: com/atomikos/icatch/HeuristicMessage
URL: 
https://github.com/apache/incubator-shardingsphere/issues/4886#issuecomment-602517758
 
 
      It's not good to write like this. Is there something wrong with this 
version?
   
       @ShardingTransactionType(TransactionType.XA)
       @Transactional
       public void testTrans() {
           TransactionType transactionType = TransactionTypeHolder.get();
           for (int i = 0; i < 100; i++) {
               Order order = new Order();
               order.setOrderId((long)i+1);
               int number = new Random().nextInt(500) + 1;
               order.setUserId((long) number);
               if(i==50){
                   throw new RuntimeException(" 模拟抛出一个异常!!!");
               }
               //appmetaDao.saveToOne(order);
               orderDao.saveToOne(order);
           }
       }

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


With regards,
Apache Git Services

Reply via email to