Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

NullPointer exception when copy a folder from a Repository to EP folder

Hi,

We created our own repository by implementing a Repository Manager. We want to copy a folder from our repository to a EP folder, for example, /document.

The problem we meet now is, when the folder has no sub-folder, the copy can succeed.

But When the folder has <b>sub-folders</b>, the folder itself can be copied, but with error message:

java.lang.NullPointerException
        at com.sapportals.wcm.repository.CollectionImpl.internalCopy(CollectionImpl.java:1268)
        at com.sapportals.wcm.repository.ResourceImpl.copy(ResourceImpl.java:2019)
        at com.sapportals.wcm.repository.ResourceImpl.copy(ResourceImpl.java:1992)
        at com.sapportals.wcm.rfadapter.CopyUtility.copy(CopyUtility.java:116)
        at com.sapportals.wcm.rendering.uicommand.cm.CopyUtil.singleNewCopy(CopyUtil.java:96)
        at com.sapportals.wcm.rendering.uicommand.cm.CopyUtil.copy(CopyUtil.java:52)
        at com.sapportals.wcm.rendering.uicommand.cm.UICopyCommand.execute(UICopyCommand.java:148)
        at com.sapportals.wcm.rendering.uicommand.cm.UIMassEmbeddedSelectCommand.execute(UIMassEmbeddedSelectCommand.java:87)
        at com.sapportals.wcm.rendering.uicommand.cm.UIMassEmbeddedSelectCommand.execute(UIMassEmbeddedSelectCommand.java:66)
        at com.sapportals.wcm.rendering.control.cm.CommandDispatcher.onMassExecute(CommandDispatcher.java:45)
        at com.sapportals.wcm.rendering.control.cm.WdfProxy.onMassExecute(WdfProxy.java:2293)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

Help appreciated.

Thanks,

Ray

Former Member
Not what you were looking for? View more on this topic or Ask a question