If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > Informix > query on a view via JDBC: first time succeeds, second time fails (syntax error)

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 12-22-06, 09:17
mixforin mixforin is offline
Registered User
 
Join Date: Jan 2006
Posts: 1
query on a view via JDBC: first time succeeds, second time fails (syntax error)

I have the following problem on Informix SE 7.25.UC1:
A view is created, and than this view is queried via JDBC connection (a simpe select statement is run on columns of the view).
When the query runs at first time, it works fine.
But when the same query is run at the second time, it fails with syntax error:
java.sql.SQLException: A syntax error has occurred.
at com.informix.util.IfxErrMsg.getSQLException(IfxErr Msg.java:348)
at com.informix.jdbc.IfxSqli.addException(IfxSqli.jav a:3025)
at com.informix.jdbc.IfxSqli.receiveError(IfxSqli.jav a:3335)
at com.informix.jdbc.IfxSqli.dispatchMsg(IfxSqli.java :2288)
at com.informix.jdbc.IfxSqli.receiveMessage(IfxSqli.j ava:2208)
at com.informix.jdbc.IfxSqli.executeStatementQuery(If xSqli.java:1338)
at com.informix.jdbc.IfxSqli.executeStatementQuery(If xSqli.java:1311)
at com.informix.jdbc.IfxResultSet.executeQuery(IfxRes ultSet.java:230)
at com.informix.jdbc.IfxStatement.executeQueryImpl(If xStatement.java:809)
at com.informix.jdbc.IfxStatement.executeQuery(IfxSta tement.java:151)

The java application is a servlet running on Apache. The only way of making the query work again, is to restart Apache.
Any idea? Any similar experience? Thank you in advance.
Reply With Quote
  #2 (permalink)  
Old 05-04-12, 21:58
douglasharris douglasharris is offline
Registered User
 
Join Date: May 2002
Posts: 1
I have the same problem.

I see your post is very old. Did you ever find the solution. I"m desperate!!!
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
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

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On