Issues in Creating a Document
Hi,I am new to OpenText LiveLink and I'm trying to work with LAPI(Java). The version being used is 9.7.1. I'm trying to list the objects under a specific folder. The following is the code snippet used to achieve the functionality: <------------------------------------------------------------------------------------------> LLSession session; session = new LLSession("localhost", "port_number comes here", "", "Username", "password", null); LAPI_DOCUMENTS doc = new LAPI_DOCUMENTS(session); int dataID = 2000;//values used in the 7.x and 8.x versions int volumeID = -2000; LLValue objectInfo = (new LLValue()).setAssocNotSet(); LLValue createInfo = (new LLValue()).setAssocNotSet(); LLValue request = (new LLValue()).setAssocNotSet(); request.add("Comment", "These are the document's comments."); createInfo.add("request", request); if (doc.CreateObjectEx(volumeID, dataID, doc.OBJECTTYPE, doc.DOCUMENTSUBTYPE, "Name of Document", createInfo, objectInfo) != 0) { System.out.println("Document Object not Created."); GetErrors(session); return; } else System.out.println("Document Object Created."); public static void GetErrors(LLSession session) { System.out.println("Status Code: " + session.getStatus()); System.out.println("Api Error: " + session.getApiError()); System.out.println("Error Message: " + session.getErrMsg()); System.out.println("Status Message: " + session.getStatusMessage()); } <------------------------------------------------------------------------------------------>On executing the code, I received the error <------------------------------------------------------------------------------------------>Request AddedA<1,N,Comment=These are the document's comments.>Information CreatedA<1,N,request=A<1,N,Comment=These are the document's comments.>>Could not read router packet from socketcom.opentext.api.LLIOException: Could not read router packet from socket at com.opentext.api.LLConnectRouter.receiveOpenResponse(Unknown Source) at com.opentext.api.LLConnect.executeTraditional(Unknown Source) at com.opentext.api.LLConnect.execute(Unknown Source) at com.opentext.api.LAPI_DOCUMENTS.CreateObjectEx(Unknown Source) at CreateDocument.main(CreateDocument.java:34) <------------------------------------------------------------------------------------------>I'd like to know if the dataId mentioned in the code snippet is valid in version 9.7.1. If otherwise, could anyone let me know how to get the dataID. We also tried to run the following query (based on information available in the forums)select * from dtree where dataid=2000" to see the OwnerID (volume), and Object id.But, we received the following error message:"Invalid Object name 'DTree'"Could anyone please help me in getting this issue resolved? Thanks.