Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / General / April 2007

Tip: Looking for answers? Try searching our database.

Java mail problem

Thread view: 
ruds - 06 Apr 2007 11:52 GMT
Im trying to connect to my smtp host using Java Mail.
But i'm getting error as :
javax.mail.SendFailedException: Sending failed;
 nested exception is:
       javax.mail.MessagingException: Could not connect to SMTP host:
ttmsg01, port: 25;
 nested exception is:
       java.net.SocketException: Software caused connection abort:
connect
       at javax.mail.Transport.send0(Transport.java:219)
       at javax.mail.Transport.send(Transport.java:81)
       at jsp_servlet.__succsaveana._jspService(__succsaveana.java:
400)
       at weblogic.servlet.jsp.JspBase.service(JspBase.java:33)
       at weblogic.servlet.internal.ServletStubImpl
$ServletInvocationAction.run(ServletStubImpl.java:1053)
       at
weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:
387)
       at
weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:
431)
       at
weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:
305)
       at weblogic.servlet.internal.RequestDispatcherImpl
$ForwardAction.run(RequestDispatcherImpl.java:342)
       at
weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:
317)
       at
weblogic.security.service.SecurityManager.runAs(SecurityManager.java:
97)
       at
weblogic.servlet.internal.RequestDispatcherImpl.forward(RequestDispatcherImpl.java:
246)
       at AnaReqSubmit.doPost(AnaReqSubmit.java:188)
       at javax.servlet.http.HttpServlet.service(HttpServlet.java:
760)
       at javax.servlet.http.HttpServlet.service(HttpServlet.java:
853)
       at weblogic.servlet.internal.ServletStubImpl
$ServletInvocationAction.run(ServletStubImpl.java:1053)
       at
weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:
387)
       at
weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:
305)
       at weblogic.servlet.internal.WebAppServletContext
$ServletInvocationAction.run(WebAppServletContext.java:6291)
       at
weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:
317)
       at
weblogic.security.service.SecurityManager.runAs(SecurityManager.java:
97)
       at
weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletContext.java:
3575)
       at
weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java:
2573)
       at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:
178)
       at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:151)

I'm not able to understand what is happening because all of my code is
according to Java mail specification.
Lothar Kimmeringer - 06 Apr 2007 14:26 GMT
> I'm not able to understand what is happening because all of my code is
> according to Java mail specification.

All you need to know is the message in the stacktrace:

> javax.mail.SendFailedException: Sending failed;
>   nested exception is:
[quoted text clipped - 3 lines]
>         java.net.SocketException: Software caused connection abort:
> connect

The connect failed. There might be a firewall blocking the request
or some other network-related problem. You can try to connect the
host "by hand" doing a
telnet ttmsg01 25
on the console. Only if you see a welcome-message from the
mail-server, you can continue looking into your own program
to find errors.

Regards, Lothar
Signature

Lothar Kimmeringer                E-Mail: spamfang@kimmeringer.de
              PGP-encrypted mails preferred (Key-ID: 0x8BC3CD81)

Always remember: The answer is forty-two, there can only be wrong
                questions!

Greg R. Broderick - 06 Apr 2007 16:22 GMT
"ruds" <rudranee@gmail.com> wrote in news:1175856744.483450.225150
@l77g2000hsb.googlegroups.com:

>         javax.mail.MessagingException: Could not connect to SMTP host:
> ttmsg01, port: 25;
>   nested exception is:

Looks to me like a configuration issue - make sure you've configured the
correct host name and port number of your SMTP mail server and try again.

Cheers!

Signature

---------------------------------------------------------------------
Greg R. Broderick            gregb+usenet200612@blackholio.dyndns.org

A. Top posters.
Q. What is the most annoying thing on Usenet?
---------------------------------------------------------------------

ruds - 07 Apr 2007 04:27 GMT
Thanks for ur repies.


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.