[Demonstration 1]

[Buggy Method]
public static ITimeSeriesUnivariate loadConfigsFromFile(String file) {
    ObjectMapper mapper = new ObjectMapper();
    mapper.configure(DeserializationFeature.FAIL_ON_UNKNOWN_PROPERTIES, false);
    mapper.enableDefaultTyping(ObjectMapper.DefaultTyping.NON_FINAL);
    ITimeSeriesUnivariate readValue;
    try {
        readValue = mapper.readValue(new File("ts.json"), TimeSeriesUnivariate.class);
        return readValue;
    } catch (IOException e) {
        e.printStackTrace();
    }
    return null;
}

[Buggy Hunk]
readValue = mapper.readValue(new File("ts.json"), TimeSeriesUnivariate.class);

[Patch]
readValue = mapper.readValue(new File(file), TimeSeriesUnivariate.class);

[Demonstration 2]

[Buggy Method]
public Notification toNotification() {
    ObjectMapper mapper = new ObjectMapper();
    try {
        return mapper.convertValue(getObj(), (Class<? extends Notification>) Thread.currentThread().getContextClassLoader().loadClass(getType()));
    } catch (Exception e) {
        logger.error("Problem to load class {}", getType());
        return null;
    }
}

[Buggy Hunk]
logger.error("Problem to load class {}", getType());

[Patch]
logger.error("Problem to load class {}", getType(), e);

[Demonstration 3]

[Buggy Method]
@Override
public JSONItem convertFrom(String rawJSONData) throws Exception {
    return mapper.readValue(rawJSONData, JSONProperty.class);
}

[Buggy Hunk]
return mapper.readValue(rawJSONData, JSONProperty.class);

[Patch]
return reader.readValue(rawJSONData);