java.net.ConnectException: Connection refused at com.sun.mail.smtp.SMTPTransport.openServer(SMTPTra nsport.java:1282) at com.sun.mail.smtp.SMTPTransport.protocolConnect(SM TPTransport.java:370)

There are no available Samebug tips for this exception. Do you have an idea how to solve this issue? A short tip would help users who saw this issue last week.

  • Re: Prob: Sending mail externally
    via by Serge Knystautas,
  • Re: Prob: Sending mail externally
    via by Kunal Mehta,
  • h3. Summary Cloning parent issue with many sub-tasks will failed. h3. How to replicate it # Clone an issue with many sub-task in it (In my case, there are more than 1000 sub-tasks) # What I found in logs: #- {noformat} 2016-08-30 09:20:00.087303500 at java.lang.Thread.run(Thread.java:745) 2016-08-30 09:20:00.087303500 Caused by: com.sun.mail.util.MailConnectException: Couldn't connect to host, port: smtp, 25; timeout 10000; 2016-08-30 09:20:00.087304500 nested exception is: 2016-08-30 09:20:00.087304500 java.net.ConnectException: Connection refused 2016-08-30 09:20:00.087304500 at com.sun.mail.smtp.SMTPTransport.openServer(SMTPTransport.java:2118) 2016-08-30 09:20:00.087307500 at com.sun.mail.smtp.SMTPTransport.protocolConnect(SMTPTransport.java:712) 2016-08-30 09:20:00.087308500 at javax.mail.Service.connect(Service.java:366) 2016-08-30 09:20:00.087308500 at javax.mail.Service.connect(Service.java:195) 2016-08-30 09:20:00.087308500 at com.atlassian.mail.server.impl.SMTPMailServerImpl.sendWithMessageId(SMTPMailServerImpl.java:174) 2016-08-30 09:20:00.087308500 ... 24 more 2016-08-30 09:20:00.087311500 Caused by: java.net.ConnectException: Connection refused 2016-08-30 09:20:00.087312500 at java.net.PlainSocketImpl.socketConnect(Native Method) 2016-08-30 09:20:00.087316500 at java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:350) 2016-08-30 09:20:00.087317500 at java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:206) 2016-08-30 09:20:00.087317500 at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:188) 2016-08-30 09:20:00.087317500 at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392) 2016-08-30 09:20:00.087318500 at com.sun.mail.util.SocketFetcher.createSocket(SocketFetcher.java:329) 2016-08-30 09:20:00.087321500 at com.sun.mail.util.SocketFetcher.getSocket(SocketFetcher.java:238) 2016-08-30 09:20:00.087321500 at com.sun.mail.smtp.SMTPTransport.openServer(SMTPTransport.java:2084) 2016-08-30 09:20:00.087321500 ... 29 more 2016-08-30 09:20:00.088827500 2016-08-30 09:20:00,088 Sending mailitem To='a.boumelhem@necbbank.com' Subject='(T24IMPL-3593) CLONE - Create a Collateral of type Pledge of Car (both right and collateral), and link it to the limit' From='null' FromName='System Administrator (JIRA)' Cc='null' Bcc='null' ReplyTo='null' InReplyTo='<JIRA.18422.1472548183000@Atlassian.JIRA>' MimeType='text/html' Encoding='UTF-8' Multipart='javax.mail.internet.MimeMultipart@4af199' MessageId='null' ExcludeSubjectPrefix=false' ERROR anonymous Mail Queue Service [c.a.mail.queue.MailQueueImpl] Error occurred in sending e-mail: To='a.boumelhem@necbbank.com' Subject='(T24IMPL-3593) CLONE - Create a Collateral of type Pledge of Car (both right and collateral), and link it to the limit' From='null' FromName='System Administrator (JIRA)' Cc='null' Bcc='null' ReplyTo='null' InReplyTo='<JIRA.18422.1472548183000@Atlassian.JIRA>' MimeType='text/html' Encoding='UTF-8' Multipart='javax.mail.internet.MimeMultipart@4af199' MessageId='null' ExcludeSubjectPrefix=false' 2016-08-30 09:20:00.088839500 com.atlassian.mail.MailException: com.sun.mail.util.MailConnectException: Couldn't connect to host, port: smtp, 25; timeout 10000; 2016-08-30 09:20:00.088844500 nested exception is: 2016-08-30 09:20:00.088844500 java.net.ConnectException: Connection refused 2016-08-30 09:20:00.088844500 at com.atlassian.mail.server.impl.SMTPMailServerImpl.sendWithMessageId(SMTPMailServerImpl.java:214) 2016-08-30 09:20:00.088845500 at com.atlassian.mail.queue.SingleMailQueueItem.send(SingleMailQueueItem.java:44) 2016-08-30 09:20:00.088851500 at com.atlassian.mail.queue.MailQueueImpl.sendBufferUnderLock(MailQueueImpl.java:103) 2016-08-30 09:20:00.088851500 at com.atlassian.mail.queue.MailQueueImpl.sendBuffer(MailQueueImpl.java:56) 2016-08-30 09:20:00.088851500 at com.atlassian.jira.mail.JiraMailQueue.lambda$sendBuffer$0(JiraMailQueue.java:47) 2016-08-30 09:20:00.088852500 at com.atlassian.jira.util.velocity.DefaultVelocityRequestContextFactory.runWithStaticBaseUrl(DefaultVelocityRequestContextFactory.java:123) 2016-08-30 09:20:00.088855500 at com.atlassian.jira.util.DefaultBaseUrl.runWithStaticBaseUrl(DefaultBaseUrl.java:50) 2016-08-30 09:20:00.088856500 at com.atlassian.jira.mail.JiraMailQueue.sendBuffer(JiraMailQueue.java:46) 2016-08-30 09:20:00.088856500 at com.atlassian.jira.service.services.mail.MailQueueService.run(MailQueueService.java:21) 2016-08-30 09:20:00.088860500 at com.atlassian.jira.service.JiraServiceContainerImpl.run(JiraServiceContainerImpl.java:61) 2016-08-30 09:20:00.088860500 at com.atlassian.jira.service.ServiceRunner.runService(ServiceRunner.java:63) 2016-08-30 09:20:00.088861500 at com.atlassian.jira.service.ServiceRunner.runServiceId(ServiceRunner.java:44) 2016-08-30 09:20:00.088861500 at com.atlassian.jira.service.ServiceRunner.runJob(ServiceRunner.java:32) 2016-08-30 09:20:00.088861500 at com.atlassian.scheduler.core.JobLauncher.runJob(JobLauncher.java:153) 2016-08-30 09:20:00.088864500 at com.atlassian.scheduler.core.JobLauncher.launchAndBuildResponse(JobLauncher.java:118) 2016-08-30 09:20:00.088865500 at com.atlassian.scheduler.core.JobLauncher.launch(JobLauncher.java:97) 2016-08-30 09:20:00.088865500 at com.atlassian.scheduler.caesium.impl.CaesiumSchedulerService.launchJob(CaesiumSchedulerService.java:443) 2016-08-30 09:20:00.088866500 at com.atlassian.scheduler.caesium.impl.CaesiumSchedulerService.executeLocalJob(CaesiumSchedulerService.java:410) 2016-08-30 09:20:00.088869500 at com.atlassian.scheduler.caesium.impl.CaesiumSchedulerService.executeQueuedJob(CaesiumSchedulerService.java:388) 2016-08-30 09:20:00.088869500 at com.atlassian.scheduler.caesium.impl.CaesiumSchedulerService$1.consume(CaesiumSchedulerService.java:285) 2016-08-30 09:20:00.088870500 at com.atlassian.scheduler.caesium.impl.CaesiumSchedulerService$1.consume(CaesiumSchedulerService.java:282) 2016-08-30 09:20:00.088874500 at com.atlassian.scheduler.caesium.impl.SchedulerQueueWorker.executeJob(SchedulerQueueWorker.java:65) 2016-08-30 09:20:00.088874500 at com.atlassian.scheduler.caesium.impl.SchedulerQueueWorker.executeNextJob(SchedulerQueueWorker.java:59) 2016-08-30 09:20:00.088875500 at com.atlassian.scheduler.caesium.impl.SchedulerQueueWorker.run(SchedulerQueueWorker.java:34) 2016-08-30 09:20:00.088878500 at java.lang.Thread.run(Thread.java:745) 2016-08-30 09:20:00.088878500 Caused by: com.sun.mail.util.MailConnectException: Couldn't connect to host, port: smtp, 25; timeout 10000; 2016-08-30 09:20:00.088879500 nested exception is: 2016-08-30 09:20:00.088879500 java.net.ConnectException: Connection refused 2016-08-30 09:20:00.088879500 at com.sun.mail.smtp.SMTPTransport.openServer(SMTPTransport.java:2118) 2016-08-30 09:20:00.088895500 at com.sun.mail.smtp.SMTPTransport.protocolConnect(SMTPTransport.java:712) 2016-08-30 09:20:00.088895500 at javax.mail.Service.connect(Service.java:366) 2016-08-30 09:20:00.088895500 at javax.mail.Service.connect(Service.java:195) 2016-08-30 09:20:00.088896500 at com.atlassian.mail.server.impl.SMTPMailServerImpl.sendWithMessageId(SMTPMailServerImpl.java:174) 2016-08-30 09:20:00.088896500 ... 24 more 2016-08-30 09:20:00.088899500 Caused by: java.net.ConnectException: Connection refused 2016-08-30 09:20:00.088903500 at java.net.PlainSocketImpl.socketConnect(Native Method) 2016-08-30 09:20:00.088903500 at java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:350) 2016-08-30 09:20:00.088904500 at java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:206) 2016-08-30 09:20:00.088904500 at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:188) 2016-08-30 09:20:00.088905500 at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392) 2016-08-30 09:20:00.088910500 at com.sun.mail.util.SocketFetcher.createSocket(SocketFetcher.java:329) 2016-08-30 09:20:00.088910500 at com.sun.mail.util.SocketFetcher.getSocket(SocketFetcher.java:238) 2016-08-30 09:20:00.088910500 at com.sun.mail.smtp.SMTPTransport.openServer(SMTPTransport.java:2084) 2016-08-30 09:20:00.088911500 ... 29 more {noformat} h3. Actual Result The clone will never be finished h3. Expected Result The clone will be completed h3. Workaround Clone the sub-task one by one
    via by Aulia Fajri [Atlassian],
  • RE: Connection time out
    via by Alan Gerhard,
  • RE: Connection time out
    via by Deso Kule,
    • java.net.ConnectException: Connection refused at com.sun.mail.smtp.SMTPTransport.openServer(SMTPTra nsport.java:1282) at com.sun.mail.smtp.SMTPTransport.protocolConnect(SM TPTransport.java:370) at javax.mail.Service.connect(Service.java:275) at javax.mail.Service.connect(Service.java:156)
    No Bugmate found.