Project:
View Revisions: Issue #38524 | [ All Revisions ] [ Back to Issue ] | ||
Summary | 0038524: can't configure timeout for sending emails | ||
Revision | 2018-05-17 16:06 by alostale | ||
Steps To Reproduce | 1. Configure a very slow smtp server You can use, ie., a fake smpt server like dumbster [1] SimpleSmtpServer.start(8025); and add breakpoints to simulate slowness 2. Configure Client in Openbravo to make use of it 3. Open a completed Sales Order 4. Click on send email -> Check the threads gets stuck while the email server is not responding: "ajp-bio-127.0.0.1-8009-exec-678" daemon prio=10 tid=0x00007fd2800cf800 nid=0x1f7ff runnable [0x00007fd38befb000] java.lang.Thread.State: RUNNABLE at java.net.SocketInputStream.socketRead0(Native Method) at java.net.SocketInputStream.read(SocketInputStream.java:153) at java.net.SocketInputStream.read(SocketInputStream.java:122) at com.sun.mail.util.TraceInputStream.read(TraceInputStream.java:110) at java.io.BufferedInputStream.fill(BufferedInputStream.java:235) at java.io.BufferedInputStream.read(BufferedInputStream.java:254) - locked <0x00000001efd082a0> (a java.io.BufferedInputStream) at com.sun.mail.util.LineInputStream.readLine(LineInputStream.java:89) at com.sun.mail.smtp.SMTPTransport.readServerResponse(SMTPTransport.java:2131) at com.sun.mail.smtp.SMTPTransport.openServer(SMTPTransport.java:1912) at com.sun.mail.smtp.SMTPTransport.protocolConnect(SMTPTransport.java:638) at javax.mail.Service.connect(Service.java:317) - locked <0x00000001efd083f0> (a com.sun.mail.smtp.SMTPTransport) at javax.mail.Service.connect(Service.java:176) at javax.mail.Service.connect(Service.java:125) at org.openbravo.erpCommon.utility.poc.EmailManager.sendEmail(EmailManager.java:170) at org.openbravo.erpCommon.utility.reporting.printing.PrintController.sendDocumentEmail(PrintController.java:815) --- [1] https://github.com/kirviq/dumbster [^] |
||
Revision | 2018-05-17 08:55 by alostale | ||
Steps To Reproduce | 1. Configure a very slow smtp server 2. Configure Client in Openbravo to make use of it 3. Open a completed Sales Order 4. Click on send email -> Check the threads gets stuck while the email server is not responding |
Copyright © 2000 - 2009 MantisBT Group |