[jira] [Commented] (OFBIZ-11984) MessagingException in sendShipmentScheduledNotification service

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

[jira] [Commented] (OFBIZ-11984) MessagingException in sendShipmentScheduledNotification service

Nicolas Malin (Jira)

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

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

Commit 3cfed4c657e28f37177a32b4fc7e504b25675160 in ofbiz-framework's branch refs/heads/release17.12 from Jacques Le Roux
[ https://gitbox.apache.org/repos/asf?p=ofbiz-framework.git;h=3cfed4c ]

Fixed: MessagingException in sendShipmentScheduledNotification service (OFBIZ-11984)

This MessagingException issue is with sendFrom, please refer the the code blocks from minilang and groovy versions below,

<!-- find email address for currently logged in user, set as sendFrom -->
<entity-and entity-name="PartyAndContactMech" list="curUserPartyAndContactMechs">
    <field-map field-name="partyId" from-field="userLogin.partyId"/>
    <field-map field-name="contactMechTypeId" value="EMAIL_ADDRESS"/>
</entity-and>

<first-from-list list="curUserPartyAndContactMechs" entry="curUserPartyAndContactMech"/>
<string-append field="sendEmailMap.sendFrom" string="${curUserPartyAndContactMech.infoString}" prefix=","/>

There should not be a prefix, there is always only 1 sender
sendOrderDeliveryScheduleNotification was also affected

Thanks: Mridul Pathak for analyse


> MessagingException in sendShipmentScheduledNotification service
> ---------------------------------------------------------------
>
>                 Key: OFBIZ-11984
>                 URL: https://issues.apache.org/jira/browse/OFBIZ-11984
>             Project: OFBiz
>          Issue Type: Bug
>          Components: product/facility
>    Affects Versions: Release Branch 18.12, Release Branch 17.12, Trunk
>            Reporter: Mridul Pathak
>            Assignee: Mridul Pathak
>            Priority: Minor
>
> Please refer the stack-trace below,
> {noformat}
> 2020-08-26 18:57:22,183 |OFBiz-JobQueue-0     |EmailServices                 |E| MessagingException when creating message to [[[hidden email], [hidden email]]] from [,[hidden email]] 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) [groovy-2.5.11.jar:2.5.11]
> at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callCurrent(AbstractCallSite.java:168) [groovy-2.5.11.jar:2.5.11]
> at ShipmentServices.sendShipmentScheduledNotification(ShipmentServices.groovy:489) [script:?]
> 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.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:101) [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/:?]
> 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]
> 2020-08-26 18:57:22,187 |OFBiz-JobQueue-0     |EmailServices                 |E| Email message that could not be created to [[[hidden email], [hidden email]]] had context:
> {sendTo=[[hidden email], [hidden email]], sendVia=null, sendFrom=,[hidden email], subject=Scheduled Notification for Shipment 10001 for Primary Order WSCO10001, sendCc=null, sendBcc=null, sendType=null, locale=en, body= <html>     <head>     </head>     <body>         <div>Shipment #10001 (from primary Order #WSCO10001) has been scheduled for shipment.</div>         <div>The Estimated Ship Date is: Unknown</div>         <div>The Estimated Arrival Date is: Unknown</div>     </body> </html> , contentType=text/html}
> 2020-08-26 18:57:22,187 |OFBiz-JobQueue-0     |ServiceUtil                   |E|
> {errorMessage=MessagingException when creating message to [[hidden email], [hidden email]] from ,[hidden email] cc  bcc  subject Scheduled Notification for Shipment 10001 for Primary Order WSCO10001, responseMessage=error}
> 2020-08-26 18:57:22,187 |OFBiz-JobQueue-0     |ServiceDispatcher             |E| Error in Service [sendMail]: MessagingException when creating message to [[hidden email], [hidden email]] from ,[hidden email] cc  bcc  subject Scheduled Notification for Shipment 10001 for Primary Order WSCO10001
> {noformat}



--
This message was sent by Atlassian Jira
(v8.3.4#803005)