spring - java.lang.IllegalArgumentException: The 'original' message argument cannot be null -
i'm trying send email using spring. @ code: public class provider { private mailsender mailsender; private simplemailmessage message; public void setmailsender(mailsender mailsender) { this.mailsender = mailsender; } public void setmessage(simplemailmessage message) { this.message = message; } public static string gettemplatename() { return "mainlayout/layout.jsp"; } public void placeorder() { // ... * business calculations.... // ... * call collaborators persist order // create thread safe "sandbox" of message simplemailmessage msg = new simplemailmessage(this.message); msg.setto("babobka@bk.ru"); msg.settext("hello"); try { mailsender.send(msg); } catch (mailexception ex) { // log , go on system.err.println(ex.getmessage()); } } } don't know why it...