[jira] [Commented] (OFBIZ-11983) Error in sendShipmentScheduledNotification service

2020-08-26 Thread ASF subversion and git services (Jira)


[ 
https://issues.apache.org/jira/browse/OFBIZ-11983?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17185284#comment-17185284
 ] 

ASF subversion and git services commented on OFBIZ-11983:
-

Commit ef56f80bb35ab11a48702f96d4595b6e4c93a6ed in ofbiz-framework's branch 
refs/heads/trunk from Mridul Pathak
[ https://gitbox.apache.org/repos/asf?p=ofbiz-framework.git;h=ef56f80 ]

Fixed: Error in sendShipmentScheduledNotification service (OFBIZ-11983) (#234)

sendTo field was wrongly being fetched from PartyAndContactMech view to get 
emailAddress, replaced it with the correct entity field infoString.

Thanks: Jacques for input.

> Error in sendShipmentScheduledNotification service
> --
>
> Key: OFBIZ-11983
> URL: https://issues.apache.org/jira/browse/OFBIZ-11983
> Project: OFBiz
>  Issue Type: Bug
>  Components: product/facility
>Affects Versions: Trunk
>Reporter: Mridul Pathak
>Assignee: Mridul Pathak
>Priority: Minor
>
> Please refer stack-trace below,
> {noformat}
> 2020-08-26 18:15:20,543 |OFBiz-JobQueue-0     |ServiceDispatcher             
> |T| [[Sync service failed...- total:0.0,since last(Begin):0.0]] - 'facility / 
> sendShipmentScheduledNotification'
> 2020-08-26 18:15:20,549 |OFBiz-JobQueue-0     |TransactionUtil               
> |I| Transaction rolled back
> 2020-08-26 18:15:20,549 |OFBiz-JobQueue-0     |TransactionUtil               
> |W| Not committing transaction, status is No Transaction (6)
> 2020-08-26 18:15:20,554 |OFBiz-JobQueue-0     |GenericServiceJob             
> |E| Async-Service failed.
> org.apache.ofbiz.service.GenericServiceException: Error running Groovy method 
> [sendShipmentScheduledNotification] in Groovy file 
> [component://product/groovyScripts/shipment/ShipmentServices.groovy]:  
> (org.apache.ofbiz.entity.GenericModelException: In 
> selectListIteratorByCondition invalid field names specified: [sendTo])
>  at 
> org.apache.ofbiz.service.engine.GroovyEngine.runSync(GroovyEngine.java:130) 
> ~[main/:?]
>  at 
> org.apache.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:424)
>  ~[main/:?]
>  at 
> org.apache.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:240)
>  ~[main/:?]
>  at 
> org.apache.ofbiz.service.GenericDispatcherFactory$GenericDispatcher.runSync(GenericDispatcherFactory.java:93)
>  ~[main/:?]
>  at 
> org.apache.ofbiz.service.job.GenericServiceJob.exec(GenericServiceJob.java:70)
>  [main/:?]
>  at org.apache.ofbiz.service.job.AbstractJob.run(AbstractJob.java:87) 
> [main/:?]
>  at 
> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
>  [?:1.8.0_144]
>  at 
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
>  [?:1.8.0_144]
>  at java.lang.Thread.run(Thread.java:748) [?:1.8.0_144]
> Caused by: org.codehaus.groovy.runtime.InvokerInvocationException: 
> org.apache.ofbiz.entity.GenericModelException: In 
> selectListIteratorByCondition invalid field names specified: [sendTo]
>  at org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:107) 
> ~[groovy-2.5.11.jar:2.5.11]
>  at groovy.lang.MetaMethod.doMethodInvoke(MetaMethod.java:323) 
> ~[groovy-2.5.11.jar:2.5.11]
>  at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1217) 
> ~[groovy-2.5.11.jar:2.5.11]
>  at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1041) 
> ~[groovy-2.5.11.jar:2.5.11]
>  at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:821) 
> ~[groovy-2.5.11.jar:2.5.11]
>  at groovy.lang.GroovyObjectSupport.invokeMethod(GroovyObjectSupport.java:44) 
> ~[groovy-2.5.11.jar:2.5.11]
>  at groovy.lang.Script.invokeMethod(Script.java:77) 
> ~[groovy-2.5.11.jar:2.5.11]
>  at 
> org.apache.ofbiz.service.engine.GroovyEngine.runSync(GroovyEngine.java:110) 
> ~[main/:?]
>  ... 8 more
> Caused by: org.apache.ofbiz.entity.GenericModelException: In 
> selectListIteratorByCondition invalid field names specified: [sendTo]
>  at 
> org.apache.ofbiz.entity.datasource.GenericDAO.selectListIteratorByCondition(GenericDAO.java:656)
>  ~[main/:?]
>  at 
> org.apache.ofbiz.entity.datasource.GenericHelperDAO.findListIteratorByCondition(GenericHelperDAO.java:155)
>  ~[main/:?]
>  at org.apache.ofbiz.entity.GenericDelegator.find(GenericDelegator.java:1600) 
> ~[main/:?]
>  at 
> org.apache.ofbiz.entity.util.EntityQuery.queryIterator(EntityQuery.java:389) 
> ~[main/:?]
>  at 
> org.apache.ofbiz.entity.util.EntityQuery.getFieldList(EntityQuery.java:534) 
> ~[main/:?]
>  at org.apache.ofbiz.entity.util.EntityQuery$getFieldList$14.call(Unknown 
> Source) ~[?:?]
>  at 
> org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:47)
>  ~[groovy-2.5.11.jar:2.5.11]
>  at 
> 

[jira] [Commented] (OFBIZ-11983) Error in sendShipmentScheduledNotification service

2020-08-26 Thread Mridul Pathak (Jira)


[ 
https://issues.apache.org/jira/browse/OFBIZ-11983?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17185256#comment-17185256
 ] 

Mridul Pathak commented on OFBIZ-11983:
---

Just to keep track, the issue is due to invalid comma character but in 
following line,
{code:java}
// Map sendEmailMap = [sendFrom: ("," + curUserPartyAndContactMech.infoString)]
{code}

> Error in sendShipmentScheduledNotification service
> --
>
> Key: OFBIZ-11983
> URL: https://issues.apache.org/jira/browse/OFBIZ-11983
> Project: OFBiz
>  Issue Type: Bug
>  Components: product/facility
>Affects Versions: Trunk
>Reporter: Mridul Pathak
>Assignee: Mridul Pathak
>Priority: Minor
>
> Please refer stack-trace below,
> {noformat}
> 2020-08-26 18:15:20,543 |OFBiz-JobQueue-0     |ServiceDispatcher             
> |T| [[Sync service failed...- total:0.0,since last(Begin):0.0]] - 'facility / 
> sendShipmentScheduledNotification'
> 2020-08-26 18:15:20,549 |OFBiz-JobQueue-0     |TransactionUtil               
> |I| Transaction rolled back
> 2020-08-26 18:15:20,549 |OFBiz-JobQueue-0     |TransactionUtil               
> |W| Not committing transaction, status is No Transaction (6)
> 2020-08-26 18:15:20,554 |OFBiz-JobQueue-0     |GenericServiceJob             
> |E| Async-Service failed.
> org.apache.ofbiz.service.GenericServiceException: Error running Groovy method 
> [sendShipmentScheduledNotification] in Groovy file 
> [component://product/groovyScripts/shipment/ShipmentServices.groovy]:  
> (org.apache.ofbiz.entity.GenericModelException: In 
> selectListIteratorByCondition invalid field names specified: [sendTo])
>  at 
> org.apache.ofbiz.service.engine.GroovyEngine.runSync(GroovyEngine.java:130) 
> ~[main/:?]
>  at 
> org.apache.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:424)
>  ~[main/:?]
>  at 
> org.apache.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:240)
>  ~[main/:?]
>  at 
> org.apache.ofbiz.service.GenericDispatcherFactory$GenericDispatcher.runSync(GenericDispatcherFactory.java:93)
>  ~[main/:?]
>  at 
> org.apache.ofbiz.service.job.GenericServiceJob.exec(GenericServiceJob.java:70)
>  [main/:?]
>  at org.apache.ofbiz.service.job.AbstractJob.run(AbstractJob.java:87) 
> [main/:?]
>  at 
> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
>  [?:1.8.0_144]
>  at 
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
>  [?:1.8.0_144]
>  at java.lang.Thread.run(Thread.java:748) [?:1.8.0_144]
> Caused by: org.codehaus.groovy.runtime.InvokerInvocationException: 
> org.apache.ofbiz.entity.GenericModelException: In 
> selectListIteratorByCondition invalid field names specified: [sendTo]
>  at org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:107) 
> ~[groovy-2.5.11.jar:2.5.11]
>  at groovy.lang.MetaMethod.doMethodInvoke(MetaMethod.java:323) 
> ~[groovy-2.5.11.jar:2.5.11]
>  at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1217) 
> ~[groovy-2.5.11.jar:2.5.11]
>  at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1041) 
> ~[groovy-2.5.11.jar:2.5.11]
>  at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:821) 
> ~[groovy-2.5.11.jar:2.5.11]
>  at groovy.lang.GroovyObjectSupport.invokeMethod(GroovyObjectSupport.java:44) 
> ~[groovy-2.5.11.jar:2.5.11]
>  at groovy.lang.Script.invokeMethod(Script.java:77) 
> ~[groovy-2.5.11.jar:2.5.11]
>  at 
> org.apache.ofbiz.service.engine.GroovyEngine.runSync(GroovyEngine.java:110) 
> ~[main/:?]
>  ... 8 more
> Caused by: org.apache.ofbiz.entity.GenericModelException: In 
> selectListIteratorByCondition invalid field names specified: [sendTo]
>  at 
> org.apache.ofbiz.entity.datasource.GenericDAO.selectListIteratorByCondition(GenericDAO.java:656)
>  ~[main/:?]
>  at 
> org.apache.ofbiz.entity.datasource.GenericHelperDAO.findListIteratorByCondition(GenericHelperDAO.java:155)
>  ~[main/:?]
>  at org.apache.ofbiz.entity.GenericDelegator.find(GenericDelegator.java:1600) 
> ~[main/:?]
>  at 
> org.apache.ofbiz.entity.util.EntityQuery.queryIterator(EntityQuery.java:389) 
> ~[main/:?]
>  at 
> org.apache.ofbiz.entity.util.EntityQuery.getFieldList(EntityQuery.java:534) 
> ~[main/:?]
>  at org.apache.ofbiz.entity.util.EntityQuery$getFieldList$14.call(Unknown 
> Source) ~[?:?]
>  at 
> org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:47)
>  ~[groovy-2.5.11.jar:2.5.11]
>  at 
> org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:115)
>  ~[groovy-2.5.11.jar:2.5.11]
>  at 
> org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:127)
>  ~[groovy-2.5.11.jar:2.5.11]
>  at 
> ShipmentServices.sendShipmentScheduledNotification(ShipmentServices.groovy:471)
>  ~[?:?]
>  at 

[jira] [Commented] (OFBIZ-11983) Error in sendShipmentScheduledNotification service

2020-08-26 Thread Jacques Le Roux (Jira)


[ 
https://issues.apache.org/jira/browse/OFBIZ-11983?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17185233#comment-17185233
 ] 

Jacques Le Roux commented on OFBIZ-11983:
-

(y)

> Error in sendShipmentScheduledNotification service
> --
>
> Key: OFBIZ-11983
> URL: https://issues.apache.org/jira/browse/OFBIZ-11983
> Project: OFBiz
>  Issue Type: Bug
>  Components: product/facility
>Affects Versions: Trunk
>Reporter: Mridul Pathak
>Assignee: Mridul Pathak
>Priority: Minor
>
> Please refer stack-trace below,
> {noformat}
> 2020-08-26 18:15:20,543 |OFBiz-JobQueue-0     |ServiceDispatcher             
> |T| [[Sync service failed...- total:0.0,since last(Begin):0.0]] - 'facility / 
> sendShipmentScheduledNotification'
> 2020-08-26 18:15:20,549 |OFBiz-JobQueue-0     |TransactionUtil               
> |I| Transaction rolled back
> 2020-08-26 18:15:20,549 |OFBiz-JobQueue-0     |TransactionUtil               
> |W| Not committing transaction, status is No Transaction (6)
> 2020-08-26 18:15:20,554 |OFBiz-JobQueue-0     |GenericServiceJob             
> |E| Async-Service failed.
> org.apache.ofbiz.service.GenericServiceException: Error running Groovy method 
> [sendShipmentScheduledNotification] in Groovy file 
> [component://product/groovyScripts/shipment/ShipmentServices.groovy]:  
> (org.apache.ofbiz.entity.GenericModelException: In 
> selectListIteratorByCondition invalid field names specified: [sendTo])
>  at 
> org.apache.ofbiz.service.engine.GroovyEngine.runSync(GroovyEngine.java:130) 
> ~[main/:?]
>  at 
> org.apache.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:424)
>  ~[main/:?]
>  at 
> org.apache.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:240)
>  ~[main/:?]
>  at 
> org.apache.ofbiz.service.GenericDispatcherFactory$GenericDispatcher.runSync(GenericDispatcherFactory.java:93)
>  ~[main/:?]
>  at 
> org.apache.ofbiz.service.job.GenericServiceJob.exec(GenericServiceJob.java:70)
>  [main/:?]
>  at org.apache.ofbiz.service.job.AbstractJob.run(AbstractJob.java:87) 
> [main/:?]
>  at 
> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
>  [?:1.8.0_144]
>  at 
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
>  [?:1.8.0_144]
>  at java.lang.Thread.run(Thread.java:748) [?:1.8.0_144]
> Caused by: org.codehaus.groovy.runtime.InvokerInvocationException: 
> org.apache.ofbiz.entity.GenericModelException: In 
> selectListIteratorByCondition invalid field names specified: [sendTo]
>  at org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:107) 
> ~[groovy-2.5.11.jar:2.5.11]
>  at groovy.lang.MetaMethod.doMethodInvoke(MetaMethod.java:323) 
> ~[groovy-2.5.11.jar:2.5.11]
>  at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1217) 
> ~[groovy-2.5.11.jar:2.5.11]
>  at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1041) 
> ~[groovy-2.5.11.jar:2.5.11]
>  at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:821) 
> ~[groovy-2.5.11.jar:2.5.11]
>  at groovy.lang.GroovyObjectSupport.invokeMethod(GroovyObjectSupport.java:44) 
> ~[groovy-2.5.11.jar:2.5.11]
>  at groovy.lang.Script.invokeMethod(Script.java:77) 
> ~[groovy-2.5.11.jar:2.5.11]
>  at 
> org.apache.ofbiz.service.engine.GroovyEngine.runSync(GroovyEngine.java:110) 
> ~[main/:?]
>  ... 8 more
> Caused by: org.apache.ofbiz.entity.GenericModelException: In 
> selectListIteratorByCondition invalid field names specified: [sendTo]
>  at 
> org.apache.ofbiz.entity.datasource.GenericDAO.selectListIteratorByCondition(GenericDAO.java:656)
>  ~[main/:?]
>  at 
> org.apache.ofbiz.entity.datasource.GenericHelperDAO.findListIteratorByCondition(GenericHelperDAO.java:155)
>  ~[main/:?]
>  at org.apache.ofbiz.entity.GenericDelegator.find(GenericDelegator.java:1600) 
> ~[main/:?]
>  at 
> org.apache.ofbiz.entity.util.EntityQuery.queryIterator(EntityQuery.java:389) 
> ~[main/:?]
>  at 
> org.apache.ofbiz.entity.util.EntityQuery.getFieldList(EntityQuery.java:534) 
> ~[main/:?]
>  at org.apache.ofbiz.entity.util.EntityQuery$getFieldList$14.call(Unknown 
> Source) ~[?:?]
>  at 
> org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:47)
>  ~[groovy-2.5.11.jar:2.5.11]
>  at 
> org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:115)
>  ~[groovy-2.5.11.jar:2.5.11]
>  at 
> org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:127)
>  ~[groovy-2.5.11.jar:2.5.11]
>  at 
> ShipmentServices.sendShipmentScheduledNotification(ShipmentServices.groovy:471)
>  ~[?:?]
>  at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_144]
>  at 
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) 
> ~[?:1.8.0_144]
>  at 
> 

[jira] [Commented] (OFBIZ-11983) Error in sendShipmentScheduledNotification service

2020-08-26 Thread Mridul Pathak (Jira)


[ 
https://issues.apache.org/jira/browse/OFBIZ-11983?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17185224#comment-17185224
 ] 

Mridul Pathak commented on OFBIZ-11983:
---

[~jleroux] yes, that's exactly the issue. Actually in the original minilang 
version  tag was wrongly used instead of  tag as we are 
working with only one email here, it's the fromAddress so it should only be 
one. And it was migrated to the groovy version the same way. This issue needs 
to be fixed in previous releases as well, so I have created OFBIZ-11984 to 
track this.

> Error in sendShipmentScheduledNotification service
> --
>
> Key: OFBIZ-11983
> URL: https://issues.apache.org/jira/browse/OFBIZ-11983
> Project: OFBiz
>  Issue Type: Bug
>  Components: product/facility
>Affects Versions: Trunk
>Reporter: Mridul Pathak
>Assignee: Mridul Pathak
>Priority: Minor
>
> Please refer stack-trace below,
> {noformat}
> 2020-08-26 18:15:20,543 |OFBiz-JobQueue-0     |ServiceDispatcher             
> |T| [[Sync service failed...- total:0.0,since last(Begin):0.0]] - 'facility / 
> sendShipmentScheduledNotification'
> 2020-08-26 18:15:20,549 |OFBiz-JobQueue-0     |TransactionUtil               
> |I| Transaction rolled back
> 2020-08-26 18:15:20,549 |OFBiz-JobQueue-0     |TransactionUtil               
> |W| Not committing transaction, status is No Transaction (6)
> 2020-08-26 18:15:20,554 |OFBiz-JobQueue-0     |GenericServiceJob             
> |E| Async-Service failed.
> org.apache.ofbiz.service.GenericServiceException: Error running Groovy method 
> [sendShipmentScheduledNotification] in Groovy file 
> [component://product/groovyScripts/shipment/ShipmentServices.groovy]:  
> (org.apache.ofbiz.entity.GenericModelException: In 
> selectListIteratorByCondition invalid field names specified: [sendTo])
>  at 
> org.apache.ofbiz.service.engine.GroovyEngine.runSync(GroovyEngine.java:130) 
> ~[main/:?]
>  at 
> org.apache.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:424)
>  ~[main/:?]
>  at 
> org.apache.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:240)
>  ~[main/:?]
>  at 
> org.apache.ofbiz.service.GenericDispatcherFactory$GenericDispatcher.runSync(GenericDispatcherFactory.java:93)
>  ~[main/:?]
>  at 
> org.apache.ofbiz.service.job.GenericServiceJob.exec(GenericServiceJob.java:70)
>  [main/:?]
>  at org.apache.ofbiz.service.job.AbstractJob.run(AbstractJob.java:87) 
> [main/:?]
>  at 
> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
>  [?:1.8.0_144]
>  at 
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
>  [?:1.8.0_144]
>  at java.lang.Thread.run(Thread.java:748) [?:1.8.0_144]
> Caused by: org.codehaus.groovy.runtime.InvokerInvocationException: 
> org.apache.ofbiz.entity.GenericModelException: In 
> selectListIteratorByCondition invalid field names specified: [sendTo]
>  at org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:107) 
> ~[groovy-2.5.11.jar:2.5.11]
>  at groovy.lang.MetaMethod.doMethodInvoke(MetaMethod.java:323) 
> ~[groovy-2.5.11.jar:2.5.11]
>  at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1217) 
> ~[groovy-2.5.11.jar:2.5.11]
>  at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1041) 
> ~[groovy-2.5.11.jar:2.5.11]
>  at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:821) 
> ~[groovy-2.5.11.jar:2.5.11]
>  at groovy.lang.GroovyObjectSupport.invokeMethod(GroovyObjectSupport.java:44) 
> ~[groovy-2.5.11.jar:2.5.11]
>  at groovy.lang.Script.invokeMethod(Script.java:77) 
> ~[groovy-2.5.11.jar:2.5.11]
>  at 
> org.apache.ofbiz.service.engine.GroovyEngine.runSync(GroovyEngine.java:110) 
> ~[main/:?]
>  ... 8 more
> Caused by: org.apache.ofbiz.entity.GenericModelException: In 
> selectListIteratorByCondition invalid field names specified: [sendTo]
>  at 
> org.apache.ofbiz.entity.datasource.GenericDAO.selectListIteratorByCondition(GenericDAO.java:656)
>  ~[main/:?]
>  at 
> org.apache.ofbiz.entity.datasource.GenericHelperDAO.findListIteratorByCondition(GenericHelperDAO.java:155)
>  ~[main/:?]
>  at org.apache.ofbiz.entity.GenericDelegator.find(GenericDelegator.java:1600) 
> ~[main/:?]
>  at 
> org.apache.ofbiz.entity.util.EntityQuery.queryIterator(EntityQuery.java:389) 
> ~[main/:?]
>  at 
> org.apache.ofbiz.entity.util.EntityQuery.getFieldList(EntityQuery.java:534) 
> ~[main/:?]
>  at org.apache.ofbiz.entity.util.EntityQuery$getFieldList$14.call(Unknown 
> Source) ~[?:?]
>  at 
> org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:47)
>  ~[groovy-2.5.11.jar:2.5.11]
>  at 
> org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:115)
>  ~[groovy-2.5.11.jar:2.5.11]
>  at 
> 

[jira] [Commented] (OFBIZ-11983) Error in sendShipmentScheduledNotification service

2020-08-26 Thread Jacques Le Roux (Jira)


[ 
https://issues.apache.org/jira/browse/OFBIZ-11983?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17185216#comment-17185216
 ] 

Jacques Le Roux commented on OFBIZ-11983:
-

Maybe this {{sendEmailMap.sendTo = sendTos.join(',')}}(?)


> Error in sendShipmentScheduledNotification service
> --
>
> Key: OFBIZ-11983
> URL: https://issues.apache.org/jira/browse/OFBIZ-11983
> Project: OFBiz
>  Issue Type: Bug
>  Components: product/facility
>Affects Versions: Trunk
>Reporter: Mridul Pathak
>Assignee: Mridul Pathak
>Priority: Minor
>
> Please refer stack-trace below,
> {noformat}
> 2020-08-26 18:15:20,543 |OFBiz-JobQueue-0     |ServiceDispatcher             
> |T| [[Sync service failed...- total:0.0,since last(Begin):0.0]] - 'facility / 
> sendShipmentScheduledNotification'
> 2020-08-26 18:15:20,549 |OFBiz-JobQueue-0     |TransactionUtil               
> |I| Transaction rolled back
> 2020-08-26 18:15:20,549 |OFBiz-JobQueue-0     |TransactionUtil               
> |W| Not committing transaction, status is No Transaction (6)
> 2020-08-26 18:15:20,554 |OFBiz-JobQueue-0     |GenericServiceJob             
> |E| Async-Service failed.
> org.apache.ofbiz.service.GenericServiceException: Error running Groovy method 
> [sendShipmentScheduledNotification] in Groovy file 
> [component://product/groovyScripts/shipment/ShipmentServices.groovy]:  
> (org.apache.ofbiz.entity.GenericModelException: In 
> selectListIteratorByCondition invalid field names specified: [sendTo])
>  at 
> org.apache.ofbiz.service.engine.GroovyEngine.runSync(GroovyEngine.java:130) 
> ~[main/:?]
>  at 
> org.apache.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:424)
>  ~[main/:?]
>  at 
> org.apache.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:240)
>  ~[main/:?]
>  at 
> org.apache.ofbiz.service.GenericDispatcherFactory$GenericDispatcher.runSync(GenericDispatcherFactory.java:93)
>  ~[main/:?]
>  at 
> org.apache.ofbiz.service.job.GenericServiceJob.exec(GenericServiceJob.java:70)
>  [main/:?]
>  at org.apache.ofbiz.service.job.AbstractJob.run(AbstractJob.java:87) 
> [main/:?]
>  at 
> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
>  [?:1.8.0_144]
>  at 
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
>  [?:1.8.0_144]
>  at java.lang.Thread.run(Thread.java:748) [?:1.8.0_144]
> Caused by: org.codehaus.groovy.runtime.InvokerInvocationException: 
> org.apache.ofbiz.entity.GenericModelException: In 
> selectListIteratorByCondition invalid field names specified: [sendTo]
>  at org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:107) 
> ~[groovy-2.5.11.jar:2.5.11]
>  at groovy.lang.MetaMethod.doMethodInvoke(MetaMethod.java:323) 
> ~[groovy-2.5.11.jar:2.5.11]
>  at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1217) 
> ~[groovy-2.5.11.jar:2.5.11]
>  at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1041) 
> ~[groovy-2.5.11.jar:2.5.11]
>  at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:821) 
> ~[groovy-2.5.11.jar:2.5.11]
>  at groovy.lang.GroovyObjectSupport.invokeMethod(GroovyObjectSupport.java:44) 
> ~[groovy-2.5.11.jar:2.5.11]
>  at groovy.lang.Script.invokeMethod(Script.java:77) 
> ~[groovy-2.5.11.jar:2.5.11]
>  at 
> org.apache.ofbiz.service.engine.GroovyEngine.runSync(GroovyEngine.java:110) 
> ~[main/:?]
>  ... 8 more
> Caused by: org.apache.ofbiz.entity.GenericModelException: In 
> selectListIteratorByCondition invalid field names specified: [sendTo]
>  at 
> org.apache.ofbiz.entity.datasource.GenericDAO.selectListIteratorByCondition(GenericDAO.java:656)
>  ~[main/:?]
>  at 
> org.apache.ofbiz.entity.datasource.GenericHelperDAO.findListIteratorByCondition(GenericHelperDAO.java:155)
>  ~[main/:?]
>  at org.apache.ofbiz.entity.GenericDelegator.find(GenericDelegator.java:1600) 
> ~[main/:?]
>  at 
> org.apache.ofbiz.entity.util.EntityQuery.queryIterator(EntityQuery.java:389) 
> ~[main/:?]
>  at 
> org.apache.ofbiz.entity.util.EntityQuery.getFieldList(EntityQuery.java:534) 
> ~[main/:?]
>  at org.apache.ofbiz.entity.util.EntityQuery$getFieldList$14.call(Unknown 
> Source) ~[?:?]
>  at 
> org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:47)
>  ~[groovy-2.5.11.jar:2.5.11]
>  at 
> org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:115)
>  ~[groovy-2.5.11.jar:2.5.11]
>  at 
> org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:127)
>  ~[groovy-2.5.11.jar:2.5.11]
>  at 
> ShipmentServices.sendShipmentScheduledNotification(ShipmentServices.groovy:471)
>  ~[?:?]
>  at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_144]
>  at 
> 

[jira] [Commented] (OFBIZ-11983) Error in sendShipmentScheduledNotification service

2020-08-26 Thread Jacques Le Roux (Jira)


[ 
https://issues.apache.org/jira/browse/OFBIZ-11983?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17185215#comment-17185215
 ] 

Jacques Le Roux commented on OFBIZ-11983:
-

Seems about "javax.mail.internet.AddressException: Local address contains 
illegal character". I see a comma here: [,ofbizt...@example.com] and did not 
find any occurence in code. Must be a typo in the service.

> Error in sendShipmentScheduledNotification service
> --
>
> Key: OFBIZ-11983
> URL: https://issues.apache.org/jira/browse/OFBIZ-11983
> Project: OFBiz
>  Issue Type: Bug
>  Components: product/facility
>Affects Versions: Trunk
>Reporter: Mridul Pathak
>Assignee: Mridul Pathak
>Priority: Minor
>
> Please refer stack-trace below,
> {noformat}
> 2020-08-26 18:15:20,543 |OFBiz-JobQueue-0     |ServiceDispatcher             
> |T| [[Sync service failed...- total:0.0,since last(Begin):0.0]] - 'facility / 
> sendShipmentScheduledNotification'
> 2020-08-26 18:15:20,549 |OFBiz-JobQueue-0     |TransactionUtil               
> |I| Transaction rolled back
> 2020-08-26 18:15:20,549 |OFBiz-JobQueue-0     |TransactionUtil               
> |W| Not committing transaction, status is No Transaction (6)
> 2020-08-26 18:15:20,554 |OFBiz-JobQueue-0     |GenericServiceJob             
> |E| Async-Service failed.
> org.apache.ofbiz.service.GenericServiceException: Error running Groovy method 
> [sendShipmentScheduledNotification] in Groovy file 
> [component://product/groovyScripts/shipment/ShipmentServices.groovy]:  
> (org.apache.ofbiz.entity.GenericModelException: In 
> selectListIteratorByCondition invalid field names specified: [sendTo])
>  at 
> org.apache.ofbiz.service.engine.GroovyEngine.runSync(GroovyEngine.java:130) 
> ~[main/:?]
>  at 
> org.apache.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:424)
>  ~[main/:?]
>  at 
> org.apache.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:240)
>  ~[main/:?]
>  at 
> org.apache.ofbiz.service.GenericDispatcherFactory$GenericDispatcher.runSync(GenericDispatcherFactory.java:93)
>  ~[main/:?]
>  at 
> org.apache.ofbiz.service.job.GenericServiceJob.exec(GenericServiceJob.java:70)
>  [main/:?]
>  at org.apache.ofbiz.service.job.AbstractJob.run(AbstractJob.java:87) 
> [main/:?]
>  at 
> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
>  [?:1.8.0_144]
>  at 
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
>  [?:1.8.0_144]
>  at java.lang.Thread.run(Thread.java:748) [?:1.8.0_144]
> Caused by: org.codehaus.groovy.runtime.InvokerInvocationException: 
> org.apache.ofbiz.entity.GenericModelException: In 
> selectListIteratorByCondition invalid field names specified: [sendTo]
>  at org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:107) 
> ~[groovy-2.5.11.jar:2.5.11]
>  at groovy.lang.MetaMethod.doMethodInvoke(MetaMethod.java:323) 
> ~[groovy-2.5.11.jar:2.5.11]
>  at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1217) 
> ~[groovy-2.5.11.jar:2.5.11]
>  at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1041) 
> ~[groovy-2.5.11.jar:2.5.11]
>  at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:821) 
> ~[groovy-2.5.11.jar:2.5.11]
>  at groovy.lang.GroovyObjectSupport.invokeMethod(GroovyObjectSupport.java:44) 
> ~[groovy-2.5.11.jar:2.5.11]
>  at groovy.lang.Script.invokeMethod(Script.java:77) 
> ~[groovy-2.5.11.jar:2.5.11]
>  at 
> org.apache.ofbiz.service.engine.GroovyEngine.runSync(GroovyEngine.java:110) 
> ~[main/:?]
>  ... 8 more
> Caused by: org.apache.ofbiz.entity.GenericModelException: In 
> selectListIteratorByCondition invalid field names specified: [sendTo]
>  at 
> org.apache.ofbiz.entity.datasource.GenericDAO.selectListIteratorByCondition(GenericDAO.java:656)
>  ~[main/:?]
>  at 
> org.apache.ofbiz.entity.datasource.GenericHelperDAO.findListIteratorByCondition(GenericHelperDAO.java:155)
>  ~[main/:?]
>  at org.apache.ofbiz.entity.GenericDelegator.find(GenericDelegator.java:1600) 
> ~[main/:?]
>  at 
> org.apache.ofbiz.entity.util.EntityQuery.queryIterator(EntityQuery.java:389) 
> ~[main/:?]
>  at 
> org.apache.ofbiz.entity.util.EntityQuery.getFieldList(EntityQuery.java:534) 
> ~[main/:?]
>  at org.apache.ofbiz.entity.util.EntityQuery$getFieldList$14.call(Unknown 
> Source) ~[?:?]
>  at 
> org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:47)
>  ~[groovy-2.5.11.jar:2.5.11]
>  at 
> org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:115)
>  ~[groovy-2.5.11.jar:2.5.11]
>  at 
> org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:127)
>  ~[groovy-2.5.11.jar:2.5.11]
>  at 
> ShipmentServices.sendShipmentScheduledNotification(ShipmentServices.groovy:471)
>  

[jira] [Commented] (OFBIZ-11983) Error in sendShipmentScheduledNotification service

2020-08-26 Thread Mridul Pathak (Jira)


[ 
https://issues.apache.org/jira/browse/OFBIZ-11983?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17185201#comment-17185201
 ] 

Mridul Pathak commented on OFBIZ-11983:
---

Interestingly found another error in this service while fixing this error, 
seems like this service never worked, refer stack-trace below for details,

 

2020-08-26 18:57:22,183 |OFBiz-JobQueue-0     |EmailServices                 
|E| MessagingException when creating message to [[ofbizt...@example.com, 
ofbizsupp...@example.com]] from [,ofbizt...@example.com] cc [null] bcc [null] 
subject [Scheduled Notification for Shipment 10001 for Primary Order WSCO10001]

javax.mail.internet.AddressException: Local address contains illegal character

 at javax.mail.internet.InternetAddress.checkAddress(InternetAddress.java:1368) 
~[javax.mail-1.6.2.jar:1.6.2]

 at javax.mail.internet.InternetAddress.parse(InternetAddress.java:1215) 
~[javax.mail-1.6.2.jar:1.6.2]

 at javax.mail.internet.InternetAddress.parse(InternetAddress.java:752) 
~[javax.mail-1.6.2.jar:1.6.2]

 at javax.mail.internet.InternetAddress.parse(InternetAddress.java:729) 
~[javax.mail-1.6.2.jar:1.6.2]

 at javax.mail.internet.MimeMessage.addRecipients(MimeMessage.java:714) 
~[javax.mail-1.6.2.jar:1.6.2]

 at 
org.apache.ofbiz.common.email.EmailServices.sendMail(EmailServices.java:267) 
[main/:?]

 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_144]

 at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) 
~[?:1.8.0_144]

 at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
 ~[?:1.8.0_144]

 at java.lang.reflect.Method.invoke(Method.java:498) ~[?:1.8.0_144]

 at 
org.apache.ofbiz.service.engine.StandardJavaEngine.serviceInvoker(StandardJavaEngine.java:101)
 [main/:?]

 at 
org.apache.ofbiz.service.engine.StandardJavaEngine.runSync(StandardJavaEngine.java:57)
 [main/:?]

 at 
org.apache.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:424) 
[main/:?]

 at 
org.apache.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:240) 
[main/:?]

 at 
org.apache.ofbiz.service.GenericDispatcherFactory$GenericDispatcher.runSync(GenericDispatcherFactory.java:93)
 [main/:?]

 at 
org.apache.ofbiz.common.email.NotificationServices.sendNotification(NotificationServices.java:159)
 [main/:?]

 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_144]

 at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) 
~[?:1.8.0_144]

 at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
 ~[?:1.8.0_144]

 at java.lang.reflect.Method.invoke(Method.java:498) ~[?:1.8.0_144]

 at 
org.apache.ofbiz.service.engine.StandardJavaEngine.serviceInvoker(StandardJavaEngine.java:101)
 [main/:?]

 at 
org.apache.ofbiz.service.engine.StandardJavaEngine.runSync(StandardJavaEngine.java:57)
 [main/:?]

 at 
org.apache.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:424) 
[main/:?]

 at 
org.apache.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:240) 
[main/:?]

 at 
org.apache.ofbiz.service.GenericDispatcherFactory$GenericDispatcher.runSync(GenericDispatcherFactory.java:93)
 [main/:?]

 at org.apache.ofbiz.service.LocalDispatcher$runSync$0.call(Unknown Source) 
[main/:?]

 at 
org.apache.ofbiz.service.engine.GroovyBaseScript.runService(GroovyBaseScript.groovy:50)
 [main/:?]

 at sun.reflect.GeneratedMethodAccessor328.invoke(Unknown Source) ~[?:?]

 at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
 ~[?:1.8.0_144]

 at java.lang.reflect.Method.invoke(Method.java:498) ~[?:1.8.0_144]

 at 
org.codehaus.groovy.runtime.callsite.PlainObjectMetaMethodSite.doInvoke(PlainObjectMetaMethodSite.java:43)
 [groovy-2.5.11.jar:2.5.11]

 at 
org.codehaus.groovy.runtime.callsite.PogoMetaMethodSite$PogoCachedMethodSite.invoke(PogoMetaMethodSite.java:167)
 [groovy-2.5.11.jar:2.5.11]

 at 
org.codehaus.groovy.runtime.callsite.PogoMetaMethodSite.callCurrent(PogoMetaMethodSite.java:58)
 [groovy-2.5.11.jar:2.5.11]

 at 
org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCallCurrent(CallSiteArray.java:51)
 [groovy-2.5.11.jar:2.5.11]

 at 
org.codehaus.groovy.runtime.callsite.PogoMetaMethodSite.callCurrent(PogoMetaMethodSite.java:63)
 [groovy-2.5.11.jar:2.5.11]

 at 
org.codehaus.groovy.runtime.callsite.AbstractCallSite.callCurrent(AbstractCallSite.java:176)
 [groovy-2.5.11.jar:2.5.11]

 at 
org.apache.ofbiz.service.engine.GroovyBaseScript.run(GroovyBaseScript.groovy:58)
 [main/:?]

 at org.apache.ofbiz.service.engine.GroovyBaseScript$run$0.callCurrent(Unknown 
Source) [main/:?]

 at 
org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCallCurrent(CallSiteArray.java:51)
 [groovy-2.5.11.jar:2.5.11]

 at 
org.codehaus.groovy.runtime.callsite.AbstractCallSite.callCurrent(AbstractCallSite.java:156)
 

[jira] [Commented] (OFBIZ-11983) Error in sendShipmentScheduledNotification service

2020-08-26 Thread Mridul Pathak (Jira)


[ 
https://issues.apache.org/jira/browse/OFBIZ-11983?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17185199#comment-17185199
 ] 

Mridul Pathak commented on OFBIZ-11983:
---

[~jleroux] Yes, it seems to be a typo error in minilang to groovy migration, 
also I think we need to replace sendTo by infoString here.

> Error in sendShipmentScheduledNotification service
> --
>
> Key: OFBIZ-11983
> URL: https://issues.apache.org/jira/browse/OFBIZ-11983
> Project: OFBiz
>  Issue Type: Bug
>  Components: product/facility
>Affects Versions: Trunk
>Reporter: Mridul Pathak
>Assignee: Mridul Pathak
>Priority: Minor
>
> Please refer stack-trace below,
> {noformat}
> 2020-08-26 18:15:20,543 |OFBiz-JobQueue-0     |ServiceDispatcher             
> |T| [[Sync service failed...- total:0.0,since last(Begin):0.0]] - 'facility / 
> sendShipmentScheduledNotification'
> 2020-08-26 18:15:20,549 |OFBiz-JobQueue-0     |TransactionUtil               
> |I| Transaction rolled back
> 2020-08-26 18:15:20,549 |OFBiz-JobQueue-0     |TransactionUtil               
> |W| Not committing transaction, status is No Transaction (6)
> 2020-08-26 18:15:20,554 |OFBiz-JobQueue-0     |GenericServiceJob             
> |E| Async-Service failed.
> org.apache.ofbiz.service.GenericServiceException: Error running Groovy method 
> [sendShipmentScheduledNotification] in Groovy file 
> [component://product/groovyScripts/shipment/ShipmentServices.groovy]:  
> (org.apache.ofbiz.entity.GenericModelException: In 
> selectListIteratorByCondition invalid field names specified: [sendTo])
>  at 
> org.apache.ofbiz.service.engine.GroovyEngine.runSync(GroovyEngine.java:130) 
> ~[main/:?]
>  at 
> org.apache.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:424)
>  ~[main/:?]
>  at 
> org.apache.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:240)
>  ~[main/:?]
>  at 
> org.apache.ofbiz.service.GenericDispatcherFactory$GenericDispatcher.runSync(GenericDispatcherFactory.java:93)
>  ~[main/:?]
>  at 
> org.apache.ofbiz.service.job.GenericServiceJob.exec(GenericServiceJob.java:70)
>  [main/:?]
>  at org.apache.ofbiz.service.job.AbstractJob.run(AbstractJob.java:87) 
> [main/:?]
>  at 
> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
>  [?:1.8.0_144]
>  at 
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
>  [?:1.8.0_144]
>  at java.lang.Thread.run(Thread.java:748) [?:1.8.0_144]
> Caused by: org.codehaus.groovy.runtime.InvokerInvocationException: 
> org.apache.ofbiz.entity.GenericModelException: In 
> selectListIteratorByCondition invalid field names specified: [sendTo]
>  at org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:107) 
> ~[groovy-2.5.11.jar:2.5.11]
>  at groovy.lang.MetaMethod.doMethodInvoke(MetaMethod.java:323) 
> ~[groovy-2.5.11.jar:2.5.11]
>  at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1217) 
> ~[groovy-2.5.11.jar:2.5.11]
>  at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1041) 
> ~[groovy-2.5.11.jar:2.5.11]
>  at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:821) 
> ~[groovy-2.5.11.jar:2.5.11]
>  at groovy.lang.GroovyObjectSupport.invokeMethod(GroovyObjectSupport.java:44) 
> ~[groovy-2.5.11.jar:2.5.11]
>  at groovy.lang.Script.invokeMethod(Script.java:77) 
> ~[groovy-2.5.11.jar:2.5.11]
>  at 
> org.apache.ofbiz.service.engine.GroovyEngine.runSync(GroovyEngine.java:110) 
> ~[main/:?]
>  ... 8 more
> Caused by: org.apache.ofbiz.entity.GenericModelException: In 
> selectListIteratorByCondition invalid field names specified: [sendTo]
>  at 
> org.apache.ofbiz.entity.datasource.GenericDAO.selectListIteratorByCondition(GenericDAO.java:656)
>  ~[main/:?]
>  at 
> org.apache.ofbiz.entity.datasource.GenericHelperDAO.findListIteratorByCondition(GenericHelperDAO.java:155)
>  ~[main/:?]
>  at org.apache.ofbiz.entity.GenericDelegator.find(GenericDelegator.java:1600) 
> ~[main/:?]
>  at 
> org.apache.ofbiz.entity.util.EntityQuery.queryIterator(EntityQuery.java:389) 
> ~[main/:?]
>  at 
> org.apache.ofbiz.entity.util.EntityQuery.getFieldList(EntityQuery.java:534) 
> ~[main/:?]
>  at org.apache.ofbiz.entity.util.EntityQuery$getFieldList$14.call(Unknown 
> Source) ~[?:?]
>  at 
> org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:47)
>  ~[groovy-2.5.11.jar:2.5.11]
>  at 
> org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:115)
>  ~[groovy-2.5.11.jar:2.5.11]
>  at 
> org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:127)
>  ~[groovy-2.5.11.jar:2.5.11]
>  at 
> ShipmentServices.sendShipmentScheduledNotification(ShipmentServices.groovy:471)
>  ~[?:?]
>  at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) 

[jira] [Commented] (OFBIZ-11983) Error in sendShipmentScheduledNotification service

2020-08-26 Thread Jacques Le Roux (Jira)


[ 
https://issues.apache.org/jira/browse/OFBIZ-11983?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17185195#comment-17185195
 ] 

Jacques Le Roux commented on OFBIZ-11983:
-

Indeed there is no sendTo field in 
[https://localhost:8443/webtools/control/entity/find/PartyAndContactMech], part 
of OFBIZ-11462 and was before:
{code:xml}











{code}

So I guess replacing sendTo by sendToPartyId should work :)

> Error in sendShipmentScheduledNotification service
> --
>
> Key: OFBIZ-11983
> URL: https://issues.apache.org/jira/browse/OFBIZ-11983
> Project: OFBiz
>  Issue Type: Bug
>  Components: product/facility
>Affects Versions: Trunk
>Reporter: Mridul Pathak
>Assignee: Mridul Pathak
>Priority: Minor
>
> Please refer stack-trace below,
>  
> 2020-08-26 18:15:20,543 |OFBiz-JobQueue-0     |ServiceDispatcher             
> |T| [[Sync service failed...- total:0.0,since last(Begin):0.0]] - 'facility / 
> sendShipmentScheduledNotification'
> 2020-08-26 18:15:20,549 |OFBiz-JobQueue-0     |TransactionUtil               
> |I| Transaction rolled back
> 2020-08-26 18:15:20,549 |OFBiz-JobQueue-0     |TransactionUtil               
> |W| Not committing transaction, status is No Transaction (6)
> 2020-08-26 18:15:20,554 |OFBiz-JobQueue-0     |GenericServiceJob             
> |E| Async-Service failed.
> org.apache.ofbiz.service.GenericServiceException: Error running Groovy method 
> [sendShipmentScheduledNotification] in Groovy file 
> [component://product/groovyScripts/shipment/ShipmentServices.groovy]:  
> (org.apache.ofbiz.entity.GenericModelException: In 
> selectListIteratorByCondition invalid field names specified: [sendTo])
>  at 
> org.apache.ofbiz.service.engine.GroovyEngine.runSync(GroovyEngine.java:130) 
> ~[main/:?]
>  at 
> org.apache.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:424)
>  ~[main/:?]
>  at 
> org.apache.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:240)
>  ~[main/:?]
>  at 
> org.apache.ofbiz.service.GenericDispatcherFactory$GenericDispatcher.runSync(GenericDispatcherFactory.java:93)
>  ~[main/:?]
>  at 
> org.apache.ofbiz.service.job.GenericServiceJob.exec(GenericServiceJob.java:70)
>  [main/:?]
>  at org.apache.ofbiz.service.job.AbstractJob.run(AbstractJob.java:87) 
> [main/:?]
>  at 
> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
>  [?:1.8.0_144]
>  at 
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
>  [?:1.8.0_144]
>  at java.lang.Thread.run(Thread.java:748) [?:1.8.0_144]
> Caused by: org.codehaus.groovy.runtime.InvokerInvocationException: 
> org.apache.ofbiz.entity.GenericModelException: In 
> selectListIteratorByCondition invalid field names specified: [sendTo]
>  at org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:107) 
> ~[groovy-2.5.11.jar:2.5.11]
>  at groovy.lang.MetaMethod.doMethodInvoke(MetaMethod.java:323) 
> ~[groovy-2.5.11.jar:2.5.11]
>  at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1217) 
> ~[groovy-2.5.11.jar:2.5.11]
>  at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1041) 
> ~[groovy-2.5.11.jar:2.5.11]
>  at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:821) 
> ~[groovy-2.5.11.jar:2.5.11]
>  at groovy.lang.GroovyObjectSupport.invokeMethod(GroovyObjectSupport.java:44) 
> ~[groovy-2.5.11.jar:2.5.11]
>  at groovy.lang.Script.invokeMethod(Script.java:77) 
> ~[groovy-2.5.11.jar:2.5.11]
>  at 
> org.apache.ofbiz.service.engine.GroovyEngine.runSync(GroovyEngine.java:110) 
> ~[main/:?]
>  ... 8 more
> Caused by: org.apache.ofbiz.entity.GenericModelException: In 
> selectListIteratorByCondition invalid field names specified: [sendTo]
>  at 
> org.apache.ofbiz.entity.datasource.GenericDAO.selectListIteratorByCondition(GenericDAO.java:656)
>  ~[main/:?]
>  at 
> org.apache.ofbiz.entity.datasource.GenericHelperDAO.findListIteratorByCondition(GenericHelperDAO.java:155)
>  ~[main/:?]
>  at org.apache.ofbiz.entity.GenericDelegator.find(GenericDelegator.java:1600) 
> ~[main/:?]
>  at 
> org.apache.ofbiz.entity.util.EntityQuery.queryIterator(EntityQuery.java:389) 
> ~[main/:?]
>  at 
> org.apache.ofbiz.entity.util.EntityQuery.getFieldList(EntityQuery.java:534) 
> ~[main/:?]
>  at org.apache.ofbiz.entity.util.EntityQuery$getFieldList$14.call(Unknown 
> Source) ~[?:?]
>  at 
> org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:47)
>  ~[groovy-2.5.11.jar:2.5.11]
>  at 
> org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:115)
>  ~[groovy-2.5.11.jar:2.5.11]
>  at 
>