It's all about the answers!

Ask a question

notification email fails with CRJZS5074E exception


Aaron Allsbrook (71257) | asked May 15 '12, 12:16 p.m.
I am having issues with my email notifications. I use MS Online services for email and they provide an SMTP interface into their exchange system. This worked originally but has now started failing 100% of the time. I have created a dedicated account for RTC email that works fine via SMTP using mail clients.

My environment is an
- Amazon hosted server
- Windows 2008 SP1 64bit
- Jazz Foundation - Core Libraries 3.0.1.1 (RJF-I20111006-0903)

My mail settings SMTP from microsoft are
-Server name: XYZ.outlook.com
-Port: 587
-Encryption method: TLS

My RTC mail configuration
-Enable E-mail Notification true
-SMTP Server XYZ.outlook.com
-SMTP Server port:587
-SMTP Username : donotreply@XXXX.com
-SMTP Password ***********
-Restrict To Whitelist: false
-Whitelist: none
-E-mail From Address: donotreply@XXXX.com
-E-mail From Name: RTC
-SMTP Reply Address donotreply@XXXX.com
-Transport Reuse Count 5
-Use STARTTLS true

The exception in the log (repeated with each email attempt ) is
2012-05-11 18:57:49,738 ERROR com.ibm.team.jfs - CRJZS5074E Unexpected exception sending mail
javax.mail.MessagingException: Exception reading response;
nested exception is:
java.net.SocketException: Connection reset
at com.sun.mail.smtp.SMTPTransport.readServerResponse(SMTPTransport.java:1349)
at com.sun.mail.smtp.SMTPTransport.openServer(SMTPTransport.java:1191)
at com.sun.mail.smtp.SMTPTransport.protocolConnect(SMTPTransport.java:311)
at javax.mail.Service.connect(Service.java:232)
at javax.mail.Service.connect(Service.java:134)
at com.ibm.team.repository.service.jts.internal.mailer.MailerService.getConnectedTransport(MailerService.java:459)
at com.ibm.team.repository.service.jts.internal.mailer.MailerService.initializeTransport(MailerService.java:349)
at com.ibm.team.repository.service.jts.internal.mailer.MailerService.sendMessage(MailerService.java:375)
at com.ibm.team.repository.service.jts.internal.mailer.MailerService.sendMessage(MailerService.java:326)
at com.ibm.team.repository.service.jts.internal.mailer.MailerService.sendRawMail(MailerService.java:541)
at sun.reflect.GeneratedMethodAccessor524.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:618)
at org.eclipse.soda.sat.core.internal.record.ExportProxyServiceRecord.invoke(ExportProxyServiceRecord.java:370)
at org.eclipse.soda.sat.core.internal.record.ExportProxyServiceRecord.access$0(ExportProxyServiceRecord.java:356)
at org.eclipse.soda.sat.core.internal.record.ExportProxyServiceRecord$ExportedServiceInvocationHandler.invoke(ExportProxyServiceRecord.java:56)
at $Proxy22887.sendRawMail(Unknown Source)
at com.ibm.team.repository.service.jts.internal.mailer.JtsMailerService.sendRawMail(JtsMailerService.java:72)
at sun.reflect.GeneratedMethodAccessor523.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:618)
at org.eclipse.soda.sat.core.internal.record.ExportProxyServiceRecord.invoke(ExportProxyServiceRecord.java:370)
at org.eclipse.soda.sat.core.internal.record.ExportProxyServiceRecord.access$0(ExportProxyServiceRecord.java:356)
at org.eclipse.soda.sat.core.internal.record.ExportProxyServiceRecord$ExportedServiceInvocationHandler.invoke(ExportProxyServiceRecord.java:56)
at $Proxy22888.sendRawMail(Unknown Source)
at com.ibm.team.jfs.mail.service.internal.MailerRestService.perform_POST(MailerRestService.java:182)
at com.ibm.team.repository.service.TeamRawService.service(TeamRawService.java:90)
at sun.reflect.GeneratedMethodAccessor447.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:618)
at org.eclipse.soda.sat.core.internal.record.ExportProxyServiceRecord.invoke(ExportProxyServiceRecord.java:370)
at org.eclipse.soda.sat.core.internal.record.ExportProxyServiceRecord.access$0(ExportProxyServiceRecord.java:356)
at org.eclipse.soda.sat.core.internal.record.ExportProxyServiceRecord$ExportedServiceInvocationHandler.invoke(ExportProxyServiceRecord.java:56)
at $Proxy22889.service(Unknown Source)
at com.ibm.team.repository.servlet.AbstractTeamServerServlet.doRestService(AbstractTeamServerServlet.java:823)
at com.ibm.team.repository.servlet.AbstractTeamServerServlet.handleRequest2(AbstractTeamServerServlet.java:1866)
at com.ibm.team.repository.servlet.AbstractTeamServerServlet.handleRequest(AbstractTeamServerServlet.java:1725)
at com.ibm.team.repository.servlet.AbstractTeamServerServlet.access$0(AbstractTeamServerServlet.java:1710)
at com.ibm.team.repository.servlet.AbstractTeamServerServlet$1.service(AbstractTeamServerServlet.java:198)
at com.ibm.team.repository.service.internal.oauth.OAuthServiceProvider.handleProxiedRequest(OAuthServiceProvider.java:600)
at com.ibm.team.repository.service.internal.oauth.OAuthServiceProvider.handleOAuthRequest(OAuthServiceProvider.java:299)
at sun.reflect.GeneratedMethodAccessor226.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:618)
at org.eclipse.soda.sat.core.internal.record.ExportProxyServiceRecord.invoke(ExportProxyServiceRecord.java:370)
at org.eclipse.soda.sat.core.internal.record.ExportProxyServiceRecord.access$0(ExportProxyServiceRecord.java:356)
at org.eclipse.soda.sat.core.internal.record.ExportProxyServiceRecord$ExportedServiceInvocationHandler.invoke(ExportProxyServiceRecord.java:56)
at $Proxy381.handleOAuthRequest(Unknown Source)
at com.ibm.team.repository.service.internal.oauth.OAuthHandler.handleRequest(OAuthHandler.java:79)
at sun.reflect.GeneratedMethodAccessor225.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:618)
at org.eclipse.soda.sat.core.internal.record.ExportProxyServiceRecord.invoke(ExportProxyServiceRecord.java:370)
at org.eclipse.soda.sat.core.internal.record.ExportProxyServiceRecord.access$0(ExportProxyServiceRecord.java:356)
at org.eclipse.soda.sat.core.internal.record.ExportProxyServiceRecord$ExportedServiceInvocationHandler.invoke(ExportProxyServiceRecord.java:56)
at $Proxy483.handleRequest(Unknown Source)
at com.ibm.team.repository.servlet.AbstractTeamServerServlet.service(AbstractTeamServerServlet.java:1578)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:729)
at org.eclipse.equinox.http.registry.internal.ServletManager$ServletWrapper.service(ServletManager.java:180)
at org.eclipse.equinox.http.servlet.internal.ServletRegistration.handleRequest(ServletRegistration.java:90)
at org.eclipse.equinox.http.servlet.internal.ProxyServlet.processAlias(ProxyServlet.java:111)
at org.eclipse.equinox.http.servlet.internal.ProxyServlet.service(ProxyServlet.java:75)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:729)
at org.eclipse.equinox.servletbridge.BridgeServlet.service(BridgeServlet.java:120)
at com.ibm.team.repository.server.servletbridge.JazzServlet.service(JazzServlet.java:76)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:729)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:269)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:172)
at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:563)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:117)
at org.apache.catalina.authenticator.SingleSignOn.invoke(SingleSignOn.java:393)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:108)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:174)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:879)
at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:665)
at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:528)
at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:81)
at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:689)
at java.lang.Thread.run(Thread.ja

3 answers



permanent link
Daniel Toczala (88211514) | answered May 17 '12, 1:55 p.m.
FORUM MODERATOR / JAZZ DEVELOPER
Aaron,

If it worked at one time, then it seems like the SMTP settings are probably OK. It could have something to do with certificates (did Amazon change any of the settings of the hosted server?).

I would try to use just a "dumb" SMTP client to connect to the MS Exchange server. Get it working with a "dumb" client, and see what settings seem to work. Then translate that into your Jazz deployment.

permanent link
Aaron Allsbrook (71257) | answered May 19 '12, 3:35 p.m.
Thanks for the tip, still not having much luck

I installed Thunderbird and put in settings for SMTP. Thunderbird is able to send email without issues.

I was able to give the server a restart on the weekend and now some things are working again (Work Item update notifications) although team invitataions still fail with this error.

https://jazz.net/forums/viewtopic.php?p=81135

I tried point to an ip address rather than the msonline hostname and it still fails.

All I know to do now is to write my own java mail client and debug it directly on the amazon server. Are their any other ideas?

My jazz.log has in it

2012-05-19 14:11:31,521 [           http-443-Processor8] ERROR com.ibm.team.process                                - CRJAZ1611E Error sending message.;

nested exception is:
com.ibm.team.repository.service.compatibility.util.http.CrossServerHttpClient$RestCommunicationException
javax.mail.MessagingException: CRJAZ1611E Error sending message.;
nested exception is:
com.ibm.team.repository.service.compatibility.util.http.CrossServerHttpClient$RestCommunicationException
at com.ibm.team.repository.service.compatibility.internal.mailer.MailerService.sendMail(MailerService.java:249)



My jts.log has

2012-05-19 14:04:13,534 [          http-443-Processor24] ERROR com.ibm.team.jfs                                    - CRJZS5074E Unexpected exception sending mail

java.lang.NullPointerException
at com.ibm.team.repository.service.jts.internal.mailer.MailerService.sendMessage(MailerService.java:383)

permanent link
Aaron Allsbrook (71257) | answered May 19 '12, 4:04 p.m.
On looking further at the AWS architecture, I searched and found this form.

https://aws-portal.amazon.com/gp/aws/html-forms-controller/contactus/ec2-email-limit-rdns-request

essentially its a request form to allow your EC2 instance to not be blocked by spam filters. (they limit email by default) The RTC error messages don't really match what I would expect if this is the issue, but its worth a shot.

After submitting the request, it should take about 2/3 days to find out. If it resolves my issue Ill report back.

Your answer


Register or to post your answer.


Dashboards and work items are no longer publicly available, so some links may be invalid. We now provide similar information through other means. Learn more here.