Добавлю 5 копеек.
В случае если указывать null вместо e-mail'а
Код:
new RunTaskDataManager( con ).addTask( new Recalculator( NPAY_MID, dateTask, "null", serviceSet, Integer.toString(cid), "" ) );
при смене тарифа временами может выскочить ошибка в scheduler.error.log
Код:
scheduler 07-17/21:07:14 ERROR [pool-1-thread-4] LoggingPrintStream - javax.mail.SendFailedException: Invalid Addresses;
nested exception is:
com.sun.mail.smtp.SMTPAddressFailedException: 553-5.1.2 We weren't able to find the recipient domain. Please check for any
553-5.1.2 spelling errors, and make sure you didn't enter any spaces, periods,
553 5.1.2 or other punctuation after the recipient's email address. gv8sm19401803lab.14
scheduler 07-17/21:07:14 ERROR [pool-1-thread-4] LoggingPrintStream - at com.sun.mail.smtp.SMTPTransport.rcptTo(SMTPTransport.java:1446)
scheduler 07-17/21:07:14 ERROR [pool-1-thread-4] LoggingPrintStream - at com.sun.mail.smtp.SMTPTransport.sendMessage(SMTPTransport.java:736)
scheduler 07-17/21:07:14 ERROR [pool-1-thread-4] LoggingPrintStream - at javax.mail.Transport.send0(Transport.java:191)
scheduler 07-17/21:07:14 ERROR [pool-1-thread-4] LoggingPrintStream - at javax.mail.Transport.send(Transport.java:120)
scheduler 07-17/21:07:14 ERROR [pool-1-thread-4] LoggingPrintStream - at bitel.billing.server.util.MailMsg.sendMessage(MailMsg.java:131)
scheduler 07-17/21:07:14 ERROR [pool-1-thread-4] LoggingPrintStream - at bitel.billing.server.util.MailMsg.sendMessage(MailMsg.java:110)
scheduler 07-17/21:07:14 ERROR [pool-1-thread-4] LoggingPrintStream - at bitel.billing.server.npay.Recalculator.executeTask(Recalculator.java:69)
scheduler 07-17/21:07:14 ERROR [pool-1-thread-4] LoggingPrintStream - at bitel.billing.server.task.bean.RunTask.run(RunTask.java:41)
scheduler 07-17/21:07:14 ERROR [pool-1-thread-4] LoggingPrintStream - at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
scheduler 07-17/21:07:14 ERROR [pool-1-thread-4] LoggingPrintStream - at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
scheduler 07-17/21:07:14 ERROR [pool-1-thread-4] LoggingPrintStream - at java.lang.Thread.run(Thread.java:662)
scheduler 07-17/21:07:14 ERROR [pool-1-thread-4] LoggingPrintStream - Caused by: com.sun.mail.smtp.SMTPAddressFailedException: 553-5.1.2 We weren't able to find the recipient domain. Please check for any
553-5.1.2 spelling errors, and make sure you didn't enter any spaces, periods,
553 5.1.2 or other punctuation after the recipient's email address. gv8sm19401803lab.14
scheduler 07-17/21:07:14 ERROR [pool-1-thread-4] LoggingPrintStream - at com.sun.mail.smtp.SMTPTransport.rcptTo(SMTPTransport.java:1297)
scheduler 07-17/21:07:14 ERROR [pool-1-thread-4] LoggingPrintStream - ... 10 more
Причем e-mail меняется временами
Код:
553 5.1.2 or other punctuation after the recipient's email address. jj5sm19090830lab.1
553 5.1.2 or other punctuation after the recipient's email address. d3sm4161314lbh.3
553 5.1.2 or other punctuation after the recipient's email address. d3sm4161314lbh.3
553 5.1.2 or other punctuation after the recipient's email address. n7sm4180790lbk.10
553 5.1.2 or other punctuation after the recipient's email address. n7sm4180790lbk.10
553 5.1.2 or other punctuation after the recipient's email address. i4sm4178229lbg.17
553 5.1.2 or other punctuation after the recipient's email address. i4sm4178229lbg.17
553 5.1.2 or other punctuation after the recipient's email address. j5sm4188509lbg.1
553 5.1.2 or other punctuation after the recipient's email address. j5sm4188509lbg.1
553 5.1.2 or other punctuation after the recipient's email address. u10sm4183337lbm.14
553 5.1.2 or other punctuation after the recipient's email address. u10sm4183337lbm.14
553 5.1.2 or other punctuation after the recipient's email address. b3sm4189214lbh.6
553 5.1.2 or other punctuation after the recipient's email address. b3sm4189214lbh.6
553 5.1.2 or other punctuation after the recipient's email address. s3sm4187483lbk.11
553 5.1.2 or other punctuation after the recipient's email address. s3sm4187483lbk.11
553 5.1.2 or other punctuation after the recipient's email address. er3sm4185993lbb.16
Поменял на рабочий спам ящик - пока пусто в логе.