Blog

 

 

 

While writing macros for Confluence I encountered a problem that prevented the wiki to render the page. Without the edit button showing up on the “Oops” page, I first thought that I will never see the contents of the page again. But the story came to a good end!

And without accessing the database …!

The problem was displayed on a full window error message, containing information like

java.lang.RuntimeException: Error rendering template for decorator root
caused by: java.lang.RuntimeException: Error rendering template for decorator page
caused by: com.atlassian.core.exception.InfrastructureException: Error occurred rendering template content
caused by: org.apache.velocity.exception.MethodInvocationException: Invocation of method 'getLatestVersionsOfAttachments' 
caused by: net.sf.hibernate.LazyInitializationException: Failed to lazily initialize a collection
caused by: net.sf.hibernate.HibernateException: collection was evicted
Caused by: java.lang.RuntimeException: Error rendering template for decorator page
Caused by: org.apache.velocity.exception.MethodInvocationException: Invocation of method 'getDisplayableLabel'
...

So without edit button, the contents of the page seemed lost. But it was not.

This is because pages may be called in edit mode with a URL, if you know the page ID:

http://<baseurl>/pages/editpage.action?pageId=<pageID>

And if you do not know the page ID, it is similarly easy by providing the space key and page name:

http://<baseurl>/pages/editpage.action?spaceKey=<spaceKey>&title=pageName

If you want to delete a page or have problem with a blog article, you can also fix the problem using your browser. Editing or Deleting a Page That Won’t Render provides all the information you need. It is written for Confluence 3.5, but also works with Confluence 5.X.


Link

Link

Posts

Tagcloud

Loading tagcloud ...