It's all about the answers!

Ask a question

IProcessDefinition .ALL_PROPERTIES returned null


Vaibhav S (106247) | asked Mar 09 '17, 12:30 a.m.
edited Mar 09 '17, 12:46 a.m.

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

Accepted answer


permanent link
Ralph Schoon (63.1k33646) | answered Mar 13 '17, 4:33 a.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER


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

One other answer



permanent link
Ralph Schoon (63.1k33646) | answered Mar 09 '17, 2:56 a.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER
edited Mar 09 '17, 2:57 a.m.

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.


Comments
Vaibhav S commented Mar 09 '17, 3:36 a.m. | edited Mar 09 '17, 3:57 a.m.

 . 


Ralph Schoon commented Mar 09 '17, 3:50 a.m. | edited Mar 09 '17, 4:04 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. 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 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.