Skip to content

Fixed: sendInvoicePerEmail fails with MissingMethodException (OFBIZ-13388)#1131

Open
arashpreet0011 wants to merge 1 commit into
apache:trunkfrom
arashpreet0011:OFBIZ-13388-sendInvoicePerEmail-makeValidContext
Open

Fixed: sendInvoicePerEmail fails with MissingMethodException (OFBIZ-13388)#1131
arashpreet0011 wants to merge 1 commit into
apache:trunkfrom
arashpreet0011:OFBIZ-13388-sendInvoicePerEmail-makeValidContext

Conversation

@arashpreet0011
Copy link
Copy Markdown
Contributor

JIRA: https://issues.apache.org/jira/browse/OFBIZ-13388

Fixes the MissingMethodException thrown when sendInvoicePerEmail
runs asynchronously. See JIRA for full stack trace and reproduction.

…3388)

The sendInvoicePerEmail service was calling
DispatchContext.makeValidContext() with a single Map argument, which
does not match any valid overload. This caused the async job to fail
with groovy.lang.MissingMethodException.

Use the 3-argument form makeValidContext(serviceName, 'IN', ctx) so
the context is validated against the target service (sendMailFromScreen).
addTaxMap.itemPriceList << it.amount
addTaxMap.itemQuantityList << it.quantity
addTaxMap.itemShippingList << BigDecimal.ZERO
addTaxMap.itemShippingList << 0
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This change is out of context of the ticket fix.
Is there any specific reason to include this in the current changes?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants