Uploaded image for project: 'Application Server 7'
  1. Application Server 7
  2. AS7-5687

CLI crashes with OutOfMemoryError when logging exceptions in CommandContext.handleSafe()

    XMLWordPrintable

Details

    • Hide

      1) remove/comment the following line from ManagementRealm security-realm in the standalone.xml:

      <local default-user="$local"/>
      

      2) start EAP (./standalone.sh)
      3) start JBoss CLI (./jboss-cli.sh)
      4) run connect command in CLI and fill some username and password (admin/admin for instance)

      Show
      1) remove/comment the following line from ManagementRealm security-realm in the standalone.xml: <local default-user= "$local" /> 2) start EAP (./standalone.sh) 3) start JBoss CLI (./jboss-cli.sh) 4) run connect command in CLI and fill some username and password (admin/admin for instance)

    Description

      CLI crashes with OutOfMemoryError if the authentication fails.

      jcacek@jcacek-nb:~/Testing/jboss-eap-6.0.1.ER2/bin$ ./jboss-cli.sh 
      You are disconnected at the moment. Type 'connect' to connect to the server or 'help' for the list of supported commands.
      [disconnected /] connect
      Authenticating against security realm: ManagementRealm
      Username: admin
      Password: 
      java.lang.OutOfMemoryError: Java heap space
      	at java.util.Arrays.copyOf(Arrays.java:2882)
      	at java.lang.AbstractStringBuilder.expandCapacity(AbstractStringBuilder.java:100)
      	at java.lang.AbstractStringBuilder.append(AbstractStringBuilder.java:390)
      	at java.lang.StringBuilder.append(StringBuilder.java:119)
      	at org.jboss.as.cli.impl.CommandContextImpl.handleSafe(CommandContextImpl.java:551)
      	at org.jboss.as.cli.impl.CommandContextImpl.interact(CommandContextImpl.java:1113)
      	at org.jboss.as.cli.impl.CliLauncher.main(CliLauncher.java:243)
      	at org.jboss.as.cli.CommandLineMain.main(CommandLineMain.java:34)
      	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      	at java.lang.reflect.Method.invoke(Method.java:597)
      	at org.jboss.modules.Module.run(Module.java:270)
      	at org.jboss.modules.Main.main(Main.java:294)
      

      Attachments

        Activity

          People

            olubyans@redhat.com Alexey Loubyansky
            josef.cacek@gmail.com Josef Cacek (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: