wood burning stoves 2.0*
The moose likes Developer Certification (SCJD/OCMJD) and the fly likes after modifying a record, it can not be seen, Why ? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Certification » Developer Certification (SCJD/OCMJD)
Bookmark "after modifying a record, it can not be seen, Why ?" Watch "after modifying a record, it can not be seen, Why ?" New topic
Author

after modifying a record, it can not be seen, Why ?

ruilin yang
Ranch Hand

Joined: Feb 25, 2001
Posts: 334
I modified a record for reservation, then I can not seen the record any more for new searches.
Please help ?
I used the modify method supplied in the data class.
Thanks
Ruilin
ravindra janapreddy
Ranch Hand

Joined: Jan 30, 2001
Posts: 84
I am faced with the similar situation.
I could successfully modify the record but the record is not seen after that at all.
Please resolve it.
Thanks in advance
Ravi


SCEA, SCBCD, SCWCD, SCJD, SCJP
Sai Prasad
Ranch Hand

Joined: Feb 25, 2002
Posts: 560
How do you know you successfully modified it? I suggest you to put some debug statements to know for sure you are modifying the data. Calling modify() worked for me with the Sun supplied version.
Also there is a possibility that you are modifying one db.db file and using other db.db file for searching flights. This can happen if you don't take care of creating/finding Data instance for remote/local mode of operation properly.
[ June 18, 2002: Message edited by: Sai Prasad ]
Mark Spritzler
ranger
Sheriff

Joined: Feb 05, 2001
Posts: 17257
    
    6

After you modify, can you see data ever again, even if you restart your app. I had had that, and what was happening was I was modifying the db.db file but incorrectly, it was actually corrupting the db.db file.
Make sure your DataInfo class you pass to modify is correct.
Mark


Perfect World Programming, LLC - Two Laptop Bag - Tube Organizer
How to Ask Questions the Smart Way FAQ
Ramesh kumaar
Ranch Hand

Joined: Mar 19, 2002
Posts: 146
Hi All,
This is because replacing the depericated method getBytes(x,y,z,..) with getBytes(). WE need to write a piece of code there to fix this problem.
-rameshkumar
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: after modifying a record, it can not be seen, Why ?