Uploaded image for project: 'Application Server 3  4  5 and 6'
  1. Application Server 3 4 5 and 6
  2. JBAS-2762

Missing StateManager configuration causes infinite loop

XMLWordPrintable

      If you don't specify a statemanager on the destination manager in JBossMQ,
      you get an infinite loop.

      /**

      • Gets the ID attribute of the JMSServer object
        *
      • @return The ID value
        */
        public String getID()
        {
        String ID = null;

      while (true)
      {
      try
      {
      synchronized (idLock)

      { ID = "ID:" + (new Integer(lastID++).toString()); }

      stateManager.addLoggedOnClientId(ID);
      break;
      }
      catch (Exception e)
      {
      }
      }

      The code interprets the NPE caused by a null statemanger as the generated client id is already logged in
      and tries again, FOREVER.

            adrian.brock Adrian Brock (Inactive)
            adrian.brock Adrian Brock (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: