04-20-2012 03:14 AM
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.
04-20-2012 03:42 AM
Do you have a cause by in your exception?
04-20-2012 04:00 AM
Bjalon, No I dont have cause by in the exception.
04-23-2012 02:37 PM
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 🙂
Find what you came for
We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.