jaxrs: ignore unknown events in callCompletion
This fixes
/*
* Copyright 2010-2013 Ning, Inc.
- * Copyright 2014-2017 Groupon, Inc
- * Copyright 2014-2017 The Billing Project, LLC
+ * Copyright 2014-2019 Groupon, Inc
+ * Copyright 2014-2019 The Billing Project, LLC
*
* The Billing Project licenses this file to you under the Apache License, version 2.0
* (the "License"); you may not use this file except in compliance with the
@@ -140,7 +140,8 @@ public class CompletionUserRequestBase implements CompletionUserRequest {
onInvoicePaymentError((InvoicePaymentErrorInternalEvent) curEvent);
break;
default:
- throw new RuntimeException("Unexpected event type " + curEvent.getBusEventType());
+ // Ignore unexpected events: these could come from custom control plugins for instance (https://github.com/killbill/killbill/issues/1211)
+ break;
}
}
