Jazz Forum Welcome to the Jazz Community Forum Connect and collaborate with IBM Engineering experts and users

IProcessDefinition .ALL_PROPERTIES returned null

IProcessDefinition definition = service.findProcessDefinition(processId, IProcessDefinition .ALL_PROPERTIES, MONITOR);

For the above line of code I am getting an Exception -->

com.ibm.team.repository.common.TeamRepositoryException: Invalid application id 'null'. A valid registered fronting application id must be provided to access the JTS.

reason --> IProcessDefinition .ALL_PROPERTIES value is returned as null

complete stack trace -->
com.ibm.team.repository.common.TeamRepositoryException: Invalid application id 'null'. A valid registered fronting application id must be provided to access the JTS.
    at com.ibm.team.process.internal.service.util.ApplicationVisibilityUtil.populateApplicationKey(ApplicationVisibilityUtil.java:122)
    at com.ibm.team.process.internal.service.util.ApplicationVisibilityUtil.populateApplicationKey(ApplicationVisibilityUtil.java:112)
    at com.ibm.team.process.internal.service.util.ApplicationVisibilityUtil.constructUniqueProcessId(ApplicationVisibilityUtil.java:132)
    at com.ibm.team.process.internal.service.ProcessService.findProcessDefinition(ProcessService.java:3749)
    at sun.reflect.GeneratedMethodAccessor2141.invoke(null)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:56)
    at java.lang.reflect.Method.invoke(Method.java:620)
    at org.eclipse.soda.sat.core.internal.record.ExportProxyServiceRecord.invoke(ExportProxyServiceRecord.java:361)
    at org.eclipse.soda.sat.core.internal.record.ExportProxyServiceRecord.access$0(ExportProxyServiceRecord.java:347)
    at org.eclipse.soda.sat.core.internal.record.ExportProxyServiceRecord$ExportedServiceInvocationHandler.invoke(ExportProxyServiceRecord.java:56)
    at com.sun.proxy.$Proxy481.findProcessDefinition(null)
    at sun.reflect.GeneratedMethodAccessor2141.invoke(null)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:56)
    at java.lang.reflect.Method.invoke(Method.java:620)
    at com.ibm.team.repository.servlet.AbstractTeamServerServlet.handleMethod(AbstractTeamServerServlet.java:1465)
    at com.ibm.team.repository.servlet.AbstractTeamServerServlet.executeMethod(AbstractTeamServerServlet.java:1018)
    at com.ibm.team.repository.servlet.AbstractTeamServerServlet.doPost(AbstractTeamServerServlet.java:785)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:595)
    at com.ibm.team.repository.servlet.AbstractTeamServerServlet.handleRequest2(AbstractTeamServerServlet.java:2527)
    at com.ibm.team.repository.servlet.AbstractTeamServerServlet.handleRequest(AbstractTeamServerServlet.java:2315)
    at com.ibm.team.repository.servlet.AbstractTeamServerServlet.service(AbstractTeamServerServlet.java:1794)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:668)
    at org.eclipse.equinox.http.registry.internal.ServletManager$ServletWrapper.service(ServletManager.java:180)
    at org.eclipse.equinox.http.servlet.internal.ServletRegistration.service(ServletRegistration.java:61)
    at org.eclipse.equinox.http.servlet.internal.ProxyServlet.processAlias(ProxyServlet.java:126)
    at org.eclipse.equinox.http.servlet.internal.ProxyServlet.service(ProxyServlet.java:76)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:668)
    at org.eclipse.equinox.servletbridge.BridgeServlet.service(BridgeServlet.java:138)
    at com.ibm.team.repository.server.servletbridge.JazzServlet.service(JazzServlet.java:74)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:668)
    at com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:1287)
    at com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:778)
    at com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:475)
    at com.ibm.ws.webcontainer.filter.WebAppFilterChain.invokeTarget(WebAppFilterChain.java:150)
    at com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java:93)
    at com.ibm.team.repository.server.servletbridge.BridgeFilter.processDelegate(BridgeFilter.java:165)
    at com.ibm.team.repository.server.servletbridge.BridgeFilter.doFilter(BridgeFilter.java:198)
    at com.ibm.ws.webcontainer.filter.FilterInstanceWrapper.doFilter(FilterInstanceWrapper.java:207)
    at com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java:90)
    at com.ibm.ws.webcontainer.filter.WebAppFilterManager.doFilter(WebAppFilterManager.java:1020)
    at com.ibm.ws.webcontainer.filter.WebAppFilterManager.invokeFilters(WebAppFilterManager.java:1142)
    at com.ibm.ws.webcontainer.webapp.WebApp.handleRequest(WebApp.java:4867)
    at com.ibm.ws.webcontainer.osgi.DynamicVirtualHost$2.handleRequest(DynamicVirtualHost.java:297)
    at com.ibm.ws.webcontainer.WebContainer.handleRequest(WebContainer.java:997)

Any way to fix this ?

Thanks
Vaibhav

0 votes


Accepted answer

Permanent link


Note: The code must be run against the CCM ( https://server:port/ccm ) and not JTS https://server:port/jts). 

Ralph Schoon selected this answer as the correct answer

0 votes


One other answer

Permanent link

There is no service mentioned up there. So strictly speaking no one can answer that question. 


The service IProcessItemService to find the process definition from its ID works for me as explained here: https://rsjazz.wordpress.com/2013/09/18/deploying-templates-and-creating-projects-using-the-plain-java-clients-library/

I suspect a user error e.g. providing a null in the first argument. This would be easily enough to debug. Follow https://rsjazz.wordpress.com/2013/02/28/setting-up-rational-team-concert-for-api-development/ to set up your environment for debugging.

0 votes

Comments

 . 

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. I can not debug your code.

Note: The code must be run against the CCM ( https://server:port/ccm ) and not JTS ( https://server:port/jts).

Your answer

Register or log in 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.

Search context
Follow this question

By Email: 

Once you sign in you will be able to subscribe for any updates here.

By RSS:

Answers
Answers and Comments
Question details
× 10,937
× 1,220

Question asked: Mar 09 '17, 12:30 a.m.

Question was seen: 2,347 times

Last updated: Mar 13 '17, 4:33 a.m.

Related questions
Confirmation Cancel Confirm