You can activate the SAP MaxDB JDBC trace to find errors while your application is connected to a database via JDBC.
When the JDBC trace is activated, the system logs the following information:
JDBC API calls called by the JDBC application
JDBC API call parameters
Executed SQL statements and their results