Hi,
I’ve run into an interesting problem decoding an RWF message in UPAJ (v8). The message is a MAP, and when decoding, I get a non-success return error: NO_DATA (16) with the text:
Success: Container was decoded from an empty payload. The user should not try to decode any entries
My decoder logic is:
Map map = CodecFactory.createMap(); if ((retVal = map.decode(decodeIterator)) != CodecReturnCodes.SUCCESS) {LOG.error(String.format("RWF Error %s (%d) encountered with DecodeMap. Error Text: %s. msgkey: %s", CodecReturnCodes.toString(retVal), retVal, CodecReturnCodes.info(retVal), msgkey), new Throwable()); return returnMap; }
So for some reason, retVal is being returned as an error, but the error text indicates that there was no error.
The Data Analysis tool (DAS) seems to report that this is a bad RWF message, so I’m not sure if the actual source data is bad, or something weird is happening on the decode. If the data is good, it would seem like there is a bug in DAS, and that UPA doesn’t behave ideally - would expect the return to be success and then the map.containerType() to be set to NO_DATA. If the data is faulty, then UPA reporting an error with a msg of ‘Success’ is also not ideal.
Any thoughts?