cancel
Showing results for 
Search instead for 
Did you mean: 

Nuxeo NuxeoRemotingService Issue

SMAH_Haider
Star Contributor
Star Contributor

I am calling NuxeoRemotingService. I have tested it with several clients including Nuxeo JAX-WS Nuxeo preferred client. I have also tested it with JAX-RPC and Axis client. In all the clients I am able to call the getUsers method and get a perfect response; but whenever I try to call their getDocument methods that return DocumentDescriptor I get the following exception:

Exception in thread "main" org.nuxeo.ecm.platform.ws.ClientException_Exception: Failed to get document da8166eb-86fe-42de-9694-601a20c43a28 at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27) at java.lang.reflect.Constructor.newInstance(Constructor.java:513) at com.sun.xml.internal.ws.fault.SOAPFaultBuilder.createException(SOAPFaultBuilder.java:113) at com.sun.xml.internal.ws.client.sei.SyncMethodHandler.invoke(SyncMethodHandler.java:240) at com.sun.xml.internal.ws.client.sei.SyncMethodHandler.invoke(SyncMethodHandler.java:210) at com.sun.xml.internal.ws.client.sei.SEIStub.invoke(SEIStub.java:103) at $Proxy30.getDocument(Unknown Source) at redmath.recm.driver.Driver.main(Driver.java:25)

Thats the exception when I called the method like this:

DocumentDescriptor myDocumentDescriptor = myNuxeRemotingInterface.getDocument(sessionId, "da8166eb-86fe-42de-9694-601a20c43a28");

I got the above exception when I generated the JAX-WS client using jaxws-maven-plugin.

I followed Nuxeo 5.5 following tutorial: http://doc.nuxeo.com/display/NXDOC/Building+a+SOAP-based+WebService+client+in+Nuxeo

Please help me out I cannot use NuxeoRemotingService webservice.

3 REPLIES 3

Benjamin_Jalon1
Elite Collaborator
Elite Collaborator

Do you have a cause by in your exception?

SMAH_Haider
Star Contributor
Star Contributor

Bjalon, No I dont have cause by in the exception.

SMAH_Haider
Star Contributor
Star Contributor

Aah! my fault, my bad!

My nuxeo webservices were deployed on 2 servers, i was passing on the uuid of a document in getDocument method paramters that didnt exist in the repository. Actually I instantiated the NuxeoInterfaceStub class with wrong server url 🙂