Why am I getting Null Application id Returned for Project Area Creation Using Java API ?
For the following Project Area Creation code:
ITeamRepository repo = TeamPlatform.getTeamRepositoryService().getTeamRepository(rtcURL);
IProcessItemService service = (IProcessItemService) repo.getClientLibrary(IProcessItemService.class);
IProcessDefinition processDefinition = service.findProcessDefinition(processId, IProcessItemService.ALL_PROPERTIES , MONITOR);
IProjectArea project = service.createProjectArea();
project.setName(name);
project.setProcessDefinition(processDefinition);
service.save(project, MONITOR);
(Logging and all is taken care in code, not mentioned here)
Below exception is thrown:
Invalid application id 'null'. A valid registered fronting application id must be provided to access the JTS.
Please let me know if anyone faced and solved this.
Thanks
Vab
Accepted answer
I have already shared an example of code that works for me and a lot of others - it is actually shipped as WorkshopSetup with the extensions workshop. See the descripotion here: https://rsjazz.wordpress.com/2013/09/18/deploying-templates-and-creating-projects-using-the-plain-java-clients-library/