After upgrading from Confluence 5.1.5 to 5.4.1, I'm getting this error everytime a notification should be e-mailed:
WARN [http-127.0.0.1-4052-3] [atlassian.confluence.core.DefaultDataSourceFactory] getAvatar Error getting profile picture for user=[...], profilePicture=[com.atlassian.confluence.user.actions.ProfilePictureInfo@834a80[downloadPath=/download/attachments/491635/....jpg?version=26&modificationDate=1393303313000&api=v2,fileName=....jpg,uploaded=true]] : The [DefaultAttachmentManager] is missing a reference to a [ContentEntityObjectDao] due to being improperly initialized via a legacy constructor. -- referer: .../very+basic+page | url: /wiki/rest/share-page/latest/share | userName: ... java.lang.RuntimeException: The [DefaultAttachmentManager] is missing a reference to a [ContentEntityObjectDao] due to being improperly initialized via a legacy constructor. at com.atlassian.confluence.core.MaybeNot.becauseOf(MaybeNot.java:53) at com.atlassian.confluence.pages.DefaultAttachmentManager.getContentEntityObjectDao(DefaultAttachmentManager.java:454) at com.atlassian.confluence.pages.DefaultAttachmentManager.getAttachmentForDownloadPath(DefaultAttachmentManager.java:420) at com.atlassian.confluence.pages.DelegatorAttachmentManager.getAttachmentForDownloadPath(DelegatorAttachmentManager.java:232) at com.atlassian.confluence.pages.CachingAttachmentManager.getAttachmentForDownloadPath(CachingAttachmentManager.java:211) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:606) at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:307) at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:182) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:149) at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:106) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171) at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204) at com.sun.proxy.$Proxy85.getAttachmentForDownloadPath(Unknown Source) at com.atlassian.confluence.core.DefaultDataSourceFactory.getDataSourceFromAttachmentDownloadPath(DefaultDataSourceFactory.java:155) at com.atlassian.confluence.core.DefaultDataSourceFactory.getAvatar(DefaultDataSourceFactory.java:101) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:606) at com.atlassian.plugin.osgi.hostcomponents.impl.DefaultComponentRegistrar$ContextClassLoaderSettingInvocationHandler.invoke(DefaultComponentRegistrar.java:129) at com.sun.proxy.$Proxy191.getAvatar(Unknown Source) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:606) at com.atlassian.plugin.osgi.bridge.external.HostComponentFactoryBean$DynamicServiceInvocationHandler.invoke(HostComponentFactoryBean.java:154) at com.sun.proxy.$Proxy191.getAvatar(Unknown Source) at com.atlassian.confluence.plugins.sharepage.api.SharePageServiceImpl.createAvatarDataHandler(SharePageServiceImpl.java:619) at com.atlassian.confluence.plugins.sharepage.api.SharePageServiceImpl.doShare(SharePageServiceImpl.java:217) at com.atlassian.confluence.plugins.sharepage.api.SharePageServiceImpl.share(SharePageServiceImpl.java:203) at com.atlassian.confluence.plugins.sharepage.rest.ShareResource.share(ShareResource.java:29) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) ...
As a result, the notification e-mail is without the user profile picture, and the log keeps getting trashed.
I've disabled all user installed plugins, and cleared the whole plugins cache, but no result whatsoever.
Any idea what can be causing this? Some fault at my side or perhaps a confluence issue?
Community moderators have prevented the ability to post new answers.
Hi Pance,
Looking at the stacktrace, it seem like you have hit into this known bug https://jira.atlassian.com/browse/CONF-32761. THe temporary workaround to this bug is to use filesystem attachment storage.
Regards,
Jing Hwa
Hi Jing,
Thanks for the reply. I will be watching the bug progress.
Pance.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.