From: Roland Häder Date: Mon, 26 Jun 2017 22:17:58 +0000 (+0200) Subject: Don't cherry-pick: X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=8dd8babf18e86e4af59939e406508d60bcf966c4;p=jfinancials-mailer-ejb.git Don't cherry-pick: - need to provide email queues for these EJBs as they will attempt to call sendEmail() which would then throw a NPE: ---------------------------- Caused by: java.lang.NullPointerException at org.mxchange.jfinancials.database.BaseFinancialsDatabaseBean.sendEmail(BaseFinancialsDatabaseBean.java:555) at org.mxchange.jusercore.model.user.register.FinancialsUserRegistrationSessionBean.registerUser(FinancialsUserRegistrationSessionBean.java:208) ---------------------------- However, I will expand sendEmail() a bit to verify that the field session is really there and not run in such ugly NPE. Signed-off-by: Roland Häder --- diff --git a/src/java/org/mxchange/addressbook/mailer/model/delivery/AddressbookEmailDeliveryMessageBean.java b/src/java/org/mxchange/addressbook/mailer/model/delivery/AddressbookEmailDeliveryMessageBean.java index 97c3dc1..daa9f24 100644 --- a/src/java/org/mxchange/addressbook/mailer/model/delivery/AddressbookEmailDeliveryMessageBean.java +++ b/src/java/org/mxchange/addressbook/mailer/model/delivery/AddressbookEmailDeliveryMessageBean.java @@ -65,7 +65,7 @@ public class AddressbookEmailDeliveryMessageBean extends BaseAddressbookDatabase */ public AddressbookEmailDeliveryMessageBean () { // Call super constructor - super("jms/addressbook-queue-factory", "jms/addressbook-email-queue"); //NOI18N + super(); // Init mailer instance this.mailer = new AddressbookMailer(); diff --git a/src/java/org/mxchange/jusercore/model/user/AddressbookAdminUserSessionBean.java b/src/java/org/mxchange/jusercore/model/user/AddressbookAdminUserSessionBean.java index fa2ca78..f8e1c95 100644 --- a/src/java/org/mxchange/jusercore/model/user/AddressbookAdminUserSessionBean.java +++ b/src/java/org/mxchange/jusercore/model/user/AddressbookAdminUserSessionBean.java @@ -65,7 +65,7 @@ public class AddressbookAdminUserSessionBean extends BaseAddressbookDatabaseBean */ public AddressbookAdminUserSessionBean () { // Call super constructor - super(); + super("jms/addressbook-queue-factory", "jms/addressbook-email-queue"); //NOI18N } @Override diff --git a/src/java/org/mxchange/jusercore/model/user/AddressbookUserSessionBean.java b/src/java/org/mxchange/jusercore/model/user/AddressbookUserSessionBean.java index 6398fad..c8db69d 100644 --- a/src/java/org/mxchange/jusercore/model/user/AddressbookUserSessionBean.java +++ b/src/java/org/mxchange/jusercore/model/user/AddressbookUserSessionBean.java @@ -71,7 +71,7 @@ public class AddressbookUserSessionBean extends BaseAddressbookDatabaseBean impl */ public AddressbookUserSessionBean () { // Call super constructor - super(); + super("jms/addressbook-queue-factory", "jms/addressbook-email-queue"); //NOI18N } @Override diff --git a/src/java/org/mxchange/jusercore/model/user/email_address/AddressbookUserEmailChangeSessionBean.java b/src/java/org/mxchange/jusercore/model/user/email_address/AddressbookUserEmailChangeSessionBean.java index 8d7be2d..a3c5a46 100644 --- a/src/java/org/mxchange/jusercore/model/user/email_address/AddressbookUserEmailChangeSessionBean.java +++ b/src/java/org/mxchange/jusercore/model/user/email_address/AddressbookUserEmailChangeSessionBean.java @@ -57,7 +57,7 @@ public class AddressbookUserEmailChangeSessionBean extends BaseAddressbookDataba */ public AddressbookUserEmailChangeSessionBean () { // Call super constructor - super(); + super("jms/addressbook-queue-factory", "jms/addressbook-email-queue"); //NOI18N } @Override diff --git a/src/java/org/mxchange/jusercore/model/user/register/AddressbookUserRegistrationSessionBean.java b/src/java/org/mxchange/jusercore/model/user/register/AddressbookUserRegistrationSessionBean.java index db8585f..72315ae 100644 --- a/src/java/org/mxchange/jusercore/model/user/register/AddressbookUserRegistrationSessionBean.java +++ b/src/java/org/mxchange/jusercore/model/user/register/AddressbookUserRegistrationSessionBean.java @@ -66,7 +66,7 @@ public class AddressbookUserRegistrationSessionBean extends BaseAddressbookDatab */ public AddressbookUserRegistrationSessionBean () { // Call super constructor - super(); + super("jms/addressbook-queue-factory", "jms/addressbook-email-queue"); //NOI18N } @Override diff --git a/src/java/org/mxchange/jusercore/model/user/resendlink/AddressbookResendLinkSessionBean.java b/src/java/org/mxchange/jusercore/model/user/resendlink/AddressbookResendLinkSessionBean.java index 242fad7..1f3dfae 100644 --- a/src/java/org/mxchange/jusercore/model/user/resendlink/AddressbookResendLinkSessionBean.java +++ b/src/java/org/mxchange/jusercore/model/user/resendlink/AddressbookResendLinkSessionBean.java @@ -64,7 +64,7 @@ public class AddressbookResendLinkSessionBean extends BaseAddressbookDatabaseBea */ public AddressbookResendLinkSessionBean () { // Call super constructor - super(); + super("jms/addressbook-queue-factory", "jms/addressbook-email-queue"); //NOI18N } @Override