All,

I'm using Solr 7.7.3 in standalone mode and I'm trying to modify a core's schema via the SolrJ client. This is a newly-created core with a small number of documents in it.

I've done this in three other environments, both 7.7.3 and also 8.1.1 but in this pre-prod environment I'm getting this error coming back from Solr:

Cannot read the array length because "this.dynamicCopyFields" is null

It's all wrapped-up in some other stuff, but that's the core error. I've grabbed the code for 7.7.3 and there are only two classes with that member: IndexSchema and ManagedIndexSchema.

My quick reading of the code is that dynamicCopyFields should be non-null as long as the schema was read properly during startup.

My Solr server is logging nothing other than GC logs for reasons I can't explain -- it all appears to be configured properly. But I can run the server in foreground+trace mode and get lots and logs of logging if that would be helpful to diagnose.

I can get to the web UI and modify the schema just fine. But this process I'm calling from my application via SolrJ is failing with this error.

Does anyone have any ideas as to why dynamicCopyFields might be null? I am not trying to modify any dynamic fields in any way at all.

-chris

Reply via email to