0

I am trying 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?

Drew Sears
  • 12,812
  • 1
  • 32
  • 41
retrobrain
  • 390
  • 3
  • 15
  • Are you using App Engine's support for running [cron jobs (scheduled tasks)](http://code.google.com/appengine/docs/java/config/cron.html)? – Benjamin Muschko May 06 '11 at 21:51

1 Answers1

0

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.

TechMBA
  • 16
  • 1