dcsimg
Jrun needs daily restart or JavaMail fails
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   mike_holmes
Posted On:   Tuesday, December 11, 2001 10:09 AM

I'm using java to send mail from a website ("contact us" forms, order updates, ect.). It worked fine for several months on our development servers, but we began having problems when we moved to a hosting service. The mail is sent properly for a while...hours or sometimes days. Then we start throwing the following: exception:javax.mail.SendFailedException: Sending failed; nested exception is: javax.mail.SendFailedException: Invalid Addresses; nested exception is: javax.mail.SendFailedException: 553 5.3.0 ... No such user here at javax.mail.Transport.send0(Transport.java:218) at javax.mail.Transport.send(Transport.java:80) at atlanticte   More>>

I'm using java to send mail from a website ("contact us" forms, order updates, ect.). It worked fine for several months on our development servers, but we began having problems when we moved to a hosting service.



The mail is sent properly for a while...hours or sometimes days. Then we start throwing the following:



			
exception:javax.mail.SendFailedException: Sending failed;
nested exception is:
javax.mail.SendFailedException: Invalid Addresses;
nested exception is:
javax.mail.SendFailedException: 553 5.3.0 ... No such user here

at javax.mail.Transport.send0(Transport.java:218)
at javax.mail.Transport.send(Transport.java:80)
at atlantictelecom.ContactUsCommand.execute(ContactUsCommand.java:89)
at MainServlet.service(MainServlet.java:40)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at allaire.jrun.servlet.JRunSE.service(JRunSE.java:1417)
at allaire.jrun.session.JRunSessionService.service(JRunSessionService.java:1088)
at allaire.jrun.servlet.JRunSE.runServlet(JRunSE.java(Compiled Code))
at allaire.jrun.servlet.JRunNamedDispatcher.forward(JRunNamedDispatcher.java:39)
at allaire.jrun.servlet.Invoker.service(Invoker.java:84)
at allaire.jrun.servlet.JRunSE.service(JRunSE.java:1417)
at allaire.jrun.session.JRunSessionService.service(JRunSessionService.java:1088)
at allaire.jrun.servlet.JRunSE.runServlet(JRunSE.java(Compiled Code))
at allaire.jrun.servlet.JRunRequestDispatcher.forward(JRunRequestDispatcher.java:89)
at allaire.jrun.jsp.JRunPageContext.forward(JRunPageContext.java:298)
at jrun__index2ejspa._jspService(jrun__index2ejspa.java:42)
at allaire.jrun.jsp.HttpJSPServlet.service(HttpJSPServlet.java:39)
at allaire.jrun.jsp.JSPServlet.service(JSPServlet.java:228)
at allaire.jrun.jsp.JSPServlet.service(JSPServlet.java:196)
at allaire.jrun.servlet.JRunSE.service(JRunSE.java:1417)
at allaire.jrun.session.JRunSessionService.service(JRunSessionService.java:1088)
at allaire.jrun.servlet.JRunSE.runServlet(JRunSE.java(Compiled Code))
at allaire.jrun.servlet.JRunRequestDispatcher.forward(JRunRequestDispatcher.java:89)
at allaire.jrun.file.FileServlet.service(FileServlet.java:178)
at allaire.jrun.servlet.JRunServletPool.service(JRunServletPool.java:90)
at allaire.jrun.servlet.JRunSE.service(JRunSE.java:1417)
at allaire.jrun.session.JRunSessionService.service(JRunSessionService.java:1088)
at allaire.jrun.servlet.JRunSE.runServlet(JRunSE.java(Compiled Code))
at allaire.jrun.servlet.JRunRequestDispatcher.forward(JRunRequestDispatcher.java:89)
at allaire.jrun.servlet.JRunSE.service(JRunSE.java:1553)
at allaire.jrun.servlet.JRunSE.service(JRunSE.java:1543)
at allaire.jrun.servlet.JvmContext.dispatch(JvmContext.java:364)
at allaire.jrun.jrpp.ProxyEndpoint.run(ProxyEndpoint.java:388)
at allaire.jrun.ThreadPool.run(ThreadPool.java(Compiled Code))
at allaire.jrun.WorkerThread.run(WorkerThread.java(Compiled Code))




(no, I'm not using the e-mail address "user@host.com", I just took out the real address to protect the client)



When I restart Jrun, the mail works again...for a while. Then it stops working again until I do another restart.



The hosting service swears up and down that we don't need any authentication or anything like that. They claim there's nothing strange going on with their mail server. Why would it work temporarily and then stop until the next jrun restart? We're all stumped.



Thanks,
Mike Holmes    <<Less

Re: Jrun needs daily restart or JavaMail fails

Posted By:   John_Zukowski  
Posted On:   Friday, December 14, 2001 11:28 AM

The only thing I can think of is your leaving some connections open or hitting their mail server too hard. Not sure. Perhaps run your own SMTP server in addition to JRun. You just need to deal with outbound traffic, so it shouldn't require any special setup from the hosting company.


Also, try running with mail debug enabled if you can, and log the SMTP commands. That may reveal more details. (and create a large log file)

About | Sitemap | Contact