Return-Path: Delivered-To: apmail-geronimo-user-archive@www.apache.org Received: (qmail 24619 invoked from network); 22 Feb 2007 09:45:33 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 22 Feb 2007 09:45:33 -0000 Received: (qmail 99560 invoked by uid 500); 22 Feb 2007 09:45:37 -0000 Delivered-To: apmail-geronimo-user-archive@geronimo.apache.org Received: (qmail 99538 invoked by uid 500); 22 Feb 2007 09:45:37 -0000 Mailing-List: contact user-help@geronimo.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: Reply-To: user@geronimo.apache.org List-Id: Delivered-To: mailing list user@geronimo.apache.org Received: (qmail 99525 invoked by uid 99); 22 Feb 2007 09:45:37 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 22 Feb 2007 01:45:37 -0800 X-ASF-Spam-Status: No, hits=2.0 required=10.0 tests=HTML_MESSAGE X-Spam-Check-By: apache.org Received-SPF: pass (herse.apache.org: local policy) Received: from [61.95.162.82] (HELO Kecgate06.infosys.com) (61.95.162.82) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 22 Feb 2007 01:45:24 -0800 Received: from indhubbhs01.ad.infosys.com ([192.168.200.81]) by Kecgate06.infosys.com with InterScan Messaging Security Suite; Thu, 22 Feb 2007 15:12:00 +0530 Received: from BLRKECMSG14.ad.infosys.com ([172.22.147.6]) by indhubbhs01.ad.infosys.com with Microsoft SMTPSVC(6.0.3790.1830); Thu, 22 Feb 2007 15:01:13 +0530 Received: from BLRKECMSG13.ad.infosys.com ([172.22.147.5]) by BLRKECMSG14.ad.infosys.com with Microsoft SMTPSVC(6.0.3790.1830); Thu, 22 Feb 2007 15:01:13 +0530 X-MimeOLE: Produced By Microsoft Exchange V6.5 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----_=_NextPart_001_01C75664.317AE143" Subject: javax.mail.MessagingException: .. could not connect to SMTP host -Reg Date: Thu, 22 Feb 2007 15:01:06 +0530 Message-ID: X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: javax.mail.MessagingException: .. could not connect to SMTP host -Reg Thread-Index: AcdWZC2MzPuhlonwQrC08V7KCnBl4Q== From: "Kamalanathan Raman" To: X-OriginalArrivalTime: 22 Feb 2007 09:31:13.0374 (UTC) FILETIME=[31B0D7E0:01C75664] X-Virus-Checked: Checked by ClamAV on apache.org This is a multi-part message in MIME format. ------_=_NextPart_001_01C75664.317AE143 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Hi , =0D Iam trying to send a notification mail using the java mail in Geronimo 1.1.1 . When I try to send the mail iam getting this following exception , can any one give a pointer regarding where iam going wrong and what to do... =0D =0D javax.mail.SendFailedException: Send failure (javax.mail.MessagingException: Could not connect to SMTP host: localhost, port: 25 (java.net.ConnectException: Connection refused: connect)) at javax.mail.Transport.send(Transport.java:161) at javax.mail.Transport.send(Transport.java:46) at com.symcor.common.util.SendMail.sendNotification(SendMail.java:171) at com.symcor.common.util.SendMail.sendNotification(SendMail.java:92) at com.symcor.eds.app.RunEDSService.sendMail(RunEDSService.java:411) at com.symcor.eds.app.RunEDSService.main(RunEDSService.java:338) Caused by: javax.mail.MessagingException: Could not connect to SMTP host: localhost, port: 25 (java.net.ConnectException: Connection refused: connect) at com.sun.mail.smtp.SMTPTransport.openServer(SMTPTransport.java:867) at com.sun.mail.smtp.SMTPTransport.protocolConnect(SMTPTransport.java:156) at javax.mail.Service.connect(Service.java:215) at javax.mail.Service.connect(Service.java:83) at javax.mail.Service.connect(Service.java:68) at com.sun.mail.smtp.SMTPTransport.connect(SMTPTransport.java:93) at javax.mail.Transport.send(Transport.java:92) ... 5 more Caused by: java.net.ConnectException: Connection refused: connect at java.net.PlainSocketImpl.socketConnect(Native Method) at java.net.PlainSocketImpl.doConnect(Unknown Source) at java.net.PlainSocketImpl.connectToAddress(Unknown Source) at java.net.PlainSocketImpl.connect(Unknown Source) at java.net.SocksSocketImpl.connect(Unknown Source) at java.net.Socket.connect(Unknown Source) at java.net.Socket.connect(Unknown Source) at java.net.Socket.(Unknown Source) at java.net.Socket.(Unknown Source) at com.sun.mail.util.SocketFetcher.getSocket0(SocketFetcher.java:131) at com.sun.mail.util.SocketFetcher.getSocket(SocketFetcher.java:113) at com.sun.mail.smtp.SMTPTransport.openServer(SMTPTransport.java:836) ... 11 more 2007-02-22 14:50:47,674 INFO com.symcor.common.util.SendMail -sendNotification(...):exit 2007-02-22 14:50:47,674 ERROR root -main[]:Send failure (javax.mail.MessagingException: Could not connect to SMTP host: localhost, port: 25 (java.net.ConnectException: Connection refused: connect)) javax.mail.SendFailedException: Send failure (javax.mail.MessagingException: Could not connect to SMTP host: localhost, port: 25 (java.net.ConnectException: Connection refused: connect)) at javax.mail.Transport.send(Transport.java:161) at javax.mail.Transport.send(Transport.java:46) at com.symcor.common.util.SendMail.sendNotification(SendMail.java:171) at com.symcor.common.util.SendMail.sendNotification(SendMail.java:92) at com.symcor.eds.app.RunEDSService.sendMail(RunEDSService.java:411) at com.symcor.eds.app.RunEDSService.main(RunEDSService.java:338) Caused by: javax.mail.MessagingException: Could not connect to SMTP host: localhost, port: 25 (java.net.ConnectException: Connection refused: connect) at com.sun.mail.smtp.SMTPTransport.openServer(SMTPTransport.java:867) at com.sun.mail.smtp.SMTPTransport.protocolConnect(SMTPTransport.java:156) at javax.mail.Service.connect(Service.java:215) at javax.mail.Service.connect(Service.java:83) at javax.mail.Service.connect(Service.java:68) at com.sun.mail.smtp.SMTPTransport.connect(SMTPTransport.java:93) at javax.mail.Transport.send(Transport.java:92) ... 5 more Caused by: java.net.ConnectException: Connection refused: connect at java.net.PlainSocketImpl.socketConnect(Native Method) at java.net.PlainSocketImpl.doConnect(Unknown Source) at java.net.PlainSocketImpl.connectToAddress(Unknown Source) at java.net.PlainSocketImpl.connect(Unknown Source) at java.net.SocksSocketImpl.connect(Unknown Source) at java.net.Socket.connect(Unknown Source) at java.net.Socket.connect(Unknown Source) at java.net.Socket.(Unknown Source) at java.net.Socket.(Unknown Source) at com.sun.mail.util.SocketFetcher.getSocket0(SocketFetcher.java:131) at com.sun.mail.util.SocketFetcher.getSocket(SocketFetcher.java:113) at com.sun.mail.smtp.SMTPTransport.openServer(SMTPTransport.java:836) ... 11 more =0D =0D Thanks and Regards, Kamal **************** CAUTION - Disclaimer ***************** This e-mail contains PRIVILEGED AND CONFIDENTIAL INFORMATION intended= solely for the use of the addressee(s). If you are not the intended= recipient, please notify the sender by e-mail and delete the original= message. Further, you are not to copy, disclose, or distribute this e-mail= or its contents to any other person and any such actions are unlawful.= This e-mail may contain viruses. Infosys has taken every reasonable= precaution to minimize this risk, but is not liable for any damage you may= sustain as a result of any virus in this e-mail. You should carry out your= own virus checks before opening the e-mail or attachment. Infosys reserves= the right to monitor and review the content of all messages sent to or= from this e-mail address. Messages sent to or from this e-mail address may= be stored on the Infosys e-mail system. ***INFOSYS******** End of Disclaimer ********INFOSYS*** ------_=_NextPart_001_01C75664.317AE143 Content-Type: text/html; charset="us-ascii" Content-Transfer-Encoding: quoted-printable

Hi= ,

 

Iam trying to send a notification mail using the java mail in Geronimo 1.1.1 . When I try to= send the mail iam getting this following exception , can any one give a pointer regarding where iam going wrong and what to= do…

 

 

javax.mail.SendFailedException: Send failure (javax.mail.MessagingException: Could not connect to SMTP host: localhost, port: 25= (java.net.ConnectException: Connection refused:= connect))

      at= javax.mail.Transport.send(Transport.java:161)

      at= javax.mail.Transport.send(Transport.java:46)

      at= com.symcor.common.util.SendMail.sendNotification(SendMail.java:171)

      at= com.symcor.common.util.SendMail.sendNotification(SendMail.java:92)

      at= com.symcor.eds.app.RunEDSService.sendMail(RunEDSService.java:411)

      at= com.symcor.eds.app.RunEDSService.main(RunEDSService.java:338)

Caused by: javax.mail.MessagingException: Could not connect to SMTP host: localhost, port: 25= (java.net.ConnectException: Connection refused:= connect)

      at= com.sun.mail.smtp.SMTPTransport.openServer(SMTPTransport.java:867)

      at= com.sun.mail.smtp.SMTPTransport.protocolConnect(SMTPTransport.java:156)

      at= javax.mail.Service.connect(Service.java:215)

      at= javax.mail.Service.connect(Service.java:83)

      at= javax.mail.Service.connect(Service.java:68)

      at= com.sun.mail.smtp.SMTPTransport.connect(SMTPTransport.java:93)

      at= javax.mail.Transport.send(Transport.java:92)

      ... 5 more

Caused by: java.net.ConnectException: Connection refused: connect

      at= java.net.PlainSocketImpl.socketConnect(Native Method)

      at= java.net.PlainSocketImpl.doConnect(Unknown Source)

      at= java.net.PlainSocketImpl.connectToAddress(Unknown= Source)

      at= java.net.PlainSocketImpl.connect(Unknown Source)

      at= java.net.SocksSocketImpl.connect(Unknown Source)

      at= java.net.Socket.connect(Unknown Source)

      at= java.net.Socket.connect(Unknown Source)

      at= java.net.Socket.<init>(Unknown Source)

      at= java.net.Socket.<init>(Unknown Source)

      at= com.sun.mail.util.SocketFetcher.getSocket0(SocketFetcher.java:131)

      at= com.sun.mail.util.SocketFetcher.getSocket(SocketFetcher.java:113)

      at= com.sun.mail.smtp.SMTPTransport.openServer(SMTPTransport.java:836)

      ... 11 more

2007-02-22 14:50:47,674 INFO = com.symcor.common.util.SendMail -sendNotification(...):exit

2007-02-22 14:50:47,674 ERROR root -main[]:Send failure= (javax.mail.MessagingException: Could not connect to SMTP host: localhost,= port: 25 (java.net.ConnectException: Connection refused:= connect))

javax.mail.SendFailedException: Send failure (javax.mail.MessagingException: Could not connect to SMTP host: localhost, port: 25= (java.net.ConnectException: Connection refused:= connect))

      at= javax.mail.Transport.send(Transport.java:161)

      at= javax.mail.Transport.send(Transport.java:46)

      at= com.symcor.common.util.SendMail.sendNotification(SendMail.java:171)

      at= com.symcor.common.util.SendMail.sendNotification(SendMail.java:92)

      at= com.symcor.eds.app.RunEDSService.sendMail(RunEDSService.java:411)

      at= com.symcor.eds.app.RunEDSService.main(RunEDSService.java:338)

Caused by: javax.mail.MessagingException: Could not connect to SMTP host: localhost, port: 25= (java.net.ConnectException: Connection refused:= connect)

      at= com.sun.mail.smtp.SMTPTransport.openServer(SMTPTransport.java:867)

      at= com.sun.mail.smtp.SMTPTransport.protocolConnect(SMTPTransport.java:156)

      at= javax.mail.Service.connect(Service.java:215)

      at= javax.mail.Service.connect(Service.java:83)

      at= javax.mail.Service.connect(Service.java:68)

      at= com.sun.mail.smtp.SMTPTransport.connect(SMTPTransport.java:93)

      at= javax.mail.Transport.send(Transport.java:92)

      ... 5 more

Caused by: java.net.ConnectException: Connection refused: connect

      at= java.net.PlainSocketImpl.socketConnect(Native Method)

      at= java.net.PlainSocketImpl.doConnect(Unknown Source)

      at= java.net.PlainSocketImpl.connectToAddress(Unknown= Source)

      at= java.net.PlainSocketImpl.connect(Unknown Source)

      at= java.net.SocksSocketImpl.connect(Unknown Source)

      at= java.net.Socket.connect(Unknown Source)

      at= java.net.Socket.connect(Unknown Source)

      at= java.net.Socket.<init>(Unknown Source)

      at= java.net.Socket.<init>(Unknown Source)

      at= com.sun.mail.util.SocketFetcher.getSocket0(SocketFetcher.java:131)

      at= com.sun.mail.util.SocketFetcher.getSocket(SocketFetcher.java:113)

      at= com.sun.mail.smtp.SMTPTransport.openServer(SMTPTransport.java:836)

      ... 11 more

 

 

Thanks and Regards,

Kamal

****************= CAUTION - Disclaimer *****************
This e-mail contains PRIVILEGED AND CONFIDENTIAL INFORMATION intended= solely for the use of the addressee(s). If you are not the intended= recipient, please notify the sender by e-mail and delete the original= message. Further, you are not to copy, disclose, or distribute this e-mail= or its contents to any other person and any such actions are unlawful.= This e-mail may contain viruses. Infosys has taken every reasonable= precaution to minimize this risk, but is not liable for any damage you may= sustain as a result of any virus in this e-mail. You should carry out your= own virus checks before opening the e-mail or attachment. Infosys reserves= the right to monitor and review the content of all messages sent to or= from this e-mail address. Messages sent to or from this e-mail address may= be stored on the Infosys e-mail system.
***INFOSYS******** End of Disclaimer ********INFOSYS***
------_=_NextPart_001_01C75664.317AE143--