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

Error reading ServiceProviderCatalog - may be related to 6.0.4 upgrade

Hi,
I am using a lyo based java code to read RTC data. It worked fine until now. Suddenly, I am getting an exception. The only change I can think of that could cause this is upgrading CLM to 6.0.4. Can anyone understand what could have happened?

The exception happens on this code:

String serviceProviderUrl = client.lookupServiceProviderUrl(catalogUrl, projectArea);

The error message is:

ERROR:A javax.ws.rs.ext.MessageBodyReader implementation was not found for class org.eclipse.lyo.oslc4j.core.model.ServiceProviderCatalog type and text/html; charset=UTF-8 media type.  Verify that all entity providers are correctly registered.  Add a custom javax.ws.rs.ext.MessageBodyReader provider to handle the type and media type if a JAX-RS entity provider does not currently exist.

Thanks!

0 votes

Comments

Have you had a closer look at the catalog content? What version did you upgrade from?


Accepted answer

Permanent link

 This is likely a login issue. If the login fails, the server returns an error message as Content-Type text/html instead of Application/rdf+xml which is expected by the MessageBodyReader for the ServiceProviderCatalog class. Check your user id and password and make sure they are correct.


Tali Rabetti selected this answer as the correct answer

1 vote

Comments

Thanks! I forgot I also had to change my password, which is hard coded in the code..

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
× 7,495
× 516
× 9

Question asked: Sep 25 '17, 1:43 a.m.

Question was seen: 2,957 times

Last updated: Sep 26 '17, 2:03 a.m.

Related questions
Confirmation Cancel Confirm