Google Appengine CRON task with spring velocityengineutil
I am t开发者_高级运维rying to write a cron task in app engine for sending emails by calling mergetemplatewithstring in spring velocityengineutils.
Unfortunately it does not throw any exception but the mail is never sent. Anyone has any pointers?
I was facing similar issues. My Cron servlet was triggered and logging indicates that it fails when the call to mergeTemplateWithStrings is called. In my case VelocityEngine was null.
I am sure that some of the java class in your code is not initialized. Cross check your code and it should work once you ensure all classes are initialized.
精彩评论