Getting exceptions in Confluence after upgrade to 5.5.2
Asked by hemanth acharya:

I have recently upgraded the confluence to 5.5.2 from 5.4 version. I get the following exceptions on some scenarios. I have seen in some suggestions and cleared the cache in the confluence_home folder but of no use. Could anyone tell me Why/What/How of this exception?

Thanks.

```
[xhtml.view.macro.ViewMacroMarshaller] marshalInternal Error rendering macro: detailssummary com.google.template.soy.tofu.SoyTofuException: In template Confluence.Templates.Macro.MasterDetail.contentLink2: When evaluating "contextPath()": Error while computing function "contextPath()": null     at com.google.template.soy.tofu.internal.BaseTofu.renderMainHelper(BaseTofu.java:341)     at com.google.template.soy.tofu.internal.BaseTofu.renderMain(BaseTofu.java:300)     at com.google.template.soy.tofu.internal.BaseTofu.access$100(BaseTofu.java:56)     at com.google.template.soy.tofu.internal.BaseTofu$RendererImpl.render(BaseTofu.java:427)     at com.atlassian.soy.impl.DefaultSoyManager.render(DefaultSoyManager.java:117)     at com.atlassian.soy.impl.DefaultSoyTemplateRenderer.render(DefaultSoyTemplateRenderer.java:52)     at sun.reflect.GeneratedMethodAccessor661.invoke(Unknown Source)     at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)     at java.lang.reflect.Method.invoke(Unknown Source)     at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:307)     at org.springframework.osgi.service.importer.support.internal.aop.ServiceInvoker.doInvoke(ServiceInvoker.java:58)     at org.springframework.osgi.service.importer.support.internal.aop.ServiceInvoker.invoke(ServiceInvoker.java:62)     at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)     at org.springframework.aop.support.DelegatingIntroductionInterceptor.doProceed(DelegatingIntroductionInterceptor.java:131)     at org.springframework.aop.support.DelegatingIntroductionInterceptor.invoke(DelegatingIntroductionInterceptor.java:119)     at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)     at org.springframework.osgi.service.util.internal.aop.ServiceTCCLInterceptor.invokeUnprivileged(ServiceTCCLInterceptor.java:56)     at org.springframework.osgi.service.util.internal.aop.ServiceTCCLInterceptor.invoke(ServiceTCCLInterceptor.java:39)     at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)     at org.springframework.osgi.service.importer.support.LocalBundleContextAdvice.invoke(LocalBundleContextAdvice.java:59)     at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)     at org.springframework.aop.support.DelegatingIntroductionInterceptor.doProceed(DelegatingIntroductionInterceptor.java:131)     at org.springframework.aop.support.DelegatingIntroductionInterceptor.invoke(DelegatingIntroductionInterceptor.java:119)     at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)     at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204)     at com.sun.proxy.$Proxy906.render(Unknown Source)     at com.atlassian.confluence.plugins.soy.ConfluenceSoyTemplateRenderer.renderTo(ConfluenceSoyTemplateRenderer.java:38)     at com.atlassian.confluence.renderer.template.DelegatingTemplateRenderer.renderTo(DelegatingTemplateRenderer.java:44)     at com.atlassian.confluence.renderer.template.DelegatingTemplateRenderer.renderTo(DelegatingTemplateRenderer.java:25)/marshalInternal Error rendering macro: detailssummary
```


Answers:
author: Tiago Comasseto
body: Hi Hemanth, you mentioned that you're getting this exception in some scenarios, perhaps is it occuring during space export? In case so, I found that there's an open bug report with the same exception [here](https://jira.atlassian.com/browse/CONF-33611) and it reffers to the Page Properties Macro, you may want to check whether this is the same case.

Cheers

comments: author: hemanth acharya
body: Hi @Tiago... Just did an export of the space. Seems to work fine without the occurance of this exception. I think this is not the scenario.


author: hemanth acharya
body: @Tiago.. Let me check that with the page properties macro. Thanks


author: hemanth acharya
body: @Tiago.. Yes, it is related to the Bug you have mentioned. It is occuring during space export. Thanks.


Tags: macro

upgrade