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

Platform Notice: Data Center Only - This article only applies to Atlassian products on the Data Center platform.

Note that this KB was created for the Data Center version of the product. Data Center KBs for non-Data-Center-specific features may also work for Server versions of the product, however they have not been tested. Support for Server* products ended on February 15th 2024. If you are running a Server product, you can visit the Atlassian Server end of support announcement to review your migration options.

*Except Fisheye and Crucible

Summary

Symptoms

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

1 2 3 4 5 6 7 8 {"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:

1 2 3 4 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:

1 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.

Solution

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

Updated on April 15, 2025

Still need help?

The Atlassian Community is here for you.