Email notifications are not sent correctly

Still need help?

The Atlassian Community is here for you.

Ask the community

Symptoms

Sending a test email from the UI (Bamboo Administration - > Communication - > Mail Server) works correctly and emails are received immediately. Also, testing email notification from the command line worked fine (Ex.: $ echo test | mail -s "Testing" ssetayeshfar@atlassian.com). However, plan notifications are not working correctly and no emails are received upon failure or success of a build or other types of notification events. Following two errors show up in the logs:

2014-05-20 10:04:52,028 ERROR [AtlassianEvent::0-BAM::EVENTS:pool-3-thread-11] [SystemAuthorityThreadFactory] Uncaught exception in thread AtlassianEvent::0-BAM::EVENTS:pool-3-thread-11
java.lang.NoClassDefFoundError: Could not initialize class java.awt.Toolkit
	at java.awt.Color.<clinit>(Color.java:275)
	at cz.vutbr.web.csskit.TermColorImpl.<init>(TermColorImpl.java:30)
	at cz.vutbr.web.csskit.TermColorImpl.getColorByHash(TermColorImpl.java:88)
	......
	at com.atlassian.bamboo.security.ImpersonationHelper$1.run(ImpersonationHelper.java:52)
	at java.lang.Thread.run(Thread.java:722)
2014-05-19 10:06:21,999 ERROR [AtlassianEvent::0-BAM::EVENTS:pool-3-thread-249] [SystemAuthorityThreadFactory] Uncaught exception in thread AtlassianEvent::0-BAM::EVENTS:pool-3-thread-249
java.lang.NoClassDefFoundError: Could not initialize class cz.vutbr.web.csskit.antlr.CSSLexer
	at cz.vutbr.web.csskit.antlr.CSSParserFactory.feedLexer(CSSParserFactory.java:350)
	at cz.vutbr.web.csskit.antlr.CSSParserFactory.createParser(CSSParserFactory.java:337)
	at cz.vutbr.web.csskit.antlr.CSSParserFactory.parse(CSSParserFactory.java:227)
......
	at com.atlassian.bamboo.security.ImpersonationHelper$1.run(ImpersonationHelper.java:52)
	at java.lang.Thread.run(Thread.java:722)

Resolution

  1. Following the guidelines in this document: Configuring your system properties, stop Bamboo completely and start it with "-Djava.awt.headless=true".
  2. Upgrade Java to the latest available version (Compatible with the running Bamboo version: Supported platforms) and edit JAVA_HOME to look into the new jdk directory. A re-start is necessary to make the changes effective.
  3. Try installing the libxtst6 library, in case it's missing:

    sudo apt-get install libxtst6

    You can run a command similar to the following command to check the existence of the library:

    ldd /home/mytestone/opt/linux/oraclejdk/jdk1.7.0/jre/amd64/xawt/libmawt.so
Last modified on May 23, 2014

Was this helpful?

Yes
No
Provide feedback about this article
Powered by Confluence and Scroll Viewport.