Uploaded image for project: 'JBoss Server Migration Tool'
  1. JBoss Server Migration Tool
  2. CMTOOL-91

printUsage throws IllegalArgumentException

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Critical Critical
    • 1.0.0.CR1
    • None
    • CLI
    • None

      actual

      $ ./server-migration.sh --help
      java.lang.ExceptionInInitializerError
      	at org.jboss.migration.cli.CommandLineArgumentUsageImpl.init(CommandLineArgumentUsageImpl.java:30)
      	at org.jboss.migration.cli.CommandLineArgumentUsageImpl.printUsage(CommandLineArgumentUsageImpl.java:43)
      	at org.jboss.migration.cli.CommandLineServerMigration.usage(CommandLineServerMigration.java:48)
      	at org.jboss.migration.cli.CommandLineServerMigration.main(CommandLineServerMigration.java:65)
      Caused by: java.lang.IllegalArgumentException: Invalid logger interface org.jboss.migration.cli.logger.CommandLineMigrationLogger (implementation not found in sun.misc.Launcher$AppClassLoader@45ee12a7)
      	at org.jboss.logging.Logger$1.run(Logger.java:2556)
      	at java.security.AccessController.doPrivileged(Native Method)
      	at org.jboss.logging.Logger.getMessageLogger(Logger.java:2529)
      	at org.jboss.logging.Logger.getMessageLogger(Logger.java:2516)
      	at org.jboss.migration.cli.logger.CommandLineMigrationLogger.<clinit>(CommandLineMigrationLogger.java:29)
      	... 4 more
      

      expected

      $ ./server-migration.sh --help
      
      Usage: server-migration.sh [args...]
      where args include:
          --environment <value>               Path to the properties file containing 
                                              the user environment.
      
      
          --interactive <value>               Indicates if the migration tool should 
                                              interact (or not) with the user. Value 
                                              should either be true or false.
      
      
          --source <value>                    Path to the base dir of the server to 
                                              migrate from.
      
      
          --target <value>                    Path to the base dir of the server to 
                                              migrate to.
      
      

              emartins@redhat.com Eduardo Martins
              pkremens@redhat.com Petr Kremensky (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: