Uploaded image for project: 'AeroGear'
  1. AeroGear
  2. AEROGEAR-5929

ComponentIsStoppedException after redeployment

    Details

    • Type: Bug
    • Status: Resolved (View Workflow)
    • Priority: Major
    • Resolution: Done
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: None
    • Labels:
    • Epic Link:
    • Sprint:
      GSoC Sprint 2: Kafka, GSoC Sprint 3: Kafka 3

      Description

      We are using CDI library for injection of a consumer. After redeployment of the UPS, this exception is thrown when a consumer is invoked. We use KafkaConfig like this:

      @KafkaConfig(bootstrapServers = "#{KAFKA_HOST}:#{KAFKA_PORT}")
      

      And we set up the Kafka host and port in wildfly like this:

      -DKAFKA_HOST=localhost -DKAFKA_PORT=9092
      

      Stack Trace:

      ERROR [net.wessendorf.kafka.impl.DelegationKafkaConsumer] (EE-ManagedExecutorService-default-Thread-1) error dispatching received value to consumer: java.lang.reflect.InvocationTargetException
      	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
      	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      	at java.lang.reflect.Method.invoke(Method.java:497)
      	at net.wessendorf.kafka.impl.DelegationKafkaConsumer.run(DelegationKafkaConsumer.java:111)
      	at org.jboss.as.ee.concurrent.ControlPointUtils$ControlledRunnable.run(ControlPointUtils.java:105)
      	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
      	at java.util.concurrent.FutureTask.run(FutureTask.java:266)
      	at org.glassfish.enterprise.concurrent.internal.ManagedFutureTask.run(ManagedFutureTask.java:141)
      	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
      	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
      	at java.lang.Thread.run(Thread.java:745)
      	at org.glassfish.enterprise.concurrent.ManagedThreadFactoryImpl$ManagedThread.run(ManagedThreadFactoryImpl.java:250)
      Caused by: org.jboss.as.ee.component.ComponentIsStoppedException: WFLYEE0043: Component is stopped
      	at org.jboss.as.ee.component.BasicComponent.waitForComponentStart(BasicComponent.java:110)
      	at org.jboss.as.ee.component.ViewService$View.invoke(ViewService.java:194)
      	at org.jboss.as.ee.component.ViewDescription$1.processInvocation(ViewDescription.java:185)
      	at org.jboss.as.ee.component.ProxyInvocationHandler.invoke(ProxyInvocationHandler.java:74)
      	at org.jboss.aerogear.unifiedpush.service.metrics.PushMessageMetricsService$$$view11.updateAnalytics(Unknown Source)
      	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
      	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      	at java.lang.reflect.Method.invoke(Method.java:497)
      	at org.jboss.weld.util.reflection.Reflections.invokeAndUnwrap(Reflections.java:433)
      	at org.jboss.weld.bean.proxy.EnterpriseBeanProxyMethodHandler.invoke(EnterpriseBeanProxyMethodHandler.java:127)
      	at org.jboss.weld.bean.proxy.EnterpriseTargetBeanInstance.invoke(EnterpriseTargetBeanInstance.java:56)
      	at org.jboss.weld.bean.proxy.InjectionPointPropagatingEnterpriseTargetBeanInstance.invoke(InjectionPointPropagatingEnterpriseTargetBeanInstance.java:67)
      	at org.jboss.weld.bean.proxy.ProxyMethodHandler.invoke(ProxyMethodHandler.java:100)
      	at org.jboss.aerogear.unifiedpush.service.metrics.PushMessageMetricsService$Proxy$_$$_Weld$EnterpriseProxy$.updateAnalytics(Unknown Source)
      	at org.jboss.aerogear.unifiedpush.message.kafka.InstallationMetricsConsumer.receiver(InstallationMetricsConsumer.java:58)
      	... 13 more
      

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                polina.n.koleva Polina Koleva
                Reporter:
                polina.n.koleva Polina Koleva
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: