You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ofbiz.apache.org by Kojo Gambrah-Sampaney <kg...@gmail.com> on 2009/08/05 12:39:35 UTC

Inbound email: error invocating storeIncomingEmail

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.