JDBC driver does not support getGeneratedKeys method
JDBC driver does not support getGeneratedKeys method
От:
Thomas SMETS <tsmets@brutele.be>
Дата:
Dear,
I try to use Log4J new DBAppender (cfr. the config file herebelow) but
it keeps on complaining with the following message :
Reported error: "Exception in Action for tag " at line 20
column -1
java.lang.IllegalStateException: DBAppender cannot function if the JDBC
driver does not support getGeneratedKeys method *and* without a specific
SQL dialect
at org.apache.log4j.db.DBAppender.activateOptions(DBAppender.java:179)
As I cannot get the information out of the ML's of Log4J ( Log4J Users
List ,
ML log4j dev ) on how to set the
SQL_DIALECT variable .... I was wandering if the postgresql driver
allowed for getGeneratedKeys....
I was wandering if I needed to use the "jxDBCon-Open Source JDBC driver
framework" available here : http://jxdbcon.sourceforge.net/ ... ?
Tx,
\T,
--
Thomas Lionel SMETS
rue J. Wytsmanstraat 62
1050 Brussels
T : +32 (0)2 742 05 94
M : +32 (0)497 44 68 12
@ : duvelbier-tsmets@yahoo.com
Do you skype (callto://tsmets) ?
Re: JDBC driver does not support getGeneratedKeys method
От:
Kris Jurka <books@ejurka.com>
Дата:
On Wed, 26 Apr 2006, Thomas SMETS wrote: > I try to use Log4J new DBAppender (cfr. the config file herebelow) but > it keeps on complaining with the following message : > The problem with the log4j code is that it has a number of warning messages that probably ought to be more fatal. You have some properties set incorrectly, so it cannot create a valid connection which results in this particular error. > > value="jdbc:postgresql://localhost:5432/Log4j" /> > > > use param names driverClass and user instead of driver and username. Also remove the dialect param. Kris Jurka