Unix Technical Forum

SEO

vBulletin Search Engine Optimization


Go Back   Unix Technical Forum > Database Server Software > PostgreSQL > pgsql Interfaces jdbc

Register FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 04-16-2008, 12:52 AM
=?UTF-8?Q?Pawe=C5=82?= Cesar Sanjuan Szklarz
 
Posts: n/a
Default jdbc problem

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.SoapMessageDisp atcher] - 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.NestedSQLExceptio n:
--- 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.NestedSQLExceptio n:
--- 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.General Statement.executeQueryWithCallback(GeneralStatemen t.java:185)
at
com.ibatis.sqlmap.engine.mapping.statement.General Statement.executeQueryForObject(GeneralStatement.j ava:104)
at
com.ibatis.sqlmap.engine.impl.SqlMapExecutorDelega te.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.



---------------------------(end of broadcast)---------------------------
TIP 1: if posting/reading through Usenet, please send an appropriate
subscribe-nomail command to majordomo@postgresql.org so that your
message can get through to the mailing list cleanly

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 04-16-2008, 12:52 AM
Kris Jurka
 
Posts: n/a
Default Re: jdbc problem



On Wed, 22 Aug 2007, PaweĊ~B Cesar Sanjuan Szklarz wrote:

> 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:
>
> Caused by: org.postgresql.util.PSQLException: ERROR: syntax error at end
> of input
>
> 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.
>
>


It's not really clear what's going on here. Please use the 8.2 driver and
add "?loglevel=2" to your JDBC url to produce additional logging
information on the JDBC side and send that here.

Kris Jurka

---------------------------(end of broadcast)---------------------------
TIP 4: Have you searched our list archives?

http://archives.postgresql.org

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 04-16-2008, 12:52 AM
Pawel Cesar Sanjuan Szklarz
 
Posts: n/a
Default Re: jdbc problem

Hi.

Thanks for the reply. I turn on loglevel 2 and this is the log:

12:32:35,191 INFO [STDOUT] 12:32:35.191 (1) PostgreSQL 8.2 JDBC3 with
SSL (build 506)
12:32:35,199 INFO [STDOUT] 12:32:35.198 (1) Trying to establish a
protocol version 3 connection to 192.168.1.13:5432
12:32:35,211 INFO [STDOUT] 12:32:35.211 (1) FE=>
StartupPacket(user=postgres, database=gwind, client_encoding=UNICODE,
DateStyle=ISO)
12:32:35,213 INFO [STDOUT] 12:32:35.213 (1) <=BE AuthenticationOk
12:32:35,543 INFO [STDOUT] 12:32:35.543 (1) <=BE
ParameterStatus(client_encoding = UNICODE)
12:32:35,543 INFO [STDOUT] 12:32:35.543 (1) <=BE
ParameterStatus(DateStyle = ISO, MDY)
12:32:35,543 INFO [STDOUT] 12:32:35.543 (1) <=BE
ParameterStatus(is_superuser = on)
12:32:35,543 INFO [STDOUT] 12:32:35.543 (1) <=BE
ParameterStatus(server_version = 7.4.11)
12:32:35,553 INFO [STDOUT] 12:32:35.544 (1) <=BE
ParameterStatus(session_authorization = postgres)
12:32:35,555 INFO [STDOUT] 12:32:35.555 (1) <=BE
BackendKeyData(pid=23825,ckey=1248523452)
12:32:35,556 INFO [STDOUT] 12:32:35.556 (1) <=BE ReadyForQuery(I)
12:32:35,556 INFO [STDOUT] 12:32:35.556 (1) compatible = 8.2
12:32:35,556 INFO [STDOUT] 12:32:35.556 (1) loglevel = 2
12:32:35,556 INFO [STDOUT] 12:32:35.556 (1) prepare threshold = 5
12:32:35,601 INFO [STDOUT] 12:32:35.601 (1) FE=> Terminate
12:32:35,639 INFO [STDOUT] 12:32:35.639 (2) PostgreSQL 8.2 JDBC3 with
SSL (build 506)
12:32:35,639 INFO [STDOUT] 12:32:35.639 (2) Trying to establish a
protocol version 3 connection to 192.168.1.13:5432
12:32:35,640 INFO [STDOUT] 12:32:35.640 (2) FE=>
StartupPacket(user=postgres, database=gwind, client_encoding=UNICODE,
DateStyle=ISO)
12:32:35,644 INFO [STDOUT] 12:32:35.644 (2) <=BE AuthenticationOk
12:32:35,644 INFO [STDOUT] 12:32:35.644 (2) <=BE
ParameterStatus(client_encoding = UNICODE)
12:32:35,644 INFO [STDOUT] 12:32:35.644 (2) <=BE
ParameterStatus(DateStyle = ISO, MDY)
12:32:35,644 INFO [STDOUT] 12:32:35.644 (2) <=BE
ParameterStatus(is_superuser = on)
12:32:35,644 INFO [STDOUT] 12:32:35.644 (2) <=BE
ParameterStatus(server_version = 7.4.11)
12:32:35,645 INFO [STDOUT] 12:32:35.645 (2) <=BE
ParameterStatus(session_authorization = postgres)
12:32:35,645 INFO [STDOUT] 12:32:35.645 (2) <=BE
BackendKeyData(pid=23826,ckey=737417993)
12:32:35,645 INFO [STDOUT] 12:32:35.645 (2) <=BE ReadyForQuery(I)
12:32:35,645 INFO [STDOUT] 12:32:35.645 (2) compatible = 8.2
12:32:35,645 INFO [STDOUT] 12:32:35.645 (2) loglevel = 2
12:32:35,645 INFO [STDOUT] 12:32:35.645 (2) prepare threshold = 5
12:32:35,848 INFO [STDOUT] 12:32:35.848 (2) simple execute,
handler=org.postgresql.jdbc2.AbstractJdbc2Statemen t$StatementResultHandler@13cf887,
maxRows=0, fetchSize=0, flags=1
12:32:35,850 INFO [STDOUT] 12:32:35.850 (2) FE=>
Parse(stmt=S_1,query="BEGIN",oids={})
12:32:35,850 INFO [STDOUT] 12:32:35.850 (2) FE=> Bind(stmt=S_1,portal=null)
12:32:35,850 INFO [STDOUT] 12:32:35.850 (2) FE=> Execute(portal=null,limit=0)
12:32:35,851 INFO [STDOUT] 12:32:35.851 (2) FE=>
Parse(stmt=null,query=" create temp table sms_temp ( like
sms excluding defaults ) on commit drop",oids={})
12:32:35,851 INFO [STDOUT] 12:32:35.851 (2) FE=> Bind(stmt=null,portal=null)
12:32:35,851 INFO [STDOUT] 12:32:35.851 (2) FE=> Describe(portal=null)
12:32:35,852 INFO [STDOUT] 12:32:35.852 (2) FE=> Execute(portal=null,limit=0)
12:32:35,852 INFO [STDOUT] 12:32:35.852 (2) FE=>
Parse(stmt=null,query=" insert into sms_temp select *
from sms S where
S.sms_status_id = 1 and S.not_before_time <= now()
and ( S.processing_time is null or (S.processing_time
< (now() - INTERVAL '1 hour')) ) ",oids={})
12:32:35,852 INFO [STDOUT] 12:32:35.852 (2) FE=> Bind(stmt=null,portal=null)
12:32:35,852 INFO [STDOUT] 12:32:35.852 (2) FE=> Describe(portal=null)
12:32:35,852 INFO [STDOUT] 12:32:35.852 (2) FE=> Execute(portal=null,limit=0)
12:32:35,852 INFO [STDOUT] 12:32:35.852 (2) FE=>
Parse(stmt=null,query=" create index sms_temp_idx on
sms_temp( sms_id )",oids={})
12:32:35,852 INFO [STDOUT] 12:32:35.852 (2) FE=> Bind(stmt=null,portal=null)
12:32:35,853 INFO [STDOUT] 12:32:35.852 (2) FE=> Describe(portal=null)
12:32:35,853 INFO [STDOUT] 12:32:35.853 (2) FE=> Execute(portal=null,limit=0)
12:32:35,853 INFO [STDOUT] 12:32:35.853 (2) FE=> Sync
12:32:35,854 INFO [STDOUT] 12:32:35.854 (2) <=BE ParseComplete [S_1]
12:32:35,854 INFO [STDOUT] 12:32:35.854 (2) <=BE BindComplete [null]
12:32:35,854 INFO [STDOUT] 12:32:35.854 (2) <=BE CommandStatus(BEGIN)
12:32:35,873 INFO [STDOUT] 12:32:35.873 (2) <=BE ErrorMessage(ERROR:
syntax error at end of input
Pozycja: 10)
12:32:35,874 INFO [STDOUT] org.postgresql.util.PSQLException: ERROR:
syntax error at end of input
Pozycja: 10
12:32:35,901 INFO [STDOUT] at
org.postgresql.core.v3.QueryExecutorImpl.receiveEr rorResponse(QueryExecutorImpl.java:1548)
12:32:35,901 INFO [STDOUT] at
org.postgresql.core.v3.QueryExecutorImpl.processRe sults(QueryExecutorImpl.java:1316)
12:32:35,901 INFO [STDOUT] at
org.postgresql.core.v3.QueryExecutorImpl.execute(Q ueryExecutorImpl.java:191)
12:32:35,901 INFO [STDOUT] at
org.postgresql.jdbc2.AbstractJdbc2Statement.execut e(AbstractJdbc2Statement.java:452)
12:32:35,901 INFO [STDOUT] at
org.postgresql.jdbc2.AbstractJdbc2Statement.execut eWithFlags(AbstractJdbc2Statement.java:351)
12:32:35,901 INFO [STDOUT] at
org.postgresql.jdbc2.AbstractJdbc2Statement.execut e(AbstractJdbc2Statement.java:344)
12:32:35,901 INFO [STDOUT] at
org.apache.commons.dbcp.DelegatingPreparedStatemen t.execute(DelegatingPreparedStatement.java:168)
12:32:35,901 INFO [STDOUT] at
com.ibatis.sqlmap.engine.execution.SqlExecutor.exe cuteUpdate(SqlExecutor.java:78)
12:32:35,901 INFO [STDOUT] at
com.ibatis.sqlmap.engine.mapping.statement.General Statement.sqlExecuteUpdate(GeneralStatement.java:2 00)
12:32:35,902 INFO [STDOUT] at
com.ibatis.sqlmap.engine.mapping.statement.General Statement.executeUpdate(GeneralStatement.java:78)
12:32:35,902 INFO [STDOUT] at
com.ibatis.sqlmap.engine.impl.SqlMapExecutorDelega te.update(SqlMapExecutorDelegate.java:504)
12:32:35,902 INFO [STDOUT] at
com.ibatis.sqlmap.engine.impl.SqlMapSessionImpl.up date(SqlMapSessionImpl.java:90)
12:32:35,902 INFO [STDOUT] at
org.springframework.orm.ibatis.SqlMapClientTemplat e$10.doInSqlMapClient(SqlMapClientTemplate.java:38 3)
12:32:35,902 INFO [STDOUT] at
org.springframework.orm.ibatis.SqlMapClientTemplat e.execute(SqlMapClientTemplate.java:193)
12:32:35,902 INFO [STDOUT] at
org.springframework.orm.ibatis.SqlMapClientTemplat e.update(SqlMapClientTemplate.java:381)
12:32:35,902 INFO [STDOUT] at
org.springframework.orm.ibatis.SqlMapClientTemplat e.update(SqlMapClientTemplate.java:375)
12:32:35,902 INFO [STDOUT] at
pl.com.cc.gwindws.dao.ibatis.IbatisSmsDao.makeTemp PendingSmsList(IbatisSmsDao.java:19)
12:32:35,902 INFO [STDOUT] at
pl.com.cc.gwindws.service.impl.SmsServiceImpl.clai mSmsBatch(SmsServiceImpl.java:109)
12:32:35,902 INFO [STDOUT] at
sun.reflect.NativeMethodAccessorImpl.invoke0(Nativ e Method)
12:32:35,902 INFO [STDOUT] at
sun.reflect.NativeMethodAccessorImpl.invoke(Native MethodAccessorImpl.java:39)
12:32:35,903 INFO [STDOUT] at
sun.reflect.DelegatingMethodAccessorImpl.invoke(De legatingMethodAccessorImpl.java:25)
12:32:35,903 INFO [STDOUT] at
java.lang.reflect.Method.invoke(Method.java:585)
12:32:35,903 INFO [STDOUT] at
org.springframework.aop.support.AopUtils.invokeJoi npointUsingReflection(AopUtils.java:281)
12:32:35,903 INFO [STDOUT] at
org.springframework.aop.framework.ReflectiveMethod Invocation.invokeJoinpoint(ReflectiveMethodInvocat ion.java:187)
12:32:35,903 INFO [STDOUT] at
org.springframework.aop.framework.ReflectiveMethod Invocation.proceed(ReflectiveMethodInvocation.java :154)
12:32:35,903 INFO [STDOUT] at
org.springframework.transaction.interceptor.Transa ctionInterceptor.invoke(TransactionInterceptor.jav a:107)
12:32:35,903 INFO [STDOUT] at
org.springframework.aop.framework.ReflectiveMethod Invocation.proceed(ReflectiveMethodInvocation.java :176)
12:32:35,903 INFO [STDOUT] at
org.springframework.aop.framework.JdkDynamicAopPro xy.invoke(JdkDynamicAopProxy.java:210)
12:32:35,903 INFO [STDOUT] at $Proxy62.claimSmsBatch(Unknown Source)
12:32:35,903 INFO [STDOUT] at
pl.com.cc.gwindws.job.SendSmsJob.executeInternal(S endSmsJob.java:33)
12:32:35,903 INFO [STDOUT] at
org.springframework.scheduling.quartz.QuartzJobBea n.execute(QuartzJobBean.java:86)
12:32:35,904 INFO [STDOUT] at
org.quartz.core.JobRunShell.run(JobRunShell.java:2 02)
12:32:35,904 INFO [STDOUT] at
java.util.concurrent.ThreadPoolExecutor$Worker.run Task(ThreadPoolExecutor.java:650)
12:32:35,904 INFO [STDOUT] at
java.util.concurrent.ThreadPoolExecutor$Worker.run (ThreadPoolExecutor.java:675)
12:32:35,904 INFO [STDOUT] at java.lang.Thread.run(Thread.java:595)
12:32:35,904 INFO [STDOUT] SQLException: SQLState(42601)
12:32:35,904 INFO [STDOUT] 12:32:35.904 (2) <=BE ReadyForQuery(E)
12:32:35,905 INFO [STDOUT] SQLException: SQLState(42601) vendor code(0)
12:32:35,905 INFO [STDOUT]
com.ibatis.common.jdbc.exception.NestedSQLExceptio n:
--- The error occurred in pl/com/cc/gwindws/dao/ibatis/map/Sms.xml.
--- The error occurred while applying a parameter map.
--- Check the makeTempPendingSmsList-InlineParameterMap.
--- Check the statement (update failed).
--- Cause: org.postgresql.util.PSQLException: ERROR: syntax error at
end of input
Pozycja: 10
12:32:35,905 INFO [STDOUT] at
com.ibatis.sqlmap.engine.mapping.statement.General Statement.executeUpdate(GeneralStatement.java:91)
12:32:35,905 INFO [STDOUT] at
com.ibatis.sqlmap.engine.impl.SqlMapExecutorDelega te.update(SqlMapExecutorDelegate.java:504)
12:32:35,906 INFO [STDOUT] at
com.ibatis.sqlmap.engine.impl.SqlMapSessionImpl.up date(SqlMapSessionImpl.java:90)
12:32:35,947 INFO [STDOUT] at
org.springframework.orm.ibatis.SqlMapClientTemplat e$10.doInSqlMapClient(SqlMapClientTemplate.java:38 3)
12:32:35,947 INFO [STDOUT] at
org.springframework.orm.ibatis.SqlMapClientTemplat e.execute(SqlMapClientTemplate.java:193)
12:32:35,947 INFO [STDOUT] at
org.springframework.orm.ibatis.SqlMapClientTemplat e.update(SqlMapClientTemplate.java:381)
12:32:35,947 INFO [STDOUT] at
org.springframework.orm.ibatis.SqlMapClientTemplat e.update(SqlMapClientTemplate.java:375)
12:32:35,948 INFO [STDOUT] at
pl.com.cc.gwindws.dao.ibatis.IbatisSmsDao.makeTemp PendingSmsList(IbatisSmsDao.java:19)
12:32:35,948 INFO [STDOUT] at
pl.com.cc.gwindws.service.impl.SmsServiceImpl.clai mSmsBatch(SmsServiceImpl.java:109)
12:32:35,948 INFO [STDOUT] at
sun.reflect.NativeMethodAccessorImpl.invoke0(Nativ e Method)
12:32:35,948 INFO [STDOUT] at
sun.reflect.NativeMethodAccessorImpl.invoke(Native MethodAccessorImpl.java:39)
12:32:35,948 INFO [STDOUT] at
sun.reflect.DelegatingMethodAccessorImpl.invoke(De legatingMethodAccessorImpl.java:25)
12:32:35,948 INFO [STDOUT] at
java.lang.reflect.Method.invoke(Method.java:585)
12:32:35,948 INFO [STDOUT] at
org.springframework.aop.support.AopUtils.invokeJoi npointUsingReflection(AopUtils.java:281)
12:32:35,948 INFO [STDOUT] at
org.springframework.aop.framework.ReflectiveMethod Invocation.invokeJoinpoint(ReflectiveMethodInvocat ion.java:187)
12:32:35,948 INFO [STDOUT] at
org.springframework.aop.framework.ReflectiveMethod Invocation.proceed(ReflectiveMethodInvocation.java :154)
12:32:35,948 INFO [STDOUT] at
org.springframework.transaction.interceptor.Transa ctionInterceptor.invoke(TransactionInterceptor.jav a:107)
12:32:35,948 INFO [STDOUT] at
org.springframework.aop.framework.ReflectiveMethod Invocation.proceed(ReflectiveMethodInvocation.java :176)
12:32:35,949 INFO [STDOUT] at
org.springframework.aop.framework.JdkDynamicAopPro xy.invoke(JdkDynamicAopProxy.java:210)
12:32:35,949 INFO [STDOUT] at $Proxy62.claimSmsBatch(Unknown Source)
12:32:35,949 INFO [STDOUT] at
pl.com.cc.gwindws.job.SendSmsJob.executeInternal(S endSmsJob.java:33)
12:32:35,949 INFO [STDOUT] at
org.springframework.scheduling.quartz.QuartzJobBea n.execute(QuartzJobBean.java:86)
12:32:35,949 INFO [STDOUT] at
org.quartz.core.JobRunShell.run(JobRunShell.java:2 02)
12:32:35,949 INFO [STDOUT] at
java.util.concurrent.ThreadPoolExecutor$Worker.run Task(ThreadPoolExecutor.java:650)
12:32:35,949 INFO [STDOUT] at
java.util.concurrent.ThreadPoolExecutor$Worker.run (ThreadPoolExecutor.java:675)
12:32:35,949 INFO [STDOUT] at java.lang.Thread.run(Thread.java:595)

2007/8/27, Kris Jurka <books@ejurka.com>:
>
>
> On Wed, 22 Aug 2007, PaweĊ~B Cesar Sanjuan Szklarz wrote:
>
> > 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:
> >
> > Caused by: org.postgresql.util.PSQLException: ERROR: syntax error at end
> > of input
> >
> > 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.
> >
> >

>
> It's not really clear what's going on here. Please use the 8.2 driver and
> add "?loglevel=2" to your JDBC url to produce additional logging
> information on the JDBC side and send that here.
>
> Kris Jurka
>


---------------------------(end of broadcast)---------------------------
TIP 6: explain analyze is your friend

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 04-16-2008, 12:53 AM
Pawel Cesar Sanjuan Szklarz
 
Posts: n/a
Default Re: jdbc problem

Hi.

I migrate to postgres 7.4.17 and it is working. No idea that is the problem.

Thanks for all.

Pawel Szklarz.

2007/8/27, Pawel Cesar Sanjuan Szklarz <paweld2@gmail.com>:
> Hi.
>
> Thanks for the reply. I turn on loglevel 2 and this is the log:
>
> 12:32:35,191 INFO [STDOUT] 12:32:35.191 (1) PostgreSQL 8.2 JDBC3 with
> SSL (build 506)
> 12:32:35,199 INFO [STDOUT] 12:32:35.198 (1) Trying to establish a
> protocol version 3 connection to 192.168.1.13:5432
> 12:32:35,211 INFO [STDOUT] 12:32:35.211 (1) FE=>
> StartupPacket(user=postgres, database=gwind, client_encoding=UNICODE,
> DateStyle=ISO)
> 12:32:35,213 INFO [STDOUT] 12:32:35.213 (1) <=BE AuthenticationOk
> 12:32:35,543 INFO [STDOUT] 12:32:35.543 (1) <=BE
> ParameterStatus(client_encoding = UNICODE)
> 12:32:35,543 INFO [STDOUT] 12:32:35.543 (1) <=BE
> ParameterStatus(DateStyle = ISO, MDY)
> 12:32:35,543 INFO [STDOUT] 12:32:35.543 (1) <=BE
> ParameterStatus(is_superuser = on)
> 12:32:35,543 INFO [STDOUT] 12:32:35.543 (1) <=BE
> ParameterStatus(server_version = 7.4.11)
> 12:32:35,553 INFO [STDOUT] 12:32:35.544 (1) <=BE
> ParameterStatus(session_authorization = postgres)
> 12:32:35,555 INFO [STDOUT] 12:32:35.555 (1) <=BE
> BackendKeyData(pid=23825,ckey=1248523452)
> 12:32:35,556 INFO [STDOUT] 12:32:35.556 (1) <=BE ReadyForQuery(I)
> 12:32:35,556 INFO [STDOUT] 12:32:35.556 (1) compatible = 8.2
> 12:32:35,556 INFO [STDOUT] 12:32:35.556 (1) loglevel = 2
> 12:32:35,556 INFO [STDOUT] 12:32:35.556 (1) prepare threshold = 5
> 12:32:35,601 INFO [STDOUT] 12:32:35.601 (1) FE=> Terminate
> 12:32:35,639 INFO [STDOUT] 12:32:35.639 (2) PostgreSQL 8.2 JDBC3 with
> SSL (build 506)
> 12:32:35,639 INFO [STDOUT] 12:32:35.639 (2) Trying to establish a
> protocol version 3 connection to 192.168.1.13:5432
> 12:32:35,640 INFO [STDOUT] 12:32:35.640 (2) FE=>
> StartupPacket(user=postgres, database=gwind, client_encoding=UNICODE,
> DateStyle=ISO)
> 12:32:35,644 INFO [STDOUT] 12:32:35.644 (2) <=BE AuthenticationOk
> 12:32:35,644 INFO [STDOUT] 12:32:35.644 (2) <=BE
> ParameterStatus(client_encoding = UNICODE)
> 12:32:35,644 INFO [STDOUT] 12:32:35.644 (2) <=BE
> ParameterStatus(DateStyle = ISO, MDY)
> 12:32:35,644 INFO [STDOUT] 12:32:35.644 (2) <=BE
> ParameterStatus(is_superuser = on)
> 12:32:35,644 INFO [STDOUT] 12:32:35.644 (2) <=BE
> ParameterStatus(server_version = 7.4.11)
> 12:32:35,645 INFO [STDOUT] 12:32:35.645 (2) <=BE
> ParameterStatus(session_authorization = postgres)
> 12:32:35,645 INFO [STDOUT] 12:32:35.645 (2) <=BE
> BackendKeyData(pid=23826,ckey=737417993)
> 12:32:35,645 INFO [STDOUT] 12:32:35.645 (2) <=BE ReadyForQuery(I)
> 12:32:35,645 INFO [STDOUT] 12:32:35.645 (2) compatible = 8.2
> 12:32:35,645 INFO [STDOUT] 12:32:35.645 (2) loglevel = 2
> 12:32:35,645 INFO [STDOUT] 12:32:35.645 (2) prepare threshold = 5
> 12:32:35,848 INFO [STDOUT] 12:32:35.848 (2) simple execute,
> handler=org.postgresql.jdbc2.AbstractJdbc2Statemen t$StatementResultHandler@13cf887,
> maxRows=0, fetchSize=0, flags=1
> 12:32:35,850 INFO [STDOUT] 12:32:35.850 (2) FE=>
> Parse(stmt=S_1,query="BEGIN",oids={})
> 12:32:35,850 INFO [STDOUT] 12:32:35.850 (2) FE=> Bind(stmt=S_1,portal=null)
> 12:32:35,850 INFO [STDOUT] 12:32:35.850 (2) FE=> Execute(portal=null,limit=0)
> 12:32:35,851 INFO [STDOUT] 12:32:35.851 (2) FE=>
> Parse(stmt=null,query=" create temp table sms_temp ( like
> sms excluding defaults ) on commit drop",oids={})
> 12:32:35,851 INFO [STDOUT] 12:32:35.851 (2) FE=> Bind(stmt=null,portal=null)
> 12:32:35,851 INFO [STDOUT] 12:32:35.851 (2) FE=> Describe(portal=null)
> 12:32:35,852 INFO [STDOUT] 12:32:35.852 (2) FE=> Execute(portal=null,limit=0)
> 12:32:35,852 INFO [STDOUT] 12:32:35.852 (2) FE=>
> Parse(stmt=null,query=" insert into sms_temp select *
> from sms S where
> S.sms_status_id = 1 and S.not_before_time <= now()
> and ( S.processing_time is null or (S.processing_time
> < (now() - INTERVAL '1 hour')) ) ",oids={})
> 12:32:35,852 INFO [STDOUT] 12:32:35.852 (2) FE=> Bind(stmt=null,portal=null)
> 12:32:35,852 INFO [STDOUT] 12:32:35.852 (2) FE=> Describe(portal=null)
> 12:32:35,852 INFO [STDOUT] 12:32:35.852 (2) FE=> Execute(portal=null,limit=0)
> 12:32:35,852 INFO [STDOUT] 12:32:35.852 (2) FE=>
> Parse(stmt=null,query=" create index sms_temp_idx on
> sms_temp( sms_id )",oids={})
> 12:32:35,852 INFO [STDOUT] 12:32:35.852 (2) FE=> Bind(stmt=null,portal=null)
> 12:32:35,853 INFO [STDOUT] 12:32:35.852 (2) FE=> Describe(portal=null)
> 12:32:35,853 INFO [STDOUT] 12:32:35.853 (2) FE=> Execute(portal=null,limit=0)
> 12:32:35,853 INFO [STDOUT] 12:32:35.853 (2) FE=> Sync
> 12:32:35,854 INFO [STDOUT] 12:32:35.854 (2) <=BE ParseComplete [S_1]
> 12:32:35,854 INFO [STDOUT] 12:32:35.854 (2) <=BE BindComplete [null]
> 12:32:35,854 INFO [STDOUT] 12:32:35.854 (2) <=BE CommandStatus(BEGIN)
> 12:32:35,873 INFO [STDOUT] 12:32:35.873 (2) <=BE ErrorMessage(ERROR:
> syntax error at end of input
> Pozycja: 10)
> 12:32:35,874 INFO [STDOUT] org.postgresql.util.PSQLException: ERROR:
> syntax error at end of input
> Pozycja: 10
> 12:32:35,901 INFO [STDOUT] at
> org.postgresql.core.v3.QueryExecutorImpl.receiveEr rorResponse(QueryExecutorImpl.java:1548)
> 12:32:35,901 INFO [STDOUT] at
> org.postgresql.core.v3.QueryExecutorImpl.processRe sults(QueryExecutorImpl.java:1316)
> 12:32:35,901 INFO [STDOUT] at
> org.postgresql.core.v3.QueryExecutorImpl.execute(Q ueryExecutorImpl.java:191)
> 12:32:35,901 INFO [STDOUT] at
> org.postgresql.jdbc2.AbstractJdbc2Statement.execut e(AbstractJdbc2Statement.java:452)
> 12:32:35,901 INFO [STDOUT] at
> org.postgresql.jdbc2.AbstractJdbc2Statement.execut eWithFlags(AbstractJdbc2Statement.java:351)
> 12:32:35,901 INFO [STDOUT] at
> org.postgresql.jdbc2.AbstractJdbc2Statement.execut e(AbstractJdbc2Statement.java:344)
> 12:32:35,901 INFO [STDOUT] at
> org.apache.commons.dbcp.DelegatingPreparedStatemen t.execute(DelegatingPreparedStatement.java:168)
> 12:32:35,901 INFO [STDOUT] at
> com.ibatis.sqlmap.engine.execution.SqlExecutor.exe cuteUpdate(SqlExecutor.java:78)
> 12:32:35,901 INFO [STDOUT] at
> com.ibatis.sqlmap.engine.mapping.statement.General Statement.sqlExecuteUpdate(GeneralStatement.java:2 00)
> 12:32:35,902 INFO [STDOUT] at
> com.ibatis.sqlmap.engine.mapping.statement.General Statement.executeUpdate(GeneralStatement.java:78)
> 12:32:35,902 INFO [STDOUT] at
> com.ibatis.sqlmap.engine.impl.SqlMapExecutorDelega te.update(SqlMapExecutorDelegate.java:504)
> 12:32:35,902 INFO [STDOUT] at
> com.ibatis.sqlmap.engine.impl.SqlMapSessionImpl.up date(SqlMapSessionImpl.java:90)
> 12:32:35,902 INFO [STDOUT] at
> org.springframework.orm.ibatis.SqlMapClientTemplat e$10.doInSqlMapClient(SqlMapClientTemplate.java:38 3)
> 12:32:35,902 INFO [STDOUT] at
> org.springframework.orm.ibatis.SqlMapClientTemplat e.execute(SqlMapClientTemplate.java:193)
> 12:32:35,902 INFO [STDOUT] at
> org.springframework.orm.ibatis.SqlMapClientTemplat e.update(SqlMapClientTemplate.java:381)
> 12:32:35,902 INFO [STDOUT] at
> org.springframework.orm.ibatis.SqlMapClientTemplat e.update(SqlMapClientTemplate.java:375)
> 12:32:35,902 INFO [STDOUT] at
> pl.com.cc.gwindws.dao.ibatis.IbatisSmsDao.makeTemp PendingSmsList(IbatisSmsDao.java:19)
> 12:32:35,902 INFO [STDOUT] at
> pl.com.cc.gwindws.service.impl.SmsServiceImpl.clai mSmsBatch(SmsServiceImpl.java:109)
> 12:32:35,902 INFO [STDOUT] at
> sun.reflect.NativeMethodAccessorImpl.invoke0(Nativ e Method)
> 12:32:35,902 INFO [STDOUT] at
> sun.reflect.NativeMethodAccessorImpl.invoke(Native MethodAccessorImpl.java:39)
> 12:32:35,903 INFO [STDOUT] at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(De legatingMethodAccessorImpl.java:25)
> 12:32:35,903 INFO [STDOUT] at
> java.lang.reflect.Method.invoke(Method.java:585)
> 12:32:35,903 INFO [STDOUT] at
> org.springframework.aop.support.AopUtils.invokeJoi npointUsingReflection(AopUtils.java:281)
> 12:32:35,903 INFO [STDOUT] at
> org.springframework.aop.framework.ReflectiveMethod Invocation.invokeJoinpoint(ReflectiveMethodInvocat ion.java:187)
> 12:32:35,903 INFO [STDOUT] at
> org.springframework.aop.framework.ReflectiveMethod Invocation.proceed(ReflectiveMethodInvocation.java :154)
> 12:32:35,903 INFO [STDOUT] at
> org.springframework.transaction.interceptor.Transa ctionInterceptor.invoke(TransactionInterceptor.jav a:107)
> 12:32:35,903 INFO [STDOUT] at
> org.springframework.aop.framework.ReflectiveMethod Invocation.proceed(ReflectiveMethodInvocation.java :176)
> 12:32:35,903 INFO [STDOUT] at
> org.springframework.aop.framework.JdkDynamicAopPro xy.invoke(JdkDynamicAopProxy.java:210)
> 12:32:35,903 INFO [STDOUT] at $Proxy62.claimSmsBatch(Unknown Source)
> 12:32:35,903 INFO [STDOUT] at
> pl.com.cc.gwindws.job.SendSmsJob.executeInternal(S endSmsJob.java:33)
> 12:32:35,903 INFO [STDOUT] at
> org.springframework.scheduling.quartz.QuartzJobBea n.execute(QuartzJobBean.java:86)
> 12:32:35,904 INFO [STDOUT] at
> org.quartz.core.JobRunShell.run(JobRunShell.java:2 02)
> 12:32:35,904 INFO [STDOUT] at
> java.util.concurrent.ThreadPoolExecutor$Worker.run Task(ThreadPoolExecutor.java:650)
> 12:32:35,904 INFO [STDOUT] at
> java.util.concurrent.ThreadPoolExecutor$Worker.run (ThreadPoolExecutor.java:675)
> 12:32:35,904 INFO [STDOUT] at java.lang.Thread.run(Thread.java:595)
> 12:32:35,904 INFO [STDOUT] SQLException: SQLState(42601)
> 12:32:35,904 INFO [STDOUT] 12:32:35.904 (2) <=BE ReadyForQuery(E)
> 12:32:35,905 INFO [STDOUT] SQLException: SQLState(42601) vendor code(0)
> 12:32:35,905 INFO [STDOUT]
> com.ibatis.common.jdbc.exception.NestedSQLExceptio n:
> --- The error occurred in pl/com/cc/gwindws/dao/ibatis/map/Sms.xml.
> --- The error occurred while applying a parameter map.
> --- Check the makeTempPendingSmsList-InlineParameterMap.
> --- Check the statement (update failed).
> --- Cause: org.postgresql.util.PSQLException: ERROR: syntax error at
> end of input
> Pozycja: 10
> 12:32:35,905 INFO [STDOUT] at
> com.ibatis.sqlmap.engine.mapping.statement.General Statement.executeUpdate(GeneralStatement.java:91)
> 12:32:35,905 INFO [STDOUT] at
> com.ibatis.sqlmap.engine.impl.SqlMapExecutorDelega te.update(SqlMapExecutorDelegate.java:504)
> 12:32:35,906 INFO [STDOUT] at
> com.ibatis.sqlmap.engine.impl.SqlMapSessionImpl.up date(SqlMapSessionImpl.java:90)
> 12:32:35,947 INFO [STDOUT] at
> org.springframework.orm.ibatis.SqlMapClientTemplat e$10.doInSqlMapClient(SqlMapClientTemplate.java:38 3)
> 12:32:35,947 INFO [STDOUT] at
> org.springframework.orm.ibatis.SqlMapClientTemplat e.execute(SqlMapClientTemplate.java:193)
> 12:32:35,947 INFO [STDOUT] at
> org.springframework.orm.ibatis.SqlMapClientTemplat e.update(SqlMapClientTemplate.java:381)
> 12:32:35,947 INFO [STDOUT] at
> org.springframework.orm.ibatis.SqlMapClientTemplat e.update(SqlMapClientTemplate.java:375)
> 12:32:35,948 INFO [STDOUT] at
> pl.com.cc.gwindws.dao.ibatis.IbatisSmsDao.makeTemp PendingSmsList(IbatisSmsDao.java:19)
> 12:32:35,948 INFO [STDOUT] at
> pl.com.cc.gwindws.service.impl.SmsServiceImpl.clai mSmsBatch(SmsServiceImpl.java:109)
> 12:32:35,948 INFO [STDOUT] at
> sun.reflect.NativeMethodAccessorImpl.invoke0(Nativ e Method)
> 12:32:35,948 INFO [STDOUT] at
> sun.reflect.NativeMethodAccessorImpl.invoke(Native MethodAccessorImpl.java:39)
> 12:32:35,948 INFO [STDOUT] at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(De legatingMethodAccessorImpl.java:25)
> 12:32:35,948 INFO [STDOUT] at
> java.lang.reflect.Method.invoke(Method.java:585)
> 12:32:35,948 INFO [STDOUT] at
> org.springframework.aop.support.AopUtils.invokeJoi npointUsingReflection(AopUtils.java:281)
> 12:32:35,948 INFO [STDOUT] at
> org.springframework.aop.framework.ReflectiveMethod Invocation.invokeJoinpoint(ReflectiveMethodInvocat ion.java:187)
> 12:32:35,948 INFO [STDOUT] at
> org.springframework.aop.framework.ReflectiveMethod Invocation.proceed(ReflectiveMethodInvocation.java :154)
> 12:32:35,948 INFO [STDOUT] at
> org.springframework.transaction.interceptor.Transa ctionInterceptor.invoke(TransactionInterceptor.jav a:107)
> 12:32:35,948 INFO [STDOUT] at
> org.springframework.aop.framework.ReflectiveMethod Invocation.proceed(ReflectiveMethodInvocation.java :176)
> 12:32:35,949 INFO [STDOUT] at
> org.springframework.aop.framework.JdkDynamicAopPro xy.invoke(JdkDynamicAopProxy.java:210)
> 12:32:35,949 INFO [STDOUT] at $Proxy62.claimSmsBatch(Unknown Source)
> 12:32:35,949 INFO [STDOUT] at
> pl.com.cc.gwindws.job.SendSmsJob.executeInternal(S endSmsJob.java:33)
> 12:32:35,949 INFO [STDOUT] at
> org.springframework.scheduling.quartz.QuartzJobBea n.execute(QuartzJobBean.java:86)
> 12:32:35,949 INFO [STDOUT] at
> org.quartz.core.JobRunShell.run(JobRunShell.java:2 02)
> 12:32:35,949 INFO [STDOUT] at
> java.util.concurrent.ThreadPoolExecutor$Worker.run Task(ThreadPoolExecutor.java:650)
> 12:32:35,949 INFO [STDOUT] at
> java.util.concurrent.ThreadPoolExecutor$Worker.run (ThreadPoolExecutor.java:675)
> 12:32:35,949 INFO [STDOUT] at java.lang.Thread.run(Thread.java:595)
>
> 2007/8/27, Kris Jurka <books@ejurka.com>:
> >
> >
> > On Wed, 22 Aug 2007, PaweĊ~B Cesar Sanjuan Szklarz wrote:
> >
> > > 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:
> > >
> > > Caused by: org.postgresql.util.PSQLException: ERROR: syntax error at end
> > > of input
> > >
> > > 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.
> > >
> > >

> >
> > It's not really clear what's going on here. Please use the 8.2 driver and
> > add "?loglevel=2" to your JDBC url to produce additional logging
> > information on the JDBC side and send that here.
> >
> > Kris Jurka
> >

>


---------------------------(end of broadcast)---------------------------
TIP 7: You can help support the PostgreSQL project by donating at

http://www.postgresql.org/about/donate

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 11:32 AM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
UnixAdminTalk.com

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610