SMTP 経由でメールを送信すると java.lang.AssertionError が発生する

お困りですか?

アトラシアン コミュニティをご利用ください。

コミュニティに質問

症状

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
java.lang.AssertionError
	at com.sun.mail.smtp.SMTPTransport.readServerResponse(SMTPTransport.java:1578)
	at com.sun.mail.smtp.SMTPTransport.openServer(SMTPTransport.java:1369)
	at com.sun.mail.smtp.SMTPTransport.protocolConnect(SMTPTransport.java:412)
	at javax.mail.Service.connect(Service.java:255)
	at javax.mail.Service.connect(Service.java:134)
	at javax.mail.Service.connect(Service.java:86)
	at javax.mail.Transport.send0(Transport.java:150)
	at javax.mail.Transport.send(Transport.java:80)
	at alt.javax.mail.TransportImpl.send(TransportImpl.java:18)
	at com.atlassian.mail.server.impl.SMTPMailServerImpl.send(SMTPMailServerImpl.java:177)
	at com.atlassian.jira.web.action.admin.mail.SendTestMail.doExecute(SendTestMail.java:88)
	at webwork.action.ActionSupport.execute(ActionSupport.java:153)
	at com.atlassian.jira.action.JiraActionSupport.execute(JiraActionSupport.java:59)
	at webwork.dispatcher.GenericDispatcher.executeAction(GenericDispatcher.java:141)
	at com.atlassian.jira.web.dispatcher.JiraServletDispatcher.service(JiraServletDispatcher.java:181)

原因

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.

最終更新日: 2017 年 1 月 5 日

この内容はお役に立ちましたか?

はい
いいえ
この記事についてのフィードバックを送信する
Powered by Confluence and Scroll Viewport.