Article ID: 112645, created on Oct 27, 2011, last review on May 10, 2014

  • Applies to:
  • Operations Automation

Symptoms

When I send RESTful API requests to my Instance Manager node I receive the error:
500 Internal Server Error

The similar error is observed in PACI-im.log:
Caused by: com.sun.jersey.api.MessageException: A message body writer for Java class com.parallels.c2u.xml.PendingCallbacks, and Java type class com.parallels.c2u.xml.PendingCallbacks, and MIME media type text/plain was not found

Resolution

Make your RESTful API client sending these headers:
Content: application/xml
Accept: application/xml

For curl it can be done as follows:
~# curl -uadmin:'PaSsWorD' -H "Content: application/xml" -H "Accept: application/xml" ..... 

5356b422f65bdad1c3e9edca5d74a1ae caea8340e2d186a540518d08602aa065 e12cea1d47a3125d335d68e6d4e15e07

Email subscription for changes to this article
Save as PDF