Skip to Content
0
Former Member
Nov 17, 2009 at 06:05 AM

how to cofirm a connect session to mdm is usable???

33 Views

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!