Java calls webservice unresponsive, is it appropriate to use thread.stop to terminate the thread?

the project occasionally fails to respond when calling a WebService interface (wsimport mode) (showing that the program keeps blocking and does not throw any exceptions). Check the stack information as shown in the figure

.

the solution now is to create a child thread to call WS,. If the call does not respond (the main thread waits for timeout), it terminates the child thread

because the thread state is always Runnable, and is not a loop, it is not possible to interrupt the thread with interrupt () . In this case, is it appropriate to use stop () to terminate the thread? Is there a better solution?

call WS thread stack information:

Mar.28,2021

do not manually manipulate the thread life cycle. What you need to do is to add the timeout parameter when the thread's Run method calls WS, and once the timeout log is directly recorded and return, the thread will automatically terminate.

MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1b3840e-2c0f1.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1b3840e-2c0f1.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?