Unix Technical Forum

java.sql.SQLException: Could not position within a table

This is a discussion on java.sql.SQLException: Could not position within a table within the Informix forums, part of the Database Server Software category; --> Hi, I have an application running on Tomcat on Windows 2000 and the database is Informix running on a ...


Go Back   Unix Technical Forum > Database Server Software > Informix

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 04-19-2008, 07:47 PM
shivas
 
Posts: n/a
Default java.sql.SQLException: Could not position within a table

Hi,

I have an application running on Tomcat on Windows 2000 and the
database is Informix running on a HP-UX box.

Once in a while i get this exception..

java.sql.SQLException: Could not position within a table
(informix.stockprice).
at com.informix.jdbc.IfxSqli.errorDone(IfxSqli.java:3 102)
at com.informix.jdbc.IfxSqli.receiveError(IfxSqli.jav a:2982)
at com.informix.jdbc.IfxSqli.dispatchMsg(IfxSqli.java :2066)
at com.informix.jdbc.IfxSqli.receiveMessage(IfxSqli.j ava:1995)
at com.informix.jdbc.IfxSqli.sendStatementQuery(IfxSq li.java:1263)
at com.informix.jdbc.IfxSqli.executeStatementQuery(If xSqli.java:1210)
at com.informix.jdbc.IfxSqli.executeStatementQuery(If xSqli.java:1147)
at com.informix.jdbc.IfxResultSet.executeQuery(IfxRes ultSet.java:218)
at com.informix.jdbc.IfxStatement.executeQueryImpl(If xStatement.java:707)
at com.informix.jdbc.IfxPreparedStatement.executeQuer y(IfxPreparedStatement.java:230)

Has anyone encoutered this problem before. Any sort of help will be
great!!

Thanks
shivas
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 04-19-2008, 07:47 PM
Gorazd Hribar Rajteric
 
Posts: n/a
Default Re: java.sql.SQLException: Could not position within a table

We experienced similar problem on IDS 7.31 on Solaris machines. There is no
simple solution to this problem. You can try to increase lock waiting time
(SET LOCK MODE TO WAIT 100 for example, or you can try dirty reading (SET
ISOLATION TO DIRTY READ).

Gorazd

"shivas" <shivasj@mindtree.com> wrote in message
news:f2c2908d.0309162132.2f5a249d@posting.google.c om...
> Hi,
>
> I have an application running on Tomcat on Windows 2000 and the
> database is Informix running on a HP-UX box.
>
> Once in a while i get this exception..
>
> java.sql.SQLException: Could not position within a table
> (informix.stockprice).
> at com.informix.jdbc.IfxSqli.errorDone(IfxSqli.java:3 102)
> at com.informix.jdbc.IfxSqli.receiveError(IfxSqli.jav a:2982)
> at com.informix.jdbc.IfxSqli.dispatchMsg(IfxSqli.java :2066)
> at com.informix.jdbc.IfxSqli.receiveMessage(IfxSqli.j ava:1995)
> at com.informix.jdbc.IfxSqli.sendStatementQuery(IfxSq li.java:1263)
> at com.informix.jdbc.IfxSqli.executeStatementQuery(If xSqli.java:1210)
> at com.informix.jdbc.IfxSqli.executeStatementQuery(If xSqli.java:1147)
> at com.informix.jdbc.IfxResultSet.executeQuery(IfxRes ultSet.java:218)
> at com.informix.jdbc.IfxStatement.executeQueryImpl(If xStatement.java:707)
> at

com.informix.jdbc.IfxPreparedStatement.executeQuer y(IfxPreparedStatement.jav
a:230)
>
> Has anyone encoutered this problem before. Any sort of help will be
> great!!
>
> Thanks
> shivas



Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 04-19-2008, 07:47 PM
Paul Watson
 
Posts: n/a
Default Re: java.sql.SQLException: Could not position within a table

You've got a locking/concurreny problem, you'll need to increase
the lock wait to something larger and/or look at the isolation level
and/or review the application logic. What is the locking level
on stockprice?

shivas wrote:
>
> Hi,
>
> I have an application running on Tomcat on Windows 2000 and the
> database is Informix running on a HP-UX box.
>
> Once in a while i get this exception..
>
> java.sql.SQLException: Could not position within a table
> (informix.stockprice).
> at com.informix.jdbc.IfxSqli.errorDone(IfxSqli.java:3 102)
> at com.informix.jdbc.IfxSqli.receiveError(IfxSqli.jav a:2982)
> at com.informix.jdbc.IfxSqli.dispatchMsg(IfxSqli.java :2066)
> at com.informix.jdbc.IfxSqli.receiveMessage(IfxSqli.j ava:1995)
> at com.informix.jdbc.IfxSqli.sendStatementQuery(IfxSq li.java:1263)
> at com.informix.jdbc.IfxSqli.executeStatementQuery(If xSqli.java:1210)
> at com.informix.jdbc.IfxSqli.executeStatementQuery(If xSqli.java:1147)
> at com.informix.jdbc.IfxResultSet.executeQuery(IfxRes ultSet.java:218)
> at com.informix.jdbc.IfxStatement.executeQueryImpl(If xStatement.java:707)
> at com.informix.jdbc.IfxPreparedStatement.executeQuer y(IfxPreparedStatement.java:230)
>
> Has anyone encoutered this problem before. Any sort of help will be
> great!!
>
> Thanks
> shivas


--
Paul Watson #
Oninit Ltd # Growing old is mandatory
Tel: +44 1436 672201 # Growing up is optional
Fax: +44 1436 678693 #
Mob: +44 7818 003457 #
www.oninit.com #
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 09:45 AM.


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