Skip to content

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

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

Fixed: sendInvoicePerEmail fails with MissingMethodException (OFBIZ-13388)#1131
arashpreet0011 wants to merge 1 commit intoapache: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).
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.

2 participants