Uploaded image for project: 'Kurator'
  1. Kurator
  2. KURATOR-102

FP-Akka doesn't fail gracefully when started with no switches.

XMLWordPrintableJSON

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Normal Normal
    • None
    • None
    • fp-akka

      FP-Akka-1.0-SNAPSHOT jar doesn't fail gracefully when given no command line parameters.

      Execution does give help for command line options, but then throws error messages and hangs instead of exiting.

      $ java -jar FP-Akka-1.0-SNAPSHOT-allinone.jar 
       -e VAL : encoding for output file
       -i VAL : Input records from CSV file
       -o VAL : output records to file
       -q VAL : query for MongoDB
      java.io.FileNotFoundException: /home/tianhong/Downloads/data/test.json (No such file or directory)
      	at java.io.FileOutputStream.open(Native Method)
      	at java.io.FileOutputStream.<init>(FileOutputStream.java:221)
      	at java.io.FileOutputStream.<init>(FileOutputStream.java:110)
      ....
      at scala.concurrent.forkjoin.ForkJoinPool$WorkQueue.runTask(ForkJoinPool.java:975)
      	at scala.concurrent.forkjoin.ForkJoinPool.runWorker(ForkJoinPool.java:1478)
      	at scala.concurrent.forkjoin.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:104)
       
      Read 0 records
      Stopped Reader
       

              swanskysong Tianhong Song
              mole Paul J. Morris
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved:

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