Unable to serialize empty TabularData #200
Closed
Labels
Milestone
Comments
nevenr
added a commit
to nevenr/jolokia
that referenced
this issue
Oct 10, 2015
- empty TabularData -> empty JSON object
Hi, I assumed that empty TabularData should respond to empty JSON object. Regards, |
rhuss
added a commit
that referenced
this issue
Jan 18, 2016
Fixed in master |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Jolokia can't serialize
TabularDataSupport
with empty set of rows. In this casevalue
field in the HTTP response containsnull
value:I found the reason. Look at this line of code:
TabularDataExtractor.java L200
When
TabularData
is empty the loop never iterates andfound
local variable will set tofalse
. SoAttributeFilteredException
will cause to unwind call stack and catched inObjectToJsonConverter.extractObjectWithContext
method.Here,
jsonResult
always set tonull
ifAttributeFilteredException
exception occurred.The text was updated successfully, but these errors were encountered: