Dear All,
I have a java application which is a listener receiving data from different gps devices. The programme have been working fine. Each time I receive a string it will read process and store into a local database(mysql) and also write into a text file. Off late I notice the text file is having a lot of corrupted data. What could be the cause can it be the programme itself or the network connection which is receiving it? Any idea please ?
newbie14 0 Posting Pro
Recommended Answers
Jump to Postis the data in the database corrupted as well? If not, perhaps your file writer is not being flushed, over-running a buffer, etc. What do the log files say, if anything? Are there any IOExceptions being thrown?
Jump to PostI'll go back to my question of your exception handling. What does your try/catch block look like? The reason I ask is I've seen many applications where the catch block is empty for whatever exception is being caught. Since this is a socket based communication, IO exceptions could either be …
Jump to PostTo check inode usage - df -F ufs -o i
I only mention this because I've seen weird behavior with corrupt inodes, even when the disk isn't full.
All 9 Replies
dononelson 2 Junior Poster in Training
newbie14 0 Posting Pro
dononelson 2 Junior Poster in Training
mKorbel 274 Veteran Poster
newbie14 0 Posting Pro
newbie14 0 Posting Pro
dononelson 2 Junior Poster in Training
newbie14 0 Posting Pro
newbie14 0 Posting Pro
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.