I have had som faults regarding cache and/or blogs, as Chome states:

330 ERR_CONTENT_DECODING_FAILED

But typically, its "only" for blog post, and a clue is for sure:

Caused by: java.lang.ClassCastException: com.atlassian.confluence.pages.Page cannot be cast to com.atlassian.confluence.pages.BlogPost

Catalina show the errors:

2011-11-13 18:28:17,374 ERROR [http-77.243.52.139-80-46] [opensymphony.webwork.dispatcher.VelocityResult] doExecute Unable to render Velocity Template, '/pages/viewblogposts.vm'
 -- space: 3145730 | url: /pages/viewrecentblogposts.action | userName: bnp | action: viewrecentblogposts
java.lang.RuntimeException: Error rendering template for decorator root
	at com.atlassian.confluence.setup.velocity.ApplyDecoratorDirective.render(ApplyDecoratorDirective.java:205)
	at org.apache.velocity.runtime.parser.node.ASTDirective.render(ASTDirective.java:175)
	at org.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode.java:3

....

	... 201 more
Caused by: org.apache.velocity.exception.MethodInvocationException: Invocation of method 'getPageUrl' in  class com.atlassian.confluence.util.GeneralUtil threw exception java.lang.ClassCastException: com.atlassian.confluence.pages.Page cannot be cast to com.atlassian.confluence.pages.BlogPost at /pages/blogpost-listing.vm[line 19, column 75]
	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:252)
....

	at com.atlassian.confluence.setup.velocity.ApplyDecoratorDirective.render(ApplyDecoratorDirective.java:201)
	... 215 more
Caused by: java.lang.ClassCastException: com.atlassian.confluence.pages.Page cannot be cast to com.atlassian.confluence.pages.BlogPost
	at com.atlassian.confluence.pages.BlogPost$$FastClassByCGLIB$$a5eaa355.invoke(<generated>)
	at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
	at net.sf.hibernate.proxy.CGLIBLazyInitializer.intercept(CGLIBLazyInitializer.java:108)
....

	... 241 more
2011-11-13 18:28:17,380 ERROR [http-77.243.52.139-80-46] [atlassian.confluence.servlet.ConfluenceServletDispatcher] sendError Could not execute action
 -- url: /pages/viewrecentblogposts.action | userName: bnp
java.lang.RuntimeException: Error rendering template for decorator root
	at com.atlassian.confluence.setup.velocity.ApplyDecoratorDirective.render(ApplyDecoratorDirective.java:205)
	at org.apache.velocity.runtime.parser.node.ASTDirective.render(ASTDirective.java:175)
.....

	at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489)
	at java.lang.Thread.run(Unknown Source)
Caused by: java.lang.RuntimeException: Error rendering template for decorator space
	at com.atlassian.confluence.setup.velocity.ApplyDecoratorDirective.render(ApplyDecoratorDirective.java:205)
	at org.apache.velocity.runtime.parser.node.ASTDirective.render(ASTDirective.java:175)
...

	... 201 more
Caused by: org.apache.velocity.exception.MethodInvocationException: Invocation of method 'getPageUrl' in  class com.atlassian.confluence.util.GeneralUtil threw exception java.lang.ClassCastException: com.atlassian.confluence.pages.Page cannot be cast to com.atlassian.confluence.pages.BlogPost at /pages/blogpost-listing.vm[line 19, column 75]
	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 com.atlassian.confluence.util.velocity.VelocityUtils.getRenderedTemplateWithoutSwallowingErrors(VelocityUtils.java:55)
	at com.atlassian.confluence.setup.velocity.ApplyDecoratorDirective.render(ApplyDecoratorDirective.java:201)
	... 215 more
Caused by: java.lang.ClassCastException: com.atlassian.confluence.pages.Page cannot be cast to com.atlassian.confluence.pages.BlogPost
	at com.atlassian.confluence.pages.BlogPost$$FastClassByCGLIB$$a5eaa355.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.pages.BlogPost$$EnhancerByCGLIB$$585c9ee4.getType(<generated>)
	at com.atlassian.confluence.util.GeneralUtil.toDisplayUrl(GeneralUtil.java:438)
	at com.atlassian.confluence.util.GeneralUtil.getPageUrl(GeneralUtil.java:371)
	at sun.reflect.GeneratedMethodAccessor409.invoke(Unknown Source)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
	at java.lang.reflect.Method.invoke(Unknown Source)
	at org.apache.velocity.util.introspection.UberspectImpl$VelMethodImpl.doInvoke(UberspectImpl.java:389)
	at org.apache.velocity.util.introspection.UberspectImpl$VelMethodImpl.invoke(UberspectImpl.java:378)
	at com.atlassian.confluence.velocity.introspection.UnboxingMethod.invoke(UnboxingMethod.java:31)
	at org.apache.velocity.runtime.parser.node.ASTMethod.execute(ASTMethod.java:270)
	... 241 more
2011-11-13 18:28:17,385 INFO [http-77.243.52.139-80-46] [atlassian.confluence.status.SystemErrorInformationLogger] writeToLog 

Flusing the cache from the Administration module seems to help - maybe the cache should be disabled like in https://developer.atlassian.com/display/CONFDEV/Disable+Velocity+Caching

  • Ingen etiketter