Unable to Move a Page to A Different Space Due to NullPointerException

Still need help?

The Atlassian Community is here for you.

Ask the community

Symptoms

Unable to move a page to a different space. The following appears in the atlassian-confluence.log:

2012-08-13 17:11:32,463 ERROR [TP-Processor13] [atlassian.event.internal.EventPublisherImpl] invokeListeners There was an exception thrown trying to dispatch event 'com.atlassian.confluence.event.events.content.page.PageMoveEvent@533f911f[theMover=EmbeddedCrowdUser{name='admin', displayName='admin', directoryId=60391425},oldSpace=com.atlassian.confluence.spaces.Space@14ed1d9c,oldParentPage=page: IT Department v.263 (25854202),oldPosition=<null>,movedBecauseOfParent=false,page=page: Test v.2 (25854233),timestamp=1344870691029]' from the invoker 'com.atlassian.event.internal.SingleParameterMethodListenerInvoker@17596ee0'.
 -- url: /confdev/pages/movepage.action | userName: admin | referer: https://<confluence-url>/confdev/display/IT/Test | action: movepage
java.lang.RuntimeException: java.lang.NullPointerException
	at com.atlassian.event.internal.SingleParameterMethodListenerInvoker.invoke(SingleParameterMethodListenerInvoker.java:50)
	at com.atlassian.event.internal.AsynchronousAbleEventDispatcher$2.run(AsynchronousAbleEventDispatcher.java:60)
	at com.atlassian.event.internal.AsynchronousAbleEventDispatcher$1.execute(AsynchronousAbleEventDispatcher.java:28)
	at com.atlassian.event.internal.AsynchronousAbleEventDispatcher.dispatch(AsynchronousAbleEventDispatcher.java:56)
	at com.atlassian.event.internal.EventPublisherImpl.invokeListeners(EventPublisherImpl.java:151)
	at com.atlassian.event.internal.EventPublisherImpl.publish(EventPublisherImpl.java:70)
	at com.atlassian.event.legacy.LegacyEventManager.publishEvent(LegacyEventManager.java:36)
	at com.atlassian.confluence.event.ConfluenceEventManager.publishEvent(ConfluenceEventManager.java:47)
....
Caused by: java.lang.NullPointerException
	at com.atlassian.confluence.pages.DefaultPageManager.saveContentEntity(DefaultPageManager.java:861)
	at com.atlassian.confluence.core.DefaultContentEntityManager.saveNewVersion(DefaultContentEntityManager.java:95)
....

Cause

We do not have a definite explanation why this issue occurs, but we suspect that this problem is caused by the fact that Confluence is not able to figure out the original/old position/page ID.

Workaround

The workaround is to copy the page and delete the old page.

Last modified on Mar 30, 2016

Was this helpful?

Yes
No
Provide feedback about this article
Powered by Confluence and Scroll Viewport.