This is the detail of the problem.
The Java development corresponding to the help desk area was compromised by an error the system was operating normally until the following error occurred:
{MDC}[06/04/2017 -- 18:04:28] ERROR com.bancomext.mdc.web.controller.CapturaController.processForm(CapturaController.java:358) - For input string: "4294967295"
This error is present in a Log all this is inferred when using the method of class session.login.
The code from which the error is derived is as follows.
import com.laserfiche.repositoryaccess.Session;
private Session session = null;
private void init() {
myLogger.debug("Iniciando Conexion : " + new Date());
session = new Session();
myLogger.debug("Sesion Camila : " + session);
RepositoryRegistration repository = new RepositoryRegistration(ConstantesMDC._LF_ServerName, ConstantesMDC._LF_RepoName, ConstantesMDC._LF_Port);
myLogger.debug("Sesion Camila : " + repository.getServer());
session.connect(repository);
myLogger.debug("Sesion Camila aqui");
session.logIn(ConstantesMDC._LF_UserName, ConstantesMDC._LF_Password);
myLogger.debug("Session iniciada : " + new Date() + " session Iniciada : " + session.getIsCommunicationCompressed());
}
The problem is referred to when executing the SDK in JRA-9.2.1 where the line of code that presents the fault is the following one.
this.auditmask = AuditClasses.fromInt(ProtocolUtil.parseUnsignedInteger(document.selectSingleNode("/LF:sess/LF:auditmask").getStringValue()));
This line of code is within the next block of code.
try
{
this.authenticated = true;
Document document = response.getXmlDocument();
this.sessid = Integer.parseInt(document.selectSingleNode("/LF:sess/LF:sessid").getStringValue());
this.username = document.selectSingleNode("/LF:sess/LF:username").getStringValue();
this.osusername = document.selectSingleNode("/LF:sess/LF:osusername").getStringValue();
this.shared = Boolean.parseBoolean(document.selectSingleNode("/LF:sess/LF:shared").getStringValue());
this.readonly = Boolean.parseBoolean(document.selectSingleNode("/LF:sess/LF:readonly").getStringValue());
this.sid = document.selectSingleNode("/LF:sess/LF:sid").getStringValue();
this.priv = Privileges.fromInt(ProtocolUtil.parseUnsignedInteger(document.selectSingleNode("/LF:sess/LF:priv").getStringValue()));
this.uif = FeatureRights.fromInt(ProtocolUtil.parseUnsignedInteger(document.selectSingleNode("/LF:sess/LF:uif").getStringValue()));
this.auditmask = AuditClasses.fromInt(ProtocolUtil.parseUnsignedInteger(document.selectSingleNode("/LF:sess/LF:auditmask").getStringValue()));
this.logintime = ProtocolUtil.parse(document.selectSingleNode("/LF:sess/LF:logintime").getStringValue(), "EEE, d MMM yyyy HH:mm:ss ZZZZ");
this.lastact = ProtocolUtil.parse(document.selectSingleNode("/LF:sess/LF:lastact").getStringValue(), "EEE, d MMM yyyy HH:mm:ss ZZZZ");
this.lastlogin = ProtocolUtil.parse(document.selectSingleNode("/LF:sess/LF:lastlogon").getStringValue(), "EEE, d MMM yyyy HH:mm:ss ZZZZ");
this.lastlogout = ProtocolUtil.parse(document.selectSingleNode("/LF:sess/LF:lastlogout").getStringValue(), "EEE, d MMM yyyy HH:mm:ss ZZZZ");
this.passwdexp = Boolean.parseBoolean(document.selectSingleNode("/LF:sess/LF:passwdexp").getStringValue());
this.passwdexpwarn = Integer.parseInt(document.selectSingleNode("/LF:sess/LF:passwdexpwarn").getStringValue());
this.useragent = document.selectSingleNode("/LF:sess/LF:useragent").getStringValue();
this.rawhostname = document.selectSingleNode("/LF:sess/LF:rawhostname").getStringValue();
this.hostname = document.selectSingleNode("/LF:sess/LF:hostname").getStringValue();
}
finally
{
if (response != null) {
response.close();
}
}
From all this it can be understood that the session object returns a string value ("4294967295") that it tries to convert to an integer (Entire Number), but for the length of the string it can not be converted to an integer and triggers the error.
In general terms this is the error and the problem lies within the SDK component of laserfiche for java (JRA-9.2.1)
Thnaks and Regards
Question
Question
Problem connecting to Laserfiche using JRA-9.2.1
asked on April 17, 2017
Replies
You are not allowed to reply in this post.
You are not allowed to follow up in this post.