javax.mail.internet.AddressException: Illegal address

Apereo Issues | Jason Elwood | 4 years ago
tip
Do you know that we can give you better hits? Get more relevant results from Samebug’s stack trace search.
  1. 0

    It appears that my local system is attempting to send mail even though the config.send_mail = False. The message.sent_date values are seconds to minutes after the created date. The logs shows the attempt as caught by a data error. DEV: 18:34:20.134 [sspScheduler-3] WARN o.j.s.s.impl.MessageServiceImpl - Invalid carbon copy address: ','. Will attempt to send message anyway. javax.mail.internet.AddressException: Illegal address at org.springframework.mail.javamail.MimeMessageHelper.parseAddress(MimeMessageHelper.java:708) ~[spring-context-support-3.1.2.RELEASE.jar:3.1.2.RELEASE] at org.springframework.mail.javamail.MimeMessageHelper.setCc(MimeMessageHelper.java:630) ~[spring-context-support-3.1.2.RELEASE.jar:3.1.2.RELEASE] at org.jasig.ssp.service.impl.MessageServiceImpl.sendMessage(MessageServiceImpl.java:363) [MessageServiceImpl.class:na] at org.jasig.ssp.service.impl.MessageServiceImpl.sendQueuedMessageBatch(MessageServiceImpl.java:283) [MessageServiceImpl.class:na] at org.jasig.ssp.service.impl.MessageServiceImpl.access$000(MessageServiceImpl.java:68) [MessageServiceImpl.class:na] at org.jasig.ssp.service.impl.MessageServiceImpl$1.call(MessageServiceImpl.java:225) [MessageServiceImpl$1.class:na] at org.jasig.ssp.service.impl.MessageServiceImpl$1.call(MessageServiceImpl.java:221) [MessageServiceImpl$1.class:na] at org.jasig.ssp.util.transaction.WithTransactionImpl.doWork(WithTransactionImpl.java:55) [WithTransactionImpl.class:na] at org.jasig.ssp.util.transaction.WithTransactionImpl.doWorkUnchecked(WithTransactionImpl.java:60) [WithTransactionImpl.class:na] at org.jasig.ssp.util.transaction.WithTransactionImpl.withTransactionAndUncheckedExceptions(WithTransactionImpl.java:51) [WithTransactionImpl.class:na] at sun.reflect.GeneratedMethodAccessor558.invoke(Unknown Source) ~[na:na] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) ~[na:1.6.0_38] at java.lang.reflect.Method.invoke(Method.java:597) ~[na:1.6.0_38] at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:319) [spring-aop-3.1.2.RELEASE.jar:3.1.2.RELEASE] at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:183) [spring-aop-3.1.2.RELEASE.jar:3.1.2.RELEASE] at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150) [spring-aop-3.1.2.RELEASE.jar:3.1.2.RELEASE] at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:110) [spring-tx-3.1.2.RELEASE.jar:3.1.2.RELEASE] at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172) [spring-aop-3.1.2.RELEASE.jar:3.1.2.RELEASE] at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:202) [spring-aop-3.1.2.RELEASE.jar:3.1.2.RELEASE] at $Proxy263.withTransactionAndUncheckedExceptions(Unknown Source) [na:na] at org.jasig.ssp.service.impl.MessageServiceImpl.sendQueuedMessages(MessageServiceImpl.java:219) [MessageServiceImpl.class:na] at sun.reflect.GeneratedMethodAccessor557.invoke(Unknown Source) ~[na:na] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) ~[na:1.6.0_38] at java.lang.reflect.Method.invoke(Method.java:597) ~[na:1.6.0_38] at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:319) [spring-aop-3.1.2.RELEASE.jar:3.1.2.RELEASE] at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:196) [spring-aop-3.1.2.RELEASE.jar:3.1.2.RELEASE] at $Proxy267.sendQueuedMessages(Unknown Source) [na:na] at sun.reflect.GeneratedMethodAccessor556.invoke(Unknown Source) ~[na:na] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) ~[na:1.6.0_38] at java.lang.reflect.Method.invoke(Method.java:597) ~[na:1.6.0_38] at org.springframework.scheduling.support.ScheduledMethodRunnable.run(ScheduledMethodRunnable.java:64) [spring-context-3.1.2.RELEASE.jar:3.1.2.RELEASE] at org.springframework.scheduling.support.DelegatingErrorHandlingRunnable.run(DelegatingErrorHandlingRunnable.java:53) [spring-context-3.1.2.RELEASE.jar:3.1.2.RELEASE] at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:439) [na:1.6.0_38] at java.util.concurrent.FutureTask$Sync.innerRunAndReset(FutureTask.java:317) [na:1.6.0_38] at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:150) [na:1.6.0_38] at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$101(ScheduledThreadPoolExecutor.java:98) [na:1.6.0_38] at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.runPeriodic(ScheduledThreadPoolExecutor.java:180) [na:1.6.0_38] at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:204) [na:1.6.0_38] at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) [na:1.6.0_38] at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) [na:1.6.0_38] at java.lang.Thread.run(Thread.java:662) [na:1.6.0_38] DEV: 18:34:20.137 [sspScheduler-3] WARN o.j.s.s.impl.MessageServiceImpl - _ : JavaMailSender was not called; message was marked sent but was not actually sent. To enable mail, update the configuration of the app.

    Apereo Issues | 4 years ago | Jason Elwood
    javax.mail.internet.AddressException: Illegal address
  2. 0

    It appears that my local system is attempting to send mail even though the config.send_mail = False. The message.sent_date values are seconds to minutes after the created date. The logs shows the attempt as caught by a data error. DEV: 18:34:20.134 [sspScheduler-3] WARN o.j.s.s.impl.MessageServiceImpl - Invalid carbon copy address: ','. Will attempt to send message anyway. javax.mail.internet.AddressException: Illegal address at org.springframework.mail.javamail.MimeMessageHelper.parseAddress(MimeMessageHelper.java:708) ~[spring-context-support-3.1.2.RELEASE.jar:3.1.2.RELEASE] at org.springframework.mail.javamail.MimeMessageHelper.setCc(MimeMessageHelper.java:630) ~[spring-context-support-3.1.2.RELEASE.jar:3.1.2.RELEASE] at org.jasig.ssp.service.impl.MessageServiceImpl.sendMessage(MessageServiceImpl.java:363) [MessageServiceImpl.class:na] at org.jasig.ssp.service.impl.MessageServiceImpl.sendQueuedMessageBatch(MessageServiceImpl.java:283) [MessageServiceImpl.class:na] at org.jasig.ssp.service.impl.MessageServiceImpl.access$000(MessageServiceImpl.java:68) [MessageServiceImpl.class:na] at org.jasig.ssp.service.impl.MessageServiceImpl$1.call(MessageServiceImpl.java:225) [MessageServiceImpl$1.class:na] at org.jasig.ssp.service.impl.MessageServiceImpl$1.call(MessageServiceImpl.java:221) [MessageServiceImpl$1.class:na] at org.jasig.ssp.util.transaction.WithTransactionImpl.doWork(WithTransactionImpl.java:55) [WithTransactionImpl.class:na] at org.jasig.ssp.util.transaction.WithTransactionImpl.doWorkUnchecked(WithTransactionImpl.java:60) [WithTransactionImpl.class:na] at org.jasig.ssp.util.transaction.WithTransactionImpl.withTransactionAndUncheckedExceptions(WithTransactionImpl.java:51) [WithTransactionImpl.class:na] at sun.reflect.GeneratedMethodAccessor558.invoke(Unknown Source) ~[na:na] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) ~[na:1.6.0_38] at java.lang.reflect.Method.invoke(Method.java:597) ~[na:1.6.0_38] at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:319) [spring-aop-3.1.2.RELEASE.jar:3.1.2.RELEASE] at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:183) [spring-aop-3.1.2.RELEASE.jar:3.1.2.RELEASE] at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150) [spring-aop-3.1.2.RELEASE.jar:3.1.2.RELEASE] at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:110) [spring-tx-3.1.2.RELEASE.jar:3.1.2.RELEASE] at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172) [spring-aop-3.1.2.RELEASE.jar:3.1.2.RELEASE] at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:202) [spring-aop-3.1.2.RELEASE.jar:3.1.2.RELEASE] at $Proxy263.withTransactionAndUncheckedExceptions(Unknown Source) [na:na] at org.jasig.ssp.service.impl.MessageServiceImpl.sendQueuedMessages(MessageServiceImpl.java:219) [MessageServiceImpl.class:na] at sun.reflect.GeneratedMethodAccessor557.invoke(Unknown Source) ~[na:na] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) ~[na:1.6.0_38] at java.lang.reflect.Method.invoke(Method.java:597) ~[na:1.6.0_38] at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:319) [spring-aop-3.1.2.RELEASE.jar:3.1.2.RELEASE] at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:196) [spring-aop-3.1.2.RELEASE.jar:3.1.2.RELEASE] at $Proxy267.sendQueuedMessages(Unknown Source) [na:na] at sun.reflect.GeneratedMethodAccessor556.invoke(Unknown Source) ~[na:na] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) ~[na:1.6.0_38] at java.lang.reflect.Method.invoke(Method.java:597) ~[na:1.6.0_38] at org.springframework.scheduling.support.ScheduledMethodRunnable.run(ScheduledMethodRunnable.java:64) [spring-context-3.1.2.RELEASE.jar:3.1.2.RELEASE] at org.springframework.scheduling.support.DelegatingErrorHandlingRunnable.run(DelegatingErrorHandlingRunnable.java:53) [spring-context-3.1.2.RELEASE.jar:3.1.2.RELEASE] at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:439) [na:1.6.0_38] at java.util.concurrent.FutureTask$Sync.innerRunAndReset(FutureTask.java:317) [na:1.6.0_38] at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:150) [na:1.6.0_38] at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$101(ScheduledThreadPoolExecutor.java:98) [na:1.6.0_38] at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.runPeriodic(ScheduledThreadPoolExecutor.java:180) [na:1.6.0_38] at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:204) [na:1.6.0_38] at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) [na:1.6.0_38] at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) [na:1.6.0_38] at java.lang.Thread.run(Thread.java:662) [na:1.6.0_38] DEV: 18:34:20.137 [sspScheduler-3] WARN o.j.s.s.impl.MessageServiceImpl - _ : JavaMailSender was not called; message was marked sent but was not actually sent. To enable mail, update the configuration of the app.

    Apereo Issues | 4 years ago | Jason Elwood
    javax.mail.internet.AddressException: Illegal address

    Root Cause Analysis

    1. javax.mail.internet.AddressException

      Illegal address

      at org.springframework.mail.javamail.MimeMessageHelper.parseAddress()
    2. Spring Context Support
      MimeMessageHelper.setCc
      1. org.springframework.mail.javamail.MimeMessageHelper.parseAddress(MimeMessageHelper.java:708)[spring-context-support-3.1.2.RELEASE.jar:3.1.2.RELEASE]
      2. org.springframework.mail.javamail.MimeMessageHelper.setCc(MimeMessageHelper.java:630)[spring-context-support-3.1.2.RELEASE.jar:3.1.2.RELEASE]
      2 frames
    3. org.jasig.ssp
      WithTransactionImpl.withTransactionAndUncheckedExceptions
      1. org.jasig.ssp.service.impl.MessageServiceImpl.sendMessage(MessageServiceImpl.java:363)[MessageServiceImpl.class:na]
      2. org.jasig.ssp.service.impl.MessageServiceImpl.sendQueuedMessageBatch(MessageServiceImpl.java:283)[MessageServiceImpl.class:na]
      3. org.jasig.ssp.service.impl.MessageServiceImpl.access$000(MessageServiceImpl.java:68)[MessageServiceImpl.class:na]
      4. org.jasig.ssp.service.impl.MessageServiceImpl$1.call(MessageServiceImpl.java:225)[MessageServiceImpl$1.class:na]
      5. org.jasig.ssp.service.impl.MessageServiceImpl$1.call(MessageServiceImpl.java:221)[MessageServiceImpl$1.class:na]
      6. org.jasig.ssp.util.transaction.WithTransactionImpl.doWork(WithTransactionImpl.java:55)[WithTransactionImpl.class:na]
      7. org.jasig.ssp.util.transaction.WithTransactionImpl.doWorkUnchecked(WithTransactionImpl.java:60)[WithTransactionImpl.class:na]
      8. org.jasig.ssp.util.transaction.WithTransactionImpl.withTransactionAndUncheckedExceptions(WithTransactionImpl.java:51)[WithTransactionImpl.class:na]
      8 frames
    4. Java RT
      Method.invoke
      1. sun.reflect.GeneratedMethodAccessor558.invoke(Unknown Source)[na:na]
      2. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)[na:1.6.0_38]
      3. java.lang.reflect.Method.invoke(Method.java:597)[na:1.6.0_38]
      3 frames
    5. Spring AOP
      ReflectiveMethodInvocation.proceed
      1. org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:319)[spring-aop-3.1.2.RELEASE.jar:3.1.2.RELEASE]
      2. org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:183)[spring-aop-3.1.2.RELEASE.jar:3.1.2.RELEASE]
      3. org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)[spring-aop-3.1.2.RELEASE.jar:3.1.2.RELEASE]
      3 frames
    6. Spring Tx
      TransactionInterceptor.invoke
      1. org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:110)[spring-tx-3.1.2.RELEASE.jar:3.1.2.RELEASE]
      1 frame
    7. Spring AOP
      JdkDynamicAopProxy.invoke
      1. org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)[spring-aop-3.1.2.RELEASE.jar:3.1.2.RELEASE]
      2. org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:202)[spring-aop-3.1.2.RELEASE.jar:3.1.2.RELEASE]
      2 frames
    8. Unknown
      $Proxy263.withTransactionAndUncheckedExceptions
      1. $Proxy263.withTransactionAndUncheckedExceptions(Unknown Source)[na:na]
      1 frame
    9. org.jasig.ssp
      MessageServiceImpl.sendQueuedMessages
      1. org.jasig.ssp.service.impl.MessageServiceImpl.sendQueuedMessages(MessageServiceImpl.java:219)[MessageServiceImpl.class:na]
      1 frame
    10. Java RT
      Method.invoke
      1. sun.reflect.GeneratedMethodAccessor557.invoke(Unknown Source)[na:na]
      2. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)[na:1.6.0_38]
      3. java.lang.reflect.Method.invoke(Method.java:597)[na:1.6.0_38]
      3 frames
    11. Spring AOP
      JdkDynamicAopProxy.invoke
      1. org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:319)[spring-aop-3.1.2.RELEASE.jar:3.1.2.RELEASE]
      2. org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:196)[spring-aop-3.1.2.RELEASE.jar:3.1.2.RELEASE]
      2 frames
    12. Unknown
      $Proxy267.sendQueuedMessages
      1. $Proxy267.sendQueuedMessages(Unknown Source)[na:na]
      1 frame
    13. Java RT
      Method.invoke
      1. sun.reflect.GeneratedMethodAccessor556.invoke(Unknown Source)[na:na]
      2. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)[na:1.6.0_38]
      3. java.lang.reflect.Method.invoke(Method.java:597)[na:1.6.0_38]
      3 frames
    14. Spring Context
      DelegatingErrorHandlingRunnable.run
      1. org.springframework.scheduling.support.ScheduledMethodRunnable.run(ScheduledMethodRunnable.java:64)[spring-context-3.1.2.RELEASE.jar:3.1.2.RELEASE]
      2. org.springframework.scheduling.support.DelegatingErrorHandlingRunnable.run(DelegatingErrorHandlingRunnable.java:53)[spring-context-3.1.2.RELEASE.jar:3.1.2.RELEASE]
      2 frames
    15. Java RT
      Thread.run
      1. java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:439)[na:1.6.0_38]
      2. java.util.concurrent.FutureTask$Sync.innerRunAndReset(FutureTask.java:317)[na:1.6.0_38]
      3. java.util.concurrent.FutureTask.runAndReset(FutureTask.java:150)[na:1.6.0_38]
      4. java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$101(ScheduledThreadPoolExecutor.java:98)[na:1.6.0_38]
      5. java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.runPeriodic(ScheduledThreadPoolExecutor.java:180)[na:1.6.0_38]
      6. java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:204)[na:1.6.0_38]
      7. java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)[na:1.6.0_38]
      8. java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)[na:1.6.0_38]
      9. java.lang.Thread.run(Thread.java:662)[na:1.6.0_38]
      9 frames