Skip to content

fix jackson libs conflict, add Error handling in receiver

Fix Jackson libs conflict producing NoSuchMethodError, add Error handling in the receiver to prevent silent errors.

The error that was met interrupts the processing of records with geodata:

Caused by: java.lang.NoSuchMethodError: com.fasterxml.jackson.annotation.JsonSubTypes.failOnRepeatedNames()Z
	at com.fasterxml.jackson.databind.introspect.JacksonAnnotationIntrospector.findSubtypes(JacksonAnnotationIntrospector.java:627)
	at com.fasterxml.jackson.databind.jsontype.impl.StdSubtypeResolver._collectAndResolveByTypeId(StdSubtypeResolver.java:296)
	at com.fasterxml.jackson.databind.jsontype.impl.StdSubtypeResolver.collectAndResolveSubtypesByTypeId(StdSubtypeResolver.java:212)
	at com.fasterxml.jackson.databind.deser.BasicDeserializerFactory.findTypeDeserializer(BasicDeserializerFactory.java:1793)
	at com.fasterxml.jackson.databind.DeserializationContext.findRootValueDeserializer(DeserializationContext.java:654)
	at com.fasterxml.jackson.databind.ObjectMapper._findRootDeserializer(ObjectMapper.java:4861)
	at com.fasterxml.jackson.databind.ObjectMapper._readMapAndClose(ObjectMapper.java:4731)
	at com.fasterxml.jackson.databind.ObjectMapper.readValue(ObjectMapper.java:3677)
	at com.fasterxml.jackson.databind.ObjectMapper.readValue(ObjectMapper.java:3645)
	at org.opengroup.osdu.indexer.util.parser.GeoShapeParser.parseGeoJson(GeoShapeParser.java:41)
Edited by Rustam Lotsmanenko (EPAM)

Merge request reports

Loading