From 8dd8babf18e86e4af59939e406508d60bcf966c4 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Roland=20H=C3=A4der?= Date: Tue, 27 Jun 2017 00:17:58 +0200 Subject: [PATCH] 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: MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit ---------------------------- 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 --- .../model/delivery/AddressbookEmailDeliveryMessageBean.java | 2 +- .../jusercore/model/user/AddressbookAdminUserSessionBean.java | 2 +- .../jusercore/model/user/AddressbookUserSessionBean.java | 2 +- .../email_address/AddressbookUserEmailChangeSessionBean.java | 2 +- .../user/register/AddressbookUserRegistrationSessionBean.java | 2 +- .../model/user/resendlink/AddressbookResendLinkSessionBean.java | 2 +- 6 files changed, 6 insertions(+), 6 deletions(-) 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 -- 2.39.5