Confluence Returns A Blank Page When Visiting A Space
Symptoms
- Confluence renders a blank page when visiting a space.
- Only one particular space is affected.
- The
atlassian-confluence.log
file records the following stack trace every time the space is visited:
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
To identify if you have a null space description, run this query:
select * from spaces where spacedescid is null;
- Note down the space id as you will need it to fix your data.
If you find that
spacedescid
is null, you should fix it by running the queries below. You should shutdown Confluence and make a backup of your instance before hand.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.Restart Confluence and you should be able to access the space now.
Last modified on Mar 30, 2016
Powered by Confluence and Scroll Viewport.