It appears you're accessing an SMTP server that doesn't send a reply
back from a QUIT message. This is the first one of these I've encountered.
The good news is there's a session property you can configure to change
whether the SMTPTransport waits for a response from a QUIT command. The
bad news is that when I went and lookup up what the property was, I
discovered that the Geronimo version is interpreting that property
backwards (including the default). That's the source of the problem,
actually. I've opened a Jira to get a fix in future releases:
http://issues.apache.org/jira/browse/GERONIMO-2938
To get around this problem, try configuring your SMTP session with the
property "mail.smtp.quitwait" set to "true". This will tell the
transport not to wait for a response to the QUIT message, thus avoiding
the read error. Note that this is just a workaround for this release. In
the future, the property and the default will be handled correctly.
Rick
kamal cheetah wrote:
Hi,
Iam using geronimo 1.1.1 , trying to send a mail using the
geronimo-mail feature that is available , but iam getting this
particular error when i try executing "transport.send(message) . Can
any one give a pointer on how to move forward. Looking forward to your
valuable suggestion.
11:47:32,416 ERROR [BillingReportBuilder] run():MessagingException
javax.mail.MessagingException: java.net.SocketTimeoutException: Read
timed out
at
org.apache.geronimo.javamail.transport.smtp.SMTPTransport.receiveLine(SMTPTransport.java:1774)
at
org.apache.geronimo.javamail.transport.smtp.SMTPTransport.receiveLine(SMTPTransport.java:1699)
at
org.apache.geronimo.javamail.transport.smtp.SMTPTransport.getReply(SMTPTransport.java:1709)
at
org.apache.geronimo.javamail.transport.smtp.SMTPTransport.sendCommand(SMTPTransport.java:1672)
at
org.apache.geronimo.javamail.transport.smtp.SMTPTransport.sendQuit(SMTPTransport.java:1449)
at
org.apache.geronimo.javamail.transport.smtp.SMTPTransport.close(SMTPTransport.java:725)
at javax.mail.Transport.send(Transport.java:142)
at javax.mail.Transport.send(Transport.java:46)
at com.symcor.common.util.SendMail.sendNotification(SendMail.java:139)
at
com.symcor.common.util.SymcorEmail.sendNotification(SymcorEmail.java:70)
at
com.symcor.eds.ejb.billing.BillingReportBuilder.run(BillingReportBuilder.java:266)
at
com.symcor.eds.ejb.DisbursementsServiceBean.generateBillingReport(DisbursementsServiceBean.java:413)
at
com.symcor.eds.ejb.DisbursementsServiceBean$$FastClassByCGLIB$$7b32e100.invoke(<generated>)
at
org.openejb.dispatch.AbstractMethodOperation.invoke(AbstractMethodOperation.java:90)
at org.openejb.slsb.BusinessMethod.execute(BusinessMethod.java:67)
at
org.openejb.dispatch.DispatchInterceptor.invoke(DispatchInterceptor.java:72)
at
org.apache.geronimo.naming.java.ComponentContextInterceptor.invoke(ComponentContextInterceptor.java:56)
at
org.openejb.ConnectionTrackingInterceptor.invoke(ConnectionTrackingInterceptor.java:81)
at org.openejb.transaction.BeanPolicy.invoke(BeanPolicy.java:74)
at
org.openejb.transaction.TransactionContextInterceptor.invoke(TransactionContextInterceptor.java:80)
at
org.openejb.security.EJBRunAsInterceptor.invoke(EJBRunAsInterceptor.java:85)
at
org.openejb.slsb.StatelessInstanceInterceptor.invoke(StatelessInstanceInterceptor.java:98)
at org.openejb.transaction.BeanPolicy.invoke(BeanPolicy.java:74)
at
org.openejb.transaction.TransactionContextInterceptor.invoke(TransactionContextInterceptor.java:80)
at
org.openejb.SystemExceptionInterceptor.invoke(SystemExceptionInterceptor.java:82)
at org.openejb.GenericEJBContainer.invoke(GenericEJBContainer.java:238)
at
org.openejb.server.ejbd.EjbRequestHandler.invoke(EjbRequestHandler.java:297)
at
org.openejb.server.ejbd.EjbRequestHandler.doEjbObject_BUSINESS_METHOD(EjbRequestHandler.java:325)
at
org.openejb.server.ejbd.EjbRequestHandler.processRequest(EjbRequestHandler.java:197)
at org.openejb.server.ejbd.EjbDaemon.service(EjbDaemon.java:150)
at org.openejb.server.ejbd.EjbServer.service(EjbServer.java:87)
at
org.openejb.server.ejbd.EjbServer$$FastClassByCGLIB$$d379d2ff.invoke(<generated>)
at net.sf.cglib.reflect.FastMethod.invoke(FastMethod.java:53)
at
org.apache.geronimo.gbean.runtime.FastMethodInvoker.invoke(FastMethodInvoker.java:38)
at
org.apache.geronimo.gbean.runtime.GBeanOperation.invoke(GBeanOperation.java:122)
at
org.apache.geronimo.gbean.runtime.GBeanInstance.invoke(GBeanInstance.java:817)
at org.apache.geronimo.gbean.runtime.RawInvoker.invoke(RawInvoker.java:57)
at
org.apache.geronimo.kernel.basic.RawOperationInvoker.invoke(RawOperationInvoker.java:35)
at
org.apache.geronimo.kernel.basic.ProxyMethodInterceptor.intercept(ProxyMethodInterceptor.java:96)
at
org.activeio.xnet.ServerService$$EnhancerByCGLIB$$d5535dbf.service(<generated>)
at org.activeio.xnet.ServicePool$2.run(ServicePool.java:67)
at org.activeio.xnet.ServicePool$3.run(ServicePool.java:90)
at org.apache.geronimo.pool.ThreadPool$1.run(ThreadPool.java:172)
at
org.apache.geronimo.pool.ThreadPool$ContextClassLoaderRunnable.run(ThreadPool.java:289)
at EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(Unknown
Source)
at java.lang.Thread.run(Unknown Source)
11:47:32,432 ERROR [BillingReportBuilder] run():MessagingException
javax.mail.internet.ParseException: Missing '"'
at
javax.mail.internet.HeaderTokenizer.readQuotedString(HeaderTokenizer.java:270)
at javax.mail.internet.HeaderTokenizer.readToken(HeaderTokenizer.java:132)
at javax.mail.internet.HeaderTokenizer.next(HeaderTokenizer.java:79)
at javax.mail.internet.ParameterList.<init>(ParameterList.java:64)
at
javax.mail.internet.ContentDisposition.<init>(ContentDisposition.java:49)
at javax.mail.internet.MimeBodyPart.updateHeaders(MimeBodyPart.java:549)
at javax.mail.internet.MimeMultipart.updateHeaders(MimeMultipart.java:112)
at javax.mail.internet.MimeMessage.updateHeaders(MimeMessage.java:1338)
at javax.mail.internet.MimeMessage.saveChanges(MimeMessage.java:1310)
at javax.mail.Transport.send(Transport.java:74)
at javax.mail.Transport.send(Transport.java:46)
at com.symcor.common.util.SendMail.sendNotification(SendMail.java:171)
at
com.symcor.common.util.SymcorEmail.sendNotification(SymcorEmail.java:66)
at
com.symcor.eds.ejb.billing.BillingReportBuilder.run(BillingReportBuilder.java:292)
at
com.symcor.eds.ejb.DisbursementsServiceBean.generateBillingReport(DisbursementsServiceBean.java:413)
at
com.symcor.eds.ejb.DisbursementsServiceBean$$FastClassByCGLIB$$7b32e100.invoke(<generated>)
Thanks and Regards,
Kamal
------------------------------------------------------------------------
Here’s a new way to find what you're looking for - Yahoo! Answers
<http://us.rd.yahoo.com/mail/in/yanswers/*http://in.answers.yahoo.com/>