Skip to Content

Add user to BI platform is crashing the system using Java SDK

Jun 23, 2017 at 03:50 PM


avatar image

cbo-issuesbousersdkaddusersdk.txtWe are using Java SDK to add users to Business Objects. We build the java code as a class file. Here is the snippet where our code is failing. Please look at it and let me know if there is anything wrong we are doing. Same code works in PROD, but not in QA. only difference is System name, user we are using SDK to create users, has admin access in both the systems.

See the attached code

10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

3 Answers

Bharath B N
Jun 27, 2017 at 09:25 PM

Please try to commit only user object and No other operations like setting preferences . Please try this simple code to create the user with the basic properties which were used in CMC before.

import com.crystaldecisions.sdk.exception.SDKException;
import com.crystaldecisions.sdk.framework.CrystalEnterprise;
import com.crystaldecisions.sdk.framework.IEnterpriseSession;
import com.crystaldecisions.sdk.framework.ISessionMgr;
import com.crystaldecisions.sdk.occa.infostore.IInfoObjects;
import com.crystaldecisions.sdk.occa.infostore.IInfoStore;
import com.crystaldecisions.sdk.plugin.desktop.user.IUser;

public class CreateUser {
	public static void main(String[] args) throws SDKException {
			ISessionMgr sessionMgr = CrystalEnterprise.getSessionMgr();
			ISessionMgr sessionManager = CrystalEnterprise.getSessionMgr();
			IEnterpriseSession enterpriseSession = sessionManager.logon("administrator", "Password1", "localhost", "secEnterprise");
			System.out.println("Logged into EnterpriseSession.....");
			IInfoStore infostore = (IInfoStore) enterpriseSession.getService("InfoStore");
			System.out.println("Got Infostore");
			IInfoObjects newUsers = infostore.newInfoObjectCollection();
			IUser newUser = (IUser) newUsers.add(IUser.KIND);
			System.out.println("ready to commit");
		catch(Exception e)


Please share the exemptions with line.

10 |10000 characters needed characters left characters exceeded
Bharath B N
Jun 27, 2017 at 08:42 PM

Is it failing in any specific case like high User list count? or Throwing any exceptions ?

How about creating Users in CMC and applying same preferences?

Show 1 Share
10 |10000 characters needed characters left characters exceeded

It is failing on first user itself where "Commit" in the code. if I manually add users in CMS it works fine.

com.crystaldecisions.sdk.exception.SDKServerException: An error occurred at the server :

All the servers with CMS :Server name>, cluster

Server name

and kind cms are down or disabled


detail:An error occurred at the server :

All the servers with CMS

Server name

, cluster

Server name

and kind cms are down or disabled

at Source)

at Source)

at com.crystaldecisions.sdk.occa.infostore.internal.InternalInfoStore.queryHelper(Unknown Source)

at com.crystaldecisions.sdk.occa.infostore.internal.InternalInfoStore.query(Unknown Source)

at Source)

at com.ari.createbouser.CreateBI4User.addUsers(

at com.ari.createbouser.CreateBI4User.main(

Caused by: com.crystaldecisions.enterprise.ocaframework.idl.OCA.oca_abuse:

at com.crystaldecisions.enterprise.ocaframework.OCAFrameworkException.for(Unknown Source)

at com.crystaldecisions.enterprise.ocaframework.e.invoke(Unknown Source)

at Source)

... 5 more

Jawahar Konduru Jun 28, 2017 at 01:41 AM


Thanks for the sample java code. Since we have expertise in .net area, we are planning to use that. We got the sample code for .net , it is working for BI4, but not for BI3. We are getting error message, while trying to add users "Access denied. You cannot log on to an older version of the CMS".

We used the code from below. Link says, it should work for 3.1, but did not.

Show 2 Share
10 |10000 characters needed characters left characters exceeded

Hi Jawahar,

the source should be the same for BI4.x and 3.1. You cannot, however, reference 4.1 assemblies and log onto a 3.1 system. The application will have to reference 3.1 assemblies in order log onto a 3.1 system.



Where do I find the libraries for 3.1?