AnsweredAssumed Answered

Got nullpointerexception when calling navigation service

Question asked by rexmao on Mar 25, 2010
Hi,

I used .net to call navigation web services. I have got every methods in repository service worked. When I tried the method getChildren in navigation service, I got a nullpointerexception in service side. Would some one give me some help?

Here's my code:

navigationS = ServiceFactory.getNavigationService();
            cmisObjectInFolderListType folderList = navigationS.getChildren(repositoryId, rootFolderId, "*", "name", true, NavigationService.enumIncludeRelationships.none, null, false, "0", "0", new NavigationService.cmisExtensionType());

And here's the stack trace:

16:09:32,796 User:admin ERROR [repo.cmis.ws] java.lang.NullPointerException
java.lang.NullPointerException
        at org.alfresco.repo.cmis.ws.utils.PropertyUtil.createProperty(PropertyU
til.java:647)
        at org.alfresco.repo.cmis.ws.utils.PropertyUtil.convertToCmisProperties(
PropertyUtil.java:572)
        at org.alfresco.repo.cmis.ws.utils.PropertyUtil.getPropertiesType(Proper
tyUtil.java:540)
        at org.alfresco.repo.cmis.ws.DMAbstractServicePort.createCmisObject(DMAb
stractServicePort.java:199)
        at org.alfresco.repo.cmis.ws.DMNavigationServicePort.getChildren(DMNavig
ationServicePort.java:139)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:39)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:597)
        at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflecti
on(AopUtils.java:304)
        at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJo
inpoint(ReflectiveMethodInvocation.java:182)
        at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(
ReflectiveMethodInvocation.java:149)
        at org.springframework.aop.framework.adapter.ThrowsAdviceInterceptor.inv
oke(ThrowsAdviceInterceptor.java:126)
        at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(
ReflectiveMethodInvocation.java:171)
        at org.springframework.transaction.interceptor.TransactionInterceptor.in
voke(TransactionInterceptor.java:106)
        at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(
ReflectiveMethodInvocation.java:171)
        at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynami
cAopProxy.java:204)
        at $Proxy166.getChildren(Unknown Source)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:39)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:597)
        at org.apache.cxf.service.invoker.AbstractInvoker.performInvocation(Abst
ractInvoker.java:136)
        at org.apache.cxf.service.invoker.AbstractInvoker.invoke(AbstractInvoker
.java:82)
        at org.apache.cxf.jaxws.JAXWSMethodInvoker.invoke(JAXWSMethodInvoker.jav
a:97)
        at org.apache.cxf.service.invoker.AbstractInvoker.invoke(AbstractInvoker
.java:68)
        at org.apache.cxf.interceptor.ServiceInvokerInterceptor$1.run(ServiceInv
okerInterceptor.java:56)
        at org.apache.cxf.workqueue.SynchronousExecutor.execute(SynchronousExecu
tor.java:37)
        at org.apache.cxf.interceptor.ServiceInvokerInterceptor.handleMessage(Se
rviceInvokerInterceptor.java:92)
        at org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseIntercept
orChain.java:220)
        at org.apache.cxf.transport.ChainInitiationObserver.onMessage(ChainIniti
ationObserver.java:78)
        at org.apache.cxf.transport.servlet.ServletDestination.invoke(ServletDes
tination.java:92)
        at org.apache.cxf.transport.servlet.ServletController.invokeDestination(
ServletController.java:283)
        at org.apache.cxf.transport.servlet.ServletController.invoke(ServletCont
roller.java:166)
        at org.apache.cxf.transport.servlet.AbstractCXFServlet.invoke(AbstractCX
FServlet.java:174)
        at org.apache.cxf.transport.servlet.AbstractCXFServlet.doPost(AbstractCX
FServlet.java:152)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:637)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Appl
icationFilterChain.java:290)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationF
ilterChain.java:206)
        at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperV
alve.java:233)
        at org.apache.catalina.core.StandardContextValve.invoke(StandardContextV
alve.java:191)
        at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.j
ava:128)
        at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.j
ava:102)
        at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineVal
ve.java:109)
        at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.jav
a:286)
        at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java
:845)
        at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.proce
ss(Http11Protocol.java:583)
        at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:44
7)
        at java.lang.Thread.run(Thread.java:619)

Outcomes