From 68023c47557956f1bb67ddf69cd1660719e8774f 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 --- .../jmailee/model/delivery/PizzaEmailDeliveryMessageBean.java | 2 +- .../jusercore/model/user/PizzaAdminUserSessionBean.java | 2 +- .../org/mxchange/jusercore/model/user/PizzaUserSessionBean.java | 2 +- .../user/email_address/PizzaUserEmailChangeSessionBean.java | 2 +- .../model/user/register/PizzaUserRegistrationSessionBean.java | 2 +- .../model/user/resendlink/PizzaResendLinkSessionBean.java | 2 +- 6 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/java/org/mxchange/jmailee/model/delivery/PizzaEmailDeliveryMessageBean.java b/src/java/org/mxchange/jmailee/model/delivery/PizzaEmailDeliveryMessageBean.java index fa4c43e..a1353c1 100644 --- a/src/java/org/mxchange/jmailee/model/delivery/PizzaEmailDeliveryMessageBean.java +++ b/src/java/org/mxchange/jmailee/model/delivery/PizzaEmailDeliveryMessageBean.java @@ -68,7 +68,7 @@ public class PizzaEmailDeliveryMessageBean extends BasePizzaDatabaseBean impleme */ public PizzaEmailDeliveryMessageBean () { // Call super constructor - super("jms/pizzaservice-queue-factory", "jms/pizzaservice-email-queue"); //NOI18N + super(); // Init mailer instance this.mailer = new PizzaMailer(); diff --git a/src/java/org/mxchange/jusercore/model/user/PizzaAdminUserSessionBean.java b/src/java/org/mxchange/jusercore/model/user/PizzaAdminUserSessionBean.java index 68ac712..34bc29b 100644 --- a/src/java/org/mxchange/jusercore/model/user/PizzaAdminUserSessionBean.java +++ b/src/java/org/mxchange/jusercore/model/user/PizzaAdminUserSessionBean.java @@ -65,7 +65,7 @@ public class PizzaAdminUserSessionBean extends BasePizzaDatabaseBean implements */ public PizzaAdminUserSessionBean () { // Call super constructor - super(); + super("jms/pizzaservice-queue-factory", "jms/pizzaservice-email-queue"); //NOI18N } @Override diff --git a/src/java/org/mxchange/jusercore/model/user/PizzaUserSessionBean.java b/src/java/org/mxchange/jusercore/model/user/PizzaUserSessionBean.java index 96d7058..056491e 100644 --- a/src/java/org/mxchange/jusercore/model/user/PizzaUserSessionBean.java +++ b/src/java/org/mxchange/jusercore/model/user/PizzaUserSessionBean.java @@ -71,7 +71,7 @@ public class PizzaUserSessionBean extends BasePizzaDatabaseBean implements UserS */ public PizzaUserSessionBean () { // Call super constructor - super(); + super("jms/pizzaservice-queue-factory", "jms/pizzaservice-email-queue"); //NOI18N } @Override diff --git a/src/java/org/mxchange/jusercore/model/user/email_address/PizzaUserEmailChangeSessionBean.java b/src/java/org/mxchange/jusercore/model/user/email_address/PizzaUserEmailChangeSessionBean.java index 45e303e..2e1a706 100644 --- a/src/java/org/mxchange/jusercore/model/user/email_address/PizzaUserEmailChangeSessionBean.java +++ b/src/java/org/mxchange/jusercore/model/user/email_address/PizzaUserEmailChangeSessionBean.java @@ -57,7 +57,7 @@ public class PizzaUserEmailChangeSessionBean extends BasePizzaDatabaseBean imple */ public PizzaUserEmailChangeSessionBean () { // Call super constructor - super(); + super("jms/pizzaservice-queue-factory", "jms/pizzaservice-email-queue"); //NOI18N } @Override diff --git a/src/java/org/mxchange/jusercore/model/user/register/PizzaUserRegistrationSessionBean.java b/src/java/org/mxchange/jusercore/model/user/register/PizzaUserRegistrationSessionBean.java index d1fd28d..aeda1c0 100644 --- a/src/java/org/mxchange/jusercore/model/user/register/PizzaUserRegistrationSessionBean.java +++ b/src/java/org/mxchange/jusercore/model/user/register/PizzaUserRegistrationSessionBean.java @@ -66,7 +66,7 @@ public class PizzaUserRegistrationSessionBean extends BasePizzaDatabaseBean impl */ public PizzaUserRegistrationSessionBean () { // Call super constructor - super(); + super("jms/pizzaservice-queue-factory", "jms/pizzaservice-email-queue"); //NOI18N } @Override diff --git a/src/java/org/mxchange/jusercore/model/user/resendlink/PizzaResendLinkSessionBean.java b/src/java/org/mxchange/jusercore/model/user/resendlink/PizzaResendLinkSessionBean.java index 0b86527..f8198f7 100644 --- a/src/java/org/mxchange/jusercore/model/user/resendlink/PizzaResendLinkSessionBean.java +++ b/src/java/org/mxchange/jusercore/model/user/resendlink/PizzaResendLinkSessionBean.java @@ -64,7 +64,7 @@ public class PizzaResendLinkSessionBean extends BasePizzaDatabaseBean implements */ public PizzaResendLinkSessionBean () { // Call super constructor - super(); + super("jms/pizzaservice-queue-factory", "jms/pizzaservice-email-queue"); //NOI18N } @Override -- 2.39.5