File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes JDBC and the fly likes sql exception Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Java » JDBC
Reply Bookmark "sql exception" Watch "sql exception" New topic
Author

sql exception

Nijeesh Balan
Ranch Hand

Joined: Oct 09, 2000
Posts: 116
Iam executing a select query in servlet, it is working fine when 'order by' is not present.
when 'order by' is given, query is not executed and it is throwing a sql exception.
Exception is : unsupported syntax for refreshrow(); java.sql.SQLException
thanks
nijeesh bh


Thanks & Regards,<br />Nijeesh.
Graham Thorpe
Ranch Hand

Joined: Mar 25, 2002
Posts: 264
First u execute ur query in either oracle or sql,if it is working then ur colde also working.if u have still doubt send oncce again
Nijeesh Balan
Ranch Hand

Joined: Oct 09, 2000
Posts: 116
Thanks for your response.
I have identified the source of error. Unfortunately i don't have the solution.
I'm facing this problem when i have more than 10 records in the db table. The reason could be that when u traverse through the resultset after 10 rows it refreshes it and hence throws the error.
Thanks In Advance.
Nijeesh.
 
 
subject: sql exception
 
Threads others viewed
Java sqlexception definition
java sqlexception
use a database schema from java using jdbc
Getting next record
ORA-00600: internal error
developer file tools