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

        No work has yet been logged on 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: