Home
Extended ECM
API, SDK, REST and Web Services
Error Connecting to LAPI on localhost
Richard_Hardacre_(richard.hardacre@uk.qioptiq.com_
I've a secondary system that connects to livelink via LAPI and used to work fine but I'm having trouble getting it to talk to it when they're hosted on the local machine. My basic error message was this:Error: Object reference not set to an instance of an object. at com.opentext.api.LLConnect.unMarshall(String argName) at com.opentext.api.LAPI_DOCUMENTS.AccessEnterpriseWS(LLValue entInfo)So i tried it from the development server to the livelink instance - exact same app copied over - and it worked.So i wrote a teeny tiny test app in the vein of "lapi_test" and again it works from the dev machine across the network but not on the local machine.I've tried every permutation of 127.0.0.1,it's actual IP address, localhost, actual server name, fully qualified DNS name to no avail..as a possibly minor point this is using a dedicated login with full admin priveledges, if i try with a user login it connects but throws a -2147482645 error. so SOMETHING is happening.This is the security section of my opentext.ini[Security]directoryList=\support\,\filters\CGIHosts=Authentication=Livelinkthis is the c# code I'm using to connect: LLSession session = new LLSession("stass10073", 2099, "", "Admin", "5parTA<u5"); //LAPI_SEARCH search = new LAPI_SEARCH(session); LAPI_DOCUMENTS myDocs = new LAPI_DOCUMENTS( session ); LLValue ewsInfo = (new LLValue()).setAssocNotSet(); try { int iStatus = myDocs.AccessEnterpriseWS(ewsInfo); if( iStatus == 0 ) { Console.Write( "Connected!" ); } else { Console.Write( "Error Connecting, Code Returned : " ); Console.WriteLine( iStatus ); }}catch{ //print stack trace}the setup is livelink 9.1.0.3 on Windows 2003 / IIS 6. And it otherwise works fine.
Find more posts tagged with
Comments
Appu_Nair
I would probably put 127.0.0.1 in the host list,if it is empty that means it can connect from any host but if you have time I would do that.There also used to be a flag ealier called WantLAPI=TRUE in old ll systems.Since you are almost on a 2000 version of livelink I would also check if wantlapi=false in your opetion section.
Richard_Hardacre_(richard.hardacre@uk.qioptiq.com_
Yes, WantLAPI =TRUE is in there. Will look into the HOSTS file and see what it has to say