hi all,When I use LAPI with JAVA, I get an error which seem odds.Here is a small JAVA program to reproduce the problem:import com.opentext.api.*;import java.io.*;import java.util.*;public class qq {public static void main(String[] args) {try {int volumeID;int nodeID;LLSession session;LAPI_DOCUMENTS lapi;LLValue createinfo=(new LLValue()).setAssocNotSet();LLValue outinfo=(new LLValue()).setAssocNotSet();LLValue requestinfo=(new LLValue()).setAssocNotSet();LLValue extendeddata=(new LLValue()).setAssocNotSet();LLValue requiredatt=(new LLValue()).setAssocNotSet();session=new LLSession("hqsdom01",2099,"livelink","Admin","amspcc");lapi=new LAPI_DOCUMENTS(session);if (lapi.AccessPersonalWS(outinfo)==0) { System.out.println("pws success"); volumeID=outinfo.toInteger("VolumeID"); nodeID=outinfo.toInteger("ID"); requestinfo.add("Comment",""); createinfo.add("request",requestinfo); createinfo.add("extendedData",extendeddata); createinfo.add("requiredAttributes",requiredatt); if (lapi.CreateObjectEx(volumeID,nodeID,LAPI_DOCUMENTS.OBJECTTYPE,LAPI_DOCUMENTS.TASKLISTSUBTYPE,"test tasklist",createinfo,outinfo)==0){ System.out.println("create success"); volumeID=outinfo.toInteger("VolumeID"); nodeID=outinfo.toInteger("ID"); System.out.println(volumeID); createinfo=(new LLValue()).setAssocNotSet(); outinfo=(new LLValue()).setAssocNotSet(); requestinfo=(new LLValue()).setAssocNotSet(); extendeddata=(new LLValue()).setAssocNotSet(); requiredatt=(new LLValue()).setAssocNotSet(); LLValue dd=new LLValue(99,7,30,0,0,0); Date qqqq=dd.toDate(); requestinfo.add("AssignedTo",3999);//here is the problem statements, if I comment out//these two statements, no error at all requestinfo.add("DateStarted",qqqq); requestinfo.add("DateDue",qqqq);//if I leave it as shown, I got an error requestinfo.add("Priority",50); requestinfo.add("Status",0); requestinfo.add("Intructions",""); requestinfo.add("Comment",""); createinfo.add("request",requestinfo); createinfo.add("extendedData",extendeddata); POST
http://knowledge.opentext.com:80/knowledge/livelink.exe HTTP/1.0Cookie: LLInProgress=%2FIwMj4mND4hODI%2BITc%2FLyAAAA; LLCookie=%2FIwMj4mND4hODI%2BITc7Y2Vzcn8tRFJTQURtaW5vLWRycTAAAA; LLTZCookie=%3F; OTSupportID=559444911644102712287Pragma: No-CacheContent-Length: 4910Host: knowledge.opentext.comUser-Agent: Mozilla/4.0 (compatible; MSIE 4.01; Windows NT)Accept-Encoding: gzip, deflateContent-Type: multipart/form-data; boundary=---------------------------7cf1151f00eeAccept-Language: en-us,zh-hk;q=0.8,zh-tw;q=0.5,ja;q=0.3Referer:
http://knowledge.opentext.com/knowledge/livelink.exe?func=ll&objType=130&objAction=create&parentId=-786303&nexturl=/knowledge/livelink.exe?func=ll&objId=786303&objAction=view&sort=nameAccept: application/vnd.ms-excel, application/msword, application/vnd.ms-powerpoint, image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, */*