cancel
Showing results for 
Search instead for 
Did you mean: 

Crystal Reports Server 2008 / openDocument interface leaving open sessions

Former Member
0 Kudos

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:


http://<server>:8080/OpenDocument/opendoc/openDocument.jsp?iDocID=<documentId>
  &sType=rpt&lsSAlarmIncidentNumber=113080&sOutputFormat=P

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,
              com.crystaldecisions.sdk.framework.IEnterpriseSession,
              com.crystaldecisions.sdk.exception.SDKException"
%>

<%
String entToken = null;
try {
    IEnterpriseSession entSession = CrystalEnterprise.getSessionMgr().logon("Guest", "",
        "<server>:6400", "secEnterprise");
    entToken = entSession.getLogonTokenMgr().getDefaultToken();
} catch (SDKException ex) {
    out.println("<html><body><p>Error...</p></body></html>");
    return;
}

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

response.sendRedirect(redirectURL);
%>

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


http://<server>:8080/nologon/nologon.jsp?iDocID=<documentId>
  &sType=rpt&lsSAlarmIncidentNumber=145860&sOutputFormat=P

Any help would be greatly appreciated!

-Samuli

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

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

The solution to this problem can be found from another thread:

And sorry about the unnecessary thread bump.