Duplicate Import Error

89 views
Skip to first unread message

Sujay Khandekar

unread,
Jun 21, 2022, 8:13:13 PM6/21/22
to Kill Bill users mailing-list

Hi, 

I recently tried to upgrade my KillBill instance to 0.22.29 using a docker image from 0.22.22. Everything mostly worked, but I noticed that my plugins are not working as I expected. I searched the logs for any errors and I came across this:

{ "@timestamp": "2022-06-21T18:52:03.886Z", "message": "Error while parsing plugin configurations", "logger_name": "org.killbill.billing.osgi.FileInstall", "thread_name": "localhost-startStop-1", "level": "ERROR", "stack_trace": "org.osgi.framework.BundleException: Duplicate import: org.joda.time.format\n\tat org.apache.felix.framework.util.manifestparser.ManifestParser.normalizeImportClauses(ManifestParser.java:366)\n\tat org.apache.felix.framework.util.manifestparser.ManifestParser.<init>(ManifestParser.java:180)\n\tat org.apache.felix.framework.BundleRevisionImpl.<init>(BundleRevisionImpl.java:121)\n\tat org.apache.felix.framework.BundleImpl.createRevision(BundleImpl.java:1243)\n\tat org.apache.felix.framework.BundleImpl.<init>(BundleImpl.java:112)\n\tat org.apache.felix.framework.Felix.installBundle(Felix.java:2907)\n\tat org.apache.felix.framework.BundleContextImpl.installBundle(BundleContextImpl.java:165)\n\tat org.apache.felix.framework.BundleContextImpl.installBundle(BundleContextImpl.java:138)\n\tat org.killbill.billing.osgi.FileInstall.installOSGIBundle(FileInstall.java:151)\n\tat org.killbill.billing.osgi.FileInstall.installAllOSGIBundles(FileInstall.java:142)\n\tat org.killbill.billing.osgi.FileInstall.installBundles(FileInstall.java:91)\n\tat org.killbill.billing.osgi.BundleRegistry.installBundles(BundleRegistry.java:65)\n\tat org.killbill.billing.osgi.DefaultOSGIService.initialize(DefaultOSGIService.java:94)\n\tat sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)\n\tat sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)\n\tat sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)\n\tat java.lang.reflect.Method.invoke(Method.java:498)\n\tat org.killbill.billing.lifecycle.DefaultLifecycle.doFireStage(DefaultLifecycle.java:154)\n\tat org.killbill.billing.lifecycle.DefaultLifecycle.fireSequence(DefaultLifecycle.java:141)\n\tat org.killbill.billing.lifecycle.DefaultLifecycle.fireStartupSequencePriorEventRegistration(DefaultLifecycle.java:82)\n\tat org.killbill.billing.server.listeners.KillbillPlatformGuiceListener.startLifecycle(KillbillPlatformGuiceListener.java:299)\n\tat org.killbill.billing.server.listeners.KillbillPlatformGuiceListener.contextInitialized(KillbillPlatformGuiceListener.java:129)\n\tat org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4763)\n\tat org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5232)\n\tat org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)\n\tat org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:753)\n\tat org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:727)\n\tat org.apache.catalina.core.StandardHost.addChild(StandardHost.java:695)\n\tat org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:1177)\n\tat org.apache.catalina.startup.HostConfig$DeployDirectory.run(HostConfig.java:1925)\n\tat java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)\n\tat java.util.concurrent.FutureTask.run(FutureTask.java:266)\n\tat java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)\n\tat java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)\n\tat java.lang.Thread.run(Thread.java:748)\n" }

Is there any way to debug this to get my plug-in working?

stephane brossier

unread,
Jun 27, 2022, 11:45:13 PM6/27/22
to Sujay Khandekar, Kill Bill users mailing-list
Sujay,


Thank you for the report, it looks like there may be an issue with our latest docker image, we are investigating.


Stéphane


--
You received this message because you are subscribed to the Google Groups "Kill Bill users mailing-list" group.
To unsubscribe from this group and stop receiving emails from it, send an email to killbilling-us...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/killbilling-users/dcc7d41f-55d6-433f-8b5d-d4538b06e41an%40googlegroups.com.

Pierre-Alexandre Meyer

unread,
Jun 28, 2022, 10:02:09 AM6/28/22
to Sujay Khandekar, Kill Bill users mailing-list
Hi Sujay,

Could you delete your local images and re-try? I've just pushed a fix.

Thanks,

--
You received this message because you are subscribed to the Google Groups "Kill Bill users mailing-list" group.
To unsubscribe from this group and stop receiving emails from it, send an email to killbilling-us...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/killbilling-users/dcc7d41f-55d6-433f-8b5d-d4538b06e41an%40googlegroups.com.


--
Pierre

alemut...@gmail.com

unread,
Jun 29, 2022, 5:09:00 AM6/29/22
to Kill Bill users mailing-list
Hi Pierre, I'm facing the same issue with killbill-cloud. here is a snippet of the log


{"@timestamp":"2022-06-29T08:45:36.439Z","message":"Killbill lifecycle firing stage
INIT_PLUGIN","logger_name":"org.killbill.billing.lifecycle.DefaultLifecycle","thread_name":"localhost-startStop-1","level":"INFO"}
{"@timestamp":"2022-06-29T08:45:36.440Z","message":"Killbill lifecycle calling handler initialize for service osgi-service","logger_name":"org.killbill.billing.lifecycle.DefaultLifecycle","thread_name":"localhost-startStop-1","level":"INFO"}
{"@timestamp":"2022-06-29T08:45:36.663Z","message":"Unable to find the JRuby bundle at /var/lib/killbill/bundles/platform/jruby.jar, ruby plugins won't be started!","logger_name":"org.killbill.billing.osgi.JRubyJarHelper","thread_name":"localhost-startStop-1","level":"WARN"}
{"@timestamp":"2022-06-29T08:45:36.664Z","message":"Installing Java OSGI bundle from /var/lib/killbill/bundles/platform/killbill-platform-osgi-bundles-jruby-0.40.12.jar","logger_name":"org.killbill.billing.osgi.FileInstall","thread_name":"localhost-startStop-1","level":"INFO"}
...

var/lib/killbill/bundles/platform/killbill-platform-osgi-bundles-jruby-0.40.12.jar","logger_name":"org.killbill.billing.osgi.FileInstall","thread_name":"localhost-startStop-1","level":"INFO"}
{"@timestamp":"2022-06-29T08:45:36.739Z","message":"Error while parsing plugin configurations","logger_name":"org.killbill.billing.osgi.FileInstall","thread_name":"localhost-startStop-1","level":"ERROR","stack_trace":"org.osgi.framework.BundleException: Duplicate import: org.joda.time.format\n\tat org.apache.felix.framework.util.manifestparser.ManifestParser.normalizeImportClauses(ManifestParser.java:366)\n\tat org.apache.felix.framework.util.manifestparser.ManifestParser.<init>(ManifestParser.java:180)\n\tat org.apache.felix.framework.BundleRevisionImpl.<init>(BundleRevisionImpl.java:121)\n\tat org.apache.felix.framework.BundleImpl.createRevision(BundleImpl.java:1243)\n\tat org.apache.felix.framework.BundleImpl.<init>(BundleImpl.java:112)\n\tat org.apache.felix.framework.Felix.installBundle(Felix.java:2907)\n\tat org.apache.felix.framework.BundleContextImpl.installBundle(BundleContextImpl.java:165)\n\tat org.apache.felix.framework.BundleContextImpl.installBundle(BundleContextImpl.java:138)\n\tat org.killbill.billing.osgi.FileInstall.installOSGIBundle(FileInstall.java:151)\n\tat org.killbill.billing.osgi.FileInstall.installAllOSGIBundles(FileInstall.java:142)\n\tat org.killbill.billing.osgi.FileInstall.installBundles(FileInstall.java:91)\n\tat org.killbill.billing.osgi.BundleRegistry.installBundles(BundleRegistry.java:65)\n\tat org.killbill.billing.osgi.DefaultOSGIService.initialize(DefaultOSGIService.java:94)\n\tat sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)\n\tat sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)\n\tat sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)\n\tat java.lang.reflect.Method.invoke(Method.java:498)\n\tat org.killbill.billing.lifecycle.DefaultLifecycle.doFireStage(DefaultLifecycle.java:154)\n\tat org.killbill.billing.lifecycle.DefaultLifecycle.fireSequence(DefaultLifecycle.java:141)\n\tat org.killbill.billing.lifecycle.DefaultLifecycle.fireStartupSequencePriorEventRegistration(DefaultLifecycle.java:82)\n\tat org.killbill.billing.server.listeners.KillbillPlatformGuiceListener.startLifecycle(KillbillPlatformGuiceListener.java:299)\n\tat org.killbill.billing.server.listeners.KillbillPlatformGuiceListener.contextInitialized(KillbillPlatformGuiceListener.java:129)\n\tat org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4763)\n\tat org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5232)\n\tat org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)\n\tat org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:753)\n\tat org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:727)\n\tat org.apache.catalina.core.StandardHost.addChild(StandardHost.java:695)\n\tat org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:1177)\n\tat org.apache.catalina.startup.HostConfig$DeployDirectory.run(HostConfig.java:1925)\n\tat java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)\n\tat java.util.concurrent.FutureTask.run(FutureTask.java:266)\n\tat java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)\n\tat java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)\n\tat java.lang.Thread.run(Thread.java:748)\n"}

thanks

karan bansal

unread,
Jul 2, 2022, 9:53:49 AM7/2/22
to Kill Bill users mailing-list
Hi Sujay,

I checked with the Devs and after the recent fixes, we did not face this error during our testing. 

Could you please confirm that you have completely removed the local images before trying again. Also could you please confirm the image that you are using, for example, the digest related to the image. 

Regards
Karan

Reply all
Reply to author
Forward
0 new messages