We seem to be hitting the slow instantiation path for some
reason. Add more debugging in an effort to hunt them down.
Change-Id: I64c5630a819d46710f7957c3972a2ba305b21ac7
Signed-off-by: Robert Varga <rovarga@cisco.com>
- LOG.warn("Union value {} failed to deserialize efficiently, falling back to String-based instantiation", input);
+ LOG.warn("Union class {} value {} failed to deserialize efficiently, falling back to String-based instantiation",
+ getTypeClass(), input);
return deserializeString(input);
}
return deserializeString(input);
}
try {
value = codec.deserialize(input);
} catch (Exception e) {
try {
value = codec.deserialize(input);
} catch (Exception e) {
- LOG.debug("Codec failed to deserialize input {}", input, e);
+ LOG.debug("Codec {} failed to deserialize input {}", codec, input, e);
return unionCtor.invokeExact(value);
} catch (ClassCastException e) {
// This case can happen. e.g. NOOP_CODEC
return unionCtor.invokeExact(value);
} catch (ClassCastException e) {
// This case can happen. e.g. NOOP_CODEC
- LOG.debug("Codec failed to instantiate {} {}", codec, input);
+ LOG.debug("Failed to instantiate {} for input {} value {}", bindingType, input, value, e);
return null;
} catch (Throwable e) {
throw new IllegalArgumentException("Failed to construct union for value " + value, e);
return null;
} catch (Throwable e) {
throw new IllegalArgumentException("Failed to construct union for value " + value, e);