Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

callCompletion timeout with unexpected events #1211

Closed
pierre opened this issue Sep 13, 2019 · 0 comments

Comments

@pierre
Copy link
Member

commented Sep 13, 2019

If an entitlement plugin creates custom fields for instance, callCompletion will timeout:

java.lang.RuntimeException: Unexpected event type CUSTOM_FIELD_CREATION
	at org.killbill.billing.util.userrequest.CompletionUserRequestBase.onBusEvent(CompletionUserRequestBase.java:143)
	at org.killbill.billing.jaxrs.util.KillbillEventHandler.handleSubscriptionEvents(KillbillEventHandler.java:70)
	at sun.reflect.GeneratedMethodAccessor865.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:376)
	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:1142)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
	at java.lang.Thread.run(Thread.java:748)
@pierre pierre added bug JAXRS labels Sep 13, 2019
@pierre pierre added this to the Release-0.21.5 milestone Sep 26, 2019
@pierre pierre self-assigned this Sep 30, 2019
pierre added a commit that referenced this issue Oct 2, 2019
This fixes #1211.

Signed-off-by: Pierre-Alexandre Meyer <pierre@mouraf.org>
@sbrossie sbrossie closed this Oct 9, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
2 participants
You can’t perform that action at this time.