Error to start the analytics-plugin 7.2.1

84 views
Skip to first unread message

Yushi Giriko

unread,
Jun 18, 2021, 7:53:21 PM6/18/21
to Kill Bill users mailing-list
Hi all,

I am facing some problems to start the analytics-plugin 7.2.1, anyone have an idea how to solve it?

Error:

2021-06-18T23:46:36,647+0000 lvl='ERROR', log='Killbill EventBus', th='bus_ext_events-th', xff='', rId='', tok='', aRId='', tRId='0', Exception thrown by subscriber method handleKillbillEvent(org.killbill.billing.notification.plugin.api.ExtBusEvent) on subscriber org.killbill.billing.osgi.OSGIListener@108b1d29 when dispatching event: DefaultBusExternalEvent{objectId=null, accountId=null, tenantId=null, objectType=SERVICE_BROADCAST, eventType=BROADCAST_SERVICE}
java.lang.IllegalStateException: Plugin analytics-plugin version 7.2.1 cannot be started because the version 7.2.1 already exists in the registry (state = 4)
        at org.killbill.billing.osgi.BundleRegistry.installAndStartNewBundle(BundleRegistry.java:73)
        at org.killbill.billing.osgi.OSGIListener.handleKillbillEvent(OSGIListener.java:109)
        at sun.reflect.GeneratedMethodAccessor678.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:498)
        at com.google.common.eventbus.Subscriber.invokeSubscriberMethod(Subscriber.java:87)
        at com.google.common.eventbus.Subscriber$1.run(Subscriber.java:72)
        at com.google.common.util.concurrent.MoreExecutors$DirectExecutor.execute(MoreExecutors.java:398)
        at com.google.common.eventbus.Subscriber.dispatchEvent(Subscriber.java:67)
        at com.google.common.eventbus.Dispatcher$ImmediateDispatcher.dispatch(Dispatcher.java:186)
        at com.google.common.eventbus.EventBusThatThrowsException.postWithException(EventBusThatThrowsException.java:65)
        at org.killbill.bus.DefaultPersistentBus.dispatchBusEventWithMetrics(DefaultPersistentBus.java:396)
        at org.killbill.bus.dispatching.BusCallableCallback.dispatch(BusCallableCallback.java:41)
        at org.killbill.bus.dispatching.BusCallableCallback.dispatch(BusCallableCallback.java:30)
        at org.killbill.queue.dispatching.Dispatcher$CallableQueueHandler.call(Dispatcher.java:137)
        at org.killbill.queue.dispatching.Dispatcher$CallableQueueHandler.call(Dispatcher.java:105)
        at org.killbill.commons.concurrent.WrappedCallable.call(WrappedCallable.java:42)
        at java.util.concurrent.FutureTask.run(FutureTask.java:266)
        at org.killbill.commons.concurrent.WrappedRunnable.run(WrappedRunnable.java:48)
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
        at java.lang.Thread.run(Thread.java:748)
2021-06-18T23:46:36,648+0000 lvl='ERROR', log='Dispatcher$CallableQueueHandler', th='bus_ext_events-th', xff='', rId='', tok='', aRId='', tRId='0', Fatal NotificationQ dispatch error, data corruption...
java.lang.IllegalStateException: Plugin analytics-plugin version 7.2.1 cannot be started because the version 7.2.1 already exists in the registry (state = 4)
        at org.killbill.billing.osgi.BundleRegistry.installAndStartNewBundle(BundleRegistry.java:73)
        at org.killbill.billing.osgi.OSGIListener.handleKillbillEvent(OSGIListener.java:109)
        at sun.reflect.GeneratedMethodAccessor678.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:498)
        at com.google.common.eventbus.Subscriber.invokeSubscriberMethod(Subscriber.java:87)
        at com.google.common.eventbus.Subscriber$1.run(Subscriber.java:72)
        at com.google.common.util.concurrent.MoreExecutors$DirectExecutor.execute(MoreExecutors.java:398)
        at com.google.common.eventbus.Subscriber.dispatchEvent(Subscriber.java:67)
        at com.google.common.eventbus.Dispatcher$ImmediateDispatcher.dispatch(Dispatcher.java:186)
        at com.google.common.eventbus.EventBusThatThrowsException.postWithException(EventBusThatThrowsException.java:65)
        at org.killbill.bus.DefaultPersistentBus.dispatchBusEventWithMetrics(DefaultPersistentBus.java:396)
        at org.killbill.bus.dispatching.BusCallableCallback.dispatch(BusCallableCallback.java:41)
        at org.killbill.bus.dispatching.BusCallableCallback.dispatch(BusCallableCallback.java:30)
        at org.killbill.queue.dispatching.Dispatcher$CallableQueueHandler.call(Dispatcher.java:137)
        at org.killbill.queue.dispatching.Dispatcher$CallableQueueHandler.call(Dispatcher.java:105)
        at org.killbill.commons.concurrent.WrappedCallable.call(WrappedCallable.java:42)
        at java.util.concurrent.FutureTask.run(FutureTask.java:266)
        at org.killbill.commons.concurrent.WrappedRunnable.run(WrappedRunnable.java:48)
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
        at java.lang.Thread.run(Thread.java:748)




Thanks,

Reshma Bidikar

unread,
Jun 21, 2021, 1:27:11 AM6/21/21
to Kill Bill users mailing-list
Hello,

Could you try deleting everything related to the analytics plugin from your plugin path (/var/tmp/bundles by default), install, and run the plugin again?

Regards,
Reshma

Yushi Giriko

unread,
Jun 21, 2021, 1:32:23 PM6/21/21
to Kill Bill users mailing-list
Thanks, for you answer Reshma,
But I've tried and I've got the same error:

2021-06-21T17:29:21,533+0000 lvl='ERROR', log='Killbill EventBus', th='bus_ext_events-th', xff='', rId='', tok='', aRId='', tRId='0', Exception thrown by subscriber method handleKillbillEvent(org.killbill.billing.notification.plugin.api.ExtBusEvent) on subscriber org.killbill.billing.osgi.OSGIListener@108b1d29 when dispatching event: DefaultBusExternalEvent{objectId=null, accountId=null, tenantId=null, objectType=SERVICE_BROADCAST, eventType=BROADCAST_SERVICE}
java.lang.IllegalStateException: Plugin analytics-plugin version 7.2.1 cannot be started because the version 7.2.1 already exists in the registry (state = 4)
        at org.killbill.billing.osgi.BundleRegistry.installAndStartNewBundle(BundleRegistry.java:73)
        at org.killbill.billing.osgi.OSGIListener.handleKillbillEvent(OSGIListener.java:109)
        at sun.reflect.GeneratedMethodAccessor678.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:498)
        at com.google.common.eventbus.Subscriber.invokeSubscriberMethod(Subscriber.java:87)
        at com.google.common.eventbus.Subscriber$1.run(Subscriber.java:72)
        at com.google.common.util.concurrent.MoreExecutors$DirectExecutor.execute(MoreExecutors.java:398)
        at com.google.common.eventbus.Subscriber.dispatchEvent(Subscriber.java:67)
        at com.google.common.eventbus.Dispatcher$ImmediateDispatcher.dispatch(Dispatcher.java:186)
        at com.google.common.eventbus.EventBusThatThrowsException.postWithException(EventBusThatThrowsException.java:65)
        at org.killbill.bus.DefaultPersistentBus.dispatchBusEventWithMetrics(DefaultPersistentBus.java:396)
        at org.killbill.bus.dispatching.BusCallableCallback.dispatch(BusCallableCallback.java:41)
        at org.killbill.bus.dispatching.BusCallableCallback.dispatch(BusCallableCallback.java:30)
        at org.killbill.queue.dispatching.Dispatcher$CallableQueueHandler.call(Dispatcher.java:137)
        at org.killbill.queue.dispatching.Dispatcher$CallableQueueHandler.call(Dispatcher.java:105)
        at org.killbill.commons.concurrent.WrappedCallable.call(WrappedCallable.java:42)
        at java.util.concurrent.FutureTask.run(FutureTask.java:266)
        at org.killbill.commons.concurrent.WrappedRunnable.run(WrappedRunnable.java:48)
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
        at java.lang.Thread.run(Thread.java:748)
2021-06-21T17:29:21,533+0000 lvl='INFO', log='Dispatcher$CallableQueueHandler', th='bus_ext_events-th', xff='', rId='', tok='', aRId='', tRId='0', Dispatch error, will attempt a retry
java.lang.IllegalStateException: Plugin analytics-plugin version 7.2.1 cannot be started because the version 7.2.1 already exists in the registry (state = 4)
        at org.killbill.billing.osgi.BundleRegistry.installAndStartNewBundle(BundleRegistry.java:73)
        at org.killbill.billing.osgi.OSGIListener.handleKillbillEvent(OSGIListener.java:109)
        at sun.reflect.GeneratedMethodAccessor678.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:498)
        at com.google.common.eventbus.Subscriber.invokeSubscriberMethod(Subscriber.java:87)
        at com.google.common.eventbus.Subscriber$1.run(Subscriber.java:72)
        at com.google.common.util.concurrent.MoreExecutors$DirectExecutor.execute(MoreExecutors.java:398)
        at com.google.common.eventbus.Subscriber.dispatchEvent(Subscriber.java:67)
        at com.google.common.eventbus.Dispatcher$ImmediateDispatcher.dispatch(Dispatcher.java:186)
        at com.google.common.eventbus.EventBusThatThrowsException.postWithException(EventBusThatThrowsException.java:65)
        at org.killbill.bus.DefaultPersistentBus.dispatchBusEventWithMetrics(DefaultPersistentBus.java:396)
        at org.killbill.bus.dispatching.BusCallableCallback.dispatch(BusCallableCallback.java:41)
        at org.killbill.bus.dispatching.BusCallableCallback.dispatch(BusCallableCallback.java:30)
        at org.killbill.queue.dispatching.Dispatcher$CallableQueueHandler.call(Dispatcher.java:137)
        at org.killbill.queue.dispatching.Dispatcher$CallableQueueHandler.call(Dispatcher.java:105)
        at org.killbill.commons.concurrent.WrappedCallable.call(WrappedCallable.java:42)
        at java.util.concurrent.FutureTask.run(FutureTask.java:266)
        at org.killbill.commons.concurrent.WrappedRunnable.run(WrappedRunnable.java:48)
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
        at java.lang.Thread.run(Thread.java:748)


Regards.

Att.,

Reshma Bidikar

unread,
Jun 22, 2021, 1:09:42 AM6/22/21
to Kill Bill users mailing-list
Hello,

This issue is most probably because the plugin failed to start the first time due to some reason. Would it be possible for you to send us the complete logs? Were the analytics database tables created as explained here before running the plugin the first time? 

Regards,
Reshma

Reshma Bidikar

unread,
Jun 23, 2021, 4:20:38 AM6/23/21
to Kill Bill users mailing-list
Hello,

We have just found out that  killbill/mariadb:0.22 Docker image was stale and incompatible with the latest version of the Analytics plugin. Could you please delete your local image (by running  docker rmi killbill/mariadb:0.22), take the latest version of the docker image, the latest Analytics plugin, and see if it works for you?

Regards,
Reshma

Yushi Giriko

unread,
Jun 24, 2021, 8:14:35 AM6/24/21
to Reshma Bidikar, Kill Bill users mailing-list
Hi Reshma,

Thanks for your help,

The plugin is working now.


Regards,

Yushi Giriko

--
You received this message because you are subscribed to a topic in the Google Groups "Kill Bill users mailing-list" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/killbilling-users/CaQMcRKohjA/unsubscribe.
To unsubscribe from this group and all its topics, send an email to killbilling-us...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/killbilling-users/f47f2345-86bc-44f2-8a24-7968cd4d8eb6n%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages