cancel
Showing results for 
Search instead for 
Did you mean: 

NullPointer in copy a folder into my RM

Former Member
0 Kudos

Hi,

I created a Repository Manager by implementing

com.sap.netweaver.bc.rf.mi.AbstractManager

. When I copy a document from outside like /etc to my RM, createResource() in my NamespaceManager is called. However, when I try to copy a folder from /etc into my RM, a NullPointerException is thrown, and from the log, createResource() is not called. I am confused about this. What should I do to copy a folder into my RM?

More stacktrace is:

ava.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)

Thanks,

Ray

Accepted Solutions (0)

Answers (1)

Answers (1)

former_member189326
Active Participant
0 Kudos

What server version are you using here?

Former Member
0 Kudos

I am using EP7.0

former_member189326
Active Participant
0 Kudos

Hi Ray - okay, we'll need a little more information in order to be able to help you. I can suggest that if you contact my via email (address is in my SDN business card) and give me your source code, I can have a look.

The internal code path for these calls is a little complicated.

In general, this operation will go back to the namespace manager. Perhaps the createCollection() call is returning null. <b>Have you tried using the debugger</b>?

Former Member
0 Kudos

Hi Boris,

Thanks for help, but there seems no createCollection() method in IMutableNamespaceManager -only createResources(), but it's not called when I copy a folder to it. Any idea?

Thanks,

Ray