Uploaded image for project: 'WildFly Elytron'
  1. WildFly Elytron
  2. ELY-1205

Wildfly Elytron Tool, Wildfly Elytron Tool error output would contain error message rather than stacktrace.

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Blocker Blocker
    • 1.1.0.CR2
    • None
    • None
    • None

      Wildfly Elytron Tool error output would contain error message rather than stacktrace.

      I understand that it is very useful but the behaviour must be consistent with other apps, e.g.: jboss-cli.
      Now we have inconsistency even in this tool - half exceptions, half error messages.

      Here is example

      java -jar wildfly-elytron-tool.jar credential-store --add myalias --secret secretpassword --location="test.store1"  --password secret_password --summary --salt 12345678 --iteration 230 --create -type=KeyStoreCredentialStore123
      Exception encountered executing the command:
      java.security.NoSuchAlgorithmException
              at org.wildfly.security.credential.store.CredentialStore.getInstance(CredentialStore.java:65)
              at org.wildfly.security.tool.CredentialStoreCommand.execute(CredentialStoreCommand.java:157)
              at org.wildfly.security.tool.ElytronTool.main(ElytronTool.java:75)
      

      I suggest add application parameter --verbose (--debug, ...) which enables print stack trace when error occurs.

      By default there is expected only error message and with this parameter there will be printed stack trace.

              rhn-support-ivassile Ilia Vassilev
              hsvabek_jira Hynek Švábek (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: