Author Topic: add/delete users problem on getBaseObjects method  (Read 3056 times)

Offline akoymakoy

  • Associate
  • **
  • Join Date: Oct 2009
  • Posts: 2
  • Forum Citizenship: +0/-0
add/delete users problem on getBaseObjects method
« on: 29 Oct 2009 11:19:41 pm »
i get this error:
getBaseObjects: CM-REQ-4342 An error occured with the client

CODE:

Code: [Select]
BaseClass baseObjects[] = new BaseClass[] {};

try {
// Note we want members of groups, so include members in properties.
       PropEnum[] properties = new PropEnum[] { PropEnum.defaultName, PropEnum.searchPath, PropEnum.members };
baseObjects = cmService.query(new SearchPathMultipleObject(searchPath), properties, new Sort[] {}, new QueryOptions());
} catch (RemoteException e) {
throw new ArtException("getBaseObjects: " + e.getMessage() + " " + e.getCause());
}
return (baseObjects);


Offline kolonell

  • Community Leader
  • *****
  • Join Date: Aug 2008
  • Posts: 138
  • Forum Citizenship: +9/-0
Re: add/delete users problem on getBaseObjects method
« Reply #1 on: 30 Oct 2009 03:27:12 am »
I think I had the same once. Remove the members property. That should do it. As far as I recall the error only occurs when account objects are part of the result set. try limiting the resultset to only groups.

 


       
Twittear