search

Home  >  Q&A  >  body text

java - MyEclipse 8.5 调试模式停止时,线程无法终止,再次开启调试,直接会跳到上次停止时线程执行的地方,这是怎么回事?

另外,线程中开启了事务,停止后再次执行,一直报错说事务已经存在,无法创建新事务,但是把事务注解注释掉再调试,还是会打印事务日志,怀疑是上个线程的事务。

PHPzPHPz2871 days ago1766

reply all(20)I'll reply

  • CCIE

    CCIE2017-09-20 16:25:34

    In addition, when a transaction is started in a thread and executed again after stopping, an error is always reported saying that the transaction already exists and a new transaction cannot be created. However, after commenting out the transaction annotation and debugging again, the transaction log is still printed. It is suspected that it is a transaction of the previous thread.

    reply
    0
  • CCIE

    CCIE2017-09-20 16:25:28

    In addition, when a transaction is started in a thread and executed again after stopping, an error is always reported saying that the transaction already exists and a new transaction cannot be created. However, after commenting out the transaction annotation and debugging again, the transaction log is still printed. It is suspected that it is a transaction of the previous thread.

    reply
    0
  • CCIE

    CCIE2017-09-20 16:25:21

    In addition, when a transaction is started in a thread and executed again after stopping, an error is always reported saying that the transaction already exists and a new transaction cannot be created. However, after commenting out the transaction annotation and debugging again, the transaction log is still printed. It is suspected that it is a transaction of the previous thread.

    reply
    0
  • CCIE

    CCIE2017-09-20 16:25:14

    In addition, when a transaction is started in a thread and executed again after stopping, an error is always reported saying that the transaction already exists and a new transaction cannot be created. However, after commenting out the transaction annotation and debugging again, the transaction log is still printed. It is suspected that it is a transaction of the previous thread.

    reply
    0
  • CCIE

    CCIE2017-09-20 16:25:07

    In addition, when a transaction is started in a thread and executed again after stopping, an error is always reported saying that the transaction already exists and a new transaction cannot be created. However, after commenting out the transaction annotation and debugging again, the transaction log is still printed. It is suspected that it is a transaction of the previous thread.

    reply
    0
  • CCIE

    CCIE2017-09-20 16:24:59

    In addition, when a transaction is started in a thread and executed again after stopping, an error is always reported saying that the transaction already exists and a new transaction cannot be created. However, after commenting out the transaction annotation and debugging again, the transaction log is still printed. It is suspected that it is a transaction of the previous thread.

    reply
    0
  • CCIE

    CCIE2017-09-20 16:24:52

    In addition, when a transaction is started in a thread and executed again after stopping, an error is always reported saying that the transaction already exists and a new transaction cannot be created. However, after commenting out the transaction annotation and debugging again, the transaction log is still printed. It is suspected that it is a transaction of the previous thread.

    reply
    0
  • CCIE

    CCIE2017-09-20 16:24:46

    In addition, when a transaction is started in a thread and executed again after stopping, an error is always reported saying that the transaction already exists and a new transaction cannot be created. However, after commenting out the transaction annotation and debugging again, the transaction log is still printed. It is suspected that it is a transaction of the previous thread.

    reply
    0
  • CCIE

    CCIE2017-09-20 16:24:38

    In addition, when a transaction is started in a thread and executed again after stopping, an error is always reported saying that the transaction already exists and a new transaction cannot be created. However, after commenting out the transaction annotation and debugging again, the transaction log is still printed. It is suspected that it is a transaction of the previous thread.

    reply
    0
  • CCIE

    CCIE2017-09-20 16:24:31

    In addition, when a transaction is started in a thread and executed again after stopping, an error is always reported saying that the transaction already exists and a new transaction cannot be created. However, after commenting out the transaction annotation and debugging again, the transaction log is still printed. It is suspected that it is a transaction of the previous thread.

    reply
    0
  • Cancelreply