[ 
https://issues.apache.org/jira/browse/OPENMEETINGS-729?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Maxim Solodovnik resolved OPENMEETINGS-729.
-------------------------------------------

       Resolution: Fixed
    Fix Version/s: 3.0.0 Apache Release
         Assignee: Maxim Solodovnik

Committed revision 1510045.
                
> Empty / null values in email_username/password throws Exception when 
> processing emails
> --------------------------------------------------------------------------------------
>
>                 Key: OPENMEETINGS-729
>                 URL: https://issues.apache.org/jira/browse/OPENMEETINGS-729
>             Project: Openmeetings
>          Issue Type: Bug
>    Affects Versions: 3.0.0 Apache Release
>            Reporter: SebastianWagner
>            Assignee: Maxim Solodovnik
>             Fix For: 3.0.0 Apache Release
>
>
> By default username and password for the email configuration can be left out 
> and they will default to null.
> This is a desired behaviour, if you send mails through localhost you often 
> don't need a user/name password.
> However our application throws an error everytime it tries to process the 
> emails:
> ERROR 08-03 03:02:00.198 ConfigurationDao.java 438052 134 
> org.apache.openmeetings.data.basic.dao.ConfigurationDao 
> [org.springframework.scheduling.quartz.SchedulerFactoryBean#0_Worker-5] - 
> cannot be cast to return type, you have misconfigured your configuration 
> CONF_KEY: email_username
> java.lang.NullPointerException: null
>       at 
> org.apache.openmeetings.data.basic.dao.ConfigurationDao.getConfValue(ConfigurationDao.java:127)
>  ~[openmeetings-3.0.0-SNAPSHOT.jar:na]
>       at 
> org.apache.openmeetings.data.basic.dao.ConfigurationDao$$FastClassByCGLIB$$850542c6.invoke(<generated>)
>  [cglib-nodep-2.2.2.jar:na]
>       at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:204) 
> [cglib-nodep-2.2.2.jar:na]
>       at 
> org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:689)
>  [spring-aop-3.1.1.RELEASE.jar:3.1.1.RELEASE]
>       at 
> org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
>  [spring-aop-3.1.1.RELEASE.jar:3.1.1.RELEASE]
>       at 
> org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:110)
>  [spring-tx-jar-3.1.1.RELEASE.jar:3.1.1.RELEASE]
>       at 
> org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
>  [spring-aop-3.1.1.RELEASE.jar:3.1.1.RELEASE]
>       at 
> org.springframework.aop.framework.Cglib2AopProxy$DynamicAdvisedInterceptor.intercept(Cglib2AopProxy.java:622)
>  [spring-aop-3.1.1.RELEASE.jar:3.1.1.RELEASE]
>       at 
> org.apache.openmeetings.data.basic.dao.ConfigurationDao$$EnhancerByCGLIB$$f9d3ca25.getConfValue(<generated>)
>  [cglib-nodep-2.2.2.jar:na]
>       at 
> org.apache.openmeetings.utils.mail.MailHandler.init(MailHandler.java:89) 
> [openmeetings-3.0.0-SNAPSHOT.jar:na]
>       at 
> org.apache.openmeetings.utils.mail.MailHandler.sendMails(MailHandler.java:255)
>  [openmeetings-3.0.0-SNAPSHOT.jar:na]
>       at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) 
> ~[na:1.6.0_27]
>       at 
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) 
> ~[na:1.6.0_27]
>       at 
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>  ~[na:1.6.0_27]
>       at java.lang.reflect.Method.invoke(Method.java:616) ~[na:1.6.0_27]
>       at 
> org.springframework.util.MethodInvoker.invoke(MethodInvoker.java:273) 
> [spring-core-3.1.1.RELEASE.jar:3.1.1.RELEASE]
>       at 
> org.springframework.scheduling.quartz.MethodInvokingJobDetailFactoryBean$MethodInvokingJob.executeInternal(MethodInvokingJobDetailFactoryBean.java:311)
>  [spring-context-support-jar-3.1.1.RELEASE.jar:3.1.1.RELEASE]
>       at 
> org.springframework.scheduling.quartz.QuartzJobBean.execute(QuartzJobBean.java:113)
>  [spring-context-support-jar-3.1.1.RELEASE.jar:3.1.1.RELEASE]
>       at org.quartz.core.JobRunShell.run(JobRunShell.java:213) 
> [quartz-2.1.6.jar:na]
>       at 
> org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:557) 
> [quartz-2.1.6.jar:na]
> ERROR 08-03 03:02:00.203 ConfigurationDao.java 438057 134 
> org.apache.openmeetings.data.basic.dao.ConfigurationDao 
> [org.springframework.scheduling.quartz.SchedulerFactoryBean#0_Worker-5] - 
> cannot be cast to return type, you have misconfigured your configuration 
> CONF_KEY: email_userpass
> java.lang.NullPointerException: null
>       at 
> org.apache.openmeetings.data.basic.dao.ConfigurationDao.getConfValue(ConfigurationDao.java:127)
>  ~[openmeetings-3.0.0-SNAPSHOT.jar:na]
>       at 
> org.apache.openmeetings.data.basic.dao.ConfigurationDao$$FastClassByCGLIB$$850542c6.invoke(<generated>)
>  [cglib-nodep-2.2.2.jar:na]
>       at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:204) 
> [cglib-nodep-2.2.2.jar:na]
>       at 
> org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:689)
>  [spring-aop-3.1.1.RELEASE.jar:3.1.1.RELEASE]
>       at 
> org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
>  [spring-aop-3.1.1.RELEASE.jar:3.1.1.RELEASE]
>       at 
> org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:110)
>  [spring-tx-jar-3.1.1.RELEASE.jar:3.1.1.RELEASE]
>       at 
> org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
>  [spring-aop-3.1.1.RELEASE.jar:3.1.1.RELEASE]
>       at 
> org.springframework.aop.framework.Cglib2AopProxy$DynamicAdvisedInterceptor.intercept(Cglib2AopProxy.java:622)
>  [spring-aop-3.1.1.RELEASE.jar:3.1.1.RELEASE]
>       at 
> org.apache.openmeetings.data.basic.dao.ConfigurationDao$$EnhancerByCGLIB$$f9d3ca25.getConfValue(<generated>)
>  [cglib-nodep-2.2.2.jar:na]
>       at 
> org.apache.openmeetings.utils.mail.MailHandler.init(MailHandler.java:90) 
> [openmeetings-3.0.0-SNAPSHOT.jar:na]
>       at 
> org.apache.openmeetings.utils.mail.MailHandler.sendMails(MailHandler.java:255)
>  [openmeetings-3.0.0-SNAPSHOT.jar:na]
>       at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) 
> ~[na:1.6.0_27]
>       at 
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) 
> ~[na:1.6.0_27]
>       at 
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>  ~[na:1.6.0_27]
>       at java.lang.reflect.Method.invoke(Method.java:616) ~[na:1.6.0_27]
>       at 
> org.springframework.util.MethodInvoker.invoke(MethodInvoker.java:273) 
> [spring-core-3.1.1.RELEASE.jar:3.1.1.RELEASE]
>       at 
> org.springframework.scheduling.quartz.MethodInvokingJobDetailFactoryBean$MethodInvokingJob.executeInternal(MethodInvokingJobDetailFactoryBean.java:311)
>  [spring-context-support-jar-3.1.1.RELEASE.jar:3.1.1.RELEASE]
>       at 
> org.springframework.scheduling.quartz.QuartzJobBean.execute(QuartzJobBean.java:113)
>  [spring-context-support-jar-3.1.1.RELEASE.jar:3.1.1.RELEASE]
>       at org.quartz.core.JobRunShell.run(JobRunShell.java:213) 
> [quartz-2.1.6.jar:na]
>       at 
> org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:557) 
> [quartz-2.1.6.jar:na]

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Reply via email to