Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7635827
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T07:31:29+00:00 2026-05-31T07:31:29+00:00

I unwittingly ran a Java program on Linux where the partition that it, it’s

  • 0

I unwittingly ran a Java program on Linux where the partition that it, it’s properties and logs resided on was close to 100% full. It failed, but after clearing up the problem with the disk space, I ran it again and it failed a second time because it’s properties file was 0 bytes long.

I don’t have source of the file and I don’t want to go as far as decompiling the class files, but I was wondering whether the corruption of the properites could be because the program failed to write to the properties file.

The mystery is that, I expected that the properties would be read-only and don’t recall any items being updated by the program. Could it be that even if the properties are only read, the file is opened in read-write mode and could disappear if the partition is full?

N.b. this program has run without failure or incident at least 1000 times over several years.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-31T07:31:31+00:00Added an answer on May 31, 2026 at 7:31 am

    I don’t have source of the file and I don’t want to go as far as decompiling the class files, but I was wondering whether the corruption of the properites could be because the program failed to write to the properties file.

    That is the most likely explanation. There would have been an exception, but the application could have squashed it … or maybe you didn’t notice the error message. (Indeed, if the application tried to log the error to a file, that would most likely fail too.)

    Could it be that even if the properties are only read, the file is opened in read-write mode and could disappear if the partition is full?

    That is unlikely to be the answer in this case. Unlike many languages, in Java the code for reading a file and writing a file involves different stream classes. It is hard to imagine how / why the application’s developer would open a property file for writing (with truncation) if there was never any intention to write it.

    The most plausible explanation is that the application does update the properties file. (Try installing the program again, using it, stopping it, and looking at the property file’s modification timestamp.)

    N.b. this program has run without failure or incident at least 1000 times over several years.

    And I bet this is the first time you’ve run it while the disk was full 🙂

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

My company unwittingly switched from cvs to subversion and now we're all wishing we
I feel that the LaTeX syntax is quite easy to use. However, I'm starting
I've created a simple Lightswitch 2-tier desktop app that connects to a remote sql
I have created a page called profile.php that gets a value from mainpage.php, by
I've been asked to show the results of an image d/b query as a
So I've started to layout unit tests for the following bit of code: public
I am making a simple web-app which requires login for the admin page. I
I read many of the articles to this topic, including the OWASP PAGE and
I'm using buttons to submit data via Ajax. I'm using jQuery to disable and
I'm apparently terrible at using git, despite my best attempts to understand it. From

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.