Good morning everyone

Context: email archive:
https://www.mail-archive.com/user@ofbiz.apache.org/msg02034.html#
documents discussion of the issue between BJ Freeman , Rohit and Guido.



I'm using version 18.12.08 and have encountered an issue in setting up
incoming email specifically around creating a service schedule as it asks
for a mmeMessageWrapper in the UI.

I've tried creating the schedule with xml:

    <TemporalExpression tempExprId="READEMAIL" tempExprTypeId="FREQUENCY"
description="Every 15 Minutes" integer1="12" integer2="15"/>
    <JobSandbox jobId="READEMAIL" jobName="Read Email" runTime="2000-01-01
00:00:00.000" serviceName="storeIncomingEmail" poolId="pool"
runAsUser="system" tempExprId="READEMAIL" maxRecurrenceCount="-1"/>

but encounter the following error in the log which relates to the same
missing message wrapper:

2023-08-27 10:36:32,933 |OFBiz-JobQueue-1     |PersistedServiceJob
  |I| Job  [Read Email] Id [75956] -- Next runtime: Sun Aug 27 10:51:32 WIB
2023
2023-08-27 10:36:32,934 |OFBiz-JobQueue-1     |ModelService
 |E| [ModelService.validate] : {storeIncomingEmail} : (IN) Required test
error: org.apache.ofbiz.service.ServiceValidationException: The following
required parameter is missing: [IN] [storeIncomingEmail.messageWrapper]
2023-08-27 10:36:32,934 |OFBiz-JobQueue-1     |ServiceDispatcher
  |E| Incoming context (in runSync : storeIncomingEmail) does not match
expected requirements
org.apache.ofbiz.service.ServiceValidationException: The following required
parameter is missing: [IN] [storeIncomingEmail.messageWrapper]
        at
org.apache.ofbiz.service.ModelService.validate(ModelService.java:679)
~[ofbiz.jar:?]
        at
org.apache.ofbiz.service.ModelService.validate(ModelService.java:597)
~[ofbiz.jar:?]
        at
org.apache.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:395)
~[ofbiz.jar:?]
        at
org.apache.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:240)
~[ofbiz.jar:?]
        at
org.apache.ofbiz.service.GenericDispatcherFactory$GenericDispatcher.runSync(GenericDispatcherFactory.java:88)
~[ofbiz.jar:?]
        at
org.apache.ofbiz.service.job.GenericServiceJob.exec(GenericServiceJob.java:70)
~[ofbiz.jar:?]
        at
org.apache.ofbiz.service.job.AbstractJob.run(AbstractJob.java:87)
~[ofbiz.jar:?]
        at
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
~[?:1.8.0_362]
        at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
~[?:1.8.0_362]
        at java.lang.Thread.run(Thread.java:750) ~[?:1.8.0_362]
2023-08-27 10:36:32,935 |OFBiz-JobQueue-1     |ServiceDispatcher
  |T| [[Sync service failed...- total:0.0,since last(Begin):0.0]] -
'default / storeIncomingEmail'
2023-08-27 10:36:32,936 |OFBiz-JobQueue-1     |TransactionUtil
  |I| Transaction rolled back
2023-08-27 10:36:32,936 |OFBiz-JobQueue-1     |TransactionUtil
  |W| Not committing transaction, status is No Transaction (6)
2023-08-27 10:36:32,936 |OFBiz-JobQueue-1     |GenericServiceJob
  |E| Async-Service failed.
org.apache.ofbiz.service.ServiceValidationException: The following required
parameter is missing: [IN] [storeIncomingEmail.messageWrapper]
        at
org.apache.ofbiz.service.ModelService.validate(ModelService.java:679)
~[ofbiz.jar:?]
        at
org.apache.ofbiz.service.ModelService.validate(ModelService.java:597)
~[ofbiz.jar:?]
        at
org.apache.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:395)
~[ofbiz.jar:?]
        at
org.apache.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:240)
~[ofbiz.jar:?]
        at
org.apache.ofbiz.service.GenericDispatcherFactory$GenericDispatcher.runSync(GenericDispatcherFactory.java:88)
~[ofbiz.jar:?]
        at
org.apache.ofbiz.service.job.GenericServiceJob.exec(GenericServiceJob.java:70)
~[ofbiz.jar:?]
        at
org.apache.ofbiz.service.job.AbstractJob.run(AbstractJob.java:87)
~[ofbiz.jar:?]
        at
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
~[?:1.8.0_362]
        at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
~[?:1.8.0_362]
        at java.lang.Thread.run(Thread.java:750) ~[?:1.8.0_362]


I suspect I've missed a critical step in the set up.  Any help /
documentation in setting up incoming email to resolve this would be
appreciated.

thanks and kind regards

Ernest

Reply via email to