Thanks BJ. But I have resolved the issue. I manually ran the service storeIncomingEmail and entered "text/html" as the MimeMessageWrapper, mistaking it for MimeType. The "MaxRetries" was also set to -1 this caused the service to keep recurring and therefore it appeared as though the MCA was invoking it.
I cancelled the service and resolved some issues with my mail server and everything is now running fine. Regards, Kojo On Wed, 2009-08-05 at 08:50 -0700, BJ Freeman wrote: > ran into this when the mail server put some extra characters in > created a patch > https://issues.apache.org/jira/browse/OFBIZ-2544 > > Kojo Gambrah-Sampaney sent the following on 8/5/2009 3:39 AM: > > Hi All, > > I have enabled the JavaMail container in > > ${ofbiz-home}/framewor/base/config/ofbiz-containers.xml file. > > I then went on to setup the mca. However the following exception occurs > > when storeIncomingMail is invoked; > > > > ---- exception report > > ---------------------------------------------------------- > > [java] Incoming context (in runSync : storeIncomingEmail) does not > > match expected requirements > > [java] Exception: org.ofbiz.service.ServiceValidationException > > [java] Message: Type check failed for field > > [storeIncomingEmail.messageWrapper]; expected type is > > [org.ofbiz.service.mail.MimeMessageWrapper]; actual type is > > [java.lang.String] > > [java] ---- stack trace > > --------------------------------------------------------------- > > [java] org.ofbiz.service.ServiceValidationException: Type check > > failed for field [storeIncomingEmail.messageWrapper]; expected type is > > [org.ofbiz.service.mail.MimeMessageWrapper]; actual type is > > [java.lang.String] > > [java] > > org.ofbiz.service.ModelService.validate(ModelService.java:680) > > [java] > > org.ofbiz.service.ModelService.validate(ModelService.java:543) > > [java] > > org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:374) > > [java] > > org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:221) > > [java] > > org.ofbiz.service.GenericDispatcher.runSync(GenericDispatcher.java:159) > > [java] > > org.ofbiz.service.job.GenericServiceJob.exec(GenericServiceJob.java:69) > > [java] org.ofbiz.service.job.JobInvoker.run(JobInvoker.java:242) > > [java] java.lang.Thread.run(Thread.java:619) > > [java] > > -------------------------------------------------------------------------------- > > [java] 2009-08-05 10:16:43,061 (default-invoker-Thread-12) [ > > ServiceDispatcher.java:505:INFO ] [[Sync service failed...- > > total:0.0,since last(Begin):0.0]] - 'JobDispatcher / storeIncomingEmail' > > [java] 2009-08-05 10:16:43,063 (default-invoker-Thread-12) [ > > ServiceDispatcher.java:508:ERROR] > > [java] ---- exception report > > ---------------------------------------------------------- > > [java] Service [storeIncomingEmail] threw an unexpected > > exception/error > > [java] Exception: org.ofbiz.service.ServiceValidationException > > [java] Message: Type check failed for field > > [storeIncomingEmail.messageWrapper]; expected type is > > [org.ofbiz.service.mail.MimeMessageWrapper]; actual type is > > [java.lang.String] > > [java] ---- stack trace > > --------------------------------------------------------------- > > [java] org.ofbiz.service.ServiceValidationException: Type check > > failed for field [storeIncomingEmail.messageWrapper]; expected type is > > [org.ofbiz.service.mail.MimeMessageWrapper]; actual type is > > [java.lang.String] > > [java] > > org.ofbiz.service.ModelService.validate(ModelService.java:680) > > [java] > > org.ofbiz.service.ModelService.validate(ModelService.java:543) > > [java] > > org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:374) > > [java] > > org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:221) > > [java] > > org.ofbiz.service.GenericDispatcher.runSync(GenericDispatcher.java:159) > > [java] > > org.ofbiz.service.job.GenericServiceJob.exec(GenericServiceJob.java:69) > > [java] org.ofbiz.service.job.JobInvoker.run(JobInvoker.java:242) > > [java] java.lang.Thread.run(Thread.java:619) > > [java] > > -------------------------------------------------------------------------------- > > [java] 2009-08-05 10:16:43,063 (default-invoker-Thread-12) [ > > TransactionUtil.java:285:ERROR] > > [java] ---- exception report > > ---------------------------------------------------------- > > [java] [TransactionUtil.rollback] > > [java] Exception: java.lang.Exception > > [java] Message: Stack Trace > > [java] ---- stack trace > > --------------------------------------------------------------- > > [java] java.lang.Exception: Stack Trace > > [java] > > org.ofbiz.entity.transaction.TransactionUtil.rollback(TransactionUtil.java:284) > > [java] > > org.ofbiz.entity.transaction.TransactionUtil.rollback(TransactionUtil.java:266) > > [java] > > org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:511) > > [java] > > org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:221) > > [java] > > org.ofbiz.service.GenericDispatcher.runSync(GenericDispatcher.java:159) > > [java] > > org.ofbiz.service.job.GenericServiceJob.exec(GenericServiceJob.java:69) > > [java] org.ofbiz.service.job.JobInvoker.run(JobInvoker.java:242) > > [java] java.lang.Thread.run(Thread.java:619) > > [java] > > -------------------------------------------------------------------------------- > > [java] 2009-08-05 10:16:43,064 (default-invoker-Thread-12) [ > > TransactionUtil.java:295:INFO ] [TransactionUtil.rollback] transaction > > rolled back > > [java] 2009-08-05 10:16:43,064 (default-invoker-Thread-12) [ > > TransactionUtil.java:219:WARN ] [TransactionUtil.commit] Not committing > > transaction, status is No Transaction (6) > > [java] 2009-08-05 10:16:43,065 (default-invoker-Thread-12) [ > > GenericServiceJob.java:116:ERROR] > > > > The console however indicates that it has been able to connect to the > > email account and successfully read emails. > > I would appreciate help to resolve this issue. > > > > Regards, > > Kojo. > > >
