It's all about the answers!

Ask a question

error while invoking getClientLibrary(IWorkItemClient.class

Anna Wymysłowska (122) | asked Feb 07 '11, 10:24 a.m.
I try to configure a code which was working with RTC 1.0. I have upgraded jar files to 2.0 version. Everything seems fine (no compilation errors), but I get NullPointerException while invoking IWorkItemClient workItemClient= (IWorkItemClient) teamRepository.getClientLibrary(IWorkItemClient.class);.

ArrayList<WorkItem> reopenList = new ArrayList<WorkItem>();
ITeamRepository teamRepository= TeamPlatform.getTeamRepositoryService().getTeamRepository(REPOSITORY_URI);
teamRepository.registerLoginHandler(new LoginHandler(userId, password));

IProcessClientService processClient= (IProcessClientService) teamRepository.getClientLibrary(IProcessClientService.class);
IAuditableClient auditableClient= (IAuditableClient) teamRepository.getClientLibrary(IAuditableClient.class);
IWorkItemClient workItemClient= (IWorkItemClient) teamRepository.getClientLibrary(IWorkItemClient.class);

Exception in thread "main" java.lang.NullPointerException
at impl.WorkItemImporter.main(

I have no idea what can cause it... teamRepository object has proper login, password and uri.

One answer

permanent link
Eduardo Bello (4401922) | answered Feb 09 '11, 12:44 p.m.
It might look as a silly question, but did you check if you are using the same version of client libraries that the server is running (including iFix)?

Your answer

Register or to post your answer.

Dashboards and work items are no longer publicly available, so some links may be invalid. We now provide similar information through other means. Learn more here.