← Back to team overview

dhis2-devs team mailing list archive

Error when sending emails

 

Hi there.

We recently upgraded an instance to 2.22 and enabled encryption. Things
seem to start up correctly, but when attempting to send an email, we get
the following error.

Is this a configuration issue?

Regards,
Jason


* ERROR 2016-05-26 04:07:35,858 Unexpected error occurred invoking async
method 'public java.lang.String
org.hisp.dhis.message.EmailMessageSender.sendMessage(java.lang.String,java.lang.String,java.lang.String,org.hisp.dhis.user.User,java.
util.Set,boolean)'. (SimpleAsyncUncaughtExceptionHandler.java
[SimpleAsyncTaskExecutor-9611])
com.google.common.util.concurrent.UncheckedExecutionException:
org.jasypt.exceptions.EncryptionOperationNotPossibleException
at com.google.common.cache.LocalCache$Segment.get(LocalCache.java:2207)
at com.google.common.cache.LocalCache.get(LocalCache.java:3953)
at
com.google.common.cache.LocalCache$LocalManualCache.get(LocalCache.java:4790)
at
org.hisp.dhis.setting.DefaultSystemSettingManager.getSystemSetting(DefaultSystemSettingManager.java:187)
at sun.reflect.GeneratedMethodAccessor298.invoke(Unknown Source)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at
org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:317)
at
org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:201)
at com.sun.proxy.$Proxy91.getSystemSetting(Unknown Source)
at
org.hisp.dhis.message.EmailMessageSender.sendMessage(EmailMessageSender.java:106)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at
org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:317)
at
org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:190)
at
org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:157)
at
org.springframework.aop.interceptor.AsyncExecutionInterceptor$1.call(AsyncExecutionInterceptor.java:110)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at java.lang.Thread.run(Thread.java:745)
Caused by: org.jasypt.exceptions.EncryptionOperationNotPossibleException
at
org.jasypt.encryption.pbe.StandardPBEByteEncryptor.decrypt(StandardPBEByteEncryptor.java:1055)
at
org.jasypt.encryption.pbe.StandardPBEStringEncryptor.decrypt(StandardPBEStringEncryptor.java:725)
at
org.jasypt.encryption.pbe.PooledPBEStringEncryptor.decrypt(PooledPBEStringEncryptor.java:498)
at
org.hisp.dhis.setting.DefaultSystemSettingManager.getSystemSettingOptional(DefaultSystemSettingManager.java:229)
at
org.hisp.dhis.setting.DefaultSystemSettingManager.lambda$getSystemSetting$1(DefaultSystemSettingManager.java:188)
at
com.google.common.cache.LocalCache$LocalManualCache$1.load(LocalCache.java:4793)
at
com.google.common.cache.LocalCache$LoadingValueReference.loadFuture(LocalCache.java:3542)
at com.google.common.cache.LocalCache$Segment.loadSync(LocalCache.java:2323)
at
com.google.common.cache.LocalCache$Segment.lockedGetOrLoad(LocalCache.java:2286)
at com.google.common.cache.LocalCache$Segment.get(LocalCache.java:2201)
... 20 more

-- 
Jason P. Pickering
email: jason.p.pickering@xxxxxxxxx
tel:+46764147049