cancel
Showing results for 
Search instead for 
Did you mean: 

Error with getChildren method in NavigationService

rameshbelli
Champ in-the-making
Champ in-the-making
Hi all,

I was testing the getChildren method in NavigationService couple of weeks back and it worked fine. When I tried this method last Friday and also this morning

I am getting errors. I am sure I didn't  change the code which  I used couple of weeks back.

Request

<getChildren xmlns="http://docs.oasis-open.org/ns/cmis/messaging/200908/">
  <repositoryId>84ccfe80-b325-4d79-ab4d-080a4bdd045b</repositoryId>
  <folderId>workspace://SpacesStore/25ba2a1e-b110-48fb-a5a4-5dc381346052</folderId>
  <includeAllowableActions>true</includeAllowableActions>
  <includeRelationships>none</includeRelationships>
  <includePathSegment>true</includePathSegment>
</getChildren>


Response

<axis2ns2:cmisFault xmlns:ns2="http://docs.oasis-open.org/ns/cmis/core/200908/" xmlns:axis2ns2="http://docs.oasis-open.org/ns/cmis/messaging/200908/" xmlns:ns3="http://www.alfresco.org">
  <axis2ns2:type>runtime</axis2ns2:type>
  <axis2ns2:code>0</axis2ns2:code>
  <axis2ns2:message>Runtime error. Message: java.lang.NullPointerException</axis2ns2:message>
</axis2ns2:cmisFault>

Any help is greatly appreciated.
6 REPLIES 6

jpotts
World-Class Innovator
World-Class Innovator
The getChildren call with the AtomPub binding is working fine for me for that specific folder object (using Python cmislib).

I know Dave recently switched cmis.alfresco.com to svn head. Maybe that affected you in some way.

Can you get the children of any folder object or is it just this one?

Jeff

rameshbelli
Champ in-the-making
Champ in-the-making
Thanks for the prompt reply Jeff.

I did tried others folder Id and I cannot get the children of any of them.

Even I tried the other methods like getObject(), getDescendants() , getFolderTree() in NavigationService I get the same kind of error.

Ramesh

nikes
Champ on-the-rise
Champ on-the-rise
Hi Ramesh,

Even I am getting the same error while using XmlBeans binding, but with ADB binding it works fine.

It seems like some services are running properly in ADB binding and some in XmlBeans.

If you find solution using XmlBeans then please share.

Problem with ADB binding is, we have to set all method parameters (even if it is optional), while
in XmlBeans we can skip optional method parameters.

Are you thinking to change Axis2 to any other framework?

Thanks for any help.

openpj
Elite Collaborator
Elite Collaborator
I suggest you to use Apache CXF, it works fine!

Hope this helps.

rameshbelli
Champ in-the-making
Champ in-the-making
Hi all , everything works fine now. Thanks for whoever fixed the error on the Server side.

Nikes , we  are going with Axis2 and everything works.

Thanks Jeff and Nikes for your post.

nikes
Champ on-the-rise
Champ on-the-rise
Hi Ramesh,

Please share how did you solve this issue?

Which Alfresco version should I use?

Currently I am using Alfresco 3.2r2.

Thanks.