-
This error is caused but recently added code setting DB query timeout: setQueryTimeout(int) as an attempt to solve problem with stale DB connections or a very long queries which slowdown the server.
Apparently the postgreSQL driver does not yet support these settings.
Therefore the task would be to:
-
Research whether this or any other similar functionality is provided by any PostgreSQL JDBC driver
-
Modify the code accordingly, part of which would be detection if this is is postgresql database (or better yet if this functions are supported by the jdbc driver) and then call them or not.
-
Type |
Bug
|
Priority |
Blocker
|
Assignee | |
RedmineID |
82
|
Version |
tigase-server-5.1.0
|
Spent time |
0
|
Issue Votes (0)
Watchers (0)
5.1b2 fails to start w/ the following logs:
2011-03-16 15:09:23 StanzaReceiver.setProperties() SEVERE: Can't initialize repository:
tigase.db.DBInitException: Problem initializing jdbc connection: jdbc:postgresql://localhost/tigasedb?user=xxx&password=yyy&autoCreateUser=true
Caused by: org.postgresql.util.PSQLException: Method org.postgresql.jdbc3.Jdbc3PreparedStatement.setQueryTimeout(int) is not yet implemented.
i replaced the postgres driver of the original 5.1b2 tarball with the ones from the postgres jdbc download page. tried both jdbc3 and jdbc4 drivers w/o success.
environment: ubuntu lucid, postgres 8.4