Red Hat Bugzilla – Bug 905210
Unable to Retrieve Alert Count
Last modified: 2013-08-31 06:12:33 EDT
Description of problem:
All attempts to retrieve the "alert/count" resource in the "application/xml" format fail with the following message:
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<message>Could not find MessageBodyWriter for response object of type: java.lang.Integer of media type: application/xml</message>
No problems when using the "application/json" or "text/plain" formats.
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. Set the "Accept" header to "application/xml"
2. Retrieve the "alert/count" resource
3. Investigate stack trace
The error message mentioned in the description.
A proper response.
In the past this method was only sending a single number, which was not valid for XML.
This has now been changed into
Similar for the StringValue type
*** Bug 906158 has been marked as a duplicate of this bug. ***
Bulk close of old bugs in VERIFIED state.