Uploaded image for project: 'Daffodil'
  1. Daffodil
  2. DAFFODIL-2944

CLI: Missing input file leads to NoSuchFileException

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 3.9.0
    • 4.0.0
    • CLI
    • None

    Description

      If you run the CLI like this in 3.9.0

      daffodil parse -s foo.dfdl.xsd does_not_exist.input
      

      You get the exception:

      java.nio.file.NoSuchFileException: does_not_exist.input
      	at java.base/sun.nio.fs.UnixException.translateToIOException(UnixException.java:92)
      	at java.base/sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:106)
      	at java.base/sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:111)
      	at java.base/sun.nio.fs.UnixFileAttributeViews$Basic.readAttributes(UnixFileAttributeViews.java:55)
      	at java.base/sun.nio.fs.UnixFileSystemProvider.readAttributes(UnixFileSystemProvider.java:171)
      	at java.base/sun.nio.fs.LinuxFileSystemProvider.readAttributes(LinuxFileSystemProvider.java:99)
      	at java.base/java.nio.file.Files.readAttributes(Files.java:1853)
      	at java.base/java.nio.file.Files.size(Files.java:2462)
      	at org.apache.daffodil.cli.Main.runIgnoreExceptions(Main.scala:1176)
      	at org.apache.daffodil.cli.Main.run(Main.scala:1964)
      	at org.apache.daffodil.cli.Main$.main(Main.scala:878)
      	at org.apache.daffodil.cli.Main.main(Main.scala)
      

      In 3.8.0 this just better error message

      [error] does_not_exist.input (No such file or directory)
      

      Attachments

        Activity

          People

            okilo@tresys.com Olabusayo Kilo
            slawrence Steve Lawrence
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: