When attempting to connect to a DB2 database using the com.ibm.as400.access.AS400JDBCDriver JDBC driver, the process "hangs" and becomes unresponsive.
In the Atom container log there is an exception similar to:
"LocalProcessExec-thread-4" Id=80 WAITING on java.awt.Component$AWTTreeLock@13eda1a1
at java.lang.Object.wait(Native Method)
- waiting on java.awt.Component$AWTTreeLock@13eda1a1
The problem may be caused by invalid connection information such as incorrect credentials. If this is the case, by default the driver will attempt to display a warning dialog to an end user and await input however there is no end user in the context of connecting through the database connector.
To resolve this the driver supports unattended connections with a connection string property to disable the dialog. This allows errors to be returned to the database connector and displayed through AtomSphere.
In the database connection append the following to the Connection URL: