You are viewing limited content. For full access, please sign in.

Discussion

Discussion

Laserfiche JRA application creating invalid sessions - eventually using up all licenses

posted on February 29, 2016 Show version history

We have a custom-built JRA application connecting to our repository that has recently been leaving invalid sessions connected to the repository intermittently. I was hoping someone may be able to help clarify a few of the odd aspects of this problem (and perhaps help track down where the problem may be in our code).

  1. Our system is a classic license, with both full and retrieval users. The program connects using a dedicated username/password retrieval user license. When the errors have stacked up enough that all of the retrieval licenses are used up by these invalid sessions, the program begins to consume the full licenses as well. Is there a way to prevent a retrieval login from using a full license?
  2. Our repository has a login timeout for 1hr of inactivity. The JRA application login seems to be exempt from that, as the invalid sessions show inactivity times of days. Is that normal behavior?
  3. At times it is possible that there have been 2 instances of the application running on the same workstation. Would these problems be caused by an interaction between the two instances trying to login to the same user account?

I realize there may be a problem in the code somewhere, and I can't really publish that here. Any insight into the way connections work with the JRA toolkit that may be helpful would be very much appreciated.

Thank You!

0 0
replied on February 29, 2016

Flexible Licensing should take care of #1. Thank you.

I cleaned up all the connections by restarting the service, but I remember the error message was the standard [9037] message "Invalid session. [9037] The specified connection was not found." I don't have the stack trace handy until it happens again.

Server is version 9.2.0.343.

0 0
replied on February 29, 2016

In the LF Admin Console, under Server Settings, look for "Flexible licensing" and turn it off to stop retrieval connections from using read-write licenses.

Do you have more information on what makes a session invalid? Maybe an error message? What is the version of the Laserfiche Server?

1 0
replied on March 10, 2016 Show version history

Eventually found the bug in the code (in some edge cases, the Session object wasn't getting closed properly).  Still not sure about why the sessions wouldn't auto-close after 1hr, and why you couldn't right click on the connection and close it manually from Admin Console.Then again, this probably wasn't a fair post to mark as a question, given the root cause is a bug on our end. I'll mark this as a discussion instead.

0 0
You are not allowed to follow up in this post.

Sign in to reply to this post.