Ok, thanks. I deduped the jarfiles and now only have the 
solr-dataimporthandler-8.5.2.jar in server\lib folder.
The errors are now gone on the admin page.
But it also states "No cores available", and when I try to create a new core 
`mytest` (whose files are already on my disk) I get the error:

Error CREATEing SolrCore 'mytest': Unable to create core [mytest] Caused by: 
org.apache.solr.util.plugin.SolrCoreAware

name:mytest
instanceDir:mytest
dataDir:data
config:solrconfig.xml
schema:schema.xml
instanceDir and dataDir need to exist before you can create the core

Even though my folders are there:

server
        solr
                mytest
                       conf
                               data-config.xml
                               managed-schema
                               solrconfig.xml
                       data

I don't see any further detailed logging (no "i" icon either)

Thanks!
Pete

From: Shawn Heisey<mailto:apa...@elyograg.org>
Sent: Friday, June 26, 2020 19:57
To: solr-user@lucene.apache.org<mailto:solr-user@lucene.apache.org>
Subject: Re: Solr 8.5.2: DataImportHandler failed to instantiate 
org.apache.solr.request.SolrRequestHandler

On 6/24/2020 1:59 PM, Peter van de Kerk wrote:
> So I copied files from C:\solr-8.5.2\dist to C:\solr-8.5.2\server\lib
>
> But then I get error
>
>> org.apache.solr.common.SolrException:org.apache.solr.common.SolrException: 
>> Error Instantiating requestHandler, 
>> org.apache.solr.handler.dataimport.DataImportHandler failed to instantiate 
>> org.apache.solr.request.SolrRequestHandler

All of the errors will be MUCH longer than what you have included here,
and we need that detail to diagnose anything.  If you are seeing these
in the admin UI "logging" tab, you can click on the little "i" icon to
expand them.  But be aware that you'll have to read/copy the expanded
data very quickly - the admin UI will quickly close the expansion.  It's
much better to go to the actual logfile than use the admin UI.

There are better locations than server/lib for jars, but I don't think
that's causing the problem.  You should definitely NOT copy ALL of the
jars in the dist directory -- this places an additional copy of the main
Solr jars on the classpath, and having the same jar accessible from two
places is a VERY bad thing for Java software.  It causes some really
weird problems, and I can see this issue being a result of that.  For
most DIH uses, you only need the "solr-dataimporthandler-X.Y.Z.jar"
file.  For some DIH use cases (but not most of them) you might also need
the extras jar.

Thanks,
Shawn

Reply via email to