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 |
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 |
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 |
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 |
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> |
Free forum by Nabble | Edit this page |