REST API Call to Obtain Child Pages Results In AopInvocationException and ClassCastException

Still need help?

The Atlassian Community is here for you.

Ask the community

Symptoms

GET requests to certain REST API resource such as http://<YOURCONFLUENCEURL>/rest/api/content/51234822/child/page results in a 500 error:

{"statusCode":500,"message":"org.springframework.aop.AopInvocationException:
 AOP configuration seems to be invalid: tried calling method [public 
abstract com.atlassian.confluence.api.model.pagination.PageResponse 
com.atlassian.confluence.internal.pages.PageManagerInternal.getChildren(com.atlassian.confluence.pages.Page,com.atlassian.confluence.api.model.pagination.LimitedRequest,com.atlassian.confluence.api.model.Depth)]
 on target 
[com.adaptavist.confluence.enterpriseNotifications.DelegatingPageManager@1735b136];
 nested exception is java.lang.IllegalArgumentException: 
java.lang.ClassCastException@43bd83c4"}

 

The following appears in the atlassian-confluence.log:

org.springframework.aop.AopInvocationException: AOP configuration seems to be invalid: tried calling method [public abstract com.atlassian.confluence.api.model.pagination.PageResponse com.atlassian.confluence.internal.pages.PageManagerInternal.getChildren(com.atlassian.confluence.pages.Page,com.atlassian.confluence.api.model.pagination.LimitedRequest,com.atlassian.confluence.api.model.Depth)] on target [com.adaptavist.confluence.enterpriseNotifications.DelegatingPageManager@6c08365f]; nested exception is java.lang.IllegalArgumentException: java.lang.ClassCastException@7830e32
                    at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:315)
                    at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:182)
                    at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:149)

Diagnosis

Try to identify the class that is causing this issue. In the case above, it would be this:

on target [com.adaptavist.confluence.enterpriseNotifications.DelegatingPageManager@6c08365f]

Cause

Third party add-ons with their deployment of PageManager conflicting with Confluence's PageManager. In the example above, it would be the Adaptavist Enterprise Notifications add-on

Resolution

  • Disable the said add-on via Confluence Admin >> Manage Add-Ons .
  • You should also contact the add-on's vendor to get support regarding this issue, since third party add-ons are not supported via Atlassian Support
Last modified on Mar 30, 2016

Was this helpful?

Yes
No
Provide feedback about this article
Powered by Confluence and Scroll Viewport.