Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

Crystal Reports Server 2008 / openDocument interface leaving open sessions

Hi, all!

I've got a bit of problem with my Crystal Reports Server 2008 and the openDocument (JSP variant) interface. The crux [of the problem] is that, when I use the interface, it leaves a (concurrent) session open, which leads quickly to a situation where all our 5 concurrent licenses are used.

When combining the aforementioned with a strange behavior that increases the session count by two (2) at times (my bypass logon script might be the culprit here), the end result is a not-so-highly-available-system.

So, actually my problem is twofold:

1) How can I make the session that is opened by the openDocument interface timeout faster? Is my usage of the interface wrong?

An example:


2) My logon bypassing script seems to open two sessions instead of one. I'm obviously doing something wrong, but what?

Here's the actual JSP that logs the "guest" user on his behalf:

<%@ page language="java"
    import = "com.crystaldecisions.sdk.framework.CrystalEnterprise,

String entToken = null;
try {
    IEnterpriseSession entSession = CrystalEnterprise.getSessionMgr().logon("Guest", "",
        "<server>:6400", "secEnterprise");
    entToken = entSession.getLogonTokenMgr().getDefaultToken();
} catch (SDKException ex) {

String query = request.getQueryString();   	
String redirectURL = "http://<server>:8080/OpenDocument/opendoc/openDocument.jsp?" +
    query + "&token=" + entToken;


The above JSP is then used the same way you would use openDocument.jsp:


Any help would be greatly appreciated!


Edit: Uh, I just noticed that I posted this under a wrong subcategory. It might belong better in the BO Enterprise Administration -category. Could a forum admin fix this, thank you!

Edited by: Samuli Kolehmainen on Sep 5, 2008 3:28 PM

Former Member
Not what you were looking for? View more on this topic or Ask a question