It's all about the answers!

Ask a question

Problem is I can update only two of my custom atrribute in single operation through OSLC

Anurag Patel (21568) | asked Jan 12 '18, 8:55 a.m.

 Hi all,

I created custom test case templates in RQM for my project requirement. But when I tried to update custom attributes through OSLC, it can only two custom attributes in single operation. Cant update third attribute or more than two in single operation. Below is my OSLC code:

Map<QName, Object> customAttribute = new HashMap<QName, Object>();
customAttribute.put(testRecordIdQname, "Sample1");
customAttribute.put(testCaseSymptom, "Sample2");
customAttribute.put(testCaseCode, "Sample3");
//customAttribute.put(vstRQMSymptom, "Sample4");

ClientResponse updateResourceResponse = null;
ClientResponse response = null;
response = client.getResource(testCase.getAbout().toString(), OslcMediaType.APPLICATION_RDF_XML);
String etag = response.getHeaders().getFirst(OSLCConstants.ETAG);
System.out.println("Etag :"+etag);
updateResourceResponse = client.updateResource(testCase.getAbout().toString(), testCase,OslcMediaType.APPLICATION_RDF_XML, OslcMediaType.APPLICATION_RDF_XML, etag);

Anurag Patel commented Jan 12 '18, 8:58 a.m.

 when I add third qName in map and update resource . It cant updated.

Donald Nong commented Jan 16 '18, 7:44 p.m.

What error did you get?

2 answers

permanent link
Mehul Patel (9695) | answered Jan 17 '18, 1:19 p.m.


As Donald requested, please share the error code you are receiving. I suggest you to check server log if it contains any related error. Please refer Troubleshooting and supported functional logging at Wiki to enable detailed logging on RQM server.


permanent link
Anurag Patel (21568) | answered Jan 31 '18, 8:34 a.m.


 Exception in thread "main" java.lang.OutOfMemoryError: Java heap space
at java.util.Arrays.copyOf(
at java.lang.AbstractStringBuilder.expandCapacity(
at java.lang.AbstractStringBuilder.ensureCapacityInternal(
at java.lang.AbstractStringBuilder.append(
at java.lang.StringBuilder.append(
at java.lang.StringBuilder.append(
at java.lang.AbstractStringBuilder.append(
at java.lang.StringBuilder.append(
at java.lang.StringBuilder.append(
at java.util.Formatter$FormatSpecifier.print(
at java.util.Formatter.format(
at java.util.Formatter.format(
at java.lang.String.format(
at java.util.logging.SimpleFormatter.format(
at java.util.logging.StreamHandler.publish(
at java.util.logging.ConsoleHandler.publish(
at java.util.logging.Logger.log(
at java.util.logging.Logger.doLog(
at java.util.logging.Logger.log(
at org.main.RQMIntegration.main(
Now I can update custom attribute on my local environment, but while same code applies for production environment it gives above error

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.