It's all about the answers!

Ask a question

How does one retrieve categories via OSLC in RTC 4.0 ?


Karthik Krishnan (8825118163) | asked Jul 04 '12, 3:44 p.m.
edited Jul 05 '12, 9:51 a.m.
Hello all,

The following works

https://jazzserver:9443/ccm/oslc/attributes/workitem.xml?oslc_cm.query=rtc_cm:projectArea="_AN-dIMTxEeGNMsMXCVEizA"

on RTC 3.0. But the same query throws the following (Via RESTClient for firefox)

  1. Status Code: 500 Internal Server Error
  2. Cache-Control: max-age=0, must-revalidate
  3. Connection: close
  4. Content-Length: 184
  5. Content-Type: text/xml;charset=UTF-8
  6. Server: Apache-Coyote/1.1
  7. Vary: Accept, _mediaType, _selector, OSLC-Core-Version
`<oslc_cm:error>
<oslc_cm:status>500</oslc_cm:status>
<oslc_cm:message/>
</oslc_cm:error> `

In IE 8 i get the following message

`type Exception report

message

description The server encountered an internal error () that prevented it from fulfilling this request.

exception

java.lang.IllegalStateException: Cannot call sendRedirect() after the response has been committed
	org.apache.catalina.connector.ResponseFacade.sendRedirect(ResponseFacade.java:483)
	com.ibm.team.repository.provision.internal.auth.AuthenticatedIdentityServlet.service(AuthenticatedIdentityServlet.java:65)
	javax.servlet.http.HttpServlet.service(HttpServlet.java:722)
	org.eclipse.equinox.http.servlet.internal.ServletRegistration.service(ServletRegistration.java:61)
	org.eclipse.equinox.http.servlet.internal.ProxyServlet.processAlias(ProxyServlet.java:126)
	org.eclipse.equinox.http.servlet.internal.ProxyServlet.service(ProxyServlet.java:60)
	javax.servlet.http.HttpServlet.service(HttpServlet.java:722)
	org.eclipse.equinox.servletbridge.BridgeServlet.service(BridgeServlet.java:120)
	com.ibm.team.repository.server.servletbridge.JazzServlet.service(JazzServlet.java:68)
	javax.servlet.http.HttpServlet.service(HttpServlet.java:722)
	com.ibm.team.repository.server.servletbridge.BridgeFilter.processDelegate(BridgeFilter.java:133)
	com.ibm.team.repository.server.servletbridge.BridgeFilter.doFilter(BridgeFilter.java:154)
`

For my testing, I use RTC 4.0 with Tomcat

Getting same error as https://jazz.net/forum/questions/77208/retrieving-list-of-categories-for-a-given-project-via-oslc

Does anyone know how to fix this? Also are there any documentations on the list of changes in OSLC front in RTC 4.0?

Cheers,
Karthik


Accepted answer


permanent link
Sandeep Somavarapu (1011) | answered Jul 17 '12, 10:38 a.m.
JAZZ DEVELOPER
Query on categories is not officially supported and not OSLC specific. It is internal to RTC. For your usage I sugges t to use Work Item Resource shapes. Please refer to the wiki https://jazz.net/wiki/bin/view/Main/WorkItemAPIsForOSLCCM20 for how to use shape resources. I think this will be sufficient for using OSLC CM APIs of RTC. 

As these queries (queries on categories) were supported in 3.x this issue is planned to fix in 4001. But try to avoid using this.
Karthik Krishnan selected this answer as the correct answer

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.