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