I am trying to connect to livelink folder via java. When I call doc.AccessEnterpriseWS(pwsInfo) the status is -2147482645 and has the message "A required privilege is not held by the client.". Any suggestions on what may be wrong. Once I get beyond this error have what I need to add a document.
int status = 0;
int nodeID = 0;
int parentID =0;
int nodeVol = 0;
int parentVol = 0;
LLSession session;
LAPI_DOCUMENTS doc;
LLValue pwsInfo= new LLValue();
LLValue objInfo = new LLValue();
LLValue verInfo = new LLValue();
String server = "server";
int port = 2099;
String db = ""; // empty string uses the default database
String username = "username";
String password = "password";
session = new LLSession(server, port, db, username, password);
doc = new LAPI_DOCUMENTS (session);
if ((status = doc.AccessEnterpriseWS(pwsInfo)) != 0)
{
throw new RuntimeException("Error accessing personal workspace");
}
int status = 0;
int nodeID = 0;
int parentID =0;
int nodeVol = 0;
int parentVol = 0;
LLSession session;
LAPI_DOCUMENTS doc;
LLValue pwsInfo= new LLValue();
LLValue objInfo = new LLValue();
LLValue verInfo = new LLValue();
String server = "server";
int port = 2099;
String db = ""; // empty string uses the default database
String username = "username";
String password = "password";
session = new LLSession(server, port, db, username, password);
doc = new LAPI_DOCUMENTS (session);
if ((status = doc.AccessEnterpriseWS(pwsInfo)) != 0)
{
throw new RuntimeException("Error accessing personal workspace");
}