java.lang.ClassCastException: com.atlassian.confluence.pages.Comment cannot be cast to com.atlassian.confluence.core.SpaceContentEntityObject

Atlassian JIRA | Shannon Krebs | 8 years ago
tip
Click on the to mark the solution that helps you, Samebug will learn from it.
As a community member, you’ll be rewarded for you help.

    Root Cause Analysis

    1. java.lang.ClassCastException

      com.atlassian.confluence.pages.Comment cannot be cast to com.atlassian.confluence.core.SpaceContentEntityObject

      at com.atlassian.confluence.util.SelfPageLinkRenamingBean.<init>()
    2. com.atlassian.confluence
      DefaultLinkManager.getSelfContentWithRenamedLinks
      1. com.atlassian.confluence.util.SelfPageLinkRenamingBean.<init>(SelfPageLinkRenamingBean.java:15)
      2. com.atlassian.confluence.links.DefaultLinkManager.getSelfContentWithRenamedLinks(DefaultLinkManager.java:102)
      2 frames
    3. Java RT
      NativeMethodAccessorImpl.invoke
      1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      2 frames