Uploaded image for project: 'Karaf'
  1. Karaf
  2. KARAF-6337

ConcurrentModificationException when executing commands

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 4.2.5, 4.2.6
    • Fix Version/s: 4.3.0, 4.2.7
    • Component/s: karaf
    • Labels:
      None

      Description

      Issuing commands via bin/client concurrently may give the error below.

       

       

      org.apache.karaf.shell.ssh.ShellCommand Thread-280 [org.apache.karaf.shell.ssh:4.2.5] Unable to start shell
      java.util.ConcurrentModificationException: null
      at java.util.Hashtable$Enumerator.next(Hashtable.java:1387) ~[?:?]
      at org.apache.karaf.shell.impl.console.HeadlessSessionImpl.<init>(HeadlessSessionImpl.java:71) ~[?:?]
      at org.apache.karaf.shell.impl.console.SessionFactoryImpl.create(SessionFactoryImpl.java:178) ~[?:?]
      at org.apache.karaf.shell.impl.console.SessionFactoryImpl.create(SessionFactoryImpl.java:169) ~[?:?]
      at org.apache.karaf.shell.ssh.ShellCommand.run(ShellCommand.java:102) ~[?:?]
      at java.lang.Thread.run(Thread.java:748) [?:?]

      This is the code:

      if (parent == null) {
          Properties sysProps = System.getProperties();
          for (Object key : sysProps.keySet()) {   // line 71
              session.put(key.toString(), sysProps.get(key));
          }
      }
      

       

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                jbonofre Jean-Baptiste Onofré
                Reporter:
                riconeubauer Rico Neubauer
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: