java.lang.IllegalArgumentException: Can't add a parent from another space.

Atlassian JIRA | Nick Mason [Atlassian] | 4 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.
  1. 0

    h3. Steps to reproduce # In a new space, create a page with the "Decision" blueprint. # Go to the newly-created "Decision register" page in that space and move it to a second new space. # Click the "Track another decision" button to add a new decision, click Create, and receive the following stack trace: {code:none} Cause java.lang.IllegalArgumentException: Can't add a parent from another space. at com.atlassian.confluence.pages.Page.checkParentValid(Page.java:103) Stack Trace:[hide] java.lang.IllegalArgumentException: Can't add a parent from another space. at com.atlassian.confluence.pages.Page.checkParentValid(Page.java:103) at com.atlassian.confluence.pages.Page.setParentPage(Page.java:68) at com.atlassian.confluence.pages.Page.addChild(Page.java:140) at com.atlassian.confluence.plugins.createcontent.actions.CreateAndViewAction.beforeAdd(CreateAndViewAction.java:69) at com.atlassian.confluence.pages.actions.CreatePageAction.doAdd(CreatePageAction.java:124) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at com.opensymphony.xwork.DefaultActionInvocation.invokeAction(DefaultActionInvocation.java:302) at com.opensymphony.xwork.DefaultActionInvocation.invoke(DefaultActionInvocation.java:170) at com.opensymphony.xwork.interceptor.AroundInterceptor.intercept(AroundInterceptor.java:35) {code} Seems to be related to CONF-5103.

    Atlassian JIRA | 4 years ago | Nick Mason [Atlassian]
    java.lang.IllegalArgumentException: Can't add a parent from another space.

    Root Cause Analysis

    1. java.lang.IllegalArgumentException

      Can't add a parent from another space.

      at com.atlassian.confluence.pages.Page.checkParentValid()
    2. com.atlassian.confluence
      CreatePageAction.doAdd
      1. com.atlassian.confluence.pages.Page.checkParentValid(Page.java:103)
      2. com.atlassian.confluence.pages.Page.setParentPage(Page.java:68)
      3. com.atlassian.confluence.pages.Page.addChild(Page.java:140)
      4. com.atlassian.confluence.plugins.createcontent.actions.CreateAndViewAction.beforeAdd(CreateAndViewAction.java:69)
      5. com.atlassian.confluence.pages.actions.CreatePageAction.doAdd(CreatePageAction.java:124)
      5 frames
    3. Java RT
      Method.invoke
      1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      4. java.lang.reflect.Method.invoke(Method.java:597)
      4 frames
    4. XWork Tiger Extensions
      DefaultActionInvocation.invoke
      1. com.opensymphony.xwork.DefaultActionInvocation.invokeAction(DefaultActionInvocation.java:302)
      2. com.opensymphony.xwork.DefaultActionInvocation.invoke(DefaultActionInvocation.java:170)
      2 frames
    5. com.opensymphony.xwork
      AroundInterceptor.intercept
      1. com.opensymphony.xwork.interceptor.AroundInterceptor.intercept(AroundInterceptor.java:35)
      1 frame