You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@ofbiz.apache.org by "Jacques Le Roux (Jira)" <ji...@apache.org> on 2023/04/14 11:36:00 UTC

[jira] [Updated] (OFBIZ-12801) Error at CommunicationEventServices.groovy:489 due to OFBIZ-11167

     [ https://issues.apache.org/jira/browse/OFBIZ-12801?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Jacques Le Roux updated OFBIZ-12801:
------------------------------------
    Description: 
I get this error locally:

The Following Errors Occurred:


Service dispatcher threw an exception:Error running Groovy method [sendEmailDated] in Groovy file [component://party/groovyScripts/communication/CommunicationEventServices.groovy]: (Cannot cast object '[]' with class 'java.util.ArrayList' to class 'java.util.Map' due to: groovy.lang.GroovyRuntimeException: Could not find matching constructor for: java.util.Map())


When I replace 
Map sendEmailDated() {
by
def sendEmailDated() {
The error disappears

I guess something better can be done, but I have not yet found what :)

  was:
I get this error locally:

The Following Errors Occurred:

{noformat}
Service dispatcher threw an exception:Error running Groovy method [sendEmailDated] in Groovy file [component://party/groovyScripts/communication/CommunicationEventServices.groovy]: (Cannot cast object '[]' with class 'java.util.ArrayList' to class 'java.util.Map' due to: groovy.lang.GroovyRuntimeException: Could not find matching constructor for: java.util.Map())
{noformat}

When I replace 
Map sendEmailDated() {
by
def sendEmailDated() {
The error disappears

I guess something better can be done, but I have not yet found what :)


> Error at  CommunicationEventServices.groovy:489 due to OFBIZ-11167
> ------------------------------------------------------------------
>
>                 Key: OFBIZ-12801
>                 URL: https://issues.apache.org/jira/browse/OFBIZ-12801
>             Project: OFBiz
>          Issue Type: Bug
>          Components: projectmgr
>    Affects Versions: Upcoming Branch
>         Environment: 
>            Reporter: Jacques Le Roux
>            Assignee: Jacques Le Roux
>            Priority: Major
>             Fix For: Upcoming Branch
>
>
> I get this error locally:
> The Following Errors Occurred:
> Service dispatcher threw an exception:Error running Groovy method [sendEmailDated] in Groovy file [component://party/groovyScripts/communication/CommunicationEventServices.groovy]: (Cannot cast object '[]' with class 'java.util.ArrayList' to class 'java.util.Map' due to: groovy.lang.GroovyRuntimeException: Could not find matching constructor for: java.util.Map())
> When I replace 
> Map sendEmailDated() {
> by
> def sendEmailDated() {
> The error disappears
> I guess something better can be done, but I have not yet found what :)



--
This message was sent by Atlassian Jira
(v8.20.10#820010)