Uploaded image for project: 'Karaf'
  1. Karaf
  2. KARAF-477

Karaf console should gracefully handle errors due to the history file being read only.

    XMLWordPrintableJSON

Details

    • New Feature
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.1.4
    • 2.2.0, 3.0.0
    • karaf
    • None

    Description

      see exception:

      Exception in thread "main" java.io.FileNotFoundException: /usr/games/.karaf/karaf.history (No such file or directory)
             at java.io.FileOutputStream.open(Native Method)
             at java.io.FileOutputStream.<init>(FileOutputStream.java:179)
             at java.io.FileOutputStream.<init>(FileOutputStream.java:131)
             at java.io.FileWriter.<init>(FileWriter.java:73)
             at jline.History.setHistoryFile(History.java:45)
             at org.apache.karaf.shell.console.jline.Console.<init>(Console.java:103)
      

      Attachments

        Activity

          People

            chirino Hiram R. Chirino
            chirino Hiram R. Chirino
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

                Estimated:
                Original Estimate - 3h
                3h
                Remaining:
                Remaining Estimate - 3h
                3h
                Logged:
                Time Spent - Not Specified
                Not Specified