java.lang.IllegalArgumentException: Can't add an owner from another space.

Atlassian JIRA | Richard Atkins [Atlassian] | 11 months ago
  1. 0

    h3. Steps to reproduce: 1. Create 2 spaces and a page to hold the content property 2. Create a content property on the page. e.g. {noformat} curl -v -u admin:admin -d '{"key":"first","value":"junk"}' -H 'Content-type: application/json' http://localhost:8080/confluence/rest/api/content/753671/property {noformat} 3. Move the page to the other space 4. Update the content property. e.g. {noformat} curl -v -u admin:admin -d '{"key":"first","value":"other junk","version":{"number":2}}' -X PUT -H 'Content-type: application/json' http://localhost:8080/confluence/rest/api/content/753671/property/first {noformat} Expected: * content is updated Actual: * A 500 error with the result: {noformat} {"statusCode":500,"message":"java.lang.IllegalArgumentException: Can't add an owner from another space."} {noformat} * A stack trace on the server side saying: {noformat} 2016-01-18 15:32:18,874 ERROR [http-bio-8080-exec-14] [rest.api.model.ExceptionConverter] convertServiceException No status code found for exception, converting to internal server error : -- url: /confluence/rest/api/content/753671/property/first | traceId: e6efdd932abc426d | userName: admin java.lang.IllegalArgumentException: Can't add an owner from another space. at com.atlassian.confluence.content.CustomContentEntityObject.checkContainerHierarchyValid(CustomContentEntityObject.java:244) at com.atlassian.confluence.content.CustomContentEntityObject.setContainer(CustomContentEntityObject.java:140) at com.atlassian.confluence.plugins.contentproperty.StorageJsonPropertyManager.updateStorageFromApi(StorageJsonPropertyManager.java:50) at com.atlassian.confluence.plugins.contentproperty.ContentPropertyServiceImpl.update(ContentPropertyServiceImpl.java:80) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:497) at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:302) at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:190) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:157) at com.atlassian.plugins.spring.interceptor.plugin.ExportableInterceptorAdapter$WrappedMethodInvocation.proceed(ExportableInterceptorAdapter.java:53) at com.atlassian.plugins.spring.interceptor.spi.SpringInterceptorAdapter$SpringMethodInvocationAdapter.proceed(SpringInterceptorAdapter.java:50) at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:106) at com.atlassian.plugins.spring.interceptor.spi.SpringInterceptorAdapter.invoke(SpringInterceptorAdapter.java:23) at sun.reflect.GeneratedMethodAccessor828.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:497) at com.atlassian.plugin.util.ContextClassLoaderSettingInvocationHandler.invoke(ContextClassLoaderSettingInvocationHandler.java:26) at com.sun.proxy.$Proxy350.invoke(Unknown Source) at com.atlassian.plugins.spring.interceptor.plugin.ExportableInterceptorAdapter.invoke(ExportableInterceptorAdapter.java:26) at sun.reflect.GeneratedMethodAccessor827.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:497) at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:302) at org.eclipse.gemini.blueprint.service.importer.support.internal.aop.ServiceInvoker.doInvoke(ServiceInvoker.java:56) at org.eclipse.gemini.blueprint.service.importer.support.internal.aop.ServiceInvoker.invoke(ServiceInvoker.java:60) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179) at org.springframework.aop.support.DelegatingIntroductionInterceptor.doProceed(DelegatingIntroductionInterceptor.java:133) at org.springframework.aop.support.DelegatingIntroductionInterceptor.invoke(DelegatingIntroductionInterceptor.java:121) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179) at org.eclipse.gemini.blueprint.service.util.internal.aop.ServiceTCCLInterceptor.invokeUnprivileged(ServiceTCCLInterceptor.java:70) at org.eclipse.gemini.blueprint.service.util.internal.aop.ServiceTCCLInterceptor.invoke(ServiceTCCLInterceptor.java:53) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179) at org.eclipse.gemini.blueprint.service.importer.support.LocalBundleContextAdvice.invoke(LocalBundleContextAdvice.java:57) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179) at org.springframework.aop.support.DelegatingIntroductionInterceptor.doProceed(DelegatingIntroductionInterceptor.java:133) at org.springframework.aop.support.DelegatingIntroductionInterceptor.invoke(DelegatingIntroductionInterceptor.java:121) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179) at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:208) at com.sun.proxy.$Proxy589.invoke(Unknown Source) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179) at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:208) at com.sun.proxy.$Proxy607.update(Unknown Source) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:497) at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:302) at org.eclipse.gemini.blueprint.service.importer.support.internal.aop.ServiceInvoker.doInvoke(ServiceInvoker.java:56) at org.eclipse.gemini.blueprint.service.importer.support.internal.aop.ServiceInvoker.invoke(ServiceInvoker.java:60) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179) at org.springframework.aop.support.DelegatingIntroductionInterceptor.doProceed(DelegatingIntroductionInterceptor.java:133) at org.springframework.aop.support.DelegatingIntroductionInterceptor.invoke(DelegatingIntroductionInterceptor.java:121) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179) at org.eclipse.gemini.blueprint.service.util.internal.aop.ServiceTCCLInterceptor.invokeUnprivileged(ServiceTCCLInterceptor.java:70) at org.eclipse.gemini.blueprint.service.util.internal.aop.ServiceTCCLInterceptor.invoke(ServiceTCCLInterceptor.java:53) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179) at org.eclipse.gemini.blueprint.service.importer.support.LocalBundleContextAdvice.invoke(LocalBundleContextAdvice.java:57) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179) at org.springframework.aop.support.DelegatingIntroductionInterceptor.doProceed(DelegatingIntroductionInterceptor.java:133) at org.springframework.aop.support.DelegatingIntroductionInterceptor.invoke(DelegatingIntroductionInterceptor.java:121) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179) at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:208) at com.sun.proxy.$Proxy1067.update(Unknown Source) at com.atlassian.confluence.plugins.restapi.resources.ContentPropertyResource.update(ContentPropertyResource.java:218) {noformat}

    Atlassian JIRA | 11 months ago | Richard Atkins [Atlassian]
    java.lang.IllegalArgumentException: Can't add an owner from another space.
  2. 0

    h3. Steps to reproduce: 1. Create 2 spaces and a page to hold the content property 2. Create a content property on the page. e.g. {noformat} curl -v -u admin:admin -d '{"key":"first","value":"junk"}' -H 'Content-type: application/json' http://localhost:8080/confluence/rest/api/content/753671/property {noformat} 3. Move the page to the other space 4. Update the content property. e.g. {noformat} curl -v -u admin:admin -d '{"key":"first","value":"other junk","version":{"number":2}}' -X PUT -H 'Content-type: application/json' http://localhost:8080/confluence/rest/api/content/753671/property/first {noformat} Expected: * content is updated Actual: * A 500 error with the result: {noformat} {"statusCode":500,"message":"java.lang.IllegalArgumentException: Can't add an owner from another space."} {noformat} * A stack trace on the server side saying: {noformat} 2016-01-18 15:32:18,874 ERROR [http-bio-8080-exec-14] [rest.api.model.ExceptionConverter] convertServiceException No status code found for exception, converting to internal server error : -- url: /confluence/rest/api/content/753671/property/first | traceId: e6efdd932abc426d | userName: admin java.lang.IllegalArgumentException: Can't add an owner from another space. at com.atlassian.confluence.content.CustomContentEntityObject.checkContainerHierarchyValid(CustomContentEntityObject.java:244) at com.atlassian.confluence.content.CustomContentEntityObject.setContainer(CustomContentEntityObject.java:140) at com.atlassian.confluence.plugins.contentproperty.StorageJsonPropertyManager.updateStorageFromApi(StorageJsonPropertyManager.java:50) at com.atlassian.confluence.plugins.contentproperty.ContentPropertyServiceImpl.update(ContentPropertyServiceImpl.java:80) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:497) at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:302) at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:190) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:157) at com.atlassian.plugins.spring.interceptor.plugin.ExportableInterceptorAdapter$WrappedMethodInvocation.proceed(ExportableInterceptorAdapter.java:53) at com.atlassian.plugins.spring.interceptor.spi.SpringInterceptorAdapter$SpringMethodInvocationAdapter.proceed(SpringInterceptorAdapter.java:50) at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:106) at com.atlassian.plugins.spring.interceptor.spi.SpringInterceptorAdapter.invoke(SpringInterceptorAdapter.java:23) at sun.reflect.GeneratedMethodAccessor828.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:497) at com.atlassian.plugin.util.ContextClassLoaderSettingInvocationHandler.invoke(ContextClassLoaderSettingInvocationHandler.java:26) at com.sun.proxy.$Proxy350.invoke(Unknown Source) at com.atlassian.plugins.spring.interceptor.plugin.ExportableInterceptorAdapter.invoke(ExportableInterceptorAdapter.java:26) at sun.reflect.GeneratedMethodAccessor827.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:497) at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:302) at org.eclipse.gemini.blueprint.service.importer.support.internal.aop.ServiceInvoker.doInvoke(ServiceInvoker.java:56) at org.eclipse.gemini.blueprint.service.importer.support.internal.aop.ServiceInvoker.invoke(ServiceInvoker.java:60) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179) at org.springframework.aop.support.DelegatingIntroductionInterceptor.doProceed(DelegatingIntroductionInterceptor.java:133) at org.springframework.aop.support.DelegatingIntroductionInterceptor.invoke(DelegatingIntroductionInterceptor.java:121) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179) at org.eclipse.gemini.blueprint.service.util.internal.aop.ServiceTCCLInterceptor.invokeUnprivileged(ServiceTCCLInterceptor.java:70) at org.eclipse.gemini.blueprint.service.util.internal.aop.ServiceTCCLInterceptor.invoke(ServiceTCCLInterceptor.java:53) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179) at org.eclipse.gemini.blueprint.service.importer.support.LocalBundleContextAdvice.invoke(LocalBundleContextAdvice.java:57) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179) at org.springframework.aop.support.DelegatingIntroductionInterceptor.doProceed(DelegatingIntroductionInterceptor.java:133) at org.springframework.aop.support.DelegatingIntroductionInterceptor.invoke(DelegatingIntroductionInterceptor.java:121) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179) at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:208) at com.sun.proxy.$Proxy589.invoke(Unknown Source) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179) at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:208) at com.sun.proxy.$Proxy607.update(Unknown Source) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:497) at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:302) at org.eclipse.gemini.blueprint.service.importer.support.internal.aop.ServiceInvoker.doInvoke(ServiceInvoker.java:56) at org.eclipse.gemini.blueprint.service.importer.support.internal.aop.ServiceInvoker.invoke(ServiceInvoker.java:60) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179) at org.springframework.aop.support.DelegatingIntroductionInterceptor.doProceed(DelegatingIntroductionInterceptor.java:133) at org.springframework.aop.support.DelegatingIntroductionInterceptor.invoke(DelegatingIntroductionInterceptor.java:121) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179) at org.eclipse.gemini.blueprint.service.util.internal.aop.ServiceTCCLInterceptor.invokeUnprivileged(ServiceTCCLInterceptor.java:70) at org.eclipse.gemini.blueprint.service.util.internal.aop.ServiceTCCLInterceptor.invoke(ServiceTCCLInterceptor.java:53) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179) at org.eclipse.gemini.blueprint.service.importer.support.LocalBundleContextAdvice.invoke(LocalBundleContextAdvice.java:57) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179) at org.springframework.aop.support.DelegatingIntroductionInterceptor.doProceed(DelegatingIntroductionInterceptor.java:133) at org.springframework.aop.support.DelegatingIntroductionInterceptor.invoke(DelegatingIntroductionInterceptor.java:121) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179) at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:208) at com.sun.proxy.$Proxy1067.update(Unknown Source) at com.atlassian.confluence.plugins.restapi.resources.ContentPropertyResource.update(ContentPropertyResource.java:218) {noformat}

    Atlassian JIRA | 11 months ago | Richard Atkins [Atlassian]
    java.lang.IllegalArgumentException: Can't add an owner from another space.
  3. 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.
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 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 | 3 years ago | Nick Mason [Atlassian]
    java.lang.IllegalArgumentException: Can't add a parent from another space.
  6. 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.

    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. java.lang.IllegalArgumentException

      Can't add an owner from another space.

      at com.atlassian.confluence.content.CustomContentEntityObject.checkContainerHierarchyValid()
    2. com.atlassian.confluence
      ContentPropertyServiceImpl.update
      1. com.atlassian.confluence.content.CustomContentEntityObject.checkContainerHierarchyValid(CustomContentEntityObject.java:244)
      2. com.atlassian.confluence.content.CustomContentEntityObject.setContainer(CustomContentEntityObject.java:140)
      3. com.atlassian.confluence.plugins.contentproperty.StorageJsonPropertyManager.updateStorageFromApi(StorageJsonPropertyManager.java:50)
      4. com.atlassian.confluence.plugins.contentproperty.ContentPropertyServiceImpl.update(ContentPropertyServiceImpl.java:80)
      4 frames
    3. Java RT
      Method.invoke
      1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
      3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      4. java.lang.reflect.Method.invoke(Method.java:497)
      4 frames
    4. Spring AOP
      ReflectiveMethodInvocation.proceed
      1. org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:302)
      2. org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:190)
      3. org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:157)
      3 frames
    5. com.atlassian.plugins
      SpringInterceptorAdapter$SpringMethodInvocationAdapter.proceed
      1. com.atlassian.plugins.spring.interceptor.plugin.ExportableInterceptorAdapter$WrappedMethodInvocation.proceed(ExportableInterceptorAdapter.java:53)
      2. com.atlassian.plugins.spring.interceptor.spi.SpringInterceptorAdapter$SpringMethodInvocationAdapter.proceed(SpringInterceptorAdapter.java:50)
      2 frames
    6. Spring Tx
      TransactionInterceptor.invoke
      1. org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:106)
      1 frame
    7. com.atlassian.plugins
      SpringInterceptorAdapter.invoke
      1. com.atlassian.plugins.spring.interceptor.spi.SpringInterceptorAdapter.invoke(SpringInterceptorAdapter.java:23)
      1 frame
    8. Java RT
      Method.invoke
      1. sun.reflect.GeneratedMethodAccessor828.invoke(Unknown Source)
      2. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      3. java.lang.reflect.Method.invoke(Method.java:497)
      3 frames
    9. com.atlassian.plugin
      ContextClassLoaderSettingInvocationHandler.invoke
      1. com.atlassian.plugin.util.ContextClassLoaderSettingInvocationHandler.invoke(ContextClassLoaderSettingInvocationHandler.java:26)
      1 frame
    10. com.sun.proxy
      $Proxy350.invoke
      1. com.sun.proxy.$Proxy350.invoke(Unknown Source)
      1 frame
    11. com.atlassian.plugins
      ExportableInterceptorAdapter.invoke
      1. com.atlassian.plugins.spring.interceptor.plugin.ExportableInterceptorAdapter.invoke(ExportableInterceptorAdapter.java:26)
      1 frame
    12. Java RT
      Method.invoke
      1. sun.reflect.GeneratedMethodAccessor827.invoke(Unknown Source)
      2. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      3. java.lang.reflect.Method.invoke(Method.java:497)
      3 frames
    13. Spring AOP
      AopUtils.invokeJoinpointUsingReflection
      1. org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:302)
      1 frame
    14. org.eclipse.gemini
      ServiceInvoker.invoke
      1. org.eclipse.gemini.blueprint.service.importer.support.internal.aop.ServiceInvoker.doInvoke(ServiceInvoker.java:56)
      2. org.eclipse.gemini.blueprint.service.importer.support.internal.aop.ServiceInvoker.invoke(ServiceInvoker.java:60)
      2 frames
    15. Spring AOP
      ReflectiveMethodInvocation.proceed
      1. org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179)
      2. org.springframework.aop.support.DelegatingIntroductionInterceptor.doProceed(DelegatingIntroductionInterceptor.java:133)
      3. org.springframework.aop.support.DelegatingIntroductionInterceptor.invoke(DelegatingIntroductionInterceptor.java:121)
      4. org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179)
      4 frames
    16. org.eclipse.gemini
      ServiceTCCLInterceptor.invoke
      1. org.eclipse.gemini.blueprint.service.util.internal.aop.ServiceTCCLInterceptor.invokeUnprivileged(ServiceTCCLInterceptor.java:70)
      2. org.eclipse.gemini.blueprint.service.util.internal.aop.ServiceTCCLInterceptor.invoke(ServiceTCCLInterceptor.java:53)
      2 frames
    17. Spring AOP
      ReflectiveMethodInvocation.proceed
      1. org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179)
      1 frame
    18. org.eclipse.gemini
      LocalBundleContextAdvice.invoke
      1. org.eclipse.gemini.blueprint.service.importer.support.LocalBundleContextAdvice.invoke(LocalBundleContextAdvice.java:57)
      1 frame
    19. Spring AOP
      JdkDynamicAopProxy.invoke
      1. org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179)
      2. org.springframework.aop.support.DelegatingIntroductionInterceptor.doProceed(DelegatingIntroductionInterceptor.java:133)
      3. org.springframework.aop.support.DelegatingIntroductionInterceptor.invoke(DelegatingIntroductionInterceptor.java:121)
      4. org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179)
      5. org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:208)
      5 frames
    20. com.sun.proxy
      $Proxy589.invoke
      1. com.sun.proxy.$Proxy589.invoke(Unknown Source)
      1 frame
    21. Spring AOP
      JdkDynamicAopProxy.invoke
      1. org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179)
      2. org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:208)
      2 frames
    22. com.sun.proxy
      $Proxy607.update
      1. com.sun.proxy.$Proxy607.update(Unknown Source)
      1 frame
    23. Java RT
      Method.invoke
      1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
      3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      4. java.lang.reflect.Method.invoke(Method.java:497)
      4 frames
    24. Spring AOP
      AopUtils.invokeJoinpointUsingReflection
      1. org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:302)
      1 frame
    25. org.eclipse.gemini
      ServiceInvoker.invoke
      1. org.eclipse.gemini.blueprint.service.importer.support.internal.aop.ServiceInvoker.doInvoke(ServiceInvoker.java:56)
      2. org.eclipse.gemini.blueprint.service.importer.support.internal.aop.ServiceInvoker.invoke(ServiceInvoker.java:60)
      2 frames
    26. Spring AOP
      ReflectiveMethodInvocation.proceed
      1. org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179)
      2. org.springframework.aop.support.DelegatingIntroductionInterceptor.doProceed(DelegatingIntroductionInterceptor.java:133)
      3. org.springframework.aop.support.DelegatingIntroductionInterceptor.invoke(DelegatingIntroductionInterceptor.java:121)
      4. org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179)
      4 frames
    27. org.eclipse.gemini
      ServiceTCCLInterceptor.invoke
      1. org.eclipse.gemini.blueprint.service.util.internal.aop.ServiceTCCLInterceptor.invokeUnprivileged(ServiceTCCLInterceptor.java:70)
      2. org.eclipse.gemini.blueprint.service.util.internal.aop.ServiceTCCLInterceptor.invoke(ServiceTCCLInterceptor.java:53)
      2 frames
    28. Spring AOP
      ReflectiveMethodInvocation.proceed
      1. org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179)
      1 frame
    29. org.eclipse.gemini
      LocalBundleContextAdvice.invoke
      1. org.eclipse.gemini.blueprint.service.importer.support.LocalBundleContextAdvice.invoke(LocalBundleContextAdvice.java:57)
      1 frame
    30. Spring AOP
      JdkDynamicAopProxy.invoke
      1. org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179)
      2. org.springframework.aop.support.DelegatingIntroductionInterceptor.doProceed(DelegatingIntroductionInterceptor.java:133)
      3. org.springframework.aop.support.DelegatingIntroductionInterceptor.invoke(DelegatingIntroductionInterceptor.java:121)
      4. org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179)
      5. org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:208)
      5 frames
    31. com.sun.proxy
      $Proxy1067.update
      1. com.sun.proxy.$Proxy1067.update(Unknown Source)
      1 frame
    32. com.atlassian.confluence
      ContentPropertyResource.update
      1. com.atlassian.confluence.plugins.restapi.resources.ContentPropertyResource.update(ContentPropertyResource.java:218)
      1 frame