Hi,
I am trying to use the JAVA API for Nuxeo to create a client to connect to
Nuexo server. But it throws error when I call the connect method.
I am using latest version of nuxeo : nuxeo-ep-5.2.0-RC1.
Has anyone use Nuxeo API successfully to connect to Nuxeo server, get
repository and add documents etc.. Please suggest/advise or if there is sample
code. Is there any fix/patch ?
thanks in advance.
code snippet
============================================
public static String host = "localhost";
public static int port = 62474;
NuxeoClient.getInstance().connect(host, port);
============================================
Get following error
============================================
Exception in thread "main" java.lang.ExceptionInInitializerError
at org.nuxeo.ecm.sample.client.Main.connect(Main.java:73)
at org.nuxeo.ecm.sample.client.Main.main(Main.java:55)
Caused by: java.lang.NullPointerException
at org.nuxeo.runtime.api.Framework.getLocalService(Framework.java:154)
at
org.nuxeo.runtime.config.AutoConfigurationService.<init>(AutoConfigurationService.java:50)
at org.nuxeo.ecm.core.client.NuxeoClient.<init>(NuxeoClient.java:72)
at org.nuxeo.ecm.core.client.NuxeoClient.<clinit>(NuxeoClient.java:68)
... 2 more
============================================
--
Posted by "nileshkaria" at Nuxeo Discussions <http://nuxeo.org/discussions>
View the complete thread:
<http://www.nuxeo.org/discussions/thread.jspa?threadID=2405#6507>
_______________________________________________
ECM mailing list
[email protected]
http://lists.nuxeo.com/mailman/listinfo/ecm
To unsubscribe, go to http://lists.nuxeo.com/mailman/options/ecm