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

hawtio-karaf-terminal - InvalidComponentException

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Major
    • jboss-fuse-6.1-patches
    • jboss-fuse-6.1
    • None
    • % %
    • Hide

      Happens randomly doing fabric:join of containers to the fabric and when ZK connection drops and reconnects .

      Show
      Happens randomly doing fabric:join of containers to the fabric and when ZK connection drops and reconnects .

    Description

      In 6.1 R4 P2, on fabric joins and re-connections, randomly get an InvalidComponentException.

      2016-07-25 14:15:26,006 | INFO  | ad-1-EventThread | ConnectionStateManager           | ork.state.ConnectionStateManager  161 | 53 - io.fabric8.fabric-zookeeper - 1.0.0.redhat-454 | State change: CONNECTED
      2016-07-25 14:15:26,012 | ERROR | onStateManager-0 | FabricWebRegistrationHandler     | web.FabricWebRegistrationHandler  225 | 257 - io.fabric8.fabric-web - 1.0.0.redhat-454 | Failed to register webapp /hawtio-karaf-terminal.
      io.fabric8.api.scr.InvalidComponentException: Reference not available
              at io.fabric8.api.scr.ValidatingReference.get(ValidatingReference.java:61)[62:io.fabric8.fabric-api:1.0.0.redhat-454]
              at io.fabric8.web.FabricWebRegistrationHandler.registerWebapp(FabricWebRegistrationHandler.java:223)[257:io.fabric8.fabric-web:1.0.0.redhat-454]
              at io.fabric8.web.FabricWebRegistrationHandler.webEvent(FabricWebRegistrationHandler.java:99)[257:io.fabric8.fabric-web:1.0.0.redhat-454]
              at io.fabric8.web.FabricWebRegistrationHandler.replay(FabricWebRegistrationHandler.java:144)[257:io.fabric8.fabric-web:1.0.0.redhat-454]
              at io.fabric8.web.FabricWebRegistrationHandler.stateChanged(FabricWebRegistrationHandler.java:86)[257:io.fabric8.fabric-web:1.0.0.redhat-454]
              at org.apache.curator.framework.state.ConnectionStateManager$2.apply(ConnectionStateManager.java:189)[53:io.fabric8.fabric-zookeeper:1.0.0.redhat-454]
              at org.apache.curator.framework.state.ConnectionStateManager$2.apply(ConnectionStateManager.java:185)[53:io.fabric8.fabric-zookeeper:1.0.0.redhat-454]
              at org.apache.curator.framework.listen.ListenerContainer$1.run(ListenerContainer.java:92)[53:io.fabric8.fabric-zookeeper:1.0.0.redhat-454]
              at com.google.common.util.concurrent.MoreExecutors$SameThreadExecutorService.execute(MoreExecutors.java:297)[83:com.google.guava:15.0.0]
              at org.apache.curator.framework.listen.ListenerContainer.forEach(ListenerContainer.java:83)[53:io.fabric8.fabric-zookeeper:1.0.0.redhat-454]
              at org.apache.curator.framework.state.ConnectionStateManager.processEvents(ConnectionStateManager.java:182)[53:io.fabric8.fabric-zookeeper:1.0.0.redhat-454]
              at org.apache.curator.framework.state.ConnectionStateManager.access$000(ConnectionStateManager.java:42)[53:io.fabric8.fabric-zookeeper:1.0.0.redhat-454]
              at org.apache.curator.framework.state.ConnectionStateManager$1.call(ConnectionStateManager.java:108)[53:io.fabric8.fabric-zookeeper:1.0.0.redhat-454]
              at java.util.concurrent.FutureTask.run(FutureTask.java:262)[:1.7.0_79]
              at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)[:1.7.0_79]
              at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)[:1.7.0_79]
              at java.lang.Thread.run(Thread.java:745)[:1.7.0_79]
      

      The bundles are all actually up..:

      JBossFuse:fuseadmin@ensemble> osgi:list | grep hawtio
      [ 245] [Active     ] [            ] [   60] hawtio :: hawtio-osgi-jmx (1.2.0.redhat-454)
      [ 246] [Active     ] [            ] [   60] hawtio :: hawtio-web (1.2.0.redhat-454)
      [ 247] [Active     ] [Created     ] [   60] hawtio :: hawtio-json-schema-mbean (1.2.0.redhat-454)
      [ 249] [Active     ] [Created     ] [   60] hawtio :: Karaf terminal plugin (1.2.0.redhat-454)
      [ 258] [Active     ] [            ] [   60] hawtio :: Swagger UI (1.0.2)
      

      But hawtio and jolokia call all fail.

      Refreshing the bundles resolves the issue:

      JBossFuse:fuseadmin@ensemble> osgi:list | grep hawtio
      [ 245] [Active     ] [            ] [   60] hawtio :: hawtio-osgi-jmx (1.2.0.redhat-454)
      [ 246] [Active     ] [            ] [   60] hawtio :: hawtio-web (1.2.0.redhat-454)
      [ 247] [Active     ] [Created     ] [   60] hawtio :: hawtio-json-schema-mbean (1.2.0.redhat-454)
      [ 249] [Active     ] [Created     ] [   60] hawtio :: Karaf terminal plugin (1.2.0.redhat-454)
      [ 258] [Active     ] [            ] [   60] hawtio :: Swagger UI (1.0.2)
      JBossFuse:fuseadmin@ensembl-> osgi:refresh 246
      JBossFuse:fuseadmin@ensemble> exit
      [root@ip-10-230-210-64 ~]# curl 'http://fuseadmin:blah@localhost:8181/hawtio/jolokia/read/connector:name=rmi/Active'
      {"timestamp":1469642902,"status":200,"request":{"mbean":"connector:name=rmi","attribute":"Active","type":"read"},"value":true}
      

      Attachments

        Issue Links

          Activity

            People

              pantinor@redhat.com Paolo Antinori
              rhn-support-mrobson Matt Robson
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: