I was wondering if I could ask people about their usage of Kaui, specifically the standalone docker image.
I have deployed KillBill 0.18.0 and Kaui Standalone 0.8.0 and MariaDB in Docker and imported the 0.18.0 util/ddl.sql, usage/ddl.sql, tenant/ddl.sql, account/ddl.sql, beatrix/ddl.sql, catalog/ddl.sql, invoice/ddl.sql, payment/ddl.sql, entitlement/ddl.sql, subscription/ddl.sql. On the Kaui front we've imported the 0.15.0 ddl.sql. We are also using the stripe plugin and have imported the DDL's for that.
This all boots up fine and everyone talks to everyone else. The issues start when managing Killbill via Kaui.
My problems specifically involve uploading of Catalog XML files. I can upload Catalog XML's but occasionally one of them will break the catalog leading to a "org.killbill.billing.catalog.api.CatalogApiException: Invalid catalog for tenant : 1" exception this leads to a blank catalog in Kaui. I can also trigger this stage if I add a currency to a Plan but leave the price blank, something which someone in a rush might do. I can't yet pinpoint what will cause this issue as Kaui reports that the catalog import went fine.
When the database gets in this state there isn't much I can do, as there doesn't seem to be any way to revert or delete a plan short of intervention into the DB, which hasn't gone well for us in the past as tenants don't seem to magically get back good catalogs when you delete bad ones.
I'm wondering if this is just me and my process, or is there something else with the way Kaui works that I should be aware of.
Thanks,
Anthony Murphy
--
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-users+unsubscribe@googlegroups.com.
To post to this group, send email to killbilling-users@googlegroups.com.
Visit this group at https://groups.google.com/group/killbilling-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/killbilling-users/b4acb90d-b830-4004-be48-71fda1c61816%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder".SLF4J: Defaulting to no-operation (NOP) logger implementationSLF4J: See http://www.slf4j.org/codes.html#StaticLoggerBinder for further details.Exception in thread "main" javax.xml.bind.UnmarshalException: Unable to create an instance of org.killbill.billing.catalog.StandaloneCatalog- with linked exception:[java.lang.reflect.InvocationTargetException]at com.sun.xml.internal.bind.v2.runtime.unmarshaller.UnmarshallingContext.handleEvent(Unknown Source)at com.sun.xml.internal.bind.v2.runtime.unmarshaller.Loader.reportError(Unknown Source)at com.sun.xml.internal.bind.v2.runtime.unmarshaller.UnmarshallingContext.createInstance(Unknown Source)at com.sun.xml.internal.bind.v2.runtime.unmarshaller.StructureLoader.startElement(Unknown Source)at com.sun.xml.internal.bind.v2.runtime.unmarshaller.UnmarshallingContext._startElement(Unknown Source)at com.sun.xml.internal.bind.v2.runtime.unmarshaller.UnmarshallingContext.startElement(Unknown Source)at com.sun.xml.internal.bind.v2.runtime.unmarshaller.ValidatingUnmarshaller.startElement(Unknown Source)at com.sun.xml.internal.bind.v2.runtime.unmarshaller.SAXConnector.startElement(Unknown Source)at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.startElement(Unknown Source)at com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.scanStartElement(Unknown Source)at com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl$NSContentDriver.scanRootElementHook(Unknown Source)at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$FragmentContentDriver.next(Unknown Source)at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl$PrologDriver.next(Unknown Source)at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(Unknown Source)at com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.next(Unknown Source)at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(Unknown Source)at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(Unknown Source)at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(Unknown Source)at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(Unknown Source)at com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown Source)at com.sun.xml.internal.bind.v2.runtime.unmarshaller.UnmarshallerImpl.unmarshal0(Unknown Source)at com.sun.xml.internal.bind.v2.runtime.unmarshaller.UnmarshallerImpl.unmarshal(Unknown Source)at javax.xml.bind.helpers.AbstractUnmarshallerImpl.unmarshal(Unknown Source)at javax.xml.bind.helpers.AbstractUnmarshallerImpl.unmarshal(Unknown Source)at org.killbill.xmlloader.XMLLoader.getObjectFromStream(XMLLoader.java:66)at org.killbill.xmlloader.XMLLoader.getObjectFromUri(XMLLoader.java:58)at org.killbill.billing.catalog.LoadCatalog.main(LoadCatalog.java:33)Caused by: java.lang.reflect.InvocationTargetExceptionat sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)at java.lang.reflect.Constructor.newInstance(Unknown Source)at com.sun.xml.internal.bind.v2.ClassFactory.create0(Unknown Source)at com.sun.xml.internal.bind.v2.runtime.ClassBeanInfoImpl.createInstance(Unknown Source)... 26 moreCaused by: java.lang.NoClassDefFoundError: com/google/common/collect/Orderingat org.killbill.billing.catalog.CatalogEntityCollection.<init>(CatalogEntityCollection.java:34)at org.killbill.billing.catalog.StandaloneCatalog.<init>(StandaloneCatalog.java:96)... 32 moreCaused by: java.lang.ClassNotFoundException: com.google.common.collect.Orderingat java.net.URLClassLoader.findClass(Unknown Source)at java.lang.ClassLoader.loadClass(Unknown Source)at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)at java.lang.ClassLoader.loadClass(Unknown Source)... 34 more
To unsubscribe from this group and stop receiving emails from it, send an email to killbilling-us...@googlegroups.com.
To post to this group, send email to killbill...@googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to killbilling-users+unsubscribe@googlegroups.com.
To post to this group, send email to killbilling-users@googlegroups.com.
Visit this group at https://groups.google.com/group/killbilling-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/killbilling-users/f0ad8574-5819-4bea-929b-b48032261695%40googlegroups.com.
Hi Anthony,
I saw the same issue while uploading the catalog multiple times in version 0.18.4. Please find the nodesInfo as attached. The use case is whenever we update the catalog next time, go the below error. But the workaround is working, say change the tenant_kvs action column 0 and clear the cache. Please let me know, if anything missed.
{
"className": "org.killbill.billing.catalog.api.CatalogApiException",
"code": 2080,
"message": "Invalid catalog for tenant : 4",
"causeClassName": null,
"causeMessage": null,
"stackTrace": []
}
[
{
"nodeName": "0e82d598570d",
"bootTime": "2017-03-08T10:43:18.000Z",
"lastUpdatedDate": "2017-03-08T10:43:18.000Z",
"kbVersion": "0.18.4",
"apiVersion": "0.50.1",
"pluginApiVersion": "0.23.1",
"commonVersion": "0.20.3",
"platformVersion": "0.36.2",
..
}
]
--
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-users+unsubscribe@googlegroups.com.
To post to this group, send email to killbilling-users@googlegroups.com.
Visit this group at https://groups.google.com/group/killbilling-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/killbilling-users/2fdb492f-8dfe-455e-be54-93d8ddb6d6f6%40googlegroups.com.
Hi Stephane,Please find the attached catalog file that I am experiencing the issue.When I add a new product or change the product in catalog and ran the below API (0.18 version) to update the catalog.API: POST: /1.0/kb/catalogThe workaround provided in mail chain is working. Please provide inputs and anything needed in configurations.Thanks,Satish
org.killbill.billing.catalog.api.CatalogApiException: Invalid catalog for tenant : 3
at org.killbill.billing.catalog.api.user.DefaultCatalogUserApi.uploadCatalog(DefaultCatalogUserApi.java:114)
at org.killbill.billing.util.glue.KillbillApiAopModule$ProfilingMethodInterceptor$1.execute(KillbillApiAopModule.java:52)
at org.killbill.commons.profiling.Profiling.executeWithProfiling(Profiling.java:33)
at org.killbill.billing.util.glue.KillbillApiAopModule$ProfilingMethodInterceptor.invoke(KillbillApiAopModule.java:49)
at org.killbill.billing.util.security.AopAllianceMethodInvocationAdapter.proceed(AopAllianceMethodInvocationAdapter.java:45)
at org.apache.shiro.authz.aop.AuthorizingAnnotationMethodInterceptor.invoke(AuthorizingAnnotationMethodInterceptor.java:68)
at org.killbill.billing.util.security.AopAllianceMethodInterceptorAdapter.invoke(AopAllianceMethodInterceptorAdapter.java:32)
at org.killbill.billing.jaxrs.resources.CatalogResource.uploadCatalogXml(CatalogResource.java:113)
at org.killbill.commons.skeleton.metrics.TimedResourceInterceptor.invoke(TimedResourceInterceptor.java:67)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at com.sun.jersey.spi.container.JavaMethodInvokerFactory$1.invoke(JavaMethodInvokerFactory.java:60)
at com.sun.jersey.server.impl.model.method.dispatch.AbstractResourceMethodDispatchProvider$ResponseOutInvoker._dispatch(AbstractResourceMethodDispatchProvider.java:205)
at com.sun.jersey.server.impl.model.method.dispatch.ResourceJavaMethodDispatcher.dispatch(ResourceJavaMethodDispatcher.java:75)
at com.sun.jersey.server.impl.uri.rules.HttpMethodRule.accept(HttpMethodRule.java:302)
at com.sun.jersey.server.impl.uri.rules.ResourceClassRule.accept(ResourceClassRule.java:108)
at com.sun.jersey.server.impl.uri.rules.RightHandPathRule.accept(RightHandPathRule.java:147)
at com.sun.jersey.server.impl.uri.rules.RootResourceClassesRule.accept(RootResourceClassesRule.java:84)
at com.sun.jersey.server.impl.application.WebApplicationImpl._handleRequest(WebApplicationImpl.java:1542)
at com.sun.jersey.server.impl.application.WebApplicationImpl._handleRequest(WebApplicationImpl.java:1473)
at com.sun.jersey.server.impl.application.WebApplicationImpl.handleRequest(WebApplicationImpl.java:1419)
at com.sun.jersey.server.impl.application.WebApplicationImpl.handleRequest(WebApplicationImpl.java:1409)
at com.sun.jersey.spi.container.servlet.WebComponent.service(WebComponent.java:409)
at com.sun.jersey.spi.container.servlet.ServletContainer.service(ServletContainer.java:558)
at com.sun.jersey.spi.container.servlet.ServletContainer.service(ServletContainer.java:733)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:731)
To unsubscribe from this group and stop receiving emails from it, send an email to killbilling-us...@googlegroups.com.
To post to this group, send email to killbill...@googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to killbilling-users+unsubscribe@googlegroups.com.
To post to this group, send email to killbilling-users@googlegroups.com.
Visit this group at https://groups.google.com/group/killbilling-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/killbilling-users/65b182c6-ebf6-4941-8dbb-4f8f407b6e28%40googlegroups.com.
2017-05-24T14:28:32,971+0000 lvl='INFO', log='XMLLoader', th='catalina-exec-6', xff='', rId='bb9066eb-b28d-490a-9885-5e5dc28db9ff', aRId='', tRId='4', Errors: 0 for dummy
2017-05-24T14:28:32,971+0000 lvl='INFO', log='DefaultCatalogUserApi', th='catalina-exec-6', xff='', rId='bb9066eb-b28d-490a-9885-5e5dc28db9ff', aRId='', tRId='4', Failed to load new catalog version: Catalog version for effectiveDate 'Fri Feb 08 00:00:00 GMT 2013' already exists [dummy] (class org.killbill.billing.catalog.StandaloneCatalog:)
2017-05-24T14:28:32,973+0000 lvl='WARN', log='LoggingResponse', th='catalina-exec-6', xff='', rId='bb9066eb-b28d-490a-9885-5e5dc28db9ff', aRId='', tRId='4', Bad request
org.killbill.billing.catalog.api.CatalogApiException: Invalid catalog for tenant : 4
at org.killbill.billing.catalog.api.user.DefaultCatalogUserApi.uploadCatalog(DefaultCatalogUserApi.java:126)
at org.killbill.billing.util.glue.KillbillApiAopModule$ProfilingMethodInterceptor$1.execute(KillbillApiAopModule.java:52)
at org.killbill.commons.profiling.Profiling.executeWithProfiling(Profiling.java:33)
at org.killbill.billing.util.glue.KillbillApiAopModule$ProfilingMethodInterceptor.invoke(KillbillApiAopModule.java:49)
at org.killbill.billing.util.security.AopAllianceMethodInvocationAdapter.proceed(AopAllianceMethodInvocationAdapter.java:45)
at org.apache.shiro.authz.aop.AuthorizingAnnotationMethodInterceptor.invoke(AuthorizingAnnotationMethodInterceptor.java:68)
at org.killbill.billing.util.security.AopAllianceMethodInterceptorAdapter.invoke(AopAllianceMethodInterceptorAdapter.java:32)
at org.killbill.billing.jaxrs.resources.CatalogResource.uploadCatalogXml(CatalogResource.java:113)
at org.killbill.commons.skeleton.metrics.TimedResourceInterceptor.invoke(TimedResourceInterceptor.java:67)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at com.sun.jersey.spi.container.JavaMethodInvokerFactory$1.invoke(JavaMethodInvokerFactory.java:60)
at com.sun.jersey.server.impl.model.method.dispatch.AbstractResourceMethodDispatchProvider$ResponseOutInvoker._dispatch(AbstractResourceMethodDispatchProvider.java:205)
at com.sun.jersey.server.impl.model.method.dispatch.ResourceJavaMethodDispatcher.dispatch(ResourceJavaMethodDispatcher.java:75)
at com.sun.jersey.server.impl.uri.rules.HttpMethodRule.accept(HttpMethodRule.java:302)
at com.sun.jersey.server.impl.uri.rules.ResourceClassRule.accept(ResourceClassRule.java:108)
at com.sun.jersey.server.impl.uri.rules.RightHandPathRule.accept(RightHandPathRule.java:147)
at com.sun.jersey.server.impl.uri.rules.RootResourceClassesRule.accept(RootResourceClassesRule.java:84)
at com.sun.jersey.server.impl.application.WebApplicationImpl._handleRequest(WebApplicationImpl.java:1542)
at com.sun.jersey.server.impl.application.WebApplicationImpl._handleRequest(WebApplicationImpl.java:1473)
at com.sun.jersey.server.impl.application.WebApplicationImpl.handleRequest(WebApplicationImpl.java:1419)
at com.sun.jersey.server.impl.application.WebApplicationImpl.handleRequest(WebApplicationImpl.java:1409)
at com.sun.jersey.spi.container.servlet.WebComponent.service(WebComponent.java:409)
at com.sun.jersey.spi.container.servlet.ServletContainer.service(ServletContainer.java:540)
at com.sun.jersey.spi.container.servlet.ServletContainer.service(ServletContainer.java:715)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:731)
To view this discussion on the web visit https://groups.google.com/d/msgid/killbilling-users/65b182c6-ebf6-4941-8dbb-4f8f407b6e28%40googlegroups.com.
--Pierre
To unsubscribe from this group and stop receiving emails from it, send an email to killbilling-users+unsubscribe@googlegroups.com.
To post to this group, send email to killbilling-users@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/killbilling-users/f0a84d0c-7c34-4a6a-a737-117575569c39%40googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/killbilling-users/f0a84d0c-7c34-4a6a-a737-117575569c39%40googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/killbilling-users/f992c797-3fa6-403a-a168-5b6f709911bfn%40googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/killbilling-users/f0ad8574-5819-4bea-929b-b48032261695%40googlegroups.com.
I tried the latest version(ie 0.22.24) as well and still gave the same error:
SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder".
SLF4J: Defaulting to no-operation (NOP) logger implementation
SLF4J: See http://www.slf4j.org/codes.html#StaticLoggerBinder for further details.
Exception in thread "main" javax.xml.bind.JAXBException: Implementation of JAXB-API has not been found on module path or classpath.
- with linked exception:
[java.lang.ClassNotFoundException: com.sun.xml.internal.bind.v2.ContextFactory]
at javax.xml.bind.ContextFinder.newInstance(ContextFinder.java:232)
at javax.xml.bind.ContextFinder.find(ContextFinder.java:375)
at javax.xml.bind.JAXBContext.newInstance(JAXBContext.java:691)
at javax.xml.bind.JAXBContext.newInstance(JAXBContext.java:632)
at org.killbill.xmlloader.XMLLoader.unmarshaller(XMLLoader.java:108)
at org.killbill.xmlloader.XMLLoader.getObjectFromStream(XMLLoader.java:68)
at org.killbill.xmlloader.XMLLoader.getObjectFromUri(XMLLoader.java:60)
at org.killbill.billing.catalog.LoadCatalog.main(LoadCatalog.java:33)
Caused by: java.lang.ClassNotFoundException: com.sun.xml.internal.bind.v2.ContextFactory
at java.base/jdk.internal.loader.BuiltinClassLoader.loadClass(BuiltinClassLoader.java:636)
at java.base/jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(ClassLoaders.java:182)
at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:519)
at javax.xml.bind.ServiceLoaderUtil.nullSafeLoadClass(ServiceLoaderUtil.java:92)
at javax.xml.bind.ServiceLoaderUtil.safeLoadClass(ServiceLoaderUtil.java:125)
at javax.xml.bind.ContextFinder.newInstance(ContextFinder.java:230)
... 7 more
To view this discussion on the web visit https://groups.google.com/d/msgid/killbilling-users/efa35be4-7b1d-4cce-a509-a71d027c6d61n%40googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/killbilling-users/003d01d77f99%24716160d0%2454242270%24%40methodmaker.co.nz.