Dataimport handler exception when migrating from 4.4 to 4.6. Help needed
Hello, all: My configurations works nicely with solr 4.4. I am encountering a configuration error when I try to upgrade from 4.4 to 4.6. All I did was the following: a) Replace the 4.4 solr.war file with the 4.6 solr.war in the tomcat/lib folder. I am using version 6.0.36 of tomcat. b) I replaced the solr-dataimporthandler-4.4.0.jar and solr-dataimporthandler-extras-4.4.0.jar with the corresponding 4.6 counterparts in the collection/lib folder. I restarted tomcat. I get the following stack trace (full log is also given below) – there are no other warnings/errors in my log. I have gone through the 4.5 changes to see if I needed to add/modify my DIH configuration – but I am stymied. Any help will be greatly appreciated. ERROR - 2013-12-22 08:05:09.824; org.apache.solr.handler.dataimport.DataImportHandler; Exception while loading DataImporter java.lang.NoSuchMethodError: org.apache.solr.core.SolrCore.getLatestSchema()Lorg/apache/solr/schema/IndexSchema; at org.apache.solr.handler.dataimport.DataImporter.init(DataImporter.java:103) at org.apache.solr.handler.dataimport.DataImportHandler.inform(DataImportHandler.java:103) at org.apache.solr.core.SolrResourceLoader.inform(SolrResourceLoader.java:616) at org.apache.solr.core.SolrCore.init(SolrCore.java:816) at org.apache.solr.core.SolrCore.init(SolrCore.java:618) at org.apache.solr.core.CoreContainer.createFromLocal(CoreContainer.java:949) at org.apache.solr.core.CoreContainer.create(CoreContainer.java:984) at org.apache.solr.core.CoreContainer$2.call(CoreContainer.java:597) at org.apache.solr.core.CoreContainer$2.call(CoreContainer.java:592) at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source) at java.util.concurrent.FutureTask.run(Unknown Source) at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source) at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source) at java.util.concurrent.FutureTask.run(Unknown Source) at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) at java.lang.Thread.run(Unknown Source) The full solr.log (until the exception) is as follows: INFO - 2013-12-22 08:05:08.261; org.apache.solr.servlet.SolrDispatchFilter; SolrDispatchFilter.init() INFO - 2013-12-22 08:05:08.277; org.apache.solr.core.SolrResourceLoader; Using JNDI solr.home: c:\tomcatweb\postingsmaster INFO - 2013-12-22 08:05:08.292; org.apache.solr.core.CoreContainer$Initializer; looking for solr config file: c:\tomcatweb\postingsmaster\solr.xml INFO - 2013-12-22 08:05:08.292; org.apache.solr.core.CoreContainer; New CoreContainer 20804623 INFO - 2013-12-22 08:05:08.292; org.apache.solr.core.CoreContainer$Initializer; no solr.xml found. using default old-style solr.xml INFO - 2013-12-22 08:05:08.292; org.apache.solr.core.CoreContainer; Loading CoreContainer using Solr Home: 'c:\tomcatweb\postingsmaster\' INFO - 2013-12-22 08:05:08.292; org.apache.solr.core.SolrResourceLoader; new SolrResourceLoader for directory: 'c:\tomcatweb\postingsmaster\' INFO - 2013-12-22 08:05:08.605; org.apache.solr.handler.component.HttpShardHandlerFactory; Setting socketTimeout to: 0 INFO - 2013-12-22 08:05:08.605; org.apache.solr.handler.component.HttpShardHandlerFactory; Setting urlScheme to: http:// INFO - 2013-12-22 08:05:08.605; org.apache.solr.handler.component.HttpShardHandlerFactory; Setting connTimeout to: 0 INFO - 2013-12-22 08:05:08.605; org.apache.solr.handler.component.HttpShardHandlerFactory; Setting maxConnectionsPerHost to: 20 INFO - 2013-12-22 08:05:08.605; org.apache.solr.handler.component.HttpShardHandlerFactory; Setting corePoolSize to: 0 INFO - 2013-12-22 08:05:08.605; org.apache.solr.handler.component.HttpShardHandlerFactory; Setting maximumPoolSize to: 2147483647 INFO - 2013-12-22 08:05:08.605; org.apache.solr.handler.component.HttpShardHandlerFactory; Setting maxThreadIdleTime to: 5 INFO - 2013-12-22 08:05:08.605; org.apache.solr.handler.component.HttpShardHandlerFactory; Setting sizeOfQueue to: -1 INFO - 2013-12-22 08:05:08.605; org.apache.solr.handler.component.HttpShardHandlerFactory; Setting fairnessPolicy to: false INFO - 2013-12-22 08:05:08.621; org.apache.solr.client.solrj.impl.HttpClientUtil; Creating new http client, config:maxConnectionsPerHost=20maxConnections=1socketTimeout=0connTimeout=0retry=false INFO - 2013-12-22 08:05:08.761; org.apache.solr.core.CoreContainer; Registering Log Listener INFO - 2013-12-22 08:05:08.792; org.apache.solr.core.CoreContainer; Creating SolrCore 'collection1' using instanceDir: c:\tomcatweb\postingsmaster\collection1 INFO - 2013-12-22 08:05:08.792; org.apache.solr.core.SolrResourceLoader; new SolrResourceLoader for directory: 'c:\tomcatweb\postingsmaster\collection1\' INFO - 2013-12-22 08:05:08.792; org.apache.solr.core.SolrResourceLoader; Adding
Re: Dataimport handler exception when migrating from 4.4 to 4.6. Help needed
On 12/22/2013 9:51 AM, William Pierce wrote: My configurations works nicely with solr 4.4. I am encountering a configuration error when I try to upgrade from 4.4 to 4.6. All I did was the following: a) Replace the 4.4 solr.war file with the 4.6 solr.war in the tomcat/lib folder. I am using version 6.0.36 of tomcat. b) I replaced the solr-dataimporthandler-4.4.0.jar and solr-dataimporthandler-extras-4.4.0.jar with the corresponding 4.6 counterparts in the collection/lib folder. I restarted tomcat. I get the following stack trace (full log is also given below) – there are no other warnings/errors in my log. I have gone through the 4.5 changes to see if I needed to add/modify my DIH configuration – but I am stymied. Any help will be greatly appreciated. ERROR - 2013-12-22 08:05:09.824; org.apache.solr.handler.dataimport.DataImportHandler; Exception while loading DataImporter java.lang.NoSuchMethodError: org.apache.solr.core.SolrCore.getLatestSchema()Lorg/apache/solr/schema/IndexSchema; The method it's complaining about not being there is org.apache.solr.core.SolrCore.getLatestSchema() ... which is in Solr itself, not the dataimport handler. I did some checking. This method did not exist before 4.4.0, so my best guess is that your classloader is loading a SolrCore class from 4.3.1 or earlier, which probably means one of two things: 1) The Solr war you're extracting is not actually version 4.6.0, or 2) you've got jars in your system from one or more older versions. It's a good idea to delete the extracted war data whenever you upgrade Solr -- stop the container, delete the extracted data and all old jars, then replace the .war file and start it back up. Thanks, Shawn
Re: Dataimport handler exception when migrating from 4.4 to 4.6. Help needed
The best practice for upgrading is take the distribution and expand it. Then take your cores and replace it. Then you are guaranteed to get the jars and not have other WARs/JARs hanging around. On Sun, Dec 22, 2013 at 7:24 PM, Shawn Heisey s...@elyograg.org wrote: On 12/22/2013 9:51 AM, William Pierce wrote: My configurations works nicely with solr 4.4. I am encountering a configuration error when I try to upgrade from 4.4 to 4.6. All I did was the following: a) Replace the 4.4 solr.war file with the 4.6 solr.war in the tomcat/lib folder. I am using version 6.0.36 of tomcat. b) I replaced the solr-dataimporthandler-4.4.0.jar and solr-dataimporthandler-extras-4.4.0.jar with the corresponding 4.6 counterparts in the collection/lib folder. I restarted tomcat. I get the following stack trace (full log is also given below) – there are no other warnings/errors in my log. I have gone through the 4.5 changes to see if I needed to add/modify my DIH configuration – but I am stymied. Any help will be greatly appreciated. ERROR - 2013-12-22 08:05:09.824; org.apache.solr.handler.dataimport.DataImportHandler; Exception while loading DataImporter java.lang.NoSuchMethodError: org.apache.solr.core.SolrCore.getLatestSchema()Lorg/apache/solr/schema/IndexSchema; The method it's complaining about not being there is org.apache.solr.core.SolrCore.getLatestSchema() ... which is in Solr itself, not the dataimport handler. I did some checking. This method did not exist before 4.4.0, so my best guess is that your classloader is loading a SolrCore class from 4.3.1 or earlier, which probably means one of two things: 1) The Solr war you're extracting is not actually version 4.6.0, or 2) you've got jars in your system from one or more older versions. It's a good idea to delete the extracted war data whenever you upgrade Solr -- stop the container, delete the extracted data and all old jars, then replace the .war file and start it back up. Thanks, Shawn -- Bill Bell billnb...@gmail.com cell 720-256-8076