glassfish
  1. glassfish
  2. GLASSFISH-17010

[JMX] Multiple [2] JMX MBeanServer instances exist

    Details

    • Type: Bug Bug
    • Status: Open
    • Priority: Minor Minor
    • Resolution: Unresolved
    • Affects Version/s: 3.1.1_b09
    • Fix Version/s: None
    • Component/s: amx, ejb_container
    • Labels:
      None

      Description

      On a 3.1.1 promoted build I currently get those warnings when the EJBTimer application is starting up:

      WARNING: Multiple [2] JMX MBeanServer instances exist, we will use the server at index [0] : [com.sun.enterprise.v3.admin.DynamicInterceptor@43c0ae76].
      WARNING: JMX MBeanServer in use: [com.sun.enterprise.v3.admin.DynamicInterceptor@43c0ae76] from index [0] 
      WARNING: JMX MBeanServer in use: [com.sun.jmx.mbeanserver.JmxMBeanServer@bbe5d86] from index [1]
      

      It doesn't seem to affect functionality. Therefore lower priority.

        Activity

        Hide
        alan94539 added a comment -

        I agree it is minor, but is there a workaround to make this stop coming up? I suspect there is a configuration parameter somewhere to set which MBeanServer to use but I can't find it.

        Show
        alan94539 added a comment - I agree it is minor, but is there a workaround to make this stop coming up? I suspect there is a configuration parameter somewhere to set which MBeanServer to use but I can't find it.
        Hide
        anlog added a comment -

        I have found a workaround to continue: I get the ResultList size before get the element list.

        int it = emf.createEntityManager().createNamedQuery("User.findAll").getResultList().size();
        String users = "";
        for( int i=0; i<it; i++)

        { User user = (User)emf.createEntityManager().createNamedQuery("User.findAll").getResultList().get(i); users += "id: " + user.getId() + " - "; users += "username: " + user.getUsername() + " - "; users += "<br>"; }
        Show
        anlog added a comment - I have found a workaround to continue: I get the ResultList size before get the element list. int it = emf.createEntityManager().createNamedQuery("User.findAll").getResultList().size(); String users = ""; for( int i=0; i<it; i++) { User user = (User)emf.createEntityManager().createNamedQuery("User.findAll").getResultList().get(i); users += "id: " + user.getId() + " - "; users += "username: " + user.getUsername() + " - "; users += "<br>"; }

          People

          • Assignee:
            prasads
            Reporter:
            ancoron
          • Votes:
            10 Vote for this issue
            Watchers:
            6 Start watching this issue

            Dates

            • Created:
              Updated: