my dog learned polymorphism*
The moose likes Developer Certification (SCJD/OCMJD) and the fly likes problem with getRecord() Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Certification » Developer Certification (SCJD/OCMJD)
Bookmark "problem with getRecord()" Watch "problem with getRecord()" New topic
Author

problem with getRecord()

Ruslan Ivanov
Ranch Hand

Joined: Feb 22, 2001
Posts: 72
hi i am using getRecord to retrieve a record if i try to retrieve 2 records using this method in a loop i only get one and only sometimes i get another one. If i do Thread.sleep for 100 milliseconds i can get all the recods in any time otherwise i only get one or just 2. What can cause this ?
ramandeep singh
Greenhorn

Joined: Jun 27, 2001
Posts: 20
is this prblem is there in both Local and remote mode
or only in remote
Can U explan a little about ur approach


Ramandeep Singh
Ruslan Ivanov
Ranch Hand

Joined: Feb 22, 2001
Posts: 72
currently i am only testing this in local mode. I don't know what causes this though.
ramandeep singh
Greenhorn

Joined: Jun 27, 2001
Posts: 20
so can U explain a little about what U are doing
I mean ur design and approach
Ruslan Ivanov
Ranch Hand

Joined: Feb 22, 2001
Posts: 72
hi i am still experiencing the problem , i hope someone can explain something to me why this happends.
All i do is just call this instance method on the Data object like this

i only get one record if i place some sort of time out like Thread.sleep for 100 milliseconds then i get to see all the records i wish. Why does this happen ?
Thanks.
Ruslan Ivanov
Ranch Hand

Joined: Feb 22, 2001
Posts: 72
sorry to post this again , i found the answer to the problem. Apperantly it was caused by Kawa's IDE. I didn't payed attention much to it , but i started to run in DOS and i gotten corrent results , if i run it in Kawa i only get one record.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: problem with getRecord()
 
Similar Threads
3 questions
RecordNotFoundException
overloaded func, both accept same no and type of parameters
Really need help with this one!!!
record number/delete item