I am having the same experience as issue LUCENE-4713. Without modifying the source code myself, how do I overcome this? I am in the middle of migrating from 3.6 to 4.2 and I am unable to index or search.
>From the source code, I see there is a setter for a codec but there's not a constructor that accepts a codec. The exception is being thrown when I try to instantiate IndexWriterConfig. Thank you, Darren Hoffman