New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

IllegalStateException in dry-run generation #1095

Open
pierre opened this Issue Feb 11, 2019 · 0 comments

Comments

Projects
None yet
1 participant
@pierre
Copy link
Member

pierre commented Feb 11, 2019

Scenario: trigger dry run invoice generation with a target date that is after the subscription (in-arrear usage) cancellation date.

java.lang.IllegalStateException: null
	at com.google.common.base.Preconditions.checkState(Preconditions.java:491)
	at org.killbill.billing.invoice.usage.RawUsageOptimizer.getOptimizedRawUsageStartDate(RawUsageOptimizer.java:124)
	at org.killbill.billing.invoice.usage.RawUsageOptimizer.getInArrearUsage(RawUsageOptimizer.java:75)
	at org.killbill.billing.invoice.generator.UsageInvoiceItemGenerator.generateItems(UsageInvoiceItemGenerator.java:117)
	at org.killbill.billing.invoice.generator.DefaultInvoiceGenerator.generateInvoice(DefaultInvoiceGenerator.java:98)
	at org.killbill.billing.invoice.InvoiceDispatcher.generateKillBillInvoice(InvoiceDispatcher.java:667)
	at org.killbill.billing.invoice.InvoiceDispatcher.processAccountWithLockAndInputTargetDate(InvoiceDispatcher.java:556)
	at org.killbill.billing.invoice.InvoiceDispatcher.processDryRun_TARGET_DATE_Invoice(InvoiceDispatcher.java:490)
	at org.killbill.billing.invoice.InvoiceDispatcher.processAccountWithLock(InvoiceDispatcher.java:390)
	at org.killbill.billing.invoice.InvoiceDispatcher.processAccount(InvoiceDispatcher.java:306)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment