Skip to Content
0
Former Member
Jul 30, 2008 at 02:35 AM

Java Advice Needed[SSO]!!

30 Views

Hail All,

I currently using BO XI R2 on linux Box. The Linux Box is not part of the Domain, but just a machine on the network.

I'm trying to created Single Sign On via Java Client.

Below are the code use to login

public static String getLogonToken(String username, String password) throws SDKException  {

	ISessionMgr sessionMgr;
	String token = "";
	String CMS = "10.20.169.89:6400";
	String auth = "secEnterprise";
	try {
		sessionMgr = CrystalEnterprise.getSessionMgr();
		IEnterpriseSession session = sessionMgr.logon(username, password, CMS, auth);
		token = session.getLogonTokenMgr().createLogonToken("", 1440, 100);
	} catch (SDKException e) {
		e.printStackTrace();
		throw e;
	}

	return token;
}

When the method is called i get SDKException Below.

om.crystaldecisions.sdk.exception.SDKException$OCAFramework: Unable to find servers in CMS 10.20.169.89 and cluster  with kind cms and extra criteria null. All such servers could be down or disabled by the administrator.
cause:com.crystaldecisions.enterprise.ocaframework.OCAFrameworkException$AllServersDown: Unable to find servers in CMS 10.20.169.89 and cluster  with kind cms and extra criteria null. All such servers could be down or disabled by the administrator.
detail:Unable to find servers in CMS 10.20.169.89 and cluster  with kind cms and extra criteria null. All such servers could be down or disabled by the administrator.
The exception originally thrown was com.crystaldecisions.enterprise.ocaframework.OCAFrameworkException$AllServersDown: Unable to find servers in CMS 10.20.169.89 and cluster  with kind cms and extra criteria null. All such servers could be down or disabled by the administrator. and had the following message: Unable to find servers in CMS 10.20.169.89 and cluster  with kind cms and extra criteria null. All such servers could be down or disabled by the administrator.
	at com.crystaldecisions.sdk.exception.SDKException.map(Unknown Source)
	at com.crystaldecisions.sdk.occa.security.internal.t.a(Unknown Source)
	at com.crystaldecisions.sdk.occa.security.internal.t.userLogon(Unknown Source)
	at com.crystaldecisions.sdk.occa.security.internal.m.userLogon(Unknown Source)
	at com.crystaldecisions.sdk.framework.internal.d.logon(Unknown Source)
	at BOLogin.getLogonToken(BOLogin.java:38)
	at BOLogin.main(BOLogin.java:50)
Caused by: com.crystaldecisions.enterprise.ocaframework.OCAFrameworkException$AllServersDown: Unable to find servers in CMS 10.20.169.89 and cluster  with kind cms and extra criteria null. All such servers could be down or disabled by the administrator.
	at com.crystaldecisions.enterprise.ocaframework.aa.for(Unknown Source)
	at com.crystaldecisions.enterprise.ocaframework.ServiceMgr.for(Unknown Source)
	at com.crystaldecisions.enterprise.ocaframework.p.a(Unknown Source)
	at com.crystaldecisions.enterprise.ocaframework.ServiceMgr.getManagedService(Unknown Source)
	... 6 more

Can Any one advice me what have i dont wrong?

Is there any other possible way to set CMS value to IP address instead of Name Service?