java.lang.NullPointerException when

1. Describe your incident:
I am getting the follow error when trying to send test notifications

The Graylog server encountered an error while trying to send an email. This is the detailed error message: java.lang.NullPointerException

2. Describe your environment:

  • OS Information:
    Debian 11
  • Package Version:
    Graylog 4.3.2
  • Service logs, configurations, and environment variables:

3. What steps have you already taken to try and solve the problem?
I have made sure my gmail smtp settings are correct along with double checking the app password I have assigned and making sure the TLS is enabled and I am using the correct TLS port and not the SSL port.

EDIT: I also noticed there was another thread showing incorrect supported TLS versions but I double checked that with gmail as well.

4. How can the community help?
I have tried to setup debug logging and send emails to generate better log events other than what is posted above but I can’t seem to get it to show up in the logs. Everytime I set debug logging I get so much junk in the logs and can’t find any entries specific to the email failure.

I ended up solving this by using the from_email attribute in the conf file.

1 Like