java.lang.ClassCastException

com.atlassian.confluence.content.CustomContentEntityObject cannot be cast to com.atlassian.confluence.pages.AbstractPage @40000000535d9e771d886acc at com.atlassian.confluence.pages.persistence.dao.hibernate.HibernateAbstractPageDao.getAbstractPageById(HibernateAbstractPageDao.java:18) @40000000535d9e771d888a0c at sun.reflect.GeneratedMethodAccessor929.invoke(Unknown Source) @40000000535d9e771d888df4 at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) @40000000535d9e771d8891dc at java.lang.reflect.Method.invoke(Method.java:597) @40000000535d9e771d8895c4 at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:307) @40000000535d9e771d889d94 at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:182) @40000000535d9e771d88a17c at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:149) @40000000535d9e771d88a564 at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:106) @40000000535d9e771d88c88c at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171) @40000000535d9e771d88cc74 at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204) @40000000535d9e771d88d05c at $Proxy54.getAbstractPageById(Unknown Source) @40000000535d9e771d88d05c at com.atlassian.confluence.pages.DefaultPageManager.getAbstractPage(DefaultPageManager.java:162) @40000000535d9e771d890324 at com.atlassian.confluence.pages.DefaultPageManager.getById(DefaultPageManager.java:173) @40000000535d9e771d89070c at sun.reflect.GeneratedMethodAccessor910.invoke(Unknown Source) @40000000535d9e771d890af4 at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) @40000000535d9e771d890edc at java.lang.reflect.Method.invoke(Method.java:597) @40000000535d9e771d8916ac at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:307) @40000000535d9e771d891a94 at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:182) @40000000535d9e771d891e7c at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:149) @40000000535d9e771d892e1c at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:106) @40000000535d9e771d893204 at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171) @40000000535d9e771d8935ec at com.atlassian.spring.interceptors.SpringProfilingInterceptor.invoke(SpringProfilingInterceptor.java:16) @40000000535d9e771d8941a4 at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171) @40000000535d9e771d89458c at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204) @40000000535d9e771d894974 at $Proxy56.getById(Unknown Source) @40000000535d9e771d894974 at sun.reflect.GeneratedMethodAccessor855.invoke(Unknown Source) @40000000535d9e771d895144 at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) @40000000535d9e771d89552c at java.lang.reflect.Method.invoke(Method.java:597) @40000000535d9e771d89552c at com.atlassian.plugin.osgi.hostcomponents.impl.DefaultComponentRegistrar$ContextClassLoaderSettingInvocationHandler.invoke(DefaultComponentRegistrar.java:129) @40000000535d9e771d895cfc at $Proxy176.getById(Unknown Source) @40000000535d9e771d897c3c at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) @40000000535d9e771d898024 at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) @40000000535d9e771d89840c at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

Solutions on the web19309

  • via Atlassian JIRA by Dave Loeng [Atlassian], 11 months ago
    com.atlassian.confluence.pages.persistence.dao.hibernate.HibernateAbstractPageDao.getAbstractPageById(HibernateAbstractPageDao.java:18) @40000000535d9e771d888a0c at sun.reflect.GeneratedMethodAccessor929.invoke(Unknown Source) @40000000535d9e771d888df4 at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25
  • via Atlassian JIRA by Dave Loeng [Atlassian], 1 year ago
    com.atlassian.confluence.pages.persistence.dao.hibernate.HibernateAbstractPageDao.getAbstractPageById(HibernateAbstractPageDao.java:18) @40000000535d9e771d888a0c at sun.reflect.GeneratedMethodAccessor929.invoke(Unknown Source) @40000000535d9e771d888df4 at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25
  • via Atlassian JIRA by Ran Ding [Atlassian], 1 year ago
    sun.reflect.GeneratedMethodAccessor1997.invoke(Unknown Source) @4000000056a038e823748bb4 at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) @4000000056a038e823748f9c at java.lang.reflect.Method.invoke(Method.java:497) @4000000056a038e823748f9c
  • Stack trace

    • java.lang.ClassCastException: com.atlassian.confluence.content.CustomContentEntityObject cannot be cast to com.atlassian.confluence.pages.AbstractPage @40000000535d9e771d886acc at com.atlassian.confluence.pages.persistence.dao.hibernate.HibernateAbstractPageDao.getAbstractPageById(HibernateAbstractPageDao.java:18) @40000000535d9e771d888a0c at sun.reflect.GeneratedMethodAccessor929.invoke(Unknown Source) @40000000535d9e771d888df4 at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) @40000000535d9e771d8891dc at java.lang.reflect.Method.invoke(Method.java:597) @40000000535d9e771d8895c4 at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:307) @40000000535d9e771d889d94 at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:182) @40000000535d9e771d88a17c at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:149) @40000000535d9e771d88a564 at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:106) @40000000535d9e771d88c88c at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171) @40000000535d9e771d88cc74 at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204) @40000000535d9e771d88d05c at $Proxy54.getAbstractPageById(Unknown Source) @40000000535d9e771d88d05c at com.atlassian.confluence.pages.DefaultPageManager.getAbstractPage(DefaultPageManager.java:162) @40000000535d9e771d890324 at com.atlassian.confluence.pages.DefaultPageManager.getById(DefaultPageManager.java:173) @40000000535d9e771d89070c at sun.reflect.GeneratedMethodAccessor910.invoke(Unknown Source) @40000000535d9e771d890af4 at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) @40000000535d9e771d890edc at java.lang.reflect.Method.invoke(Method.java:597) @40000000535d9e771d8916ac at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:307) @40000000535d9e771d891a94 at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:182) @40000000535d9e771d891e7c at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:149) @40000000535d9e771d892e1c at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:106) @40000000535d9e771d893204 at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171) @40000000535d9e771d8935ec at com.atlassian.spring.interceptors.SpringProfilingInterceptor.invoke(SpringProfilingInterceptor.java:16) @40000000535d9e771d8941a4 at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171) @40000000535d9e771d89458c at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204) @40000000535d9e771d894974 at $Proxy56.getById(Unknown Source) @40000000535d9e771d894974 at sun.reflect.GeneratedMethodAccessor855.invoke(Unknown Source) @40000000535d9e771d895144 at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) @40000000535d9e771d89552c at java.lang.reflect.Method.invoke(Method.java:597) @40000000535d9e771d89552c at com.atlassian.plugin.osgi.hostcomponents.impl.DefaultComponentRegistrar$ContextClassLoaderSettingInvocationHandler.invoke(DefaultComponentRegistrar.java:129) @40000000535d9e771d895cfc at $Proxy176.getById(Unknown Source) @40000000535d9e771d897c3c at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) @40000000535d9e771d898024 at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) @40000000535d9e771d89840c at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:307)

    Write tip

    You have a different solution? A short tip here would help you and many other users who saw this issue last week.

    Users with the same issue

    Unknown user
    Once, 11 months ago
    Unknown user
    Once, 1 year ago
    Unknown user
    Once, 1 year ago
    Unknown user
    Once, 1 year ago