I am running KillBill (
http://localhost:8080) and Kaui (
http://localhost:9090) via Docker, writing to a local MariaDB account using the DDL from the KillBill site. I have not touched the shiro.ini file (not sure if thats needed or not). I am trying to create an account against my tenant (only one configured) but I am getting an error when I use the KillBill Java client.
Background:
I log into Kaui and create a tenant
When I look into the kaui database, I see:
kaui_tenants contains the edentalmanager with this tenant_id and api_key
kaui_users contains admin user
kaui_allowed_user contains the admin and another username edmtest (created for tenant 'edentalmanager')
I look at the killbill database and do not see any users or user_roles - is this a problem?
I then use this code to create an account:
final KillBillHttpClient killBillHttpClient =
new KillBillHttpClient("http://localhost:8080", "admin", "password", "myApiKey", "myApiSecret");
final KillBillClient killBillClient = new KillBillClient(killBillHttpClient);
final String requestId = randomString();
final RequestOptions options =
RequestOptions.builder().withRequestId(requestId).withCreatedBy(createdBy).withReason("test")
.withHeader(JaxrsResource.HDR_CREATED_BY, "demo")
.withHeader(JaxrsResource.HDR_REASON, "test")
.withHeader(JaxrsResource.HDR_COMMENT, "No comments")
.withHeader(JaxrsResource.HDR_API_KEY, "myApiKey")
.withHeader(JaxrsResource.HDR_API_SECRET, "myApiSecret").withComment("No comments")
.build();
Account account = new Account();
account.setName("Joes Medical Shack");
account.setFirstNameLength(4); // don't know what this is for
account.setExternalKey("joesMedShack");
account.setCurrency("USD");
Account newAccount = client.createAccount(account, options)
Here is the error:
java.sql.SQLSyntaxErrorException: Unknown column 't.parent_account_id' in 'field list'
I am confused on a couple of points here:
- I can only get this far if I use the admin/password values - the user I created for this tenant doesn't seem to work
- I don't know where the tenant id should be used.
- The connections all see to work, because I am not getting those types of exceptions. But I don't see why they killbill database is not being used for users. I do see the killbill.sessions table filled with data from my testing so I am sure that is correctly accessed.
I have watched all the YouTube videos and gone thru the documentation but for some reason the accounts will not create, effectively blocking me.