SQuirreL hangs on lock in AWT-EventQueue
A Java SQL client for any JDBC compliant database
Brought to you by:
colbell,
gerdwagner
Here is a citation of mails concerning this bug that can be found in our developers list:
Neville,
it's true that hangs occur if a JDBC connection is designed in a way that a running statement blocks any other access to a connection. If a JDBC driver is done that way there are several actions that can cause SQuirreL to hang while a statement is executing. Fortunately there seem to be only a few JDBC drivers behaving like that. In fact I only know of one.
A simple test to check this behaviour is to press the cancel button for a long running statement. If you get the message 'Failed to cancel statement. Perhaps the driver/RDDBMS does not support cancelling statements. ...' it is probable that your driver has this flaw.
Another way to get more information about hangs is to use the -detectEDT command line parameter. Here is an excerpt from our change log that describes how it works and what is does:
'New command line parameter:
Short form: -detectEDT
Long form: --detect-long-running-swing-edt-events
The parameter has no arguments.
The parameter enables SQuirreL to detect long running Swing Event Dispatch Thread events.
When the dispatch thread is blocked for longer than two seconds a warning containing a thread dump is written to the logs.'
Hope this helps
Gerd
Am 08.02.2016 um 07:58 schrieb Neville Rowe: