Hello MashZone Community
I am having trouble running MashZone with Postgres 8.4. This is an open source database. From the release notes I understand that MashZone has not been tested with this database.
I am getting the following error message when trying to execute an sql query:
- "Method org.postgresql.jdbc4.Jdbc4Statement.setQueryTimeout(int) is not yet implemented."
I have been able to connect using several different JDBC drivers all with no problems, but all returning the same error message.
I am assuming that the JDBC drivers of postgres truly don't have time-outs implemented. I have googled the error message and found that other software vendors had to adjust their software accordingly.
Thus my questions: Is it possible to disable the timeout call while executing SQL queries to a database?
Thomas Heib on
Hello Phil,
the flaw occured in the postgres driver itself, unfortunately it obviously does not implement the complete java.sql.Statement interface, so the standard method "setQueryTimeout", which is adressed by MashZone to protect itself from not returning queries, throws this "Not-Implemented"-Exception. So there is no official way to disable the timeout restriction.
I think there are 2 approaches to solve your problem:
You might implement your own postgres-driver just by wrapping the genuine one and then simply catch the Not-Implemented Exception throw by the method, what is quite like hacking and might harm the Mashzone application during runtime.
The recommended and even more convenient solution is to look for a completely implemented postgre driver, perhaps a commercial one with some license fees.
Best regards
Thomas