lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Markus Jelsma <>
Subject ClassCastException: o.a.l.d.Field cannot be cast to o.a.l.d.StoredField
Date Tue, 24 Apr 2018 11:13:47 GMT

We have a DocumentTransformer that gets a Field from the SolrDocument and casts it to StoredField
(although aparently we don't need to cast). This works well in tests and fine in production,
except for some curious, unknown and unreproducible, cases, throwing the ClassCastException.

I can, and will, just remove the cast to fix the rare exception, but in what cases could the
exception get thrown?

Many thanks,

View raw message