This discussion is archived
13 Replies Latest reply: Feb 11, 2013 8:52 PM by TheNewBee RSS

unable to get search using RIDC query using idc protocol

TheNewBee Newbie
Currently Being Moderated
Hi all,

i am having a strange problem while querying ucm using RIDC.

when i use idc protocol client connection like below

IdcClient idcClient = manager.createClient("idc://<port>");

result is null.

but when i am using http protocol client connection like below

IdcClient idcClient = manager.createClient("");
result set isnt null. i am getting contents

i am using weblogic user to create connection my code is like below

IdcClientManager manager = new IdcClientManager ();

// Create a new IdcClient Connection using idc protocol (i.e. socket connection to Content Server)
//IdcClient idcClient = manager.createClient ("idc://hostname:intradocserverport"); // this one isn't working

//for using the web connection - start
IdcClient idcClient = manager.createClient("");
IdcContext userContext = new IdcContext("weblogic", "weblogic1");
DataBinder dataBinder = idcClient.createBinder();
dataBinder.putLocal("IdcService", "GET_SEARCH_RESULTS");
dataBinder.putLocal("QueryText","xRegionDefinition <matches> `NEWS_RD` <AND> xWebsiteObjectType <matches> `Data File`");
ServiceResponse response =
idcClient.sendRequest(userContext, dataBinder);
DataBinder responsed = response.getResponseAsBinder();
DataResultSet myDataResultSet =
int i = myDataResultSet.getRows().size();
if (i == 0) {

System.out.println("No Content found");
} else {
System.out.println("content is present");

} catch (IdcClientException e) {
System.out.println("Inside exception"+e.getStackTrace());

i am unable to figure out why its happening.
i past we i was able to do search using idc also but then many are using same UCM so some one might have changed some configuration that i am unable to figure out


  • Correct Answers - 10 points
  • Helpful Answers - 5 points