64位Win Server 2008上的CruiseControl

时间:2012-01-03 10:38:33

标签: windows-server-2008 cruisecontrol

我在Windows Server 2008上使用Cruise Control,我面临下一个问题 - 当我尝试发送邮件通知时出现此错误:

2012-01-03 12:25:24,821 [RemoteDelivery-1] ERROR Aspirin          - RemoteDelivery (RemoteDelivery-1).deliver(): 
javax.mail.SendFailedException: Invalid Addresses;
  nested exception is: 
    javax.mail.SendFailedException: 530 SMTP authentication is required.

    at com.sun.mail.smtp.SMTPTransport.rcptTo(SMTPTransport.java:804)
    at com.sun.mail.smtp.SMTPTransport.sendMessage(SMTPTransport.java:320)
    at org.masukomi.aspirin.core.RemoteDelivery.deliver(RemoteDelivery.java:291)
    at org.masukomi.aspirin.core.RemoteDelivery.run(RemoteDelivery.java:586)

我也遇到以下错误,我无法通过浏览器连接到仪表板。

012-01-03 12:15:23,946 [Timer-6  ] WARN  BuildLoopStatusReportTask - Failed to reach dashboard instance : http://localhost:8080/dashboard/buildloop/listener, either the dashboard has not started up or there is a network problem.
java.net.SocketTimeoutException: Read timed out
    at java.net.SocketInputStream.socketRead0(Native Method)
    at java.net.SocketInputStream.read(Unknown Source)
    at java.net.SocketInputStream.read(Unknown Source)
    at java.io.BufferedInputStream.fill(Unknown Source)
    at java.io.BufferedInputStream.read(Unknown Source)
    at org.apache.commons.httpclient.HttpParser.readRawLine(HttpParser.java:77)
    at org.apache.commons.httpclient.HttpParser.readLine(HttpParser.java:105)
    at org.apache.commons.httpclient.HttpConnection.readLine(HttpConnection.java:1115)
    at org.apache.commons.httpclient.HttpMethodBase.readStatusLine(HttpMethodBase.java:1832)
    at org.apache.commons.httpclient.HttpMethodBase.readResponse(HttpMethodBase.java:1590)
    at org.apache.commons.httpclient.HttpMethodBase.execute(HttpMethodBase.java:995)
    at org.apache.commons.httpclient.HttpMethodDirector.executeWithRetry(HttpMethodDirector.java:397)
    at org.apache.commons.httpclient.HttpMethodDirector.executeMethod(HttpMethodDirector.java:170)
    at org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:396)
    at org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:324)
    at net.sourceforge.cruisecontrol.report.BuildLoopStatusReportTask.run(BuildLoopStatusReportTask.java:90)
    at net.sourceforge.cruisecontrol.report.BuildLoopStatusReportTask.run(BuildLoopStatusReportTask.java:75)
    at java.util.TimerThread.mainLoop(Unknown Source)
    at java.util.TimerThread.run(Unknown Source)

之前我在WinXP上使用了相同的CruiseControl配置,它运行正常。但在win 2008服务器上我遇到了这些问题。请帮忙。

解: 第二个问题是通过卸载java 7和安装java 6来解决的。 第一个问题是由错误的smtphost和端口引起的。

1 个答案:

答案 0 :(得分:0)

您尝试中继邮件的SMTP服务器需要身份验证(有时称为SMTP AUTH)才能发送邮件:

  

530需要SMTP身份验证

切换到不需要身份验证的本地SMTP服务器,或使用用户名和密码配置Cruise Control进行身份验证。