javaeetutorial
  1. javaeetutorial
  2. JAVAEETUTORIAL-100

Async example doesn't always fail as described

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Minor Minor
    • Resolution: Fixed
    • Affects Version/s: 6.0.7-3
    • Fix Version/s: 6.0.7-4
    • Component/s: doc
    • Labels:
      None

      Description

      At the end of the two sections on running the async example are the following sentences:

      "If an error occurs, the status will read Encountered an error. Check the server.log file for your domain to find the cause of the error."

      If a user happens to have run the mailconnector example before they run this example, and they still have the mock-javamail JAR file in their glassfish/lib directory, the status message they see will be "javax.ejb.EJBException", and the server log stack trace will contain

      SEVERE: Error in sending message.
      WARNING: EJB5184:A system exception occurred during an invocation on EJB MailerBean, method: public java.util.concurrent.Future async.ejb.MailerBean.sendMessage(java.lang.String)
      WARNING: javax.ejb.EJBException
      ...
      Caused by: java.lang.NullPointerException
      at async.ejb.MailerBean.sendMessage(MailerBean.java:63)

      I don't know if this belongs in the tutorial itself or in the FAQ – probably the latter?

        Activity

        Hide
        Kim Haase added a comment -

        Made fix in Epic and Frame versions of connector example chapter.

        Show
        Kim Haase added a comment - Made fix in Epic and Frame versions of connector example chapter.
        Hide
        Kim Haase added a comment -

        Assigning to myself for doc fix.

        Show
        Kim Haase added a comment - Assigning to myself for doc fix.
        Hide
        Kim Haase added a comment -

        I went ahead and made the documentation fix for the connector example as part of this issue.

        Show
        Kim Haase added a comment - I went ahead and made the documentation fix for the connector example as part of this issue.
        Hide
        Ian Evans added a comment -

        Sure. Go ahead and reopen it and reassign.

        Show
        Ian Evans added a comment - Sure. Go ahead and reopen it and reassign.
        Hide
        Kim Haase added a comment -

        > Does the mailconnector example section need instructions on this as well?

        Yes, we should add something at the end about removing it and restarting GlassFish just in case. Shall I do it as part of this issue?

        Show
        Kim Haase added a comment - > Does the mailconnector example section need instructions on this as well? Yes, we should add something at the end about removing it and restarting GlassFish just in case. Shall I do it as part of this issue?

          People

          • Assignee:
            Kim Haase
            Reporter:
            Kim Haase
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: