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

J2EEDomain getparent() launch RuntimeException

XMLWordPrintable

      When the parent attribute of a J2EEDomain MBean is called a RuntimeMBeanException: null Cause: java.lang.NullPointerException is launched.

      We can see this error in the JMX-Console in the MBean: jboss.management.local:name=Manager,j2eeType=J2EEDomain the field parent have a "RuntimeMBeanException" string instead a null or empty value.

      twiddle.bat get "jboss.management.local:name=Manager,j2eeType=J2EEDomain" parent return a error too.

      To FIX this problem replace the getparent() method implementation of org.jboss.management.j2ee.J2EEManagedObject class for this code.:

      public String getparent()

      { return (parentName != null) ? parentName.getCanonicalName() : null; }

              dandread1@redhat.com Dimitrios Andreadis
              fabcipriano_jira Fabiano C. de Oliveira (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: