gerrit -application错误服务器错误连接被拒绝

时间:2013-02-26 06:37:48

标签: email smtp gerrit

In gerrit,While registering with a open id(gmail) for the first time it got registered  no issues ,but when I add another user with a open id(gmail)  [settings->Contact Information->Register New Email] am getting an error like this,  
        Application error
        Server error
        Connection refused
        What kind of problem is it.My config file
        [sendemail]
            enable = true
            smtpUser = *xxxxx*@gmail.com
            smtpPass = "xxxx"
            smtpServerPort = 25
            smtpServer = 127.0.0.1
            smtpEncryption = none
            sslVerify = true
            from = MIXED***

我的错误日志是这样的             com.google.gerrit.httpd.rpc.account.AccountSecurityImpl:无法向%$%$发送电子邮件验证邮件#@@ gmail.com             com.google.gerrit.server.mail.EmailException:连接被拒绝                 在com.google.gerrit.server.mail.SmtpEmailSender.open(SmtpEmailSender.java:245)                 在com.google.gerrit.server.mail.SmtpEmailSender.send(SmtpEmailSender.java:152)                 在com.google.gerrit.server.mail.OutgoingEmail.send(OutgoingEmail.java:116)                 在com.google.gerrit.httpd.rpc.account.AccountSecurityImpl.registerEmail(AccountSecurityImpl.java:311)                 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)                 at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)                 at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)                 在java.lang.reflect.Method.invoke(Method.java:616)                 在com.google.gwtjsonrpc.server.MethodHandle.invoke(MethodHandle.java:91)                 在com.google.gwtjsonrpc.server.JsonServlet.doService(JsonServlet.java:382)                 在com.google.gwtjsonrpc.server.JsonServlet.service(JsonServlet.java:268)                 在javax.servlet.http.HttpServlet.service(HttpServlet.java:717)                 在com.google.inject.servlet.ServletDefinition.doService(ServletDefinition.java:216)                 在com.google.inject.servlet.ServletDefinition.service(ServletDefinition.java:141)                 在com.google.inject.servlet.ManagedServletPipeline.service(ManagedServletPipeline.java:93)                 在com.google.inject.servlet.FilterChainInvocation.doFilter(FilterChainInvocation.java:63)                 在com.google.inject.servlet.FilterDefinition.doFilter(FilterDefinition.java:134)                 在com.google.inject.servlet.FilterChainInvocation.doFilter(FilterChainInvocation.java:59)                 在com.google.inject.servlet.FilterDefinition.doFilter(FilterDefinition.java:134)                 在com.google.inject.servlet.FilterChainInvocation.doFilter(FilterChainInvocation.java:59)                 在com.google.inject.servlet.FilterDefinition.doFilter(FilterDefinition.java:134)                 在com.google.inject.servlet.FilterChainInvocation.doFilter(FilterChainInvocation.java:59)                 在com.google.gwtexpui.server.CacheControlFilter.doFilter(CacheControlFilter.java:76)                 在com.google.inject.servlet.FilterDefinition.doFilter(FilterDefinition.java:129)                 在com.google.inject.servlet.FilterChainInvocation.doFilter(FilterChainInvocation.java:59)                 在com.google.inject.servlet.FilterDefinition.doFilter(FilterDefinition.java:134)                 在com.google.inject.servlet.FilterChainInvocation.doFilter(FilterChainInvocation.java:59)                 在com.google.gerrit.httpd.RequestCleanupFilter.doFilter(RequestCleanupFilter.java:54)                 在com.google.inject.servlet.FilterDefinition.doFilter(FilterDefinition.java:129)                 在com.google.inject.servlet.FilterChainInvocation.doFilter(FilterChainInvocation.java:59)                 在com.google.inject.servlet.ManagedFilterPipeline.dispatch(ManagedFilterPipeline.java:122)                 在com.google.inject.servlet.GuiceFilter.doFilter(GuiceFilter.java:110)                 at org.eclipse.jetty.servlet.ServletHandler $ CachedChain.doFilter(ServletHandler.java:1322)                 在org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:473)                 在org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:921)                 在org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:403)                 在org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:856)                 在org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:117)                 在org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:114)                 at org.eclipse.jetty.server.handler.RequestLogHandler.handle(RequestLogHandler.java:59)                 在org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:114)                 在org.eclipse.jetty.server.Server.handle(Server.java:352)                 在org.eclipse.jetty.server.HttpConnection.handleRequest(HttpConnection.java:596)                 at org.eclipse.jetty.server.HttpConnection $ RequestHandler.content(HttpConnection.java:1069)                 在org.eclipse.jetty.http.HttpParser.parseNext(HttpParser.java:805)                 在org.eclipse.jetty.http.HttpParser.parseAvailable(HttpParser.java:218)                 在org.eclipse.jetty.server.HttpConnection.handle(HttpConnection.java:426)                 在org.eclipse.jetty.io.nio.SelectChannelEndPoint.handle(SelectChannelEndPoint.java:510)                 在org.eclipse.jetty.io.nio.SelectChannelEndPoint.access $ 000(SelectChannelEndPoint.java:34)                 在org.eclipse.jetty.io.nio.SelectChannelEndPoint $ 1.run(SelectChannelEndPoint.java:40)                 在org.eclipse.jetty.util.thread.QueuedThreadPool $ 2.run(QueuedThreadPool.java:450)                 在java.lang.Thread.run(Thread.java:679)             引起:java.net.ConnectException:连接被拒绝                 at java.net.PlainSocketImpl.socketConnect(Native Method)                 at java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:327)                 at java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:193)                 at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:180)                 在java.net.SocksSocketImpl.connect(SocksSocketImpl.java:384)                 在java.net.Socket.connect(Socket.java:546)                 在org.apache.commons.net.SocketClient.connect(SocketClient.java:163)                 在org.apache.commons.net.SocketClient.connect(SocketClient.java:184)                 在com.google.gerrit.server.mail.SmtpEmailSender.open(SmtpEmailSender.java:215)* /                 ... 51更多

1 个答案:

答案 0 :(得分:0)

你真的使用localhost作为smtpServer吗?看起来你的localhost不支持你正在做的事情。如果您有GMail帐户,请使用Google smtp。

我们使用以下配置,它可以正常工作:

[sendemail]
        smtpServer = smtp.gmail.com
        smtpUser = XXX@gmail.com
        smtpEncryption = ssl
        smtpPass = XXXXX