Uploaded image for project: 'Aesh'
  1. Aesh
  2. AESH-205

Intermittent java.io.FileNotFoundException: /home/hudson/.jboss-cli-history

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Major
    • 0.49, 0.33.12
    • 0.33.8
    • main
    • None

    Description

      During the constructor of org.jboss.aesh.console.Console...
      In the readFile() method of org.jboss.aesh.history.FileHistory:

      if(new File(historyFile).exists()) {
                  BufferedReader reader =  new BufferedReader(new FileReader(historyFile));
      ....
      

      historyFile is a file in the home directory of the user. In an environment where this file is shared and concurrently written/deleted/created by many processes, like Hudson, it sometimes happens that File.exists() will return true, but during the BufferedReader constructor, the file will not exist anymore. The resulting FileNotFoundException should be caught and ignored instead of letting it through the call stack.

      Happens to us when testing EAP 6.2

      Attachments

        Issue Links

          Activity

            People

              spederse@redhat.com Stale Pedersen
              jmartisk@redhat.com Jan Martiska
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: