Email sendMail.Subject exception

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

Email sendMail.Subject exception

Kevin M. Myer-2
Hi,

I am testing a copy of OFBiz and my logs are filling up with a lot of
exceptions for email notifications.  This is somewhat odd because I
have the following set in framework/common/config/general.properties:

mail.notifications.enabled=N

The exception I am seeing is as follows:

---- exception report
--------------------------------------------------------------------------------
Service [sendMail] threw an unexpected exception/error
Exception: org.ofbiz.service.ServiceValidationException
Message:  The following required parameter is missing: [sendMail.subject]

So, first, why are email notifications being generated if I have them
disabled?  Second, if they really are being generated, how are they
being generated without a subject?  And third, for those that have
been generated, how do I delete them or purge them from wherever they
are stored so I can clean up my logs?

Thanks,
Kevin
Reply | Threaded
Open this post in threaded view
|

Re: Email sendMail.Subject exception

Scott Gray
Hi Kevin

Comments below...

Kevin M. Myer wrote:
> So, first, why are email notifications being generated if I have them
> disabled?  
This is checked during the running of the sendMail service, so the flag
hasn't been checked at the point where your error is occurring.
> Second, if they really are being generated, how are they
> being generated without a subject?  
Would need to see more of the log to figure that one.
> And third, for those that have
> been generated, how do I delete them or purge them from wherever they
> are stored so I can clean up my logs?
No idea, but I think if the error can be fixed then the system stop
retrying?

Regards
Scott
Reply | Threaded
Open this post in threaded view
|

Re: Email sendMail.Subject exception

Kevin M. Myer-2
I figured more info would probably be needed.  I've attached a log
snippet file that should include a full service run attempt.  I'm
running OFBiz in a VM on my laptop and this error is causing an almost
complete DOS to that Linux install :)

Kevin

On 12/26/06, Scott Gray <[hidden email]> wrote:

> Hi Kevin
>
> Comments below...
>
> Kevin M. Myer wrote:
> > So, first, why are email notifications being generated if I have them
> > disabled?
> This is checked during the running of the sendMail service, so the flag
> hasn't been checked at the point where your error is occurring.
> > Second, if they really are being generated, how are they
> > being generated without a subject?
> Would need to see more of the log to figure that one.
> > And third, for those that have
> > been generated, how do I delete them or purge them from wherever they
> > are stored so I can clean up my logs?
> No idea, but I think if the error can be fixed then the system stop
> retrying?
>
> Regards
> Scott
>

ofbizlog.txt (40K) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: Email sendMail.Subject exception

Scott Gray
Hi Kevin

I think I found the problem, could you try the attached patch and let us know?  Also if a committer is reading this, the patch definitely fixes a very simple bug but if you don't have time to look at it I'll post a jira tomorrow.

Thanks
Scott

Kevin M. Myer wrote:
I figured more info would probably be needed.  I've attached a log
snippet file that should include a full service run attempt.  I'm
running OFBiz in a VM on my laptop and this error is causing an almost
complete DOS to that Linux install :)

Kevin

On 12/26/06, Scott Gray [hidden email] wrote:
Hi Kevin

Comments below...

Kevin M. Myer wrote:
> So, first, why are email notifications being generated if I have them
> disabled?
This is checked during the running of the sendMail service, so the flag
hasn't been checked at the point where your error is occurring.
> Second, if they really are being generated, how are they
> being generated without a subject?
Would need to see more of the log to figure that one.
> And third, for those that have
> been generated, how do I delete them or purge them from wherever they
> are stored so I can clean up my logs?
No idea, but I think if the error can be fixed then the system stop
retrying?

Regards
Scott


2006-12-27 08:37:16,091 (default-invoker-Thread-76) [ ServiceDispatcher.java:320:ERROR] ---- exception report ---------------------------------------------------------- Incoming context (in runSync : sendMail) does not match expected requirements Exception: org.ofbiz.service.ServiceValidationException Message: The following required parameter is missing: [sendMail.subject] ---- stack trace --------------------------------------------------------------- org.ofbiz.service.ServiceValidationException: The following required parameter is missing: [sendMail.subject] org.ofbiz.service.ModelService.validate(ModelService.java:358) org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:318) org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:208) org.ofbiz.service.GenericDispatcher.runSync(GenericDispatcher.java:110) org.ofbiz.content.email.NotificationServices.sendNotification(NotificationServices.java:154) sun.reflect.GeneratedMethodAccessor25.invoke(Unknown Source) sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) java.lang.reflect.Method.invoke(Method.java:585) org.ofbiz.service.engine.StandardJavaEngine.serviceInvoker(StandardJavaEngine.java:88) org.ofbiz.service.engine.StandardJavaEngine.runSync(StandardJavaEngine.java:50) org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:334) org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:208) org.ofbiz.service.GenericDispatcher.runSync(GenericDispatcher.java:110) org.ofbiz.minilang.method.callops.CallService.exec(CallService.java:205) org.ofbiz.minilang.SimpleMethod.runSubOps(SimpleMethod.java:926) org.ofbiz.minilang.method.conditional.MasterIf.exec(MasterIf.java:73) org.ofbiz.minilang.SimpleMethod.runSubOps(SimpleMethod.java:926) org.ofbiz.minilang.SimpleMethod.exec(SimpleMethod.java:565) org.ofbiz.minilang.SimpleMethod.runSimpleMethod(SimpleMethod.java:102) org.ofbiz.minilang.SimpleMethod.runSimpleService(SimpleMethod.java:84) org.ofbiz.minilang.SimpleServiceEngine.serviceInvoker(SimpleServiceEngine.java:73) org.ofbiz.minilang.SimpleServiceEngine.runSync(SimpleServiceEngine.java:48) org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:334) org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:208) org.ofbiz.service.GenericDispatcher.runSync(GenericDispatcher.java:110) org.ofbiz.service.job.GenericServiceJob.exec(GenericServiceJob.java:67) org.ofbiz.service.job.JobInvoker.run(JobInvoker.java:218) java.lang.Thread.run(Thread.java:595) -------------------------------------------------------------------------------- 2006-12-27 08:37:16,095 (default-invoker-Thread-78) [ TransactionUtil.java:259:INFO ] [TransactionUtil.rollback] transaction rolled back 2006-12-27 08:37:16,096 (default-invoker-Thread-78) [ ServiceDispatcher.java:450:DEBUG] [[Sync service finished- total:0.194,since last(Begin):0.194]] - 'JobDispatcher / sendOrderDeliveryScheduleNotification' 2006-12-27 08:37:16,097 (default-invoker-Thread-78) [ GenericServiceJob.java:114:ERROR] ---- exception report ---------------------------------------------------------- Async-Service failed. Exception: java.lang.Exception Message: Email delivery error, see error log calling service sendGenericNotificationEmail in sendOrderDeliveryScheduleNotification ---- stack trace --------------------------------------------------------------- java.lang.Exception: Email delivery error, see error log calling service sendGenericNotificationEmail in sendOrderDeliveryScheduleNotification org.ofbiz.service.job.GenericServiceJob.exec(GenericServiceJob.java:73) org.ofbiz.service.job.JobInvoker.run(JobInvoker.java:218) java.lang.Thread.run(Thread.java:595) -------------------------------------------------------------------------------- 2006-12-27 08:37:16,101 (default-invoker-Thread-75) [ ServiceDispatcher.java:320:ERROR] ---- exception report ---------------------------------------------------------- Incoming context (in runSync : sendMail) does not match expected requirements Exception: org.ofbiz.service.ServiceValidationException Message: The following required parameter is missing: [sendMail.subject] ---- stack trace --------------------------------------------------------------- org.ofbiz.service.ServiceValidationException: The following required parameter is missing: [sendMail.subject] org.ofbiz.service.ModelService.validate(ModelService.java:358) org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:318) org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:208) org.ofbiz.service.GenericDispatcher.runSync(GenericDispatcher.java:110) org.ofbiz.content.email.NotificationServices.sendNotification(NotificationServices.java:154) sun.reflect.GeneratedMethodAccessor25.invoke(Unknown Source) sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) java.lang.reflect.Method.invoke(Method.java:585) org.ofbiz.service.engine.StandardJavaEngine.serviceInvoker(StandardJavaEngine.java:88) org.ofbiz.service.engine.StandardJavaEngine.runSync(StandardJavaEngine.java:50) org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:334) org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:208) org.ofbiz.service.GenericDispatcher.runSync(GenericDispatcher.java:110) org.ofbiz.minilang.method.callops.CallService.exec(CallService.java:205) org.ofbiz.minilang.SimpleMethod.runSubOps(SimpleMethod.java:926) org.ofbiz.minilang.method.conditional.MasterIf.exec(MasterIf.java:73) org.ofbiz.minilang.SimpleMethod.runSubOps(SimpleMethod.java:926) org.ofbiz.minilang.SimpleMethod.exec(SimpleMethod.java:565) org.ofbiz.minilang.SimpleMethod.runSimpleMethod(SimpleMethod.java:102) org.ofbiz.minilang.SimpleMethod.runSimpleService(SimpleMethod.java:84) org.ofbiz.minilang.SimpleServiceEngine.serviceInvoker(SimpleServiceEngine.java:73) org.ofbiz.minilang.SimpleServiceEngine.runSync(SimpleServiceEngine.java:48) org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:334) org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:208) org.ofbiz.service.GenericDispatcher.runSync(GenericDispatcher.java:110) org.ofbiz.service.job.GenericServiceJob.exec(GenericServiceJob.java:67) org.ofbiz.service.job.JobInvoker.run(JobInvoker.java:218) java.lang.Thread.run(Thread.java:595) -------------------------------------------------------------------------------- 2006-12-27 08:37:16,102 (default-invoker-Thread-75) [ ServiceDispatcher.java:380:DEBUG] [[Sync service failed...- total:0.0,since last(Begin):0.0]] - 'JobDispatcher / sendMail' 2006-12-27 08:37:16,104 (default-invoker-Thread-75) [ ServiceDispatcher.java:383:ERROR] ---- exception report ---------------------------------------------------------- Service [sendMail] threw an unexpected exception/error Exception: org.ofbiz.service.ServiceValidationException Message: The following required parameter is missing: [sendMail.subject] ---- stack trace --------------------------------------------------------------- org.ofbiz.service.ServiceValidationException: The following required parameter is missing: [sendMail.subject] org.ofbiz.service.ModelService.validate(ModelService.java:358) org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:318) org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:208) org.ofbiz.service.GenericDispatcher.runSync(GenericDispatcher.java:110) org.ofbiz.content.email.NotificationServices.sendNotification(NotificationServices.java:154) sun.reflect.GeneratedMethodAccessor25.invoke(Unknown Source) sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) java.lang.reflect.Method.invoke(Method.java:585) org.ofbiz.service.engine.StandardJavaEngine.serviceInvoker(StandardJavaEngine.java:88) org.ofbiz.service.engine.StandardJavaEngine.runSync(StandardJavaEngine.java:50) org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:334) org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:208) org.ofbiz.service.GenericDispatcher.runSync(GenericDispatcher.java:110) org.ofbiz.minilang.method.callops.CallService.exec(CallService.java:205) org.ofbiz.minilang.SimpleMethod.runSubOps(SimpleMethod.java:926) org.ofbiz.minilang.method.conditional.MasterIf.exec(MasterIf.java:73) org.ofbiz.minilang.SimpleMethod.runSubOps(SimpleMethod.java:926) org.ofbiz.minilang.SimpleMethod.exec(SimpleMethod.java:565) org.ofbiz.minilang.SimpleMethod.runSimpleMethod(SimpleMethod.java:102) org.ofbiz.minilang.SimpleMethod.runSimpleService(SimpleMethod.java:84) org.ofbiz.minilang.SimpleServiceEngine.serviceInvoker(SimpleServiceEngine.java:73) org.ofbiz.minilang.SimpleServiceEngine.runSync(SimpleServiceEngine.java:48) org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:334) org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:208) org.ofbiz.service.GenericDispatcher.runSync(GenericDispatcher.java:110) org.ofbiz.service.job.GenericServiceJob.exec(GenericServiceJob.java:67) org.ofbiz.service.job.JobInvoker.run(JobInvoker.java:218) java.lang.Thread.run(Thread.java:595) -------------------------------------------------------------------------------- 2006-12-27 08:37:16,106 (default-invoker-Thread-75) [ TransactionUtil.java:282:WARN ] ---- exception report ---------------------------------------------------------- [TransactionUtil.setRollbackOnly] Calling transaction setRollbackOnly; this stack trace shows where this is happening: Exception: java.lang.Exception Message: Service [sendMail] threw an unexpected exception/error ---- stack trace --------------------------------------------------------------- java.lang.Exception: Service [sendMail] threw an unexpected exception/error org.ofbiz.entity.transaction.TransactionUtil.setRollbackOnly(TransactionUtil.java:282) org.ofbiz.entity.transaction.TransactionUtil.rollback(TransactionUtil.java:232) org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:386) org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:208) org.ofbiz.service.GenericDispatcher.runSync(GenericDispatcher.java:110) org.ofbiz.content.email.NotificationServices.sendNotification(NotificationServices.java:154) sun.reflect.GeneratedMethodAccessor25.invoke(Unknown Source) sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) java.lang.reflect.Method.invoke(Method.java:585) org.ofbiz.service.engine.StandardJavaEngine.serviceInvoker(StandardJavaEngine.java:88) org.ofbiz.service.engine.StandardJavaEngine.runSync(StandardJavaEngine.java:50) org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:334) org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:208) org.ofbiz.service.GenericDispatcher.runSync(GenericDispatcher.java:110) org.ofbiz.minilang.method.callops.CallService.exec(CallService.java:205) org.ofbiz.minilang.SimpleMethod.runSubOps(SimpleMethod.java:926) org.ofbiz.minilang.method.conditional.MasterIf.exec(MasterIf.java:73) org.ofbiz.minilang.SimpleMethod.runSubOps(SimpleMethod.java:926) org.ofbiz.minilang.SimpleMethod.exec(SimpleMethod.java:565) org.ofbiz.minilang.SimpleMethod.runSimpleMethod(SimpleMethod.java:102) org.ofbiz.minilang.SimpleMethod.runSimpleService(SimpleMethod.java:84) org.ofbiz.minilang.SimpleServiceEngine.serviceInvoker(SimpleServiceEngine.java:73) org.ofbiz.minilang.SimpleServiceEngine.runSync(SimpleServiceEngine.java:48) org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:334) org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:208) org.ofbiz.service.GenericDispatcher.runSync(GenericDispatcher.java:110) org.ofbiz.service.job.GenericServiceJob.exec(GenericServiceJob.java:67) org.ofbiz.service.job.JobInvoker.run(JobInvoker.java:218) java.lang.Thread.run(Thread.java:595) -------------------------------------------------------------------------------- 2006-12-27 08:37:16,107 (default-invoker-Thread-75) [NotificationServices.java:160:ERROR] ---- exception report ---------------------------------------------------------- Error sending email Exception: org.ofbiz.service.ServiceValidationException Message: The following required parameter is missing: [sendMail.subject] ---- stack trace --------------------------------------------------------------- org.ofbiz.service.ServiceValidationException: The following required parameter is missing: [sendMail.subject] org.ofbiz.service.ModelService.validate(ModelService.java:358) org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:318) org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:208) org.ofbiz.service.GenericDispatcher.runSync(GenericDispatcher.java:110) org.ofbiz.content.email.NotificationServices.sendNotification(NotificationServices.java:154) sun.reflect.GeneratedMethodAccessor25.invoke(Unknown Source) sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) java.lang.reflect.Method.invoke(Method.java:585) org.ofbiz.service.engine.StandardJavaEngine.serviceInvoker(StandardJavaEngine.java:88) org.ofbiz.service.engine.StandardJavaEngine.runSync(StandardJavaEngine.java:50) org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:334) org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:208) org.ofbiz.service.GenericDispatcher.runSync(GenericDispatcher.java:110) org.ofbiz.minilang.method.callops.CallService.exec(CallService.java:205) org.ofbiz.minilang.SimpleMethod.runSubOps(SimpleMethod.java:926) org.ofbiz.minilang.method.conditional.MasterIf.exec(MasterIf.java:73) org.ofbiz.minilang.SimpleMethod.runSubOps(SimpleMethod.java:926) org.ofbiz.minilang.SimpleMethod.exec(SimpleMethod.java:565) org.ofbiz.minilang.SimpleMethod.runSimpleMethod(SimpleMethod.java:102) org.ofbiz.minilang.SimpleMethod.runSimpleService(SimpleMethod.java:84) org.ofbiz.minilang.SimpleServiceEngine.serviceInvoker(SimpleServiceEngine.java:73) org.ofbiz.minilang.SimpleServiceEngine.runSync(SimpleServiceEngine.java:48) org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:334) org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:208) org.ofbiz.service.GenericDispatcher.runSync(GenericDispatcher.java:110) org.ofbiz.service.job.GenericServiceJob.exec(GenericServiceJob.java:67) org.ofbiz.service.job.JobInvoker.run(JobInvoker.java:218) java.lang.Thread.run(Thread.java:595) -------------------------------------------------------------------------------- 2006-12-27 08:37:16,108 (default-invoker-Thread-75) [ ServiceDispatcher.java:406:ERROR] Service Error [sendGenericNotificationEmail]: Email delivery error, see error log 2006-12-27 08:37:16,111 (default-invoker-Thread-76) [ ServiceDispatcher.java:380:DEBUG] [[Sync service failed...- total:0.019,since last(Begin):0.019]] - 'JobDispatcher / sendMail' 2006-12-27 08:37:16,113 (default-invoker-Thread-76) [ ServiceDispatcher.java:383:ERROR] ---- exception report ---------------------------------------------------------- Service [sendMail] threw an unexpected exception/error Exception: org.ofbiz.service.ServiceValidationException Message: The following required parameter is missing: [sendMail.subject] ---- stack trace --------------------------------------------------------------- org.ofbiz.service.ServiceValidationException: The following required parameter is missing: [sendMail.subject] org.ofbiz.service.ModelService.validate(ModelService.java:358) org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:318) org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:208) org.ofbiz.service.GenericDispatcher.runSync(GenericDispatcher.java:110) org.ofbiz.content.email.NotificationServices.sendNotification(NotificationServices.java:154) sun.reflect.GeneratedMethodAccessor25.invoke(Unknown Source) sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) java.lang.reflect.Method.invoke(Method.java:585) org.ofbiz.service.engine.StandardJavaEngine.serviceInvoker(StandardJavaEngine.java:88) org.ofbiz.service.engine.StandardJavaEngine.runSync(StandardJavaEngine.java:50) org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:334) org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:208) org.ofbiz.service.GenericDispatcher.runSync(GenericDispatcher.java:110) org.ofbiz.minilang.method.callops.CallService.exec(CallService.java:205) org.ofbiz.minilang.SimpleMethod.runSubOps(SimpleMethod.java:926) org.ofbiz.minilang.method.conditional.MasterIf.exec(MasterIf.java:73) org.ofbiz.minilang.SimpleMethod.runSubOps(SimpleMethod.java:926) org.ofbiz.minilang.SimpleMethod.exec(SimpleMethod.java:565) org.ofbiz.minilang.SimpleMethod.runSimpleMethod(SimpleMethod.java:102) org.ofbiz.minilang.SimpleMethod.runSimpleService(SimpleMethod.java:84) org.ofbiz.minilang.SimpleServiceEngine.serviceInvoker(SimpleServiceEngine.java:73) org.ofbiz.minilang.SimpleServiceEngine.runSync(SimpleServiceEngine.java:48) org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:334) org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:208) org.ofbiz.service.GenericDispatcher.runSync(GenericDispatcher.java:110) org.ofbiz.service.job.GenericServiceJob.exec(GenericServiceJob.java:67) org.ofbiz.service.job.JobInvoker.run(JobInvoker.java:218) java.lang.Thread.run(Thread.java:595) -------------------------------------------------------------------------------- 2006-12-27 08:37:16,114 (default-invoker-Thread-76) [ TransactionUtil.java:282:WARN ] ---- exception report ---------------------------------------------------------- [TransactionUtil.setRollbackOnly] Calling transaction setRollbackOnly; this stack trace shows where this is happening: Exception: java.lang.Exception Message: Service [sendMail] threw an unexpected exception/error ---- stack trace --------------------------------------------------------------- java.lang.Exception: Service [sendMail] threw an unexpected exception/error org.ofbiz.entity.transaction.TransactionUtil.setRollbackOnly(TransactionUtil.java:282) org.ofbiz.entity.transaction.TransactionUtil.rollback(TransactionUtil.java:232) org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:386) org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:208) org.ofbiz.service.GenericDispatcher.runSync(GenericDispatcher.java:110) org.ofbiz.content.email.NotificationServices.sendNotification(NotificationServices.java:154) sun.reflect.GeneratedMethodAccessor25.invoke(Unknown Source) sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) java.lang.reflect.Method.invoke(Method.java:585) org.ofbiz.service.engine.StandardJavaEngine.serviceInvoker(StandardJavaEngine.java:88) org.ofbiz.service.engine.StandardJavaEngine.runSync(StandardJavaEngine.java:50) org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:334) org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:208) org.ofbiz.service.GenericDispatcher.runSync(GenericDispatcher.java:110) org.ofbiz.minilang.method.callops.CallService.exec(CallService.java:205) org.ofbiz.minilang.SimpleMethod.runSubOps(SimpleMethod.java:926) org.ofbiz.minilang.method.conditional.MasterIf.exec(MasterIf.java:73) org.ofbiz.minilang.SimpleMethod.runSubOps(SimpleMethod.java:926) org.ofbiz.minilang.SimpleMethod.exec(SimpleMethod.java:565) org.ofbiz.minilang.SimpleMethod.runSimpleMethod(SimpleMethod.java:102) org.ofbiz.minilang.SimpleMethod.runSimpleService(SimpleMethod.java:84) org.ofbiz.minilang.SimpleServiceEngine.serviceInvoker(SimpleServiceEngine.java:73) org.ofbiz.minilang.SimpleServiceEngine.runSync(SimpleServiceEngine.java:48) org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:334) org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:208) org.ofbiz.service.GenericDispatcher.runSync(GenericDispatcher.java:110) org.ofbiz.service.job.GenericServiceJob.exec(GenericServiceJob.java:67) org.ofbiz.service.job.JobInvoker.run(JobInvoker.java:218) java.lang.Thread.run(Thread.java:595) -------------------------------------------------------------------------------- 2006-12-27 08:37:16,115 (default-invoker-Thread-76) [NotificationServices.java:160:ERROR] ---- exception report ---------------------------------------------------------- Error sending email Exception: org.ofbiz.service.ServiceValidationException Message: The following required parameter is missing: [sendMail.subject] ---- stack trace --------------------------------------------------------------- org.ofbiz.service.ServiceValidationException: The following required parameter is missing: [sendMail.subject] org.ofbiz.service.ModelService.validate(ModelService.java:358) org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:318) org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:208) org.ofbiz.service.GenericDispatcher.runSync(GenericDispatcher.java:110) org.ofbiz.content.email.NotificationServices.sendNotification(NotificationServices.java:154) sun.reflect.GeneratedMethodAccessor25.invoke(Unknown Source) sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) java.lang.reflect.Method.invoke(Method.java:585) org.ofbiz.service.engine.StandardJavaEngine.serviceInvoker(StandardJavaEngine.java:88) org.ofbiz.service.engine.StandardJavaEngine.runSync(StandardJavaEngine.java:50) org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:334) org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:208) org.ofbiz.service.GenericDispatcher.runSync(GenericDispatcher.java:110) org.ofbiz.minilang.method.callops.CallService.exec(CallService.java:205) org.ofbiz.minilang.SimpleMethod.runSubOps(SimpleMethod.java:926) org.ofbiz.minilang.method.conditional.MasterIf.exec(MasterIf.java:73) org.ofbiz.minilang.SimpleMethod.runSubOps(SimpleMethod.java:926) org.ofbiz.minilang.SimpleMethod.exec(SimpleMethod.java:565) org.ofbiz.minilang.SimpleMethod.runSimpleMethod(SimpleMethod.java:102) org.ofbiz.minilang.SimpleMethod.runSimpleService(SimpleMethod.java:84) org.ofbiz.minilang.SimpleServiceEngine.serviceInvoker(SimpleServiceEngine.java:73) org.ofbiz.minilang.SimpleServiceEngine.runSync(SimpleServiceEngine.java:48) org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:334) org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:208) org.ofbiz.service.GenericDispatcher.runSync(GenericDispatcher.java:110) org.ofbiz.service.job.GenericServiceJob.exec(GenericServiceJob.java:67) org.ofbiz.service.job.JobInvoker.run(JobInvoker.java:218) java.lang.Thread.run(Thread.java:595) -------------------------------------------------------------------------------- 2006-12-27 08:37:16,116 (default-invoker-Thread-76) [ ServiceDispatcher.java:406:ERROR] Service Error [sendGenericNotificationEmail]: Email delivery error, see error log 2006-12-27 08:37:16,117 (default-invoker-Thread-76) [ TransactionUtil.java:286:INFO ] [TransactionUtil.setRollbackOnly] transaction rollback only not set, rollback only is already set. 2006-12-27 08:37:16,117 (default-invoker-Thread-76) [ ServiceDispatcher.java:450:DEBUG] [[Sync service finished- total:0.029,since last(Begin):0.029]] - 'JobDispatcher / sendGenericNotificationEmail' 2006-12-27 08:37:16,118 (default-invoker-Thread-76) [ TransactionUtil.java:286:INFO ] [TransactionUtil.setRollbackOnly] transaction rollback only not set, rollback only is already set. 2006-12-27 08:37:16,119 (default-invoker-Thread-76) [ ServiceDispatcher.java:406:ERROR] Service Error [sendOrderDeliveryScheduleNotification]: Email delivery error, see error log calling service sendGenericNotificationEmail in sendOrderDeliveryScheduleNotification 2006-12-27 08:37:16,120 (default-invoker-Thread-76) [ TransactionUtil.java:249:ERROR] ---- exception report ---------------------------------------------------------- [TransactionUtil.rollback] Exception: java.lang.Exception Message: Stack Trace ---- stack trace --------------------------------------------------------------- java.lang.Exception: Stack Trace org.ofbiz.entity.transaction.TransactionUtil.rollback(TransactionUtil.java:248) org.ofbiz.entity.transaction.TransactionUtil.rollback(TransactionUtil.java:230) org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:410) org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:208) org.ofbiz.service.GenericDispatcher.runSync(GenericDispatcher.java:110) org.ofbiz.service.job.GenericServiceJob.exec(GenericServiceJob.java:67) org.ofbiz.service.job.JobInvoker.run(JobInvoker.java:218) java.lang.Thread.run(Thread.java:595) -------------------------------------------------------------------------------- 2006-12-27 08:37:16,123 (default-invoker-Thread-82) [ Log.java:91 :INFO ] Sending generic notification email (if all info is in place): [[hidden email], [hidden email], contentType=text/html, templateName=default/OrderDeliveryUpdatedNotice.ftl, templateData=[orderDeliverySchedule=[GenericEntity:OrderDeliverySchedule][cartons,null()][createdStamp,2006-12-19 09:53:13.0(java.sql.Timestamp)][createdTxStamp,2006-12-19 09:53:13.0(java.sql.Timestamp)][estimatedReadyDate,2006-12-20 09:52:53.0(java.sql.Timestamp)][lastUpdatedStamp,2006-12-19 09:53:13.0(java.sql.Timestamp)][lastUpdatedTxStamp,2006-12-19 09:53:13.0(java.sql.Timestamp)][orderId,WS10001(java.lang.String)][orderItemSeqId,_NA_(java.lang.String)][skidsPall ets,1(java.lang.Long)][statusId,ODS_SUBMITTED(java.lang.String)][totalCubicSize,1.0(java.lang.Double)][totalCubicUomId,VDRY_yd3(java.lang.String)][totalWeight,1100.0(java.lang.Double)][totalWeightUomId,WT_lb(java.lang.String)][unitsPieces,null()]]] 2006-12-27 08:37:16,127 (default-invoker-Thread-82) [ ServiceDispatcher.java:320:ERROR] ---- exception report ---------------------------------------------------------- Incoming context (in runSync :
Reply | Threaded
Open this post in threaded view
|

Re: Email sendMail.Subject exception

David E Jones-2

Thanks Scott, this is fixes in SVN rev 490667. That looks like a  
little error introduced when the conversion to use the set operation  
was done (ie switching the map and entry names).

-David


On Dec 27, 2006, at 2:08 PM, Scott Gray wrote:

> Hi Kevin
>
> I think I found the problem, could you try the attached patch and  
> let us know?  Also if a committer is reading this, the patch  
> definitely fixes a very simple bug but if you don't have time to  
> look at it I'll post a jira tomorrow.
>
> Thanks
> Scott
>
> Kevin M. Myer wrote:
>> I figured more info would probably be needed.  I've attached a log
>> snippet file that should include a full service run attempt.  I'm
>> running OFBiz in a VM on my laptop and this error is causing an  
>> almost
>> complete DOS to that Linux install :)
>>
>> Kevin
>>
>> On 12/26/06, Scott Gray <[hidden email]> wrote:
>>> Hi Kevin
>>>
>>> Comments below...
>>>
>>> Kevin M. Myer wrote:
>>> > So, first, why are email notifications being generated if I  
>>> have them
>>> > disabled?
>>> This is checked during the running of the sendMail service, so  
>>> the flag
>>> hasn't been checked at the point where your error is occurring.
>>> > Second, if they really are being generated, how are they
>>> > being generated without a subject?
>>> Would need to see more of the log to figure that one.
>>> > And third, for those that have
>>> > been generated, how do I delete them or purge them from  
>>> wherever they
>>> > are stored so I can clean up my logs?
>>> No idea, but I think if the error can be fixed then the system stop
>>> retrying?
>>>
>>> Regards
>>> Scott
>>>
>> 2006-12-27 08:37:16,091 (default-invoker-Thread-76)  
>> [ ServiceDispatcher.java:320:ERROR] ---- exception report  
>> ----------------------------------------------------------  
>> Incoming context (in runSync : sendMail) does not match expected  
>> requirements Exception:  
>> org.ofbiz.service.ServiceValidationException Message: The  
>> following required parameter is missing: [sendMail.subject] ----  
>> stack trace  
>> ---------------------------------------------------------------  
>> org.ofbiz.service.ServiceValidationException: The following  
>> required parameter is missing: [sendMail.subject]  
>> org.ofbiz.service.ModelService.validate(ModelService.java:358)  
>> org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:
>> 318) org.ofbiz.service.ServiceDispatcher.runSync
>> (ServiceDispatcher.java:208)  
>> org.ofbiz.service.GenericDispatcher.runSync(GenericDispatcher.java:
>> 110) org.ofbiz.content.email.NotificationServices.sendNotification
>> (NotificationServices.java:154)  
>> sun.reflect.GeneratedMethodAccessor25.invoke(Unknown Source)  
>> sun.reflect.DelegatingMethodAccessorImpl.invoke
>> (DelegatingMethodAccessorImpl.java:25)  
>> java.lang.reflect.Method.invoke(Method.java:585)  
>> org.ofbiz.service.engine.StandardJavaEngine.serviceInvoker
>> (StandardJavaEngine.java:88)  
>> org.ofbiz.service.engine.StandardJavaEngine.runSync
>> (StandardJavaEngine.java:50)  
>> org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:
>> 334) org.ofbiz.service.ServiceDispatcher.runSync
>> (ServiceDispatcher.java:208)  
>> org.ofbiz.service.GenericDispatcher.runSync(GenericDispatcher.java:
>> 110) org.ofbiz.minilang.method.callops.CallService.exec
>> (CallService.java:205) org.ofbiz.minilang.SimpleMethod.runSubOps
>> (SimpleMethod.java:926)  
>> org.ofbiz.minilang.method.conditional.MasterIf.exec(MasterIf.java:
>> 73) org.ofbiz.minilang.SimpleMethod.runSubOps(SimpleMethod.java:
>> 926) org.ofbiz.minilang.SimpleMethod.exec(SimpleMethod.java:565)  
>> org.ofbiz.minilang.SimpleMethod.runSimpleMethod(SimpleMethod.java:
>> 102) org.ofbiz.minilang.SimpleMethod.runSimpleService
>> (SimpleMethod.java:84)  
>> org.ofbiz.minilang.SimpleServiceEngine.serviceInvoker
>> (SimpleServiceEngine.java:73)  
>> org.ofbiz.minilang.SimpleServiceEngine.runSync
>> (SimpleServiceEngine.java:48)  
>> org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:
>> 334) org.ofbiz.service.ServiceDispatcher.runSync
>> (ServiceDispatcher.java:208)  
>> org.ofbiz.service.GenericDispatcher.runSync(GenericDispatcher.java:
>> 110) org.ofbiz.service.job.GenericServiceJob.exec
>> (GenericServiceJob.java:67) org.ofbiz.service.job.JobInvoker.run
>> (JobInvoker.java:218) java.lang.Thread.run(Thread.java:595)  
>> ------------Index: applications/order/script/org/ofbiz/order/order/
>> OrderDeliveryServices.xml
> ===================================================================
> --- applications/order/script/org/ofbiz/order/order/
> OrderDeliveryServices.xml    (revision 490565)
> +++ applications/order/script/org/ofbiz/order/order/
> OrderDeliveryServices.xml    (working copy)
> @@ -106,7 +106,7 @@
>          </iterate-map>
>
>          <!-- set subject, contentType, templateName, templateData -->
> -        <set value="Delivery Information Updated for Order #$
> {orderDeliverySchedule.orderId}" field="subject.sendEmailMap"/>
> +        <set value="Delivery Information Updated for Order #$
> {orderDeliverySchedule.orderId}" field="sendEmailMap.subject"/>
>          <if-compare field-
> name="orderDeliverySchedule.orderItemSeqId" operator="not-equals"  
> value="_NA_">
>              <string-append string=" Item #$
> {orderDeliverySchedule.orderItemSeqId}" field-name="subject" map-
> name="sendEmailMap"/>
>          </if-compare>