Why am I getting Null Application id Returned for Project Area Creation Using Java API ?
![]()
Vaibhav S (106●1●27)
| asked Mar 13 '17, 2:15 a.m.
edited Mar 13 '17, 5:29 a.m. by Geoffrey Clemm (30.1k●2●30●35) For the following Project Area Creation code:
|
Accepted answer
![]()
Ralph Schoon (61.8k●3●36●43)
| answered Mar 13 '17, 3:32 a.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER 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/
As answered already in your other smae question: https://jazz.net/forum/questions/236441/iprocessdefinition-all_properties-returned-null
I am pretty sure that you try to use the API against the wrong application.
Note: The code must be run against the CCM ( https://server:port/ccm ) and not JTS ( https://server:port/jts).
The error seems to be from JTS and not CCM so try to change the URL to CCM.
Vaibhav S selected this answer as the correct answer
Comments PS: you are not using OSLC you are using the plain Java client libraies. Thank you Ralph. Replaced CCM with JTS in URL. It works fine now.
|