Uploaded image for project: 'James Server'
  1. James Server
  2. JAMES-318

java.lang.NullPointerException when host is unknown

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.2.0
    • Fix Version/s: 2.3.0
    • Component/s: Remote Delivery
    • Labels:
      None

      Description

      I encountered the following NullPointerException:

      18/08/04 14:29:59 INFO James.Mailet : RemoteDelivery: Unknown gateway host: unknown host
      18/08/04 14:29:59 INFO James.Mailet : RemoteDelivery: This could be a DNS server error or configuration error.
      18/08/04 14:29:59 INFO James.Mailet : RemoteDelivery: Exception caught in RemoteDelivery.run()
      java.lang.NullPointerException
      at org.apache.james.transport.mailets.RemoteDelivery.deliver(RemoteDelivery.java:409)
      at org.apache.james.transport.mailets.RemoteDelivery.run(RemoteDelivery.java:912)
      at java.lang.Thread.run(Thread.java:534)

      This is caused by logging information about a HostAddress that happens to be null.

      The HostAddress is null because I had a misconfiguration in my config.xml: a gateway server that could not be found.
      I fixed the issue for myself by entering the correct host name.

      Still, NullPointerExceptions are a bad sign.

      Also, the message seems to disappear from the queue. I can't find it in the spool directory and there is no attempt of delivery after a restart.
      In other words, I seem to observe that a message gets lost when this occurs.

        Attachments

          Activity

            People

            • Assignee:
              noel Noel J. Bergman
              Reporter:
              hes Hes Siemelink
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: