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 > java.sql.SQLException: Could not write to a temporary file

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 08-18-03, 12:32
TalM TalM is offline
Registered User
 
Join Date: Aug 2003
Posts: 1
Angry java.sql.SQLException: Could not write to a temporary file

I'm trying to get to randomaly selected record in the result set.
The only way I found to do so is:

currRow = (int)(Math.random() * numberOfRows);
for (int i=0; i<currRow; i++) {
m_resultset.next();
}

sometime I get exception:
java.sql.SQLException: Could not write to a temporary file.
at com.informix.util.IfxErrMsg.getSQLException(IfxErr Msg.java:349)
at com.informix.jdbc.IfxSqli.addException(IfxSqli.jav a:3043)
at com.informix.jdbc.IfxSqli.receiveError(IfxSqli.jav a:3353)
at com.informix.jdbc.IfxSqli.dispatchMsg(IfxSqli.java :2254)
at com.informix.jdbc.IfxSqli.receiveMessage(IfxSqli.j ava:2174)
at com.informix.jdbc.IfxSqli.executeScrollFetch(IfxSq li.java:5166)
at com.informix.jdbc.IfxSqli.getaRow(IfxSqli.java:404 3)
at com.informix.jdbc.IfxResultSet.next(IfxResultSet.j ava:525)
at DBConnection.updateRandomElement(DBConnection.java :138)
at main.main(main.java:27)


Any idea?
Reply With Quote
  #2 (permalink)  
Old 08-20-03, 13:17
Ida Hoe Ida Hoe is offline
Registered User
 
Join Date: Aug 2003
Location: West
Posts: 98
Re: java.sql.SQLException: Could not write to a temporary file

root dbspace? Do 'tbstat -d' while you're running the
pgm and see if any chunks get near 0 free ???
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