Received: from localhost (maia-1.hub.org [200.46.204.191]) by postgresql.org (Postfix) with ESMTP id 6AF5B9F9605 for ; Wed, 22 Aug 2007 10:48:17 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.191]) (amavisd-maia, port 10024) with ESMTP id 49584-03 for ; Wed, 22 Aug 2007 10:48:14 -0300 (ADT) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.5 Received: from nf-out-0910.google.com (nf-out-0910.google.com [64.233.182.190]) by postgresql.org (Postfix) with ESMTP id 272E39F95FE for ; Wed, 22 Aug 2007 10:48:13 -0300 (ADT) Received: by nf-out-0910.google.com with SMTP id f5so147856nfh for ; Wed, 22 Aug 2007 06:48:11 -0700 (PDT) DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:subject:from:to:content-type:date:message-id:mime-version:x-mailer:content-transfer-encoding; b=LgLFurCv8J0Vr0zUiUj7Pjb7I6jkN8AOIl+r2OFTYlkmDsGiLwF7R0TJLLlCKCaOGhPMsyBZo5o3xToV+8BtKcD+BoMxUiv2OKXBwIpostJIyzfh/sevQu5CSpqjgO4EpzKsr6LPPRk05ojPy6aXyaBYKFI9u98W4hH3roVr7ro= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:subject:from:to:content-type:date:message-id:mime-version:x-mailer:content-transfer-encoding; b=lBT4KMQBKcMkSQ0OY6asvRMbcNg+kW6EB5Z3XagIawIdcO256VzTA5jR4/wF9znMAhO+dRo4s3dAfVe964ZhlxPIZrtCVXFVGhmiJJ1KEZvTeAwF6FB/T36E2iu46mPwodNHJ01qMlc3erLv0jSIMKJbCmye7r/y97DcDuypnmw= Received: by 10.86.28.5 with SMTP id b5mr506935fgb.1187790491698; Wed, 22 Aug 2007 06:48:11 -0700 (PDT) Received: from ?192.168.1.16? ( [195.187.15.2]) by mx.google.com with ESMTPS id p9sm1286497fkb.2007.08.22.06.48.10 (version=TLSv1/SSLv3 cipher=RC4-MD5); Wed, 22 Aug 2007 06:48:10 -0700 (PDT) Subject: jdbc problem From: =?UTF-8?Q?Pawe=C5=82?= Cesar Sanjuan Szklarz To: pgsql-jdbc@postgresql.org Content-Type: text/plain Date: Wed, 22 Aug 2007 15:48:08 +0200 Message-Id: <1187790488.19687.15.camel@bishio.cc.com.pl> Mime-Version: 1.0 X-Mailer: Evolution 2.10.1 Content-Transfer-Encoding: 7bit X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200708/89 X-Sequence-Number: 17402 Hi. I use ibatis and jdbc do connect to postgres. When I use a 8.2 database, then all works ok, but for 7.4 databases I get this error: 15:42:46,936 INFO [STDOUT] 2007-08-22 15:42:46,932 B5A22F41 WARN [org.springframework.ws.soap.server.SoapMessageDispatcher] - Endpoint invocation resulted in exception - responding with SOAP Fault org.springframework.jdbc.BadSqlGrammarException: SqlMapClient operation; bad SQL grammar []; nested exception is com.ibatis.common.jdbc.exception.NestedSQLException: --- The error occurred in pl/com/cc/gwindws/dao/ibatis/map/PTP.xml. --- The error occurred while applying a parameter map. --- Check the checkLoanId-InlineParameterMap. --- Check the statement (query failed). --- Cause: org.postgresql.util.PSQLException: ERROR: syntax error at end of input Caused by: org.postgresql.util.PSQLException: ERROR: syntax error at end of input Caused by: com.ibatis.common.jdbc.exception.NestedSQLException: --- The error occurred in pl/com/cc/gwindws/dao/ibatis/map/PTP.xml. --- The error occurred while applying a parameter map. --- Check the checkLoanId-InlineParameterMap. --- Check the statement (query failed). --- Cause: org.postgresql.util.PSQLException: ERROR: syntax error at end of input Caused by: org.postgresql.util.PSQLException: ERROR: syntax error at end of input at com.ibatis.sqlmap.engine.mapping.statement.GeneralStatement.executeQueryWithCallback(GeneralStatement.java:185) at com.ibatis.sqlmap.engine.mapping.statement.GeneralStatement.executeQueryForObject(GeneralStatement.java:104) at com.ibatis.sqlmap.engine.impl.SqlMapExecutorDelegate.queryForObject(SqlMapExecutorDelegate.java:565) When i check the servers logs i see this: LOG: connection received: host=192.168.1.16 port=52557 LOG: connection authorized: user=postgres database=gwind LOG: connection received: host=192.168.1.16 port=43021 LOG: connection authorized: user=postgres database=gwind LOG: statement: BEGIN LOG: statement: create ERROR: syntax error at end of input at character 10 LOG: statement: ROLLBACK LOG: statement: create ERROR: syntax error at end of input at character 10 LOG: statement: create ERROR: syntax error at end of input at character 10 LOG: statement: create ..... this ERROR repeats every 3 seconds. When i send a request to the servlet, i get this on the log: LOG: statement: SET SESSI ERROR: syntax error at end of input at character 10 I really try to : ----- Change the JDBC jar file for postgres 7.4 and 8.2 ----- use additional options on the url connection My database is in LATIN2. Thanks. Pawel Cesar Sanjuan Szklarz.