java.lang.RuntimeException: A page already exists with the title "Unrelated with the page you want to move" in the space with key spaceKey

Atlassian JIRA | Denise Unterwurzacher | 3 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 # Create a page with name 'abc' # Create other page with name 'page to be moved' # Insert a link to 'page to be moved' on 'abc' # Delete page 'abc' # Create a page with name 'abc' again #- This operation is successful # Insert a link to 'page to be moved' on 'abc' (optional) # Move 'page to be moved' to somewhere else #- This operation fails. The below appears in the atlassian-confluence.log {code} 2014-08-12 10:06:51,870 ERROR [http-bio-8391-exec-507] [atlassian.event.internal.AsynchronousAbleEventDispatcher] run There was an exception thrown trying to dispatch event [com.atlassian.confluence.event.events.content.page.PageMoveCompletedEvent[source=page: "Page that is failed to be moved" v.14 (11239782)]] from the invoker [SingleParameterMethodListenerInvoker{method=public void com.atlassian.confluence.links.RelatedContentRefactoringListener.handleEvent(com.atlassian.confluence.event.events.content.page.PageMoveCompletedEvent), listener=com.atlassian.confluence.links.RelatedContentRefactoringListener@5f33c0b7}]  -- url: /confluence/pages/movepage.action | userName: PVanhoof | referer: https://wiki.test.com/confluence/pages/listpages-dirview.action?key=spaceKey&openId=11239782#selectedPageInHierarchy | action: movepage java.lang.RuntimeException: A page already exists with the title "Unrelated with the page you want to move" in the space with key spaceKey     at com.atlassian.event.internal.SingleParameterMethodListenerInvoker.invoke(SingleParameterMethodListenerInvoker.java:54)     at com.atlassian.event.internal.AsynchronousAbleEventDispatcher$1$1.run(AsynchronousAbleEventDispatcher.java:48)     at com.google.common.util.concurrent.MoreExecutors$SameThreadExecutorService.execute(MoreExecutors.java:253)     at com.atlassian.event.internal.AsynchronousAbleEventDispatcher.dispatch(AsynchronousAbleEventDispatcher.java:107)     at com.atlassian.event.internal.EventPublisherImpl.invokeListeners(EventPublisherImpl.java:160)     at com.atlassian.event.internal.EventPublisherImpl.publish(EventPublisherImpl.java:79)     at com.atlassian.event.legacy.LegacyEventManager.publishEvent(LegacyEventManager.java:36)     at com.atlassian.confluence.event.ConfluenceEventManager.publishEvent(ConfluenceEventManager.java:47)     at sun.reflect.GeneratedMethodAccessor166.invoke(Unknown Source)     at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)     at java.lang.reflect.Method.invoke(Unknown Source)     at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:307)     at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:182)     at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:149)     at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:106)     at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)     at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204)     at com.sun.proxy.$Proxy26.publishEvent(Unknown Source)     at com.atlassian.confluence.pages.DefaultPageManager.publishPageMoveEvents(DefaultPageManager.java:1150)     at com.atlassian.confluence.pages.DefaultPageManager.movePageAsChild(DefaultPageManager.java:714)     ... Caused by: com.atlassian.confluence.pages.DuplicateDataRuntimeException: A page already exists with the title "Unrelated with the page you want to move" in the space with key spaceKey     at com.atlassian.confluence.pages.DefaultPageManager.throwIfDuplicateAbstractPageTitle(DefaultPageManager.java:1067)     at com.atlassian.confluence.pages.DefaultPageManager.saveContentEntity(DefaultPageManager.java:992)     at sun.reflect.GeneratedMethodAccessor1554.invoke(Unknown Source)     at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)     at java.lang.reflect.Method.invoke(Unknown Source)     at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:307)     at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:182)     at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:149)     at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:106)     at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)     at com.atlassian.spring.interceptors.SpringProfilingInterceptor.invoke(SpringProfilingInterceptor.java:16)     at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)     at com.atlassian.confluence.util.profiling.ConfluenceMonitoringMethodInterceptor.invoke(ConfluenceMonitoringMethodInterceptor.java:59)     at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)     at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204)     at com.sun.proxy.$Proxy59.saveContentEntity(Unknown Source)     at com.atlassian.confluence.links.DefaultRelatedContentRefactorer.contractAbsoluteReferencesInContent(DefaultRelatedContentRefactorer.java:429)     at com.atlassian.confluence.links.DefaultRelatedContentRefactorer.contractAbsoluteReferencesInContent(DefaultRelatedContentRefactorer.java:392)     at com.atlassian.confluence.links.RelatedContentRefactoringListener.handleEvent(RelatedContentRefactoringListener.java:57)     at sun.reflect.GeneratedMethodAccessor1800.invoke(Unknown Source)     at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)     at java.lang.reflect.Method.invoke(Unknown Source)     at com.atlassian.event.internal.SingleParameterMethodListenerInvoker.invoke(SingleParameterMethodListenerInvoker.java:36)     ... 326 more {code} h3. Workaround h4. Option 1: # Change title of the page to be moved. (i) i.e. "Release Notes" to "Release Notes v1.0". # Move page to desired location. (i) The new title can be changed back to the original after completion. h4. Option 2: # Check the error in the logs to find the space that contains the deleted page (this may not be the same space as the page you are moving). # Purge the trash in that space ([documentation|https://confluence.atlassian.com/display/DOC/Purging+Deleted+Pages]). (!) When the trash is purged, all attachments on purged pages are permanently removed as well. h4. Option 3: # Clone the page via _Tools_ > _Copy_ and save the page. (i) The title of the page will be "Copy of <page_title>". # Move cloned page to desired location. (i) You may rename the title page to the original after moving operation is successful by removing the "Copy of" words from the title. # Delete the old page (can't be moved) to remove redundancies.

    Atlassian JIRA | 3 years ago | Denise Unterwurzacher
    java.lang.RuntimeException: A page already exists with the title "Unrelated with the page you want to move" in the space with key spaceKey
  2. 0

    h3. Steps to Reproduce # Create a page with name 'abc' # Create other page with name 'page to be moved' # Insert a link to 'page to be moved' on 'abc' # Delete page 'abc' # Create a page with name 'abc' again #- This operation is successful # Insert a link to 'page to be moved' on 'abc' (optional) # Move 'page to be moved' to somewhere else #- This operation fails. The below appears in the atlassian-confluence.log {code} 2014-08-12 10:06:51,870 ERROR [http-bio-8391-exec-507] [atlassian.event.internal.AsynchronousAbleEventDispatcher] run There was an exception thrown trying to dispatch event [com.atlassian.confluence.event.events.content.page.PageMoveCompletedEvent[source=page: "Page that is failed to be moved" v.14 (11239782)]] from the invoker [SingleParameterMethodListenerInvoker{method=public void com.atlassian.confluence.links.RelatedContentRefactoringListener.handleEvent(com.atlassian.confluence.event.events.content.page.PageMoveCompletedEvent), listener=com.atlassian.confluence.links.RelatedContentRefactoringListener@5f33c0b7}]  -- url: /confluence/pages/movepage.action | userName: PVanhoof | referer: https://wiki.test.com/confluence/pages/listpages-dirview.action?key=spaceKey&openId=11239782#selectedPageInHierarchy | action: movepage java.lang.RuntimeException: A page already exists with the title "Unrelated with the page you want to move" in the space with key spaceKey     at com.atlassian.event.internal.SingleParameterMethodListenerInvoker.invoke(SingleParameterMethodListenerInvoker.java:54)     at com.atlassian.event.internal.AsynchronousAbleEventDispatcher$1$1.run(AsynchronousAbleEventDispatcher.java:48)     at com.google.common.util.concurrent.MoreExecutors$SameThreadExecutorService.execute(MoreExecutors.java:253)     at com.atlassian.event.internal.AsynchronousAbleEventDispatcher.dispatch(AsynchronousAbleEventDispatcher.java:107)     at com.atlassian.event.internal.EventPublisherImpl.invokeListeners(EventPublisherImpl.java:160)     at com.atlassian.event.internal.EventPublisherImpl.publish(EventPublisherImpl.java:79)     at com.atlassian.event.legacy.LegacyEventManager.publishEvent(LegacyEventManager.java:36)     at com.atlassian.confluence.event.ConfluenceEventManager.publishEvent(ConfluenceEventManager.java:47)     at sun.reflect.GeneratedMethodAccessor166.invoke(Unknown Source)     at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)     at java.lang.reflect.Method.invoke(Unknown Source)     at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:307)     at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:182)     at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:149)     at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:106)     at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)     at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204)     at com.sun.proxy.$Proxy26.publishEvent(Unknown Source)     at com.atlassian.confluence.pages.DefaultPageManager.publishPageMoveEvents(DefaultPageManager.java:1150)     at com.atlassian.confluence.pages.DefaultPageManager.movePageAsChild(DefaultPageManager.java:714)     ... Caused by: com.atlassian.confluence.pages.DuplicateDataRuntimeException: A page already exists with the title "Unrelated with the page you want to move" in the space with key spaceKey     at com.atlassian.confluence.pages.DefaultPageManager.throwIfDuplicateAbstractPageTitle(DefaultPageManager.java:1067)     at com.atlassian.confluence.pages.DefaultPageManager.saveContentEntity(DefaultPageManager.java:992)     at sun.reflect.GeneratedMethodAccessor1554.invoke(Unknown Source)     at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)     at java.lang.reflect.Method.invoke(Unknown Source)     at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:307)     at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:182)     at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:149)     at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:106)     at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)     at com.atlassian.spring.interceptors.SpringProfilingInterceptor.invoke(SpringProfilingInterceptor.java:16)     at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)     at com.atlassian.confluence.util.profiling.ConfluenceMonitoringMethodInterceptor.invoke(ConfluenceMonitoringMethodInterceptor.java:59)     at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)     at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204)     at com.sun.proxy.$Proxy59.saveContentEntity(Unknown Source)     at com.atlassian.confluence.links.DefaultRelatedContentRefactorer.contractAbsoluteReferencesInContent(DefaultRelatedContentRefactorer.java:429)     at com.atlassian.confluence.links.DefaultRelatedContentRefactorer.contractAbsoluteReferencesInContent(DefaultRelatedContentRefactorer.java:392)     at com.atlassian.confluence.links.RelatedContentRefactoringListener.handleEvent(RelatedContentRefactoringListener.java:57)     at sun.reflect.GeneratedMethodAccessor1800.invoke(Unknown Source)     at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)     at java.lang.reflect.Method.invoke(Unknown Source)     at com.atlassian.event.internal.SingleParameterMethodListenerInvoker.invoke(SingleParameterMethodListenerInvoker.java:36)     ... 326 more {code} h3. Workaround h4. Option 1: # Change title of the page to be moved. (i) i.e. "Release Notes" to "Release Notes v1.0". # Move page to desired location. (i) The new title can be changed back to the original after completion. h4. Option 2: # Check the error in the logs to find the space that contains the deleted page (this may not be the same space as the page you are moving). # Purge the trash in that space ([documentation|https://confluence.atlassian.com/display/DOC/Purging+Deleted+Pages]). (!) When the trash is purged, all attachments on purged pages are permanently removed as well. h4. Option 3: # Clone the page via _Tools_ > _Copy_ and save the page. (i) The title of the page will be "Copy of <page_title>". # Move cloned page to desired location. (i) You may rename the title page to the original after moving operation is successful by removing the "Copy of" words from the title. # Delete the old page (can't be moved) to remove redundancies.

    Atlassian JIRA | 3 years ago | Denise Unterwurzacher
    java.lang.RuntimeException: A page already exists with the title "Unrelated with the page you want to move" in the space with key spaceKey
  3. 0

    GitHub comment 83#143812446

    GitHub | 2 years ago | wadahiro
    java.lang.RuntimeException: You are not permitted to access this resource
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    [WEBHOOKS-95] OsgiWebHookProviderWebHookRegistry has flawed locking logic - Ecosystem JIRA

    atlassian.net | 1 year ago
    java.lang.RuntimeException: attempt to unlock read lock, not locked by current thread
  6. 0

    [BSERV-7616] executor.max.threads is too big for instances with too many CPUs - Atlassian JIRA

    atlassian.com | 1 year ago
    java.lang.RuntimeException: unable to create new native thread

    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.RuntimeException

      A page already exists with the title "Unrelated with the page you want to move" in the space with key spaceKey

      at com.atlassian.event.internal.SingleParameterMethodListenerInvoker.invoke()
    2. com.atlassian.event
      AsynchronousAbleEventDispatcher$1$1.run
      1. com.atlassian.event.internal.SingleParameterMethodListenerInvoker.invoke(SingleParameterMethodListenerInvoker.java:54)
      2. com.atlassian.event.internal.AsynchronousAbleEventDispatcher$1$1.run(AsynchronousAbleEventDispatcher.java:48)
      2 frames
    3. Guava
      MoreExecutors$SameThreadExecutorService.execute
      1. com.google.common.util.concurrent.MoreExecutors$SameThreadExecutorService.execute(MoreExecutors.java:253)
      1 frame
    4. com.atlassian.event
      LegacyEventManager.publishEvent
      1. com.atlassian.event.internal.AsynchronousAbleEventDispatcher.dispatch(AsynchronousAbleEventDispatcher.java:107)
      2. com.atlassian.event.internal.EventPublisherImpl.invokeListeners(EventPublisherImpl.java:160)
      3. com.atlassian.event.internal.EventPublisherImpl.publish(EventPublisherImpl.java:79)
      4. com.atlassian.event.legacy.LegacyEventManager.publishEvent(LegacyEventManager.java:36)
      4 frames
    5. com.atlassian.confluence
      ConfluenceEventManager.publishEvent
      1. com.atlassian.confluence.event.ConfluenceEventManager.publishEvent(ConfluenceEventManager.java:47)
      1 frame
    6. Java RT
      Method.invoke
      1. sun.reflect.GeneratedMethodAccessor166.invoke(Unknown Source)
      2. sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
      3. java.lang.reflect.Method.invoke(Unknown Source)
      3 frames
    7. Spring AOP
      ReflectiveMethodInvocation.proceed
      1. org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:307)
      2. org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:182)
      3. org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:149)
      3 frames
    8. Spring Tx
      TransactionInterceptor.invoke
      1. org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:106)
      1 frame
    9. Spring AOP
      JdkDynamicAopProxy.invoke
      1. org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
      2. org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204)
      2 frames
    10. com.sun.proxy
      $Proxy26.publishEvent
      1. com.sun.proxy.$Proxy26.publishEvent(Unknown Source)
      1 frame
    11. com.atlassian.confluence
      DefaultPageManager.movePageAsChild
      1. com.atlassian.confluence.pages.DefaultPageManager.publishPageMoveEvents(DefaultPageManager.java:1150)
      2. com.atlassian.confluence.pages.DefaultPageManager.movePageAsChild(DefaultPageManager.java:714)
      2 frames