Uploaded image for project: 'JBoss Enterprise Application Platform'
  1. JBoss Enterprise Application Platform
  2. JBEAP-7015

JBoss CLI authentication ctrl+c results in errors

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Minor Minor
    • 7.1.0.DR10
    • 7.1.0.DR7, 7.1.0.DR8
    • CLI
    • None
      1. ./standalone.sh
      2. ./jboss-cli.sh -c
      3. /core-service=management/security-realm=ManagementRealm/authentication=local:remove
      4. reload
      5. <Ctrl+C>

      Aborting login attempt via Ctrl+C in CLI results in Java errors being shown in console.

      Actual:

      Unable to find source-code formatter for language: noformat. Available languages are: actionscript, ada, applescript, bash, c, c#, c++, cpp, css, erlang, go, groovy, haskell, html, java, javascript, js, json, lua, none, nyan, objc, perl, php, python, r, rainbow, ruby, scala, sh, sql, swift, visualbasic, xml, yaml
      ./jboss-cli.sh -c
      Authenticating against security realm: ManagementRealm
      Username:  <<Ctrl+C>>
      java.lang.InterruptedException
      	at java.util.concurrent.locks.AbstractQueuedSynchronizer.acquireInterruptibly(AbstractQueuedSynchronizer.java:1220)
      	at java.util.concurrent.locks.ReentrantLock.lockInterruptibly(ReentrantLock.java:335)
      	at java.util.concurrent.ArrayBlockingQueue.take(ArrayBlockingQueue.java:400)
      	at org.jboss.aesh.console.Console.getInput(Console.java:501)
      	at org.jboss.aesh.console.Console.getInputLine(Console.java:545)
      	at org.jboss.as.cli.impl.Console$Factory$1.read(Console.java:232)
      	at org.jboss.as.cli.impl.Console$Factory$1.readLine(Console.java:203)
      	at org.jboss.as.cli.impl.CommandContextImpl.readLine(CommandContextImpl.java:1005)
      	at org.jboss.as.cli.impl.CommandContextImpl.access$1200(CommandContextImpl.java:196)
      	at org.jboss.as.cli.impl.CommandContextImpl$AuthenticationCallbackHandler.dohandle(CommandContextImpl.java:1841)
      	at org.jboss.as.cli.impl.CommandContextImpl$AuthenticationCallbackHandler.access$900(CommandContextImpl.java:1745)
      	at org.jboss.as.cli.impl.CommandContextImpl$AuthenticationCallbackHandler$1.run(CommandContextImpl.java:1791)
      	at org.jboss.as.protocol.GeneralTimeoutHandler.suspendAndExecute(GeneralTimeoutHandler.java:45)
      	at org.jboss.as.cli.impl.CommandContextImpl$AuthenticationCallbackHandler.handle(CommandContextImpl.java:1773)
      	at org.jboss.sasl.digest.DigestMD5Client.processChallenge(DigestMD5Client.java:355)
      	at org.jboss.sasl.digest.DigestMD5Client.evaluateChallenge(DigestMD5Client.java:238)
      	at org.jboss.remoting3.remote.ClientConnectionOpenListener$Authentication$1.run(ClientConnectionOpenListener.java:679)
      	at org.jboss.remoting3.EndpointImpl$TrackingExecutor$1.run(EndpointImpl.java:731)
      	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
      	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
      	at java.lang.Thread.run(Thread.java:745)
      Failed to connect to the controller: Unable to authenticate against controller at localhost:9990: Authentication failed: all available authentication mechanisms failed:
         JBOSS-LOCAL-USER: Server rejected authentication
         DIGEST-MD5: javax.security.sasl.SaslException: DIGEST-MD5: Error acquiring realm, authentication ID or password [Caused by javax.security.sasl.SaslException: No username supplied.]
      

      Expected:

      Unable to find source-code formatter for language: noformat. Available languages are: actionscript, ada, applescript, bash, c, c#, c++, cpp, css, erlang, go, groovy, haskell, html, java, javascript, js, json, lua, none, nyan, objc, perl, php, python, r, rainbow, ruby, scala, sh, sql, swift, visualbasic, xml, yaml
      Authenticating against security realm: ManagementRealm
      Username: <<Ctrl+C>>
      Failed to connect to the controller: Unable to authenticate against controller at localhost:9990: Authentication failed: all available authentication mechanisms failed:
         JBOSS-LOCAL-USER: Server rejected authentication
         DIGEST-MD5: javax.security.sasl.SaslException: DIGEST-MD5: Error acquiring realm, authentication ID or password [Caused by javax.security.sasl.SaslException: No username supplied.]
      

              jdenise@redhat.com Jean Francois Denise
              mschvarc Martin Schvarcbacher (Inactive)
              Martin Schvarcbacher Martin Schvarcbacher (Inactive)
              Martin Schvarcbacher Martin Schvarcbacher (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Created:
                Updated:
                Resolved: