Uploaded image for project: 'Red Hat Fuse'
  1. Red Hat Fuse
  2. ENTESB-3714

Unable to invoke the getContainer(String) and containers() mBean operations on child containers

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Won't Do
    • Icon: Minor Minor
    • jboss-fuse-6.3
    • jboss-fuse-6.1, jboss-fuse-6.2
    • Fabric8 v1
    • None
    • % %
    • Hide

      Use a tool such as JConsole, VisualVM, or Mission Control to invoke one of the affected operations on fabric containing a child container

      Show
      Use a tool such as JConsole, VisualVM, or Mission Control to invoke one of the affected operations on fabric containing a child container

      The mBean io.fabric8:type=Fabric contains operations to get information on all containers "containers()" or information on a specific container "getContainer(java.lang.String)". The containers() does not work if a child container is part of the fabric and the getContainer(java.lang.String) does not work if invoked on child container. The following error occurs:

      java.lang.RuntimeException: Cannot instantiate remote class io.fabric8.api.CreateChildContainerMetadata

      However, invocation seems successful via Jolokia using the following:

      curl http://admin:admin@localhost:8181/hawtio/jolokia/exec/io.fabric8:type=Fabric/'getContainer(java.lang.String)'/rc1
      

      Where rc1 is a child container

            pantinor@redhat.com Paolo Antinori
            rhn-support-jsherman Jason Sherman
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: