killbill / killbill-dwolla-plugin

Plugin to use Dwolla as a gateway
http://killbill.io
Apache License 2.0
0 stars 1 forks source link

NullPointerException: Endpoint may not be blank #4

Open chris13524 opened 7 years ago

chris13524 commented 7 years ago

Using the following relevant docker-compose config:

  killbill:
    restart: unless-stopped
    image: killbill/killbill:0.18.8
    environment:
      - KILLBILL_CONFIG_DAO_URL=jdbc:mysql://database/killbill?serverTimezone=UTC&useSSL=false
      - KILLBILL_CONFIG_DAO_USER=killbill
      - KILLBILL_CONFIG_DAO_PASSWORD=<omitted>
      - KILLBILL_SERVER_BASE_URL=http://killbill:8080
      - KILLBILL_SHIRO_RESOURCE_PATH=/var/tmp/shiro.ini
      - KILLBILL_PLUGIN_ANALYTICS=1
      - KILLBILL_PLUGIN_PAYPAL=1
      - KILLBILL_PLUGIN_DWOLLA=1
      - KILLBILL_PLUGIN_STRIPE=1
    volumes:
      - ./shiro.ini:/var/tmp/shiro.ini:rw

  kaui:
    restart: unless-stopped
    image: killbill/kaui:0.8.8
    environment:
      - KAUI_KILLBILL_URL=http://killbill:8080
      - KAUI_KILLBILL_API_KEY=bob
      - KAUI_KILLBILL_API_SECRET=lazar
      - KAUI_CONFIG_DAO_URL=jdbc:mysql://database/kaui
      - KAUI_CONFIG_DAO_USER=kaui
      - KAUI_CONFIG_DAO_PASSWORD=<omitted>

I get the following error during the killbill container startup:

killbill_1        | org.osgi.framework.BundleException: Activator start error in bundle org.kill-bill.billing.plugin.java.dwolla-plugin [20].
killbill_1        |     at org.apache.felix.framework.Felix.activateBundle(Felix.java:2204)
killbill_1        |     at org.apache.felix.framework.Felix.startBundle(Felix.java:2072)
killbill_1        |     at org.apache.felix.framework.BundleImpl.start(BundleImpl.java:976)
killbill_1        |     at org.apache.felix.framework.BundleImpl.start(BundleImpl.java:963)
killbill_1        |     at org.killbill.billing.osgi.FileInstall.startBundle(FileInstall.java:258)
killbill_1        |     at org.killbill.billing.osgi.BundleRegistry.startBundles(BundleRegistry.java:95)
killbill_1        |     at org.killbill.billing.osgi.DefaultOSGIService.start(DefaultOSGIService.java:100)
killbill_1        |     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
killbill_1        |     at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
killbill_1        |     at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
killbill_1        |     at java.lang.reflect.Method.invoke(Method.java:498)
killbill_1        |     at org.killbill.billing.lifecycle.DefaultLifecycle.doFireStage(DefaultLifecycle.java:150)
killbill_1        |     at org.killbill.billing.lifecycle.DefaultLifecycle.fireSequence(DefaultLifecycle.java:137)
killbill_1        |     at org.killbill.billing.lifecycle.DefaultLifecycle.fireStartupSequencePriorEventRegistration(DefaultLifecycle.java:78)
killbill_1        |     at org.killbill.billing.server.listeners.KillbillPlatformGuiceListener.startLifecycle(KillbillPlatformGuiceListener.java:254)
killbill_1        |     at org.killbill.billing.server.listeners.KillbillPlatformGuiceListener.contextInitialized(KillbillPlatformGuiceListener.java:110)
killbill_1        |     at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:5068)
killbill_1        |     at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5584)
killbill_1        |     at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:147)
killbill_1        |     at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:899)
killbill_1        |     at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:875)
killbill_1        |     at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:652)
killbill_1        |     at org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:677)
killbill_1        |     at org.apache.catalina.startup.HostConfig$DeployDescriptor.run(HostConfig.java:1962)
killbill_1        |     at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
killbill_1        |     at java.util.concurrent.FutureTask.run(FutureTask.java:266)
killbill_1        |     at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
killbill_1        |     at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
killbill_1        |     at java.lang.Thread.run(Thread.java:745)
killbill_1        | Caused by: java.lang.NullPointerException: Endpoint may not be blank.
killbill_1        |     at retrofit.RestAdapter$Builder.setEndpoint(RestAdapter.java:563)
killbill_1        |     at org.killbill.billing.plugin.dwolla.client.DwollaClient.createOAuthService(DwollaClient.java:68)
killbill_1        |     at org.killbill.billing.plugin.dwolla.client.DwollaClient.getApplicationToken(DwollaClient.java:51)
killbill_1        |     at org.killbill.billing.plugin.dwolla.client.DwollaClient.<init>(DwollaClient.java:38)
killbill_1        |     at org.killbill.billing.plugin.dwolla.core.DwollaActivator.start(DwollaActivator.java:44)
killbill_1        |     at org.apache.felix.framework.util.SecureAction.startActivator(SecureAction.java:645)
killbill_1        |     at org.apache.felix.framework.Felix.activateBundle(Felix.java:2154)
killbill_1        |     ... 28 common frames omitted

If I try starting the plugin manually via the KPM plugin in Kaui, I get this error, leaving the plugin still stopped:

killbill_1        | 2017-05-31T18:59:01,703+0000 lvl='ERROR', log='Killbill EventBus', th='bus_ext_events-th', xff='', rId='', aRId='', tRId='', Exception thrown by subscriber method handleKillbillEvent(org.killbill.billing.notification.plugin.api.ExtBusEvent) on subscriber org.killbill.billing.osgi.OSGIListener@7c169286 when dispatching event: DefaultBusExternalEvent{objectId=null, accountId=null, tenantId=null, objectType=SERVICE_BROADCAST, eventType=BROADCAST_SERVICE}
killbill_1        | java.lang.IllegalStateException: Plugin dwolla-plugin version 0.1.0 cannot be started because the version 0.1.0 already exists in the registry (state = 4)
killbill_1        |     at org.killbill.billing.osgi.BundleRegistry.installAndStartNewBundle(BundleRegistry.java:69)
killbill_1        |     at org.killbill.billing.osgi.OSGIListener.handleKillbillEvent(OSGIListener.java:106)
killbill_1        |     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
killbill_1        |     at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
killbill_1        |     at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
killbill_1        |     at java.lang.reflect.Method.invoke(Method.java:498)
killbill_1        |     at com.google.common.eventbus.Subscriber.invokeSubscriberMethod(Subscriber.java:91)
killbill_1        |     at com.google.common.eventbus.Subscriber$1.run(Subscriber.java:76)
killbill_1        |     at com.google.common.util.concurrent.MoreExecutors$DirectExecutor.execute(MoreExecutors.java:435)
killbill_1        |     at com.google.common.eventbus.Subscriber.dispatchEvent(Subscriber.java:71)
killbill_1        |     at com.google.common.eventbus.Dispatcher$ImmediateDispatcher.dispatch(Dispatcher.java:200)
killbill_1        |     at com.google.common.eventbus.EventBusThatThrowsException.postWithException(EventBusThatThrowsException.java:65)
killbill_1        |     at org.killbill.bus.DefaultPersistentBus.dispatchBusEventWithMetrics(DefaultPersistentBus.java:314)
killbill_1        |     at org.killbill.bus.dispatching.BusCallableCallback.dispatch(BusCallableCallback.java:40)
killbill_1        |     at org.killbill.bus.dispatching.BusCallableCallback.dispatch(BusCallableCallback.java:29)
killbill_1        |     at org.killbill.queue.dispatching.Dispatcher$CallableQueue.call(Dispatcher.java:103)
killbill_1        |     at org.killbill.queue.dispatching.Dispatcher$CallableQueue.call(Dispatcher.java:86)
killbill_1        |     at org.killbill.commons.concurrent.WrappedCallable.call(WrappedCallable.java:42)
killbill_1        |     at java.util.concurrent.FutureTask.run(FutureTask.java:266)
killbill_1        |     at org.killbill.commons.concurrent.WrappedRunnable.run(WrappedRunnable.java:48)
killbill_1        |     at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
killbill_1        |     at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
killbill_1        |     at java.lang.Thread.run(Thread.java:745)
killbill_1        | 2017-05-31T18:59:01,726+0000 lvl='INFO', log='CallableCallbackBase', th='bus_ext_events-th', xff='', rId='', aRId='', tRId='0', Dispatch error, will attempt a retry 
killbill_1        | com.google.common.eventbus.EventBusException: java.lang.reflect.InvocationTargetException
killbill_1        |     at com.google.common.eventbus.EventBusThatThrowsException.postWithException(EventBusThatThrowsException.java:78)
killbill_1        |     at org.killbill.bus.DefaultPersistentBus.dispatchBusEventWithMetrics(DefaultPersistentBus.java:314)
killbill_1        |     at org.killbill.bus.dispatching.BusCallableCallback.dispatch(BusCallableCallback.java:40)
killbill_1        |     at org.killbill.bus.dispatching.BusCallableCallback.dispatch(BusCallableCallback.java:29)
killbill_1        |     at org.killbill.queue.dispatching.Dispatcher$CallableQueue.call(Dispatcher.java:103)
killbill_1        |     at org.killbill.queue.dispatching.Dispatcher$CallableQueue.call(Dispatcher.java:86)
killbill_1        |     at org.killbill.commons.concurrent.WrappedCallable.call(WrappedCallable.java:42)
killbill_1        |     at java.util.concurrent.FutureTask.run(FutureTask.java:266)
killbill_1        |     at org.killbill.commons.concurrent.WrappedRunnable.run(WrappedRunnable.java:48)
killbill_1        |     at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
killbill_1        |     at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
killbill_1        |     at java.lang.Thread.run(Thread.java:745)
killbill_1        | Caused by: java.lang.reflect.InvocationTargetException: null
killbill_1        |     at com.google.common.eventbus.EventBusThatThrowsException$SubscriberExceptionsTrackerHandler.handleException(EventBusThatThrowsException.java:129)
killbill_1        |     at com.google.common.eventbus.EventBus.handleSubscriberException(EventBus.java:175)
killbill_1        |     at com.google.common.eventbus.Subscriber$1.run(Subscriber.java:78)
killbill_1        |     at com.google.common.util.concurrent.MoreExecutors$DirectExecutor.execute(MoreExecutors.java:435)
killbill_1        |     at com.google.common.eventbus.Subscriber.dispatchEvent(Subscriber.java:71)
killbill_1        |     at com.google.common.eventbus.Dispatcher$ImmediateDispatcher.dispatch(Dispatcher.java:200)
killbill_1        |     at com.google.common.eventbus.EventBusThatThrowsException.postWithException(EventBusThatThrowsException.java:65)
killbill_1        |     ... 11 common frames omitted
killbill_1        | Caused by: java.lang.IllegalStateException: Plugin dwolla-plugin version 0.1.0 cannot be started because the version 0.1.0 already exists in the registry (state = 4)
killbill_1        |     at org.killbill.billing.osgi.BundleRegistry.installAndStartNewBundle(BundleRegistry.java:69)
killbill_1        |     at org.killbill.billing.osgi.OSGIListener.handleKillbillEvent(OSGIListener.java:106)
killbill_1        |     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
killbill_1        |     at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
killbill_1        |     at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
killbill_1        |     at java.lang.reflect.Method.invoke(Method.java:498)
killbill_1        |     at com.google.common.eventbus.Subscriber.invokeSubscriberMethod(Subscriber.java:91)
killbill_1        |     at com.google.common.eventbus.Subscriber$1.run(Subscriber.java:76)
killbill_1        |     ... 15 common frames omitted
killbill_1        | 2017-05-31T18:59:01,734+0000 lvl='ERROR', log='Killbill EventBus', th='bus_ext_events-th', xff='', rId='', aRId='', tRId='0', Exception thrown by subscriber method handleKillbillEvent(org.killbill.billing.notification.plugin.api.ExtBusEvent) on subscriber org.killbill.billing.osgi.OSGIListener@7c169286 when dispatching event: DefaultBusExternalEvent{objectId=null, accountId=null, tenantId=null, objectType=SERVICE_BROADCAST, eventType=BROADCAST_SERVICE}
killbill_1        | java.lang.IllegalStateException: Plugin dwolla-plugin version 0.1.0 cannot be started because the version 0.1.0 already exists in the registry (state = 4)
killbill_1        |     at org.killbill.billing.osgi.BundleRegistry.installAndStartNewBundle(BundleRegistry.java:69)
killbill_1        |     at org.killbill.billing.osgi.OSGIListener.handleKillbillEvent(OSGIListener.java:106)
killbill_1        |     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
killbill_1        |     at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
killbill_1        |     at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
killbill_1        |     at java.lang.reflect.Method.invoke(Method.java:498)
killbill_1        |     at com.google.common.eventbus.Subscriber.invokeSubscriberMethod(Subscriber.java:91)
killbill_1        |     at com.google.common.eventbus.Subscriber$1.run(Subscriber.java:76)
killbill_1        |     at com.google.common.util.concurrent.MoreExecutors$DirectExecutor.execute(MoreExecutors.java:435)
killbill_1        |     at com.google.common.eventbus.Subscriber.dispatchEvent(Subscriber.java:71)
killbill_1        |     at com.google.common.eventbus.Dispatcher$ImmediateDispatcher.dispatch(Dispatcher.java:200)
killbill_1        |     at com.google.common.eventbus.EventBusThatThrowsException.postWithException(EventBusThatThrowsException.java:65)
killbill_1        |     at org.killbill.bus.DefaultPersistentBus.dispatchBusEventWithMetrics(DefaultPersistentBus.java:314)
killbill_1        |     at org.killbill.bus.dispatching.BusCallableCallback.dispatch(BusCallableCallback.java:40)
killbill_1        |     at org.killbill.bus.dispatching.BusCallableCallback.dispatch(BusCallableCallback.java:29)
killbill_1        |     at org.killbill.queue.dispatching.Dispatcher$CallableQueue.call(Dispatcher.java:103)
killbill_1        |     at org.killbill.queue.dispatching.Dispatcher$CallableQueue.call(Dispatcher.java:86)
killbill_1        |     at org.killbill.commons.concurrent.WrappedCallable.call(WrappedCallable.java:42)
killbill_1        |     at java.util.concurrent.FutureTask.run(FutureTask.java:266)
killbill_1        |     at org.killbill.commons.concurrent.WrappedRunnable.run(WrappedRunnable.java:48)
killbill_1        |     at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
killbill_1        |     at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
killbill_1        |     at java.lang.Thread.run(Thread.java:745)
killbill_1        | 2017-05-31T18:59:01,735+0000 lvl='INFO', log='CallableCallbackBase', th='bus_ext_events-th', xff='', rId='', aRId='', tRId='0', Dispatch error, will attempt a retry 
killbill_1        | com.google.common.eventbus.EventBusException: java.lang.reflect.InvocationTargetException
killbill_1        |     at com.google.common.eventbus.EventBusThatThrowsException.postWithException(EventBusThatThrowsException.java:78)
killbill_1        |     at org.killbill.bus.DefaultPersistentBus.dispatchBusEventWithMetrics(DefaultPersistentBus.java:314)
killbill_1        |     at org.killbill.bus.dispatching.BusCallableCallback.dispatch(BusCallableCallback.java:40)
killbill_1        |     at org.killbill.bus.dispatching.BusCallableCallback.dispatch(BusCallableCallback.java:29)
killbill_1        |     at org.killbill.queue.dispatching.Dispatcher$CallableQueue.call(Dispatcher.java:103)
killbill_1        |     at org.killbill.queue.dispatching.Dispatcher$CallableQueue.call(Dispatcher.java:86)
killbill_1        |     at org.killbill.commons.concurrent.WrappedCallable.call(WrappedCallable.java:42)
killbill_1        |     at java.util.concurrent.FutureTask.run(FutureTask.java:266)
killbill_1        |     at org.killbill.commons.concurrent.WrappedRunnable.run(WrappedRunnable.java:48)
killbill_1        |     at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
killbill_1        |     at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
killbill_1        |     at java.lang.Thread.run(Thread.java:745)
killbill_1        | Caused by: java.lang.reflect.InvocationTargetException: null
killbill_1        |     at com.google.common.eventbus.EventBusThatThrowsException$SubscriberExceptionsTrackerHandler.handleException(EventBusThatThrowsException.java:129)
killbill_1        |     at com.google.common.eventbus.EventBus.handleSubscriberException(EventBus.java:175)
killbill_1        |     at com.google.common.eventbus.Subscriber$1.run(Subscriber.java:78)
killbill_1        |     at com.google.common.util.concurrent.MoreExecutors$DirectExecutor.execute(MoreExecutors.java:435)
killbill_1        |     at com.google.common.eventbus.Subscriber.dispatchEvent(Subscriber.java:71)
killbill_1        |     at com.google.common.eventbus.Dispatcher$ImmediateDispatcher.dispatch(Dispatcher.java:200)
killbill_1        |     at com.google.common.eventbus.EventBusThatThrowsException.postWithException(EventBusThatThrowsException.java:65)
killbill_1        |     ... 11 common frames omitted
killbill_1        | Caused by: java.lang.IllegalStateException: Plugin dwolla-plugin version 0.1.0 cannot be started because the version 0.1.0 already exists in the registry (state = 4)
killbill_1        |     at org.killbill.billing.osgi.BundleRegistry.installAndStartNewBundle(BundleRegistry.java:69)
killbill_1        |     at org.killbill.billing.osgi.OSGIListener.handleKillbillEvent(OSGIListener.java:106)
killbill_1        |     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
killbill_1        |     at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
killbill_1        |     at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
killbill_1        |     at java.lang.reflect.Method.invoke(Method.java:498)
killbill_1        |     at com.google.common.eventbus.Subscriber.invokeSubscriberMethod(Subscriber.java:91)
killbill_1        |     at com.google.common.eventbus.Subscriber$1.run(Subscriber.java:76)
killbill_1        |     ... 15 common frames omitted
killbill_1        | 2017-05-31T18:59:01,739+0000 lvl='ERROR', log='Killbill EventBus', th='bus_ext_events-th', xff='', rId='', aRId='', tRId='0', Exception thrown by subscriber method handleKillbillEvent(org.killbill.billing.notification.plugin.api.ExtBusEvent) on subscriber org.killbill.billing.osgi.OSGIListener@7c169286 when dispatching event: DefaultBusExternalEvent{objectId=null, accountId=null, tenantId=null, objectType=SERVICE_BROADCAST, eventType=BROADCAST_SERVICE}
killbill_1        | java.lang.IllegalStateException: Plugin dwolla-plugin version 0.1.0 cannot be started because the version 0.1.0 already exists in the registry (state = 4)
killbill_1        |     at org.killbill.billing.osgi.BundleRegistry.installAndStartNewBundle(BundleRegistry.java:69)
killbill_1        |     at org.killbill.billing.osgi.OSGIListener.handleKillbillEvent(OSGIListener.java:106)
killbill_1        |     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
killbill_1        |     at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
killbill_1        |     at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
killbill_1        |     at java.lang.reflect.Method.invoke(Method.java:498)
killbill_1        |     at com.google.common.eventbus.Subscriber.invokeSubscriberMethod(Subscriber.java:91)
killbill_1        |     at com.google.common.eventbus.Subscriber$1.run(Subscriber.java:76)
killbill_1        |     at com.google.common.util.concurrent.MoreExecutors$DirectExecutor.execute(MoreExecutors.java:435)
killbill_1        |     at com.google.common.eventbus.Subscriber.dispatchEvent(Subscriber.java:71)
killbill_1        |     at com.google.common.eventbus.Dispatcher$ImmediateDispatcher.dispatch(Dispatcher.java:200)
killbill_1        |     at com.google.common.eventbus.EventBusThatThrowsException.postWithException(EventBusThatThrowsException.java:65)
killbill_1        |     at org.killbill.bus.DefaultPersistentBus.dispatchBusEventWithMetrics(DefaultPersistentBus.java:314)
killbill_1        |     at org.killbill.bus.dispatching.BusCallableCallback.dispatch(BusCallableCallback.java:40)
killbill_1        |     at org.killbill.bus.dispatching.BusCallableCallback.dispatch(BusCallableCallback.java:29)
killbill_1        |     at org.killbill.queue.dispatching.Dispatcher$CallableQueue.call(Dispatcher.java:103)
killbill_1        |     at org.killbill.queue.dispatching.Dispatcher$CallableQueue.call(Dispatcher.java:86)
killbill_1        |     at org.killbill.commons.concurrent.WrappedCallable.call(WrappedCallable.java:42)
killbill_1        |     at java.util.concurrent.FutureTask.run(FutureTask.java:266)
killbill_1        |     at org.killbill.commons.concurrent.WrappedRunnable.run(WrappedRunnable.java:48)
killbill_1        |     at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
killbill_1        |     at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
killbill_1        |     at java.lang.Thread.run(Thread.java:745)
killbill_1        | 2017-05-31T18:59:01,740+0000 lvl='INFO', log='CallableCallbackBase', th='bus_ext_events-th', xff='', rId='', aRId='', tRId='0', Dispatch error, will attempt a retry 
killbill_1        | com.google.common.eventbus.EventBusException: java.lang.reflect.InvocationTargetException
killbill_1        |     at com.google.common.eventbus.EventBusThatThrowsException.postWithException(EventBusThatThrowsException.java:78)
killbill_1        |     at org.killbill.bus.DefaultPersistentBus.dispatchBusEventWithMetrics(DefaultPersistentBus.java:314)
killbill_1        |     at org.killbill.bus.dispatching.BusCallableCallback.dispatch(BusCallableCallback.java:40)
killbill_1        |     at org.killbill.bus.dispatching.BusCallableCallback.dispatch(BusCallableCallback.java:29)
killbill_1        |     at org.killbill.queue.dispatching.Dispatcher$CallableQueue.call(Dispatcher.java:103)
killbill_1        |     at org.killbill.queue.dispatching.Dispatcher$CallableQueue.call(Dispatcher.java:86)
killbill_1        |     at org.killbill.commons.concurrent.WrappedCallable.call(WrappedCallable.java:42)
killbill_1        |     at java.util.concurrent.FutureTask.run(FutureTask.java:266)
killbill_1        |     at org.killbill.commons.concurrent.WrappedRunnable.run(WrappedRunnable.java:48)
killbill_1        |     at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
killbill_1        |     at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
killbill_1        |     at java.lang.Thread.run(Thread.java:745)
killbill_1        | Caused by: java.lang.reflect.InvocationTargetException: null
killbill_1        |     at com.google.common.eventbus.EventBusThatThrowsException$SubscriberExceptionsTrackerHandler.handleException(EventBusThatThrowsException.java:129)
killbill_1        |     at com.google.common.eventbus.EventBus.handleSubscriberException(EventBus.java:175)
killbill_1        |     at com.google.common.eventbus.Subscriber$1.run(Subscriber.java:78)
killbill_1        |     at com.google.common.util.concurrent.MoreExecutors$DirectExecutor.execute(MoreExecutors.java:435)
killbill_1        |     at com.google.common.eventbus.Subscriber.dispatchEvent(Subscriber.java:71)
killbill_1        |     at com.google.common.eventbus.Dispatcher$ImmediateDispatcher.dispatch(Dispatcher.java:200)
killbill_1        |     at com.google.common.eventbus.EventBusThatThrowsException.postWithException(EventBusThatThrowsException.java:65)
killbill_1        |     ... 11 common frames omitted
killbill_1        | Caused by: java.lang.IllegalStateException: Plugin dwolla-plugin version 0.1.0 cannot be started because the version 0.1.0 already exists in the registry (state = 4)
killbill_1        |     at org.killbill.billing.osgi.BundleRegistry.installAndStartNewBundle(BundleRegistry.java:69)
killbill_1        |     at org.killbill.billing.osgi.OSGIListener.handleKillbillEvent(OSGIListener.java:106)
killbill_1        |     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
killbill_1        |     at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
killbill_1        |     at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
killbill_1        |     at java.lang.reflect.Method.invoke(Method.java:498)
killbill_1        |     at com.google.common.eventbus.Subscriber.invokeSubscriberMethod(Subscriber.java:91)
killbill_1        |     at com.google.common.eventbus.Subscriber$1.run(Subscriber.java:76)
killbill_1        |     ... 15 common frames omitted
killbill_1        | 2017-05-31T18:59:01,745+0000 lvl='ERROR', log='Killbill EventBus', th='bus_ext_events-th', xff='', rId='', aRId='', tRId='0', Exception thrown by subscriber method handleKillbillEvent(org.killbill.billing.notification.plugin.api.ExtBusEvent) on subscriber org.killbill.billing.osgi.OSGIListener@7c169286 when dispatching event: DefaultBusExternalEvent{objectId=null, accountId=null, tenantId=null, objectType=SERVICE_BROADCAST, eventType=BROADCAST_SERVICE}
killbill_1        | java.lang.IllegalStateException: Plugin dwolla-plugin version 0.1.0 cannot be started because the version 0.1.0 already exists in the registry (state = 4)
killbill_1        |     at org.killbill.billing.osgi.BundleRegistry.installAndStartNewBundle(BundleRegistry.java:69)
killbill_1        |     at org.killbill.billing.osgi.OSGIListener.handleKillbillEvent(OSGIListener.java:106)
killbill_1        |     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
killbill_1        |     at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
killbill_1        |     at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
killbill_1        |     at java.lang.reflect.Method.invoke(Method.java:498)
killbill_1        |     at com.google.common.eventbus.Subscriber.invokeSubscriberMethod(Subscriber.java:91)
killbill_1        |     at com.google.common.eventbus.Subscriber$1.run(Subscriber.java:76)
killbill_1        |     at com.google.common.util.concurrent.MoreExecutors$DirectExecutor.execute(MoreExecutors.java:435)
killbill_1        |     at com.google.common.eventbus.Subscriber.dispatchEvent(Subscriber.java:71)
killbill_1        |     at com.google.common.eventbus.Dispatcher$ImmediateDispatcher.dispatch(Dispatcher.java:200)
killbill_1        |     at com.google.common.eventbus.EventBusThatThrowsException.postWithException(EventBusThatThrowsException.java:65)
killbill_1        |     at org.killbill.bus.DefaultPersistentBus.dispatchBusEventWithMetrics(DefaultPersistentBus.java:314)
killbill_1        |     at org.killbill.bus.dispatching.BusCallableCallback.dispatch(BusCallableCallback.java:40)
killbill_1        |     at org.killbill.bus.dispatching.BusCallableCallback.dispatch(BusCallableCallback.java:29)
killbill_1        |     at org.killbill.queue.dispatching.Dispatcher$CallableQueue.call(Dispatcher.java:103)
killbill_1        |     at org.killbill.queue.dispatching.Dispatcher$CallableQueue.call(Dispatcher.java:86)
killbill_1        |     at org.killbill.commons.concurrent.WrappedCallable.call(WrappedCallable.java:42)
killbill_1        |     at java.util.concurrent.FutureTask.run(FutureTask.java:266)
killbill_1        |     at org.killbill.commons.concurrent.WrappedRunnable.run(WrappedRunnable.java:48)
killbill_1        |     at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
killbill_1        |     at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
killbill_1        |     at java.lang.Thread.run(Thread.java:745)
killbill_1        | 2017-05-31T18:59:01,747+0000 lvl='ERROR', log='CallableCallbackBase', th='bus_ext_events-th', xff='', rId='', aRId='', tRId='0', Fatal NotificationQ dispatch error, data corruption...
killbill_1        | com.google.common.eventbus.EventBusException: java.lang.reflect.InvocationTargetException
killbill_1        |     at com.google.common.eventbus.EventBusThatThrowsException.postWithException(EventBusThatThrowsException.java:78)
killbill_1        |     at org.killbill.bus.DefaultPersistentBus.dispatchBusEventWithMetrics(DefaultPersistentBus.java:314)
killbill_1        |     at org.killbill.bus.dispatching.BusCallableCallback.dispatch(BusCallableCallback.java:40)
killbill_1        |     at org.killbill.bus.dispatching.BusCallableCallback.dispatch(BusCallableCallback.java:29)
killbill_1        |     at org.killbill.queue.dispatching.Dispatcher$CallableQueue.call(Dispatcher.java:103)
killbill_1        |     at org.killbill.queue.dispatching.Dispatcher$CallableQueue.call(Dispatcher.java:86)
killbill_1        |     at org.killbill.commons.concurrent.WrappedCallable.call(WrappedCallable.java:42)
killbill_1        |     at java.util.concurrent.FutureTask.run(FutureTask.java:266)
killbill_1        |     at org.killbill.commons.concurrent.WrappedRunnable.run(WrappedRunnable.java:48)
killbill_1        |     at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
killbill_1        |     at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
killbill_1        |     at java.lang.Thread.run(Thread.java:745)
killbill_1        | Caused by: java.lang.reflect.InvocationTargetException: null
killbill_1        |     at com.google.common.eventbus.EventBusThatThrowsException$SubscriberExceptionsTrackerHandler.handleException(EventBusThatThrowsException.java:129)
killbill_1        |     at com.google.common.eventbus.EventBus.handleSubscriberException(EventBus.java:175)
killbill_1        |     at com.google.common.eventbus.Subscriber$1.run(Subscriber.java:78)
killbill_1        |     at com.google.common.util.concurrent.MoreExecutors$DirectExecutor.execute(MoreExecutors.java:435)
killbill_1        |     at com.google.common.eventbus.Subscriber.dispatchEvent(Subscriber.java:71)
killbill_1        |     at com.google.common.eventbus.Dispatcher$ImmediateDispatcher.dispatch(Dispatcher.java:200)
killbill_1        |     at com.google.common.eventbus.EventBusThatThrowsException.postWithException(EventBusThatThrowsException.java:65)
killbill_1        |     ... 11 common frames omitted
killbill_1        | Caused by: java.lang.IllegalStateException: Plugin dwolla-plugin version 0.1.0 cannot be started because the version 0.1.0 already exists in the registry (state = 4)
killbill_1        |     at org.killbill.billing.osgi.BundleRegistry.installAndStartNewBundle(BundleRegistry.java:69)
killbill_1        |     at org.killbill.billing.osgi.OSGIListener.handleKillbillEvent(OSGIListener.java:106)
killbill_1        |     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
killbill_1        |     at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
killbill_1        |     at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
killbill_1        |     at java.lang.reflect.Method.invoke(Method.java:498)
killbill_1        |     at com.google.common.eventbus.Subscriber.invokeSubscriberMethod(Subscriber.java:91)
killbill_1        |     at com.google.common.eventbus.Subscriber$1.run(Subscriber.java:76)
killbill_1        |     ... 15 common frames omitted

I've tried setting both the Base Url and Base OAuth Url properties in the tenant plugin configuration, deleting the container and recreating. But I still get this issue. This is preventing the plugin from "starting". I have imported the SQL file into the database.

I just started experimenting with Kill Bill yesterday, so bear with me please :) Thanks!!!

pierre commented 7 years ago

I've tried setting both the Base Url and Base OAuth Url properties in the tenant plugin configuration, deleting the container and recreating.

By looking at the code, it doesn't seem that the plugin supports per-tenant properties yet. @matias-aguero-hs can you confirm? If so, I'll update the README to reflect this.

@chris13524 Could you try setting the properties in the main /etc/killbill/killbill.properties file instead to see if it fixes this issue (you need to restart Kill Bill afterwards)?

I just started experimenting with Kill Bill yesterday, so bear with me please :)

Moving forward, please use the mailing-list instead for setup issues. Thanks!

maguero commented 7 years ago

By looking at the code, it doesn't seem that the plugin supports per-tenant properties yet. @matias-aguero-hs can you confirm? If so, I'll update the README to reflect this.

You are right, I double checked and it does not support per-tenant properties yet 😞 . DwollaProperties

@chris13524 Could you try setting the properties in the main /etc/killbill/killbill.properties file instead to see if it fixes this issue (you need to restart Kill Bill afterwards)?

Please try with first configuration option to see if that error is fixed

chris13524 commented 7 years ago

It appears to be working if I configure via /etc/killbill/killbill.properties. However the way I'm using Kill Bill (white label), I require a different Tenant and Dwolla configuration per customer. Would this be a feature that could be implemented soon?