Uploaded image for project: 'JBoss Enterprise Application Platform 4 and 5'
  1. JBoss Enterprise Application Platform 4 and 5
  2. JBPAPP-6296

Getting javax.management.InstanceNotFoundException: java.lang:type=Threading is not registered in 4.3.0.GA_CP09

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Major
    • 4.3.0.GA_CP10
    • 4.3.0.GA_CP09
    • JMX
    • None
    • Jboss EAP 4.3.0.GA_CP09

    • Medium
    • Not Required
    • NEW

    Description

      Even after applying the following JAVA_OPTS in the "run.conf" we get the error in EAP4.3 GA cp09 but the same program works fine in EAP5.1
      As mentioned in : https://issues.jboss.org/browse/JBAS-2427

      JAVA_OPTS="$JAVA_OPTS -Dcom.sun.management.jmxremote.port=9900 -Dcom.sun.management.jmxremote.authenticate=false -Dcom.sun.management.jmxremote.ssl=false"

      JAVA_OPTS="$JAVA_OPTS -Djboss.platform.mbeanserver -Djavax.management.builder.initial=org.jboss.system.server.jmx.MBeanServerBuilderImpl -Dsun.lang.ClassLoader.allowArraySyntax=true"

      Need a patch for EAP4.3 GA CP09 as the same error is not being thrown in EAP5.1

      OUTPUT in EAP4.3 GA CP09 as following:
      $ java ShowMbeans localhost 9900 java.lang:type=Threading ThreadCount
      javax.management.InstanceNotFoundException: java.lang:type=Threading is not registered.

      OUTPUT in EAP5.1 as following:
      $ java ShowMbeans localhost 9900 java.lang:type=Threading ThreadCount

      Value of : java.lang:type=Threading,ThreadCount : 58

      Version = 5.1.0. (build: SVNTag=JBPAPP_5_1_0 date=201009150028)
      BuildOS = Linux(i386,2.6.18-194.8.1.el5)
      BuildID = 201009150028
      VersionName = EAP
      BuildDate = 20100915
      InShutdown = false
      StartDate = Wed Apr 13 09:43:19 IST 2011
      Started = true
      BuildNumber = 201009150028
      BuildJVM = 17.0-b16(Sun Microsystems Inc.)
      VersionNumber = 5.1.0.
      =================================================

      Attachments

        1. JBPAPP-6296.patch
          0.7 kB
        2. LazyMBeanServer.patch
          1 kB
        3. ShowMbeans.java
          4 kB
        4. ShowMbeans.java
          4 kB

        Activity

          People

            smarlow1@redhat.com Scott Marlow
            jaysensharma Jay SenSharma (Inactive)
            Votes:
            1 Vote for this issue
            Watchers:
            8 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: