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

"The reference to entity "etag" must end with the ';' delimiter error" while doing OSLC workshop example 3 and 4?

Hello All,

    I am currently doing OSLC workshop and using clm server 6.X version. but facing some issue while running example 3 and 4 from workshop. I am getting below error:
Apr 26, 2017 5:00:28 PM org.apache.http.client.protocol.ResponseProcessCookies processCookies
WARNING: Invalid cookie header: "Set-Cookie: WASReqURL=""; Expires=Thu, 01 Dec 1994 16:00:00 GMT; Path=/; Secure; HttpOnly". Unable to parse expires attribute: Thu, 01 Dec 1994 16:00:00 GMT
[Fatal Error] :17:78: The reference to entity "etag" must end with the ';' delimiter.
org.xml.sax.SAXParseException; lineNumber: 17; columnNumber: 78; The reference to entity "etag" must end with the ';' delimiter.
at com.sun.org.apache.xerces.internal.parsers.DOMParser.parse(Unknown Source)
at com.sun.org.apache.xerces.internal.jaxp.DocumentBuilderImpl.parse(Unknown Source)
at com.sun.org.apache.xpath.internal.jaxp.XPathImpl.evaluate(Unknown Source)
at net.jazz.oslc.consumer.examples.Example03.main(Example03.java:104)
--------------- linked to ------------------
javax.xml.xpath.XPathExpressionException: org.xml.sax.SAXParseException; lineNumber: 17; columnNumber: 78; The reference to entity "etag" must end with the ';' delimiter.
at com.sun.org.apache.xpath.internal.jaxp.XPathImpl.evaluate(Unknown Source)
at net.jazz.oslc.consumer.examples.Example03.main(Example03.java:104)
Caused by: org.xml.sax.SAXParseException; lineNumber: 17; columnNumber: 78; The reference to entity "etag" must end with the ';' delimiter.
at com.sun.org.apache.xerces.internal.parsers.DOMParser.parse(Unknown Source)
at com.sun.org.apache.xerces.internal.jaxp.DocumentBuilderImpl.parse(Unknown Source)
... 2 more
I also refereed the :https://jazz.net/library/article/477 and  https://jazz.net/library/article/635  for Upgraded workshop link and download latest workshop.zip. Please  guide me on above error.

0 votes



One answer

Permanent link

This obscure error message usually means an authentication issue.  When using the OSLC API with incorrect credentials, the HTTP response contains the HTML login page for RQM.  When paring this HTML response as XML, the XML processor usually complains about the form of that etag element.  Please check your username and password.

0 votes

Comments

  Hi  Paul,

      Thanks for your reply. I have checked the credentials that i used in code. but i am getting same error. so can you suggest what would be the another possible solution other than credentials.

Are you a member of that project area?

 yes ...project is created by user itself.

The exception was thrown by the second line below.

                    source = new InputSource(catalogResponse.getEntity().getContent());
                    NodeList titleNodes = (NodeList) (xpath2.evaluate(serviceProviderTitleXPath, source, XPathConstants.NODESET));

You can simply print out the "source" variable and see what you have got, as "source" contains the response body.

The project may be created by the user, but the user may not be a member of the project (requires manually adding the user to the project and associating one/more role(s)).

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
× 11,089
× 1,735

Question asked: Apr 26 '17, 8:16 a.m.

Question was seen: 8,534 times

Last updated: May 02 '17, 8:29 a.m.

Confirmation Cancel Confirm