It's all about the answers!

Ask a question

CRJAZ1244I Not logged in to the repository at URL


Sândalo Bessa (32) | asked Aug 05 '15, 11:12 a.m.
Hello everybody, I'm trying to recover changeSets of my project. 

My Code:
ITeamRepository teamRepository = TeamPlatform.getTeamRepositoryService().getTeamRepository(rtcURL);
String ctpw = new String(ObfuscationHelper.encryptString(pass));
teamRepository.registerLoginHandler(getLoginHandler(user, ctpw));
IClientLibraryContext ctx = (IClientLibraryContext) teamRepository;
IScmRestService2 svc = (IScmRestService2) ctx.getServiceInterface(IScmRestService2.class);
ParmsGetHistoryPlus parmsGetHistory = new ParmsGetHistoryPlus();
parmsGetHistory.first = "0";
parmsGetHistory.n = "1000";
parmsGetHistory.path = "workspaceId%2F_yJmT0TXOEeOjhIrPD1idRA%2FcomponentId%2F_VafBsNgQEeKs446MAiQB2g";
HistoryPlusDTO historyPlus = svc.getHistoryPlus(parmsGetHistory);


And I am getting the following error :
com.ibm.team.repository.common.NotLoggedInException: CRJAZ1244I Not logged in to the repository at URL Any help is valid.

Sândalo Bessa

Accepted answer


permanent link
Ralph Schoon (55.1k23642) | answered Aug 05 '15, 12:35 p.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER
edited Aug 05 '15, 12:38 p.m.
 It might be a great idea to actually perform a login after registering the handler. You also want to startup the team platform, if you did not already.

Look at the snippets that come with the plain Java client library. They are in the snippets folder.
Sândalo Bessa selected this answer as the correct answer

Comments
Sândalo Bessa commented Aug 05 '15, 12:52 p.m.

Thanks Ralph.

Your answer


Register or to post your answer.