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

Question

Question

Error Reusing JRA Session

SDK
asked on February 25, 2021 Show version history

Receiving error reusing session.

 

First use was retrieve document (tocid # 1) and server out in Rest web service.

Second session use was retrieve document (tocid # 2) and server out in Rest web service, which fails.

 

Info:   Using session : 770
Severe:   com.laserfiche.protocol.HttpException: Not a valid protocol version: 
    at com.laserfiche.protocol.HttpConnection.sendRequest(HttpConnection.java:226)
    at com.laserfiche.protocol.HttpRequest.sendRequest(HttpRequest.java:58)
    at com.laserfiche.repositoryaccess.Session.sendRequest(Session.java:851)
    at com.laserfiche.repositoryaccess.Entry.getEntry(Entry.java:942)
    at com.laserfiche.repositoryaccess.Entry.getById(Entry.java:102)
    at com.laserfiche.repositoryaccess.Document.getById(Document.java:167)

0 0

Replies

replied on February 26, 2021 Show version history

Without seeing a code sample of how you create, use, and dispose of the Session object, it is impossible to even begin guessing why your code is not able to use the session a second time.

2 0
replied on February 26, 2021

Found  it did not close Inputstream.

Thx

 

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

Sign in to reply to this post.