Uploaded image for project: 'Confluence Data Center'
  1. Confluence Data Center
  2. CONFSERVER-23659

Exception upon opening "Browse -> Spacedirectory" in Browse

    XMLWordPrintable

Details

    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 :

      1. 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')
      2. 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:

      1. Uninstall the current 'demonstration space' provided with the installation
      2. 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

        1. atlassian-confluence.log
          217 kB
        2. ds-154834-2.xml.zip
          8.24 MB

        Issue Links

          Activity

            People

              dave@atlassian.com dave (Inactive)
              jtye Joe Wai Tye (Inactive)
              Votes:
              5 Vote for this issue
              Watchers:
              7 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: