Confluence Returns A Blank Page When Visiting A Space

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

  1. Confluence renders a blank page when visiting a space.

  2. Only one particular space is affected.

  3. The atlassian-confluence.log file records the following stack trace every time the space is visited:

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 2010-03-02 17:33:14,118 ERROR [http-8081-1] [confluence.util.velocity.VelocityUtils] getRenderedTemplate Error occurred rendering template: /decorators/main.vmd -- referer: http://localhost:8081/dashboard.action | url: /display/DOC1/Confluence+Documentation+Home | userName: wikiadmin org.apache.velocity.exception.MethodInvocationException: Invocation of method 'getAttachment' in class $Proxy16 threw exception java.lang.IllegalArgumentException: Content entity object should not be null @ /decorators/main.vmd[5,69] at org.apache.velocity.runtime.parser.node.ASTMethod.execute(ASTMethod.java:286) : : Caused by: java.lang.IllegalArgumentException: Content entity object should not be null at org.springframework.util.Assert.notNull(Assert.java:112) at com.atlassian.confluence.pages.persistence.dao.hibernate.AbstractHibernateAttachmentDao.getLatestVersionsOfAttachments(AbstractHibernateAttachmentDao.java:78) at com.atlassian.confluence.pages.DefaultAttachmentManager.getLatestVersionsOfAttachments(DefaultAttachmentManager.java:63) at com.atlassian.confluence.pages.AbstractAttachmentManager.getAttachment(AbstractAttachmentManager.java:51) at com.atlassian.confluence.pages.AbstractAttachmentManager.getAttachment(AbstractAttachmentManager.java:32) at com.atlassian.confluence.pages.DelegatorAttachmentManager.getAttachment(DelegatorAttachmentManager.java:83) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ... at org.apache.velocity.runtime.parser.node.ASTMethod.execute(ASTMethod.java:245) ... 121 more

Cause

All spaces must have a space description object but in your particular space your Space Description Object is null.

Resolution

  1. To identify if you have a null space description, run this query:

    1 select * from spaces where spacedescid is null;
  2. Note down the space id as you will need it to fix your data.

  3. If you find that spacedescidis null, you should fix it by running the queries below. You should shutdown Confluence and make a backup of your instance before hand.

    1 2 3 4 5 insert into content values (9999999, 'SPACEDESCRIPTION', null, 1, 'wikiadmin', '2004-11-15 18:17:00.527', 'wikiadmin', '2004-11-15 18:17:00.527', '', null, 'current',XXXX, null, null,null, null, null,null, null, null,null,null); update spaces set spacedescid = 9999999 where spaceid = XXXX;

    ℹ️ Replace XXXX with spaceid of the problematic space.

  4. Restart Confluence and you should be able to access the space now.

Updated on April 15, 2025

Still need help?

The Atlassian Community is here for you.