Gravatar Plugin Cause Confluence Unable to Share a Page to Specific User(s)

Platform Notice: Data Center Only - This article only applies to Atlassian products on the Data Center platform.

Note that this KB was created for the Data Center version of the product. Data Center KBs for non-Data-Center-specific features may also work for Server versions of the product, however they have not been tested. Support for Server* products ended on February 15th 2024. If you are running a Server product, you can visit the Atlassian Server end of support announcement to review your migration options.

*Except Fisheye and Crucible

Symptoms

Confluence unable to share a page to a specific user(s). When it is configured to share a page to multiple user, it works fine for the other users, however Confluence still unable to share to the problematic. This issue only occur when Gravatar plugin is installed in Confluence. The following appears in the atlassian-confluence.log:

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 2013-10-01 22:28:57,041 ERROR [http-8090-2] [common.error.jersey.ThrowableExceptionMapper] toResponse Uncaught exception thrown by REST service – referer: http://localhost:8090/display/TS/Test+Page | url: /rest/share-page/latest/share | userName: admin java.lang.NullPointerException at javax.mail.util.ByteArrayDataSource.<init>(ByteArrayDataSource.java:87) at com.atlassian.confluence.core.DefaultDataSourceFactory.getServletContainerResource(DefaultDataSourceFactory.java:211) at com.atlassian.confluence.core.DefaultDataSourceFactory.getAvatar(DefaultDataSourceFactory.java:112) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at ... com.atlassian.plugin.osgi.bridge.external.HostComponentFactoryBean$DynamicServiceInvocationHandler.invoke(HostComponentFactoryBean.java:154) at com.sun.proxy.$Proxy130.getAvatar(Unknown Source) at com.atlassian.confluence.plugins.sharepage.api.SharePageServiceImpl.createAvatarDataHandler(SharePageServiceImpl.java:526) at com.atlassian.confluence.plugins.sharepage.api.SharePageServiceImpl.doShare(SharePageServiceImpl.java:214) at com.atlassian.confluence.plugins.sharepage.api.SharePageServiceImpl.share(SharePageServiceImpl.java:192) at com.atlassian.confluence.plugins.sharepage.rest.ShareResource.share(ShareResource.java:29) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source)

Cause

The Problematic user(s) is missing its Gravatar profile picture configured on their profile information.

Resolution

  1. Use Confluence default avatar and see if the issue persist

  2. If the issue persist, un-installed Gravatar plugin as it is not supported for Confluence 5.x

  3. Upload a new profile picture after the issue is resolved

Updated on April 8, 2025

Still need help?

The Atlassian Community is here for you.