Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

XI R2 infor view auto login failing

Status
Not open for further replies.

rereis

MIS
Jan 17, 2007
19
US
BO XI R2

I had a automatic login working with Crystal Report Server. After I migrated to BO XI R2 I keep getting:

The requested resource (/businessobjects/enterprise115/desktoplaunch/InfoView/logon/logon.objectTST2003TEST.BEDFORD.PROGRESS.COM@10021JWxiHWjsxSluBi5y10020JrO7WBiNUxyhOzUl) is not available

My code reades:

<%@ page import = "com.crystaldecisions.sdk.occa.infostore.*,

com.crystaldecisions.sdk.plugin.desktop.common.*,
com.crystaldecisions.sdk.framework.*,
com.crystaldecisions.sdk.framework.ISessionMgr,
com.crystaldecisions.sdk.framework.CrystalEnterprise,
com.crystaldecisions.sdk.framework.IEnterpriseSession,
com.crystaldecisions.sdk.occa.security.*,
com.crystaldecisions.sdk.properties.*,
com.crystaldecisions.sdk.exception.SDKException"
%>

<%
try {

/* Log on using the Enterprise SDK */

IEnterpriseSession enterpriseSession = CrystalEnterprise.getSessionMgr().logon("user", "pwd", "tst2003test:6400", "secEnterprise");
String logonToken = enterpriseSession.getLogonTokenMgr().getDefaultToken();

/* URL to the InfoView logon page - Ensure that the URL to the Java InfoView's logon page is correct. */



String infoViewURL =" + logonToken;




/* URL request */

response.sendRedirect(infoViewURL);

}
catch(SDKException sdkEx) {
out.println(sdkEx);
}

%>

I think the problem is on this line:

String logonToken = enterpriseSession.getLogonTokenMgr().getDefaultToken();

did this functions changed in R2 ?

thanks
 
Yes I can see the report if I supply user,pwd, and a valid ID.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top