cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Mailer Engine

rkpichardo
Guide
 
11 REPLIES 11

rkpichardo
Guide

 we have trouble today with this issue:

Sending mails error statistics - todayUnsent mails 26.8 % (176 out of total 657)

 any help on this?

Are there any errors in server.log? Can you attach recent one?

rkpichardo
Guide

where do I find this log?

this is the actual status:

 


 

It's in log subdirectory of CAS installation directory, by default: C:\Program Filec\Compuware\CAS\log\server.log

rkpichardo
Guide

there goes the log:

server.log

Server.log complains about not being able to send email:

server.log
E ADM	14-10-01 19:15:45.670	failed to send an email: Either uncomposable or -transportable email: Exception reading response
E ADM 14-10-01 19:15:45.670 javax.mail.MessagingException: Exception reading response;
nested exception is:
java.net.SocketTimeoutException: Read timed out
at com.sun.mail.smtp.SMTPTransport.readServerResponse(SMTPTransport.java:2202)
at com.sun.mail.smtp.SMTPTransport.issueSendCommand(SMTPTransport.java:2087)
at com.sun.mail.smtp.SMTPTransport.finishData(SMTPTransport.java:1889)
at com.sun.mail.smtp.SMTPTransport.sendMessage(SMTPTransport.java:1120)
at javax.mail.Transport.send0(Transport.java:195)
at javax.mail.Transport.send(Transport.java:124)
at adlex.delta.server.mail.Mailer.sendMail(Mailer.java:312)
at adlex.delta.commonAlarm.CommonMailSender$Sender.run(CommonMailSender.java:373)
at java.lang.Thread.run(Unknown Source)
Caused by: java.net.SocketTimeoutException: Read timed out
at java.net.SocketInputStream.socketRead0(Native Method)
at java.net.SocketInputStream.read(Unknown Source)
at java.net.SocketInputStream.read(Unknown Source)
at com.sun.mail.util.TraceInputStream.read(TraceInputStream.java:124)
at java.io.BufferedInputStream.fill(Unknown Source)
at java.io.BufferedInputStream.read(Unknown Source)
at com.sun.mail.util.LineInputStream.readLine(LineInputStream.java:89)
at com.sun.mail.smtp.SMTPTransport.readServerResponse(SMTPTransport.java:2182)
... 8 more

Let's test SMTP from CAS perspective. Please go to http://<CAS>/groovyscript URL, paste the following scipt:

def out = new java.lang.StringBuilder()
def content = new java.lang.StringBuilder()
for (i in 1..100000) {
content.append('----------')
}

for (i in 1..20) {
try {
def trnRes = adlex.delta.server.mail.Mailer.getSingl().sendMail(
"adlex@lab.pl", "me@somewhere.up",
"Transport ordeal", content.toString(), null)


if (trnRes.getException() != null) {
out.append("
-- exception: ")
.append(trnRes.getException().getMessage())
for (java.lang.StackTraceElement m
: trnRes.getException().getStackTrace()) {
out.append("
---- ")
.append(m)
}
break
} else {
out.append("
message ")
.append(i)
.append(" has been sent")
}
} catch (Exception e) {
out.append("
-- fatal error: ")
.append(e.getMessage())
for (java.lang.StackTraceElement m
: e.getStackTrace()) {
out.append("
---- ")
.append(m)
}
break
}
}

out

*change _adlex@lab.pl_ address to your address* and click Execute button.

Share the results with us.

results in comment...

rkpichardo
Guide

result:

message 1 has been sent message 2 has been sent message 3 has been sent -- exception: Exception reading response ---- com.sun.mail.smtp.SMTPTransport.readServerResponse(SMTPTransport.java:2202) ---- com.sun.mail.smtp.SMTPTransport.issueSendCommand(SMTPTransport.java:2087) ---- com.sun.mail.smtp.SMTPTransport.finishData(SMTPTransport.java:1889) ---- com.sun.mail.smtp.SMTPTransport.sendMessage(SMTPTransport.java:1120) ---- javax.mail.Transport.send0(Transport.java:195) ---- javax.mail.Transport.send(Transport.java:124) ---- adlex.delta.server.mail.Mailer.sendMail(Mailer.java:312) ---- adlex.delta.server.mail.Mailer$sendMail.call(Unknown Source) ---- Script1.run(Script1.groovy:10) ---- groovy.lang.GroovyShell.evaluate(GroovyShell.java:518) ---- groovy.lang.GroovyShell.evaluate(GroovyShell.java:556) ---- groovy.lang.GroovyShell.evaluate(GroovyShell.java:527) ---- adlex.delta.servlet.diagnostic.AutocompleteAndExecute.tryToExecute(AutocompleteAndExecute.groovy:85) ---- adlex.delta.servlet.diagnostic.AutocompleteAndExecute.run(AutocompleteAndExecute.groovy:123) ---- adlex.delta.servlet.diagnostic.GroovyScriptExecutor.buildContent(GroovyScriptExecutor.groovy:142) ---- adlex.delta.servlet.common.ReportServlet.generateHTML(ReportServlet.java:145) ---- adlex.delta.servlet.common.ReportServlet.doService(ReportServlet.java:112) ---- adlex.delta.servlet.common.ReportServlet.service(ReportServlet.java:90) ---- adlex.delta.servlet.DeltaServlet.callService(DeltaServlet.java:38) ---- adlex.delta.servlet.DeltaServlet.service(DeltaServlet.java:52) ---- adlex.delta.tomcat.Tomcat2AdlexServlet.serveServlet(Tomcat2AdlexServlet.java:114) ---- adlex.delta.tomcat.Tomcat2AdlexServlet.service(Tomcat2AdlexServlet.java:56) ---- javax.servlet.http.HttpServlet.service(HttpServlet.java:723) ---- org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290) ---- org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) ---- adlex.delta.servlet.multipart.MultipartFilter.doFilterAction(MultipartFilter.java:138) ---- adlex.delta.servlet.AbstractFilter.doFilter(AbstractFilter.java:80) ---- org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) ---- org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) ---- adlex.delta.servlet.TraceFilter.doFilterAction(TraceFilter.java:70) ---- adlex.delta.servlet.AbstractFilter.doFilter(AbstractFilter.java:80) ---- org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) ---- org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) ---- adlex.delta.servlet.I18NFilter.doFilterAction(I18NFilter.java:51) ---- adlex.delta.servlet.AbstractFilter.doFilter(AbstractFilter.java:80) ---- org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) ---- org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) ---- adlex.delta.servlet.UserLocaleFilter.doFilterAction(UserLocaleFilter.java:121) ---- adlex.delta.servlet.AbstractFilter.doFilter(AbstractFilter.java:80) ---- org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) ---- org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) ---- adlex.delta.servlet.RenderingContextFilter.doFilterAction(RenderingContextFilter.java:69) ---- adlex.delta.servlet.AbstractFilter.doFilter(AbstractFilter.java:80) ---- org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) ---- org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) ---- adlex.delta.servlet.BrowserFilter.doFilterAction(BrowserFilter.java:64) ---- adlex.delta.servlet.AbstractFilter.doFilter(AbstractFilter.java:80) ---- org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) ---- org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) ---- adlex.delta.servlet.AuthenticationFilter.doFilterAction(AuthenticationFilter.java:289) ---- adlex.delta.servlet.AbstractFilter.doFilter(AbstractFilter.java:80) ---- org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) ---- org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) ---- adlex.delta.tomcat.ExternalLogin.doFilterAction(ExternalLogin.java:52) ---- adlex.delta.servlet.AbstractFilter.doFilter(AbstractFilter.java:80) ---- org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) ---- org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) ---- adlex.delta.servlet.CheckServiceFilter.doFilterAction(CheckServiceFilter.java:57) ---- adlex.delta.servlet.AbstractFilter.doFilter(AbstractFilter.java:80) ---- org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) ---- org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) ---- adlex.delta.servlet.TrafficDumperFilter.doFilterAction(TrafficDumperFilter.java:103) ---- adlex.delta.servlet.AbstractFilter.doFilter(AbstractFilter.java:80) ---- org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) ---- org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) ---- adlex.delta.tomcat.EncodingSel.doFilter(EncodingSel.java:74) ---- org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) ---- org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) ---- org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233) ---- org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191) ---- org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127) ---- adlex.delta.tomcat.ErrorValve.invoke(ErrorValve.java:65) ---- org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) ---- adlex.delta.tomcat.embedded.AccessLogValve.invoke(AccessLogValve.java:440) ---- adlex.delta.tomcat.repository.AccessLogValve.invoke(AccessLogValve.java:118) ---- org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:293) ---- org.apache.coyote.http11.Http11AprProcessor.process(Http11AprProcessor.java:879) ---- org.apache.coyote.http11.Http11AprProtocol$Http11ConnectionHandler.process(Http11AprProtocol.java:617) ---- org.apache.tomcat.util.net.AprEndpoint$Worker.run(AprEndpoint.java:1774) ---- java.lang.Thread.run(Unknown Source)

OK, let me consult the result and get back to you.

adam_piotrowicz
Dynatrace Pro
Dynatrace Pro

Robert,

Please navigate to the following page of your CAS:

http://<CAS>/userpropertiesadmin?all

then scroll to the very bottom of the page and in the last row of the table, in the column Property name provide mail.smtp.quitwait value and in the Property value column value false and click Add button.

Restart the CAS service and let us know the results.

Thank you Adam.

I opened an RFC to apply this as you suggested, I will let you know the results.