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=79ce2fb692ac966e0cb90a0df691b14c0fe55864;p=jjobs-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/JobsEmailDeliveryMessageBean.java b/src/java/org/mxchange/jmailee/model/delivery/JobsEmailDeliveryMessageBean.java index d4f498e..a032ca0 100644 --- a/src/java/org/mxchange/jmailee/model/delivery/JobsEmailDeliveryMessageBean.java +++ b/src/java/org/mxchange/jmailee/model/delivery/JobsEmailDeliveryMessageBean.java @@ -67,7 +67,7 @@ public class JobsEmailDeliveryMessageBean extends BaseJobsDatabaseBean implement */ public JobsEmailDeliveryMessageBean () { // Call super constructor - super("jms/jjobs-queue-factory", "jms/jjobs-email-queue"); //NOI18N + super(); // Init mailer instance this.mailer = new JobsMailer(); diff --git a/src/java/org/mxchange/jusercore/model/user/JobsAdminUserSessionBean.java b/src/java/org/mxchange/jusercore/model/user/JobsAdminUserSessionBean.java index f06f0df..62b9e9a 100644 --- a/src/java/org/mxchange/jusercore/model/user/JobsAdminUserSessionBean.java +++ b/src/java/org/mxchange/jusercore/model/user/JobsAdminUserSessionBean.java @@ -65,7 +65,7 @@ public class JobsAdminUserSessionBean extends BaseJobsDatabaseBean implements Ad */ public JobsAdminUserSessionBean () { // Call super constructor - super(); + super("jms/jjobs-queue-factory", "jms/jjobs-email-queue"); //NOI18N } @Override diff --git a/src/java/org/mxchange/jusercore/model/user/JobsUserSessionBean.java b/src/java/org/mxchange/jusercore/model/user/JobsUserSessionBean.java index becf9a9..45ee757 100644 --- a/src/java/org/mxchange/jusercore/model/user/JobsUserSessionBean.java +++ b/src/java/org/mxchange/jusercore/model/user/JobsUserSessionBean.java @@ -71,7 +71,7 @@ public class JobsUserSessionBean extends BaseJobsDatabaseBean implements UserSes */ public JobsUserSessionBean () { // Call super constructor - super(); + super("jms/jjobs-queue-factory", "jms/jjobs-email-queue"); //NOI18N } @Override diff --git a/src/java/org/mxchange/jusercore/model/user/email_address/JobsUserEmailChangeSessionBean.java b/src/java/org/mxchange/jusercore/model/user/email_address/JobsUserEmailChangeSessionBean.java index 4124850..238aa57 100644 --- a/src/java/org/mxchange/jusercore/model/user/email_address/JobsUserEmailChangeSessionBean.java +++ b/src/java/org/mxchange/jusercore/model/user/email_address/JobsUserEmailChangeSessionBean.java @@ -57,7 +57,7 @@ public class JobsUserEmailChangeSessionBean extends BaseJobsDatabaseBean impleme */ public JobsUserEmailChangeSessionBean () { // Call super constructor - super(); + super("jms/jjobs-queue-factory", "jms/jjobs-email-queue"); //NOI18N } @Override diff --git a/src/java/org/mxchange/jusercore/model/user/register/JobsUserRegistrationSessionBean.java b/src/java/org/mxchange/jusercore/model/user/register/JobsUserRegistrationSessionBean.java index 3fc5fe1..ef3b4d0 100644 --- a/src/java/org/mxchange/jusercore/model/user/register/JobsUserRegistrationSessionBean.java +++ b/src/java/org/mxchange/jusercore/model/user/register/JobsUserRegistrationSessionBean.java @@ -66,7 +66,7 @@ public class JobsUserRegistrationSessionBean extends BaseJobsDatabaseBean implem */ public JobsUserRegistrationSessionBean () { // Call super constructor - super(); + super("jms/jjobs-queue-factory", "jms/jjobs-email-queue"); //NOI18N } @Override diff --git a/src/java/org/mxchange/jusercore/model/user/resendlink/JobsResendLinkSessionBean.java b/src/java/org/mxchange/jusercore/model/user/resendlink/JobsResendLinkSessionBean.java index 74768cb..0b5478b 100644 --- a/src/java/org/mxchange/jusercore/model/user/resendlink/JobsResendLinkSessionBean.java +++ b/src/java/org/mxchange/jusercore/model/user/resendlink/JobsResendLinkSessionBean.java @@ -64,7 +64,7 @@ public class JobsResendLinkSessionBean extends BaseJobsDatabaseBean implements R */ public JobsResendLinkSessionBean () { // Call super constructor - super(); + super("jms/jjobs-queue-factory", "jms/jjobs-email-queue"); //NOI18N } @Override