Uploaded image for project: 'YADE - Yet Another Data Exchange Tool'
  1. YADE - Yet Another Data Exchange Tool
  2. YADE-231

YADE CLI jade.sh and jade4dmz.sh script show usage message when invoked without parameters

    XMLWordPrintable

Details

    Description

      • Current Situtation
        • By default if jade.sh or jade4dmz.sh scripts are started without any parameter , scripts try to connect with all default parameters.
      • Desired Behaviour
        • An error message should be presented: YADE requires parameters. Please see http://www.sos-berlin.com/doc/en/yade/YADE%20Users%20Manual.pdf
        • No stracktrace shall be presented
        • Scripts should show some usage message like jobscheduler.sh script
          • when invoked without parameters
          • when invoked with -h, --help (Unix) or /? (Windows)
      Sample for current output

      test@homer:~/jade_client.1.7.4321-RC1/bin> ./jade.sh
      main INFO 04:49:04,154 INFO (SOSDataExchangeEngineMain.java:106) ::Execute SOSDataExchange - Main routine started ... – 1.7.4321-RC2 (2014-11-20 11:35, revision 28259) Copyright 2003-2014 SOS GmbH Berlin
      main INFO 04:49:04,160 INFO (SOSDataExchangeEngine.java:275) ::Execute $Id: SOSDataExchangeEngine.java 27865 2014-10-31 15:45:55Z oh $ – 1.7.4321-RC2 (2014-11-20 11:35, revision 28259) Copyright 2003-2014 SOS GmbH Berlin
      main INFO 04:49:04,160 INFO (SOSOptionLogFileName.java:179) ::setLogger setLogger without instance of logger called.
      main INFO 04:49:04,177 INFO (SOSDataExchangeEngine.java:289) ::Execute
      *************************************************************************

      • *
      • JADE - JobScheduler Advanced Data Exchange *
      • --www.sos-berlin.com-------------------- *
      • *
        *************************************************************************
        version = $Id: SOSDataExchangeEngine.java 27865 2014-10-31 15:45:55Z oh $ – 1.7.4321-RC2 (2014-11-20 11:35, revision 28259) Copyright 2003-2014 SOS GmbH Berlin
        date = 2014-12-02 16:49:04
        operation = send
        protocol = ftp
        port = 21
        file specification = ^.*$
        file path =
        local host = homer
        local directory =
        target host =
        target directory = .
        pid = 28049
        *************************************************************************

      java.net.UnknownHostException: : Name or service not known
      at java.net.Inet6AddressImpl.lookupAllHostAddr(Native Method)
      at java.net.InetAddress$1.lookupAllHostAddr(InetAddress.java:901)
      at java.net.InetAddress.getAddressesFromNameService(InetAddress.java:1293)
      at java.net.InetAddress.getAllByName0(InetAddress.java:1246)
      at java.net.InetAddress.getAllByName(InetAddress.java:1162)
      at java.net.InetAddress.getAllByName(InetAddress.java:1098)
      at java.net.InetAddress.getByName(InetAddress.java:1048)
      at org.apache.commons.net.SocketClient.connect(SocketClient.java:203)
      at com.sos.VirtualFileSystem.FTP.SOSVfsFtpBaseClass.connect(SOSVfsFtpBaseClass.java:329)
      at com.sos.VirtualFileSystem.FTP.SOSVfsFtpBaseClass.Connect(SOSVfsFtpBaseClass.java:421)
      at com.sos.VirtualFileSystem.DataElements.SOSVfsConnectionFactory.doConnect(SOSVfsConnectionFactory.java:112)
      at com.sos.VirtualFileSystem.DataElements.SOSVfsConnectionFactory.getVfsHandler(SOSVfsConnectionFactory.java:97)
      at com.sos.VirtualFileSystem.DataElements.SOSVfsConnectionFactory.createConnectionPool(SOSVfsConnectionFactory.java:61)
      at com.sos.VirtualFileSystem.DataElements.SOSVfsConnectionFactory.<init>(SOSVfsConnectionFactory.java:32)
      at com.sos.DataExchange.SOSDataExchangeEngine.transfer(SOSDataExchangeEngine.java:848)
      at com.sos.DataExchange.SOSDataExchangeEngine.Execute(SOSDataExchangeEngine.java:292)
      at com.sos.DataExchange.SOSDataExchangeEngineMain.Execute(SOSDataExchangeEngineMain.java:110)
      at com.sos.DataExchange.SOSDataExchangeEngineMain.main(SOSDataExchangeEngineMain.java:63)
      main ERROR 04:49:04,294 ERROR (SOSVfsFtpBaseClass.java:1549) ::RaiseException (@ :21) SOSVfs_E_0105: processing aborted, 'SOSVfsFtpBaseClass::Connect' returns an exception, see stacktrace on stderr
      com.sos.JSHelper.Exceptions.JobSchedulerException: (@ :21) java.net.UnknownHostException - : Name or service not known
      at com.sos.VirtualFileSystem.FTP.SOSVfsFtpBaseClass.connect(SOSVfsFtpBaseClass.java:347)
      at com.sos.VirtualFileSystem.FTP.SOSVfsFtpBaseClass.Connect(SOSVfsFtpBaseClass.java:421)
      at com.sos.VirtualFileSystem.DataElements.SOSVfsConnectionFactory.doConnect(SOSVfsConnectionFactory.java:112)
      at com.sos.VirtualFileSystem.DataElements.SOSVfsConnectionFactory.getVfsHandler(SOSVfsConnectionFactory.java:97)
      at com.sos.VirtualFileSystem.DataElements.SOSVfsConnectionFactory.createConnectionPool(SOSVfsConnectionFactory.java:61)
      at com.sos.VirtualFileSystem.DataElements.SOSVfsConnectionFactory.<init>(SOSVfsConnectionFactory.java:32)
      at com.sos.DataExchange.SOSDataExchangeEngine.transfer(SOSDataExchangeEngine.java:848)
      at com.sos.DataExchange.SOSDataExchangeEngine.Execute(SOSDataExchangeEngine.java:292)
      at com.sos.DataExchange.SOSDataExchangeEngineMain.Execute(SOSDataExchangeEngineMain.java:110)
      at com.sos.DataExchange.SOSDataExchangeEngineMain.main(SOSDataExchangeEngineMain.java:63)
      main ERROR 04:49:04,296 ERROR (SOSVfsFtpBaseClass.java:1549) ::RaiseException (@ :21) SOSVfs_E_0105: processing aborted, 'SOSVfsFtpBaseClass::Connect' returns an exception, see stacktrace on stderr
      com.sos.JSHelper.Exceptions.JobSchedulerException: (@ :21) java.net.UnknownHostException -
      at com.sos.VirtualFileSystem.FTP.SOSVfsFtpBaseClass.connect(SOSVfsFtpBaseClass.java:347)
      at com.sos.VirtualFileSystem.FTP.SOSVfsFtpBaseClass.Connect(SOSVfsFtpBaseClass.java:421)
      at com.sos.VirtualFileSystem.DataElements.SOSVfsConnectionFactory.doConnect(SOSVfsConnectionFactory.java:118)
      at com.sos.VirtualFileSystem.DataElements.SOSVfsConnectionFactory.getVfsHandler(SOSVfsConnectionFactory.java:97)
      at com.sos.VirtualFileSystem.DataElements.SOSVfsConnectionFactory.createConnectionPool(SOSVfsConnectionFactory.java:61)
      at com.sos.VirtualFileSystem.DataElements.SOSVfsConnectionFactory.<init>(SOSVfsConnectionFactory.java:32)
      at com.sos.DataExchange.SOSDataExchangeEngine.transfer(SOSDataExchangeEngine.java:848)
      at com.sos.DataExchange.SOSDataExchangeEngine.Execute(SOSDataExchangeEngine.java:292)
      at com.sos.DataExchange.SOSDataExchangeEngineMain.Execute(SOSDataExchangeEngineMain.java:110)
      at com.sos.DataExchange.SOSDataExchangeEngineMain.main(SOSDataExchangeEngineMain.java:63)
      com.sos.JSHelper.Exceptions.JobSchedulerException: (@ :21) SOSVfs_E_0105: processing aborted, 'SOSVfsFtpBaseClass::Connect' returns an exception, see stacktrace on stderr
      at com.sos.VirtualFileSystem.FTP.SOSVfsFtpBaseClass.RaiseException(SOSVfsFtpBaseClass.java:1551)
      at com.sos.VirtualFileSystem.FTP.SOSVfsFtpBaseClass.Connect(SOSVfsFtpBaseClass.java:440)
      at com.sos.VirtualFileSystem.DataElements.SOSVfsConnectionFactory.doConnect(SOSVfsConnectionFactory.java:112)
      at com.sos.VirtualFileSystem.DataElements.SOSVfsConnectionFactory.getVfsHandler(SOSVfsConnectionFactory.java:97)
      at com.sos.VirtualFileSystem.DataElements.SOSVfsConnectionFactory.createConnectionPool(SOSVfsConnectionFactory.java:61)
      at com.sos.VirtualFileSystem.DataElements.SOSVfsConnectionFactory.<init>(SOSVfsConnectionFactory.java:32)
      at com.sos.DataExchange.SOSDataExchangeEngine.transfer(SOSDataExchangeEngine.java:848)
      at com.sos.DataExchange.SOSDataExchangeEngine.Execute(SOSDataExchangeEngine.java:292)
      at com.sos.DataExchange.SOSDataExchangeEngineMain.Execute(SOSDataExchangeEngineMain.java:110)
      at com.sos.DataExchange.SOSDataExchangeEngineMain.main(SOSDataExchangeEngineMain.java:63)
      com.sos.JSHelper.Exceptions.JobSchedulerException: (@ :21) SOSVfs_E_0105: processing aborted, 'SOSVfsFtpBaseClass::Connect' returns an exception, see stacktrace on stderr
      at com.sos.VirtualFileSystem.DataElements.SOSVfsConnectionFactory.doConnect(SOSVfsConnectionFactory.java:122)
      at com.sos.VirtualFileSystem.DataElements.SOSVfsConnectionFactory.getVfsHandler(SOSVfsConnectionFactory.java:97)
      at com.sos.VirtualFileSystem.DataElements.SOSVfsConnectionFactory.createConnectionPool(SOSVfsConnectionFactory.java:61)
      at com.sos.VirtualFileSystem.DataElements.SOSVfsConnectionFactory.<init>(SOSVfsConnectionFactory.java:32)
      at com.sos.DataExchange.SOSDataExchangeEngine.transfer(SOSDataExchangeEngine.java:848)
      at com.sos.DataExchange.SOSDataExchangeEngine.Execute(SOSDataExchangeEngine.java:292)
      at com.sos.DataExchange.SOSDataExchangeEngineMain.Execute(SOSDataExchangeEngineMain.java:110)
      at com.sos.DataExchange.SOSDataExchangeEngineMain.main(SOSDataExchangeEngineMain.java:63)
      main INFO 04:49:04,298 INFO (SOSDataExchangeEngine.java:984) ::transfer SOSJADE_E_0101: data transfer ended with error '(@ :21) SOSVfs_E_0105: processing aborted, 'SOSVfsFtpBaseClass::Connect' returns an exception, see stacktrace on stderr'
      com.sos.JSHelper.Exceptions.JobSchedulerException: (@ :21) SOSVfs_E_0105: processing aborted, 'SOSVfsFtpBaseClass::Connect' returns an exception, see stacktrace on stderr
      at com.sos.VirtualFileSystem.DataElements.SOSVfsConnectionFactory.getVfsHandler(SOSVfsConnectionFactory.java:105)
      at com.sos.VirtualFileSystem.DataElements.SOSVfsConnectionFactory.createConnectionPool(SOSVfsConnectionFactory.java:61)
      at com.sos.VirtualFileSystem.DataElements.SOSVfsConnectionFactory.<init>(SOSVfsConnectionFactory.java:32)
      at com.sos.DataExchange.SOSDataExchangeEngine.transfer(SOSDataExchangeEngine.java:848)
      at com.sos.DataExchange.SOSDataExchangeEngine.Execute(SOSDataExchangeEngine.java:292)
      at com.sos.DataExchange.SOSDataExchangeEngineMain.Execute(SOSDataExchangeEngineMain.java:110)
      at com.sos.DataExchange.SOSDataExchangeEngineMain.main(SOSDataExchangeEngineMain.java:63)
      com.sos.JSHelper.Exceptions.JobSchedulerException: (@ :21) SOSVfs_E_0105: processing aborted, 'SOSVfsFtpBaseClass::Connect' returns an exception, see stacktrace on stderr
      at com.sos.VirtualFileSystem.DataElements.SOSVfsConnectionFactory.getVfsHandler(SOSVfsConnectionFactory.java:105)
      at com.sos.VirtualFileSystem.DataElements.SOSVfsConnectionFactory.createConnectionPool(SOSVfsConnectionFactory.java:61)
      at com.sos.VirtualFileSystem.DataElements.SOSVfsConnectionFactory.<init>(SOSVfsConnectionFactory.java:32)
      at com.sos.DataExchange.SOSDataExchangeEngine.transfer(SOSDataExchangeEngine.java:848)
      at com.sos.DataExchange.SOSDataExchangeEngine.Execute(SOSDataExchangeEngine.java:292)
      at com.sos.DataExchange.SOSDataExchangeEngineMain.Execute(SOSDataExchangeEngineMain.java:110)
      at com.sos.DataExchange.SOSDataExchangeEngineMain.main(SOSDataExchangeEngineMain.java:63)
      main INFO 04:49:04,303 INFO (SOSDataExchangeEngine.java:304) ::Execute Elapsed time = 143, per File = 143, total bytes = 0
      main INFO 04:49:04,304 INFO (SOSDataExchangeEngine.java:314) ::Execute
      *************************************************************************
      execution status = failure. Errors reported.
      successful transfers = 0
      failed transfers = 0
      last error = (@ :21) SOSVfs_E_0105: processing aborted, 'SOSVfsFtpBaseClass::Connect' returns an exception, see stacktrace on stderr ((@ :21) SOSVfs_E_0105: processing aborted, 'SOSVfsFtpBaseClass::Connect' returns an exception, see stacktrace on stderr)
      *************************************************************************

      main ERROR 04:49:04,304 ERROR (SOSDataExchangeEngineMain.java:118) ::Execute SOSDataExchangeEngineMain::Execute: Error occurred ...: (@ :21) SOSVfs_E_0105: processing aborted, 'SOSVfsFtpBaseClass::Connect' returns an exception, see stacktrace on stderr, exit-code 99 raised
      com.sos.JSHelper.Exceptions.JobSchedulerException: (@ :21) SOSVfs_E_0105: processing aborted, 'SOSVfsFtpBaseClass::Connect' returns an exception, see stacktrace on stderr
      at com.sos.DataExchange.SOSDataExchangeEngine.Execute(SOSDataExchangeEngine.java:295)
      at com.sos.DataExchange.SOSDataExchangeEngineMain.Execute(SOSDataExchangeEngineMain.java:110)
      at com.sos.DataExchange.SOSDataExchangeEngineMain.main(SOSDataExchangeEngineMain.java:63)
      main ERROR 04:49:04,304 ERROR (SOSDataExchangeEngineMain.java:125) ::Execute SOSDataExchangeEngineMain::Execute - terminated with exit-code 99
      com.sos.JSHelper.Exceptions.JobSchedulerException: (@ :21) SOSVfs_E_0105: processing aborted, 'SOSVfsFtpBaseClass::Connect' returns an exception, see stacktrace on stderr
      at com.sos.DataExchange.SOSDataExchangeEngine.Execute(SOSDataExchangeEngine.java:295)
      at com.sos.DataExchange.SOSDataExchangeEngineMain.Execute(SOSDataExchangeEngineMain.java:110)
      at com.sos.DataExchange.SOSDataExchangeEngineMain.main(SOSDataExchangeEngineMain.java:63)
      test@homer:~/jade_client.1.7.4321-RC1/bin>

      Attachments

        Issue Links

          Activity

            People

              oh Oliver Haufe
              mp Mahendra Patidar
              Mahendra Patidar Mahendra Patidar
              Mahendra Patidar Mahendra Patidar
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - 1 day
                  1d
                  Remaining:
                  Remaining Estimate - 0 minutes
                  0m
                  Logged:
                  Time Spent - 1 day
                  1d