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

Question

Question

Java JRA 9.2 - error parsing response, org.dom4j.DocumentFactory error

SDK
asked on June 14, 2016 Show version history

Exploring the Java SDK. We are able to instantiate com.laserfiche.repositoryaccess.RepositoryRegistration and com.laserfiche.repositoryaccess.Session and create a connection.

When we call the session.logIn() method with username and password, we receive an error:

com.laserfiche.protocol.HttpException: error parsing response at com.laserfiche.protocol.HttpResponse.getXmlDocument(HttpResponse.java:101) at com.laserfiche.repositoryaccess.Session.doLogin(Session.java:793) at com.laserfiche.repositoryaccess.Session.logIn(Session.java:507)

There is a nested error as well:

org.dom4j.DocumentException: org.dom4j.DocumentFactory cannot be cast to org.dom4j.DocumentFactory at org.dom4j.io.SAXReader.read(SAXReader.java:484) at org.dom4j.io.SAXReader.read(SAXReader.java:343) at com.laserfiche.protocol.HttpResponse.getXmlDocument(HttpResponse.java:99) at com.laserfiche.repositoryaccess.Session.doLogin(Session.java:793)

We're not sure how to debug this one. The dom4j error message seems to be important but I'm not sure how to interpret it.

I've adjusted it to connect via both server name and IP, and confirmed the username and password. We are using default ports and settings.

We are able to connect using the Laserfiche Client and the .NET SDK.

0 0

Answer

SELECTED ANSWER
replied on June 14, 2016

Solved. It was a class loader conflict with dom4j.

0 0

Replies

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

Sign in to reply to this post.