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

Atlassian JIRA | Nick Mason [Atlassian] | 4 years ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards 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.
  2. 0

    The following error occured java.lang.IllegalArgumentException: Can't add a parent from another space. at com.atlassian.confluence.pages.Page.checkParentValid(Page.java:88) at com.atlassian.confluence.pages.Page.setParentPage(Page.java:53) at com.atlassian.confluence.pages.Page.addChild(Page.java:125) at com.atlassian.confluence.pages.Page$$FastClassByCGLIB$$b75f5c02.invoke() at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:189) at net.sf.hibernate.proxy.CGLIBLazyInitializer.intercept(CGLIBLazyInitializer.java:108) at com.atlassian.confluence.pages.Page$$EnhancerByCGLIB$$423cdd79.addChild() at com.atlassian.confluence.pages.actions.EditPageAction.updateParentPage(EditPageAction.java:240) at com.atlassian.confluence.pages.actions.EditPageAction.doSaveEditPageBean(EditPageAction.java:183) at com.atlassian.confluence.pages.actions.EditPageAction.doEdit(EditPageAction.java:221) 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:324) Referer URL: http://localhost:8080/confluence/pages/editpage.action?pageId=266 Build Information: Confluence Home: C:\temp\CSP-1787 Uptime: 4 minutes, 40 seconds Version: @VERSION@ Build Number: @BUILD_NUMBER@ Server Information: Application Server: Resin/2.1.11 Servlet Version: 2.3 Database Dialect: net.sf.hibernate.dialect.HSQLDialect Memory Information: Total Memory: 127 MB Free Memory: 94 MB Used Memory: 33 MB System Information: System Date: Wednesday, 30 Nov 2005 System Time: 10:27:37 System Favourite Colour: Chartreuse Java Version: 1.4.2_02 Java Vendor: Sun Microsystems Inc. JVM Version: 1.0 JVM Vendor: Sun Microsystems Inc. JVM Implementation Version: 1.4.2_02-b03 Java Runtime: Java(TM) 2 Runtime Environment, Standard Edition Java VM: Java HotSpot(TM) Client VM User Name: Jens Schumacher User Timezone: Australia/Sydney Operating System: Windows XP 5.1 OS Architecture: x86 Request Information: URL: http://localhost:8080/confluence/500page.jsp - Scheme: http - Server: localhost - Port: 8080 - URI: /confluence/500page.jsp - - Context Path: /confluence - - Servlet Path: /500page.jsp - - Path Info: null - - Query String: null Attributes: - javax.servlet.error.exception : java.lang.IllegalArgumentException: Can't add a parent from another space. - sessioninview.FILTERED : true - javax.servlet.error.status_code : 500 - com.atlassian.johnson.filters.JohnsonFilter_already_filtered : true - atlassian.core.seraph.original.url : /pages/doeditpage.action?pageId=266 - webwork.valueStack : com.opensymphony.xwork.util.OgnlValueStack@aba7ff - javax.servlet.error.servlet_name : action - loginfilter.already.filtered : true - os_securityfilter_already_filtered : true - __sitemesh__filterapplied : true - javax.servlet.error.message : Can't add a parent from another space. - javax.servlet.error.request_uri : /confluence/pages/doeditpage.action - javax.servlet.jsp.jspException : java.lang.IllegalArgumentException: Can't add a parent from another space. - com.atlassian.core.filters.gzip.GzipFilter_already_filtered : true Parameters: - editPermission = - locationShowing = true - newSpaceKey = test2 - title = PageA - versionComment = - mode = richtext - inPreview = false - confirm = Save - content = foo page bla - labelsShowing = false - originalVersion = 1 - originalContent = foo page bla - wysiwygcontent = <p>foo page bla</p>  - sel2 = - pageId = 266 - xhtml = true - selectedText = - labelsString = - restrictionsShowing = false - sel1 = - parentPageString = Home - viewPermission =

    Atlassian JIRA | 1 decade ago | Jens Schumacher
    java.lang.IllegalArgumentException: Can't add a parent from another space.
  3. 0

    If you perform the steps to set the parent page of a page as itself, the following exception occurs: java.lang.IllegalArgumentException: Can not set page as its own parent. at com.atlassian.confluence.pages.Page.checkParentValid(Page.java:75) at com.atlassian.confluence.pages.Page.setParentPage(Page.java:53) at com.atlassian.confluence.pages.Page.addChild(Page.java:125) at com.atlassian.confluence.pages.actions.EditPageAction.updateParentPage(EditPageAction.java:240) at com.atlassian.confluence.pages.actions.EditPageAction.doSaveEditPageBean(EditPageAction.java:183) at com.atlassian.confluence.pages.actions.EditPageAction.doEdit(EditPageAction.java:221) 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:324) Steps to reproduce (borrowed from CONF-4940): 1. start with an existing page 2. bring up the page update screen 3. enter the name of the page in the page's parent page field 4. save ('update') 5. EXPECT: validation error indicating that a page cannot be its own parent 6. reenter the name of the page in the parent page field, but this time with a different case 7. EXPECT: validation error indicating that a page cannot be its own parent

    Atlassian JIRA | 1 decade ago | Jeremy Higgs
    java.lang.IllegalArgumentException: Can not set page as its own parent.
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    The following error occured java.lang.IllegalArgumentException: Can't add a parent from another space. at com.atlassian.confluence.pages.Page.checkParentValid(Page.java:88) at com.atlassian.confluence.pages.Page.setParentPage(Page.java:53) at com.atlassian.confluence.pages.Page.addChild(Page.java:125) at com.atlassian.confluence.pages.Page$$FastClassByCGLIB$$b75f5c02.invoke() at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:189) at net.sf.hibernate.proxy.CGLIBLazyInitializer.intercept(CGLIBLazyInitializer.java:108) at com.atlassian.confluence.pages.Page$$EnhancerByCGLIB$$423cdd79.addChild() at com.atlassian.confluence.pages.actions.EditPageAction.updateParentPage(EditPageAction.java:240) at com.atlassian.confluence.pages.actions.EditPageAction.doSaveEditPageBean(EditPageAction.java:183) at com.atlassian.confluence.pages.actions.EditPageAction.doEdit(EditPageAction.java:221) 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:324) Referer URL: http://localhost:8080/confluence/pages/editpage.action?pageId=266 Build Information: Confluence Home: C:\temp\CSP-1787 Uptime: 4 minutes, 40 seconds Version: @VERSION@ Build Number: @BUILD_NUMBER@ Server Information: Application Server: Resin/2.1.11 Servlet Version: 2.3 Database Dialect: net.sf.hibernate.dialect.HSQLDialect Memory Information: Total Memory: 127 MB Free Memory: 94 MB Used Memory: 33 MB System Information: System Date: Wednesday, 30 Nov 2005 System Time: 10:27:37 System Favourite Colour: Chartreuse Java Version: 1.4.2_02 Java Vendor: Sun Microsystems Inc. JVM Version: 1.0 JVM Vendor: Sun Microsystems Inc. JVM Implementation Version: 1.4.2_02-b03 Java Runtime: Java(TM) 2 Runtime Environment, Standard Edition Java VM: Java HotSpot(TM) Client VM User Name: Jens Schumacher User Timezone: Australia/Sydney Operating System: Windows XP 5.1 OS Architecture: x86 Request Information: URL: http://localhost:8080/confluence/500page.jsp - Scheme: http - Server: localhost - Port: 8080 - URI: /confluence/500page.jsp - - Context Path: /confluence - - Servlet Path: /500page.jsp - - Path Info: null - - Query String: null Attributes: - javax.servlet.error.exception : java.lang.IllegalArgumentException: Can't add a parent from another space. - sessioninview.FILTERED : true - javax.servlet.error.status_code : 500 - com.atlassian.johnson.filters.JohnsonFilter_already_filtered : true - atlassian.core.seraph.original.url : /pages/doeditpage.action?pageId=266 - webwork.valueStack : com.opensymphony.xwork.util.OgnlValueStack@aba7ff - javax.servlet.error.servlet_name : action - loginfilter.already.filtered : true - os_securityfilter_already_filtered : true - __sitemesh__filterapplied : true - javax.servlet.error.message : Can't add a parent from another space. - javax.servlet.error.request_uri : /confluence/pages/doeditpage.action - javax.servlet.jsp.jspException : java.lang.IllegalArgumentException: Can't add a parent from another space. - com.atlassian.core.filters.gzip.GzipFilter_already_filtered : true Parameters: - editPermission = - locationShowing = true - newSpaceKey = test2 - title = PageA - versionComment = - mode = richtext - inPreview = false - confirm = Save - content = foo page bla - labelsShowing = false - originalVersion = 1 - originalContent = foo page bla - wysiwygcontent = <p>foo page bla</p>  - sel2 = - pageId = 266 - xhtml = true - selectedText = - labelsString = - restrictionsShowing = false - sel1 = - parentPageString = Home - viewPermission =

    Atlassian JIRA | 1 decade ago | Jens Schumacher
    java.lang.IllegalArgumentException: Can't add a parent from another space.
  6. 0

    If you perform the steps to set the parent page of a page as itself, the following exception occurs: java.lang.IllegalArgumentException: Can not set page as its own parent. at com.atlassian.confluence.pages.Page.checkParentValid(Page.java:75) at com.atlassian.confluence.pages.Page.setParentPage(Page.java:53) at com.atlassian.confluence.pages.Page.addChild(Page.java:125) at com.atlassian.confluence.pages.actions.EditPageAction.updateParentPage(EditPageAction.java:240) at com.atlassian.confluence.pages.actions.EditPageAction.doSaveEditPageBean(EditPageAction.java:183) at com.atlassian.confluence.pages.actions.EditPageAction.doEdit(EditPageAction.java:221) 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:324) Steps to reproduce (borrowed from CONF-4940): 1. start with an existing page 2. bring up the page update screen 3. enter the name of the page in the page's parent page field 4. save ('update') 5. EXPECT: validation error indicating that a page cannot be its own parent 6. reenter the name of the page in the parent page field, but this time with a different case 7. EXPECT: validation error indicating that a page cannot be its own parent

    Atlassian JIRA | 1 decade ago | Jeremy Higgs
    java.lang.IllegalArgumentException: Can not set page as its own parent.

    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
      Page.checkParentValid
      1. com.atlassian.confluence.pages.Page.checkParentValid(Page.java:103)
      1 frame