]> git.mxchange.org Git - pizzaservice-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:25:39 +0000 (00:25 +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/PizzaEmailDeliveryMessageBean.java
src/java/org/mxchange/jusercore/model/user/PizzaAdminUserSessionBean.java
src/java/org/mxchange/jusercore/model/user/PizzaUserSessionBean.java
src/java/org/mxchange/jusercore/model/user/email_address/PizzaUserEmailChangeSessionBean.java
src/java/org/mxchange/jusercore/model/user/register/PizzaUserRegistrationSessionBean.java
src/java/org/mxchange/jusercore/model/user/resendlink/PizzaResendLinkSessionBean.java

index fa4c43e43b07b618abfe36c291844f956d934e06..a1353c10eed0c37384f10aaed32e9e60b5db5ae9 100644 (file)
@@ -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();
index 68ac712942b6cdb295f86ee7e3d783ef3f3da833..34bc29bbac01a3d35eb06461df5e48f42025b885 100644 (file)
@@ -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
index 96d7058ac782a471f8cba5f9cf8e0a6c9ed41158..056491e073e23b85d84b3863da61b5a9ead6ef0b 100644 (file)
@@ -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
index 45e303ef8777aa9b18b8d37d07d7ecfc53f12ff8..2e1a706a3cb3dc7dd529b615f1cc7ba680295ce8 100644 (file)
@@ -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
index d1fd28d02a933e8d775870c2dbfb5ab37e1b3cdd..aeda1c0b8627d0358383f01c0a62b8b57c0c2950 100644 (file)
@@ -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
index 0b865279c00271dd0f5f9d6977814b7ed9b6e35d..f8198f74b378ba21bf32185e99f770fe1778556b 100644 (file)
@@ -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