Hi All,
I'm using the following code to call the openDocument.jsp to open the crystal report.
But after approx. 20 mins users are getting error: An error has occured. An argument has an invalid value 0.
Logs: com.businessobjects.crystalreports.reportsourcebridge.RSBridgeCMSLogonException: Not a valid logon token. (FWB 00003)
Please advise if the below method is correct createWCAToken and also advise if I need to call releaseToken.
Extract from the code:
<%@ page language="java" contentType="text/html; charset=UTF-8"%>
<%@ page import="com.crystaldecisions.sdk.exception.SDKException" %>
<%@ page import="com.crystaldecisions.sdk.framework.CrystalEnterprise" %>
<%@ page import="com.crystaldecisions.sdk.framework.IEnterpriseSession" %>
<%@ page import="com.crystaldecisions.sdk.framework.ISessionMgr" %>
<%@ page import="com.crystaldecisions.sdk.occa.infostore.*"%>
<%@ page import="com.crystaldecisions.sdk.occa.managedreports.*" %>
<%@ page import="com.crystaldecisions.sdk.occa.security.ILogonTokenMgr" %>
<%
ISessionMgr sessionMgr = CrystalEnterprise.getSessionMgr();
IEnterpriseSession es = null;
es = sessionMgr.logon(logonid, logonpass, "bobiserver", "secEnterprise");
ceToken = es.getLogonTokenMgr().createWCAToken("", 100, 100);
URLQueryString = "../BOE/OpenDocument/opendoc/openDocument.jsp?sDocName=" + sDocName + "&sOutputFormat=" + sOutputFormat + paramstr + "&token=" + ceToken;
---
---
%>
Platform: BO4.0 SP2