java.lang.AssertionError When Sending Mail Via SMTP

Still need help?

The Atlassian Community is here for you.

Ask the community


When sending mail via SMTP a java.lang.AssertionError occurs. This also happens when trying to send a test e-mail. The following error appears in the log:

2009-10-20 23:10:50,334 [ACTIVE] ExecuteThread: '2' for queue: 'weblogic.kernel.Default (self-tuning)' ERROR admin 83450x240x1 wdyn42 /secure/admin/SendTestMail.jspa [webwork.dispatcher.ServletDispatcher] Could not execute action
	at com.sun.mail.smtp.SMTPTransport.readServerResponse(
	at com.sun.mail.smtp.SMTPTransport.openServer(
	at com.sun.mail.smtp.SMTPTransport.protocolConnect(
	at javax.mail.Service.connect(
	at javax.mail.Service.connect(
	at javax.mail.Service.connect(
	at javax.mail.Transport.send0(
	at javax.mail.Transport.send(
	at alt.javax.mail.TransportImpl.send(
	at com.atlassian.mail.server.impl.SMTPMailServerImpl.send(
	at com.atlassian.jira.web.action.admin.mail.SendTestMail.doExecute(
	at webwork.action.ActionSupport.execute(
	at com.atlassian.jira.action.JiraActionSupport.execute(
	at webwork.dispatcher.GenericDispatcher.executeAction(
	at com.atlassian.jira.web.dispatcher.JiraServletDispatcher.service(


The JVM allows you enable or disable the assertions by using the flags -ea / -da. Assertions are mainly for testing purpose and should be disabled in production.


Ensure the JVM settings contain -da to disable assertions. See Setting Properties and Options on Startup for instructions.

Last modified on Jan 5, 2017

Was this helpful?

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