Advertisement
ailioski-linkplus

Merci send mail bug

Apr 8th, 2020
506
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. 2020-04-08 10:22:40.990 DEBUG 15820 --- [   merci-task-1] com.linkplus.merci.service.MailService   : Enter: sendActivationEmail() with argument[s] = [User{login='a.ilioski@linkplus-it.com', firstName='null', lastName='null', email='a.ilioski@linkplus
  2. -it.com', imageUrl='null', activated='false', langKey='en', activationKey='WGULf0o12lXHtIL2gxrE'}]
  3. 2020-04-08 10:22:40.991 DEBUG 15820 --- [   merci-task-1] com.linkplus.merci.service.MailService   : Sending activation email to 'a.ilioski@linkplus-it.com'
  4. 2020-04-08 10:22:40.997 DEBUG 15820 --- [   merci-task-1] com.linkplus.merci.service.MailService   : Send email[multipart 'false' and html 'true'] to 'a.ilioski@linkplus-it.com' with subject 'merci account activation' and content=<!DOCTYPE html>
  5. <html lang="en">
  6.     <head>
  7.         <title>merci account activation</title>
  8.         <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
  9.         <link rel="shortcut icon" href="http://127.0.0.1:8081/favicon.ico" />
  10.     </head>
  11.     <body>
  12.         <p>Dear a.ilioski@linkplus-it.com</p>
  13.         <p>Your merci account has been created, please click on the URL below to activate it:</p>
  14.         <p>
  15.             <a href="http://127.0.0.1:8081/account/activate?key=WGULf0o12lXHtIL2gxrE">http://127.0.0.1:8081/account/activate?key=WGULf0o12lXHtIL2gxrE</a>
  16.         </p>
  17.         <p>
  18.             <span>Regards,</span>
  19.             <br/>
  20.             <em>merci Team.</em>
  21.         </p>
  22.     </body>
  23. </html>
  24.  
  25. 2020-04-08 10:22:43.002  WARN 15820 --- [   merci-task-1] com.linkplus.merci.service.MailService   : Email could not be sent to user 'a.ilioski@linkplus-it.com'
  26.  
  27. org.springframework.mail.MailSendException: Mail server connection failed; nested exception is com.sun.mail.util.MailConnectException: Couldn't connect to host, port: localhost, 25; timeout -1;
  28.  nested exception is:
  29.        java.net.ConnectException: Connection refused: connect. Failed messages: com.sun.mail.util.MailConnectException: Couldn't connect to host, port: localhost, 25; timeout -1;
  30.   nested exception is:
  31.         java.net.ConnectException: Connection refused: connect
  32.         at org.springframework.mail.javamail.JavaMailSenderImpl.doSend(JavaMailSenderImpl.java:448)
  33.         at org.springframework.mail.javamail.JavaMailSenderImpl.send(JavaMailSenderImpl.java:361)
  34.         at org.springframework.mail.javamail.JavaMailSenderImpl.send(JavaMailSenderImpl.java:356)
  35.         at com.linkplus.merci.service.MailService.sendEmail(MailService.java:67)
  36.         at com.linkplus.merci.service.MailService.sendEmailFromTemplate(MailService.java:86)
  37.         at com.linkplus.merci.service.MailService.sendActivationEmail(MailService.java:92)
  38.         at com.linkplus.merci.service.MailService$$FastClassBySpringCGLIB$$920f5eaa.invoke(<generated>)
  39.         at org.springframework.cglib.proxy.MethodProxy.invoke(MethodProxy.java:218)
  40.         at org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.invokeJoinpoint(CglibAopProxy.java:769)
  41.         at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:163)
  42.         at org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.proceed(CglibAopProxy.java:747)
  43.         at org.springframework.aop.aspectj.MethodInvocationProceedingJoinPoint.proceed(MethodInvocationProceedingJoinPoint.java:88)
  44.         at com.linkplus.merci.aop.logging.LoggingAspect.logAround(LoggingAspect.java:103)
  45.         at sun.reflect.GeneratedMethodAccessor385.invoke(Unknown Source)
  46.         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
  47.         at java.lang.reflect.Method.invoke(Method.java:498)
  48.         at org.springframework.aop.aspectj.AbstractAspectJAdvice.invokeAdviceMethodWithGivenArgs(AbstractAspectJAdvice.java:644)
  49.         at org.springframework.aop.aspectj.AbstractAspectJAdvice.invokeAdviceMethod(AbstractAspectJAdvice.java:633)
  50.         at org.springframework.aop.aspectj.AspectJAroundAdvice.invoke(AspectJAroundAdvice.java:70)
  51.         at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:186)
  52.         at org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.proceed(CglibAopProxy.java:747)
  53.         at org.springframework.aop.aspectj.AspectJAfterThrowingAdvice.invoke(AspectJAfterThrowingAdvice.java:62)
  54.         at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:186)
  55.         at org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.proceed(CglibAopProxy.java:747)
  56.         at org.springframework.aop.interceptor.ExposeInvocationInterceptor.invoke(ExposeInvocationInterceptor.java:95)
  57.         at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:186)
  58.         at org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.proceed(CglibAopProxy.java:747)
  59.         at org.springframework.aop.interceptor.AsyncExecutionInterceptor.lambda$invoke$0(AsyncExecutionInterceptor.java:115)
  60.         at java.util.concurrent.FutureTask.run(FutureTask.java:266)
  61.         at io.github.jhipster.async.ExceptionHandlingAsyncTaskExecutor.lambda$createWrappedRunnable$1(ExceptionHandlingAsyncTaskExecutor.java:78)
  62.         at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
  63.         at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
  64.         at java.lang.Thread.run(Thread.java:748)
  65. Caused by: com.sun.mail.util.MailConnectException: Couldn't connect to host, port: localhost, 25; timeout -1
  66.        at com.sun.mail.smtp.SMTPTransport.openServer(SMTPTransport.java:2209)
  67.        at com.sun.mail.smtp.SMTPTransport.protocolConnect(SMTPTransport.java:722)
  68.        at javax.mail.Service.connect(Service.java:342)
  69.        at org.springframework.mail.javamail.JavaMailSenderImpl.connectTransport(JavaMailSenderImpl.java:518)
  70.        at org.springframework.mail.javamail.JavaMailSenderImpl.doSend(JavaMailSenderImpl.java:437)
  71.        ... 32 common frames omitted
  72. Caused by: java.net.ConnectException: Connection refused: connect
  73.        at java.net.DualStackPlainSocketImpl.connect0(Native Method)
  74.        at java.net.DualStackPlainSocketImpl.socketConnect(DualStackPlainSocketImpl.java:79)
  75.        at java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:350)
  76.        at java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:206)
  77.        at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:188)
  78.        at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:172)
  79.        at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392)
  80.        at java.net.Socket.connect(Socket.java:606)
  81.        at java.net.Socket.connect(Socket.java:555)
  82.        at com.sun.mail.util.SocketFetcher.createSocket(SocketFetcher.java:335)
  83.        at com.sun.mail.util.SocketFetcher.getSocket(SocketFetcher.java:214)
  84.        at com.sun.mail.smtp.SMTPTransport.openServer(SMTPTransport.java:2160)
  85.        ... 36 common frames omitted
  86.  
  87. 2020-04-08 10:22:43.011 DEBUG 15820 --- [   merci-task-1] com.linkplus.merci.service.MailService   : Exit: sendActivationEmail() with result = null
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement