03-14-2014 07:52 AM
Bonjour
J'utilise l'API REST python (nuxeolib-py)
J'ai essayé de rajouter un appel à l'opération NuxeoPrincipal.Get, en copiant l'exemple fonctionnel pour l'appel à l'opération Document.Query
def query(self, query, language=None):
return self._execute("Document.Query", query=query, language=language)
def principal(self, login):
return self._execute("NuxeoPrincipal.Get", login=login)
les paramètres json de la requête sont:
{"params": {"login": "john"}}
Ce qui produit l'erreur suivante:
ERROR:root:HTTP Error 500: Erreur Interne de Servlet
ERROR:root:javax.ws.rs.WebApplicationException: java.lang.NullPointerException
at org.nuxeo.ecm.automation.jaxrs.io.documents.JsonDocumentWriter.writeTo(JsonDocumentWriter.java:107)
at org.nuxeo.ecm.automation.jaxrs.io.documents.JsonDocumentWriter.writeTo(JsonDocumentWriter.java:63)
at com.sun.jersey.spi.container.ContainerResponse.write(ContainerResponse.java:306)
at com.sun.jersey.server.impl.application.WebApplicationImpl._handleRequest(WebApplicationImpl.java:1479)
Merci de toute suggestion...
Cordialement Christian
03-14-2014 11:35 AM
Pouvez vous donner la version de Nuxeo que vous utilisez ?
03-15-2014 02:04 AM
Bonjour voici ma configuration
03-15-2014 02:05 AM
Voici ma configuration
Nuxeo home: C:\Install\nuxeo-cap-5.8-eclipse
Nuxeo configuration: C:\Install\nuxeo-cap-5.8-eclipse\bin\nuxeo.conf
Include template: C:\Install\nuxeo-cap-5.8-eclipse\templates\common-base
Include template: C:\Install\nuxeo-cap-5.8-eclipse\templates\common
Include template: C:\Install\nuxeo-cap-5.8-eclipse\templates\default
Include template: C:\Install\nuxeo-cap-5.8-eclipse\templates\drive
Local packages:
studio started atrium (id: atrium-0.0.0-SNAPSHOT)
hotfix started nuxeo-5.8.0-HF01 (id: nuxeo-5.8.0-HF01-1.0.0)
hotfix started nuxeo-5.8.0-HF02 (id: nuxeo-5.8.0-HF02-1.0.0)
hotfix started nuxeo-5.8.0-HF03 (id: nuxeo-5.8.0-HF03-1.0.0)
hotfix started nuxeo-5.8.0-HF04 (id: nuxeo-5.8.0-HF04-1.0.0)
hotfix started nuxeo-5.8.0-HF05 (id: nuxeo-5.8.0-HF05-1.0.0)
hotfix started nuxeo-5.8.0-HF06 (id: nuxeo-5.8.0-HF06-1.0.0)
addon started in2p3-atrium (id: in2p3-atrium-1.0.7-SNAPSHOT)
addon started nuxeo-dm (id: nuxeo-dm-5.8.0)
addon started nuxeo-drive (id: nuxeo-drive-1.2.1)
addon downloaded nuxeo-platform-importer (id: nuxeo-platform-importer-1.3.1-SNAPSHOT)
addon started nuxeo-rest-api (id: nuxeo-rest-api-5.8.0)
Christian
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.