Details
-
Bug
-
Resolution: Fixed
-
Medium
-
4.0.3
-
None
-
Windows 7, Chrome
Description
Problem description
This error occurs in new installations of 4.0-4.0.3 where, in the setup wizard, the user has opted to install the demo space. This can also happen during an upgrade from a pre 4.x Confluence installation but is rare.
Here are the steps that you can take to reproduce this bug :
- Install a clean instance of Confluence 4.0.3. (Installed by following the setup wizard, and set user management to 'Manage Users and Groups within Confluence')
- Access Browse>Space Directory and there will be an error. The stack trace is as follows :
org.apache.velocity.exception.MethodInvocationException: Invocation of method 'getBodyAsString' in class com.atlassian.confluence.spaces.SpaceDescription$$EnhancerByCGLIB$$f653be5e threw exception java.lang.UnsupportedOperationException: The body of this ContentEntityObject ('') was 'BodyType:XHTML' but was expected to be 'BodyType:WIKI' at /templates/spacedirectory.vm[line 62, column 71] at org.apache.velocity.runtime.parser.node.ASTMethod.handleInvocationException(ASTMethod.java:337) at org.apache.velocity.runtime.parser.node.ASTMethod.execute(ASTMethod.java:284) at org.apache.velocity.runtime.parser.node.ASTReference.execute(ASTReference.java:262) ... Caused by: java.lang.UnsupportedOperationException: The body of this ContentEntityObject ('') was 'BodyType:XHTML' but was expected to be 'BodyType:WIKI' at com.atlassian.confluence.core.ContentEntityObject.getBodyContent(ContentEntityObject.java:169) at com.atlassian.confluence.core.ContentEntityObject.getBodyAsString(ContentEntityObject.java:206) at com.atlassian.confluence.core.ContentEntityObject$$FastClassByCGLIB$$96df24d5.invoke(<generated>) at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149) at net.sf.hibernate.proxy.CGLIBLazyInitializer.intercept(CGLIBLazyInitializer.java:108) at com.atlassian.confluence.spaces.SpaceDescription$$EnhancerByCGLIB$$f653be5e.getBodyAsString(<generated>) ... 197 more
Workaround:
- Uninstall the current 'demonstration space' provided with the installation
- Install the 'demonstration space' attached to this bug report (ds-154834-2.xml.zip)
If the above does not work, then another space has unconverted description. In this case please refer to the workaround in the related issue CONF-24282.
Attachments
Issue Links
- relates to
-
CONFSERVER-24282 Exception upon opening "Browse -> Spacedirectory" in Browse is not fixed by the upgrade.
- Closed