Plugin email-confirmation com bug
24/07/2012 16:09
emailConfirmationService.sendConfirmation(cliente.email,"teste",
[from:"emaildeteste@gmail.com"])
def emailConfirmationServiceesta dentor da classe... agora quando coloco esse mesmo trecho de codigo no meu service... ele simplismente nao funciona.
emailConfirmationService.sendConfirmation("teste@teste.com.br","teste",
[from:"emaildeteste@gmail.com"])
2012-07-22 20:44:21,988 [http-bio-6060-exec-5] ERROR StackTrace - Full Stack Trace:
java.lang.NullPointerException: Cannot invoke method sendConfirmation() on null object
at br.com.udoctor.autenticar.AutenticaLoginService$$ENdwbj8K.loginAutomatico(AutenticaLoginService.groovy:16)
at br.com.udoctor.cadastro.CadastroController$$ENdwb1AW.cadastroInicialCliente(CadastroController.groovy:47)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
at java.lang.Thread.run(Thread.java:680)
new AutenticaUsuarioService().loginAutomatico(cliente)
/*mailService.sendMail {
to emailAddress
from binding.from ?: ConfigurationHolder.config.emailConfirmation.from
subject thesubject
def bodyArgs = [view:viewName, model:binding]
if (pluginName) {
bodyArgs.plugin = pluginName
}
body(bodyArgs)
}*/
sendMail {
to emailAddress
subject thesubject
body( view: viewName,
plugin: pluginName,
model:[fromAddress: binding.fromAddress, uri: binding.uri])
}
Para se registrar, clique aqui.