First was faced with endless pending Transaction in BitcoinJ FrameWork
The main documentation says that it can be made by Replace-By-Fee. So you need to take the old transaction and create a new one but based on previous.
Sounds good, but how correctly, using Bitcoinj framework create another one?
NetworkParameters params = MainNetParams.get();
WalletAppKit wallet = new WalletAppKit(params, new File("."), "_mywallet");
walletKit.startAsync();
walletKit.awaitRunning();
Wallet wallet = walletKit.wallet();
... There are one Pending
ArrayList<Transaction> pendingList = new ArrayList<>(wallet.getPendingTransactions()); Transaction nextTx = new Transaction(pendingList.get(0)); // → throws Exeption