]> git.mxchange.org Git - jjobs-ejb.git/commitdiff
Don't cherry-pick:
authorRoland Häder <roland@mxchange.org>
Mon, 26 Jun 2017 22:17:58 +0000 (00:17 +0200)
committerRoland Häder <roland@mxchange.org>
Mon, 26 Jun 2017 22:26:36 +0000 (00:26 +0200)
- 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 <roland@mxchange.org>
src/java/org/mxchange/jmailee/model/delivery/JobsEmailDeliveryMessageBean.java
src/java/org/mxchange/jusercore/model/user/JobsAdminUserSessionBean.java
src/java/org/mxchange/jusercore/model/user/JobsUserSessionBean.java
src/java/org/mxchange/jusercore/model/user/email_address/JobsUserEmailChangeSessionBean.java
src/java/org/mxchange/jusercore/model/user/register/JobsUserRegistrationSessionBean.java
src/java/org/mxchange/jusercore/model/user/resendlink/JobsResendLinkSessionBean.java

index d4f498ecc33975f8041f5ca0294f9810116e496c..a032ca06f0883a50b045e3792b7dfa2963a2ea8c 100644 (file)
@@ -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();
index f06f0df46d27d911d0a7dad3b437847ef03f6b7f..62b9e9ace22c737e03dd3b7b73e255e4da1e017a 100644 (file)
@@ -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
index becf9a9592a5c1f83dae99446719f185d0612e7f..45ee75785c5a8d38a0a3990c504f930905920c0c 100644 (file)
@@ -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
index 4124850b121e00e5f2d62ddc0a7ae6db64922b54..238aa579571a5aca95b7c39c78e044bfee8587e3 100644 (file)
@@ -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
index 3fc5fe19c611b374cef0e829b7e4d4e936f34644..ef3b4d06b65f5015509dafa73b98b9d2662bd243 100644 (file)
@@ -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
index 74768cbba30162183e2bc96e5cc7972f77b22ed4..0b5478bbe5e7602c3795ffaf8565e8491ef02a03 100644 (file)
@@ -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