File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Developer Certification (SCJD/OCMJD) and the fly likes Data corruption in data file Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Certification » Developer Certification (SCJD/OCMJD)
Reply Bookmark "Data corruption in data file" Watch "Data corruption in data file" New topic
Author

Data corruption in data file

Anton Golovin
Ranch Hand

Joined: Jul 02, 2004
Posts: 473
How would you prevent it? What if JVM crashes and a thread fails to write record completely? How to handle that?


Anton Golovin<br /><i>anton.golovin@gmail.com</i><br />SCJP, SCJD, SCBCD, SCWCD
Nathaniel Stoddard
Ranch Hand

Joined: May 29, 2003
Posts: 1258
If it's not in the requirements, I wouldn't address it at all.


Nathaniel Stodard<br />SCJP, SCJD, SCWCD, SCBCD, SCDJWS, ICAD, ICSD, ICED
Clivant Yeo
Ranch Hand

Joined: May 22, 2004
Posts: 124
I guess the probabilty of the JVM crashing while writing the Data file is very unlightly, you must be very unlucky to have encountered that.

For safety precaution, I guess that's why people do backups, I think you have to assume that the CSR don't take care of backups, it's up to the job of the administrator.

Just my two cents of opinion


Clivant Yeo
My Personal Website
mike acre
Ranch Hand

Joined: Sep 23, 2003
Posts: 197
It is taken care of by the fact you validate (or should validate) the data file stringently and don't allow the use of any file that fails.


SCJP 1.4, SCJD
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Data corruption in data file
 
Similar Threads
tool tip over a text
accessing data objects
about transforming data
supported content types in jsp
JavaRanch Hit Count & Statistics