If you are unable to create a new account, please email support@bspsoftware.com

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

akoymakoy

  • Guest
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);


kolonell

  • Guest
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.