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=68023c47557956f1bb67ddf69cd1660719e8774f;p=pizzaservice-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/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