hello every one!
i use the code of below to check the session if have expired:
AuthenticateUserSessionCommand authenticateUserSessionCommand = new AuthenticateUserSessionCommand(rep.connPool);
authenticateUserSessionCommand.setSession(rep.getNewSession());
authenticateUserSessionCommand.setUserName(username);
authenticateUserSessionCommand.setUserPassword(password);
authenticateUserSessionCommand.execute();
but follow that i execute the code :
RetrieveLimitedRecordsCommand rlrCmd = new RetrieveLimitedRecordsCommand(RepositoryManager.getTheRep(0).connPool);
rlrCmd.setSearch(search);
rlrCmd.setSession(RepositoryManager.getTheRep(0).getNewSession());
rlrCmd.setResultDefinition(rd);
rlrCmd.execute();
and the exception out:
aused by: com.sap.mdm.internal.protocol.manual.ServerException: 不支持指定会话的当前协议操作;
aused by: com.sap.mdm.internal.protocol.manual.ServerException:The specified session does not support the operation of the current protocol
who can help me ,thank you!