Hi,

 I'm getting error while starting up Solr 5.5 . I'm using jdk and CentOS
6.7. I'm setting up Solr for the first time, booting up with 2 shards. I've
enabled the following entry in /bin/solr

if [ -e "$SOLR_HOME/knowledge/core.properties" ]; then
    CLOUD_MODE_OPTS+=('-Dbootstrap_confdir=./solr/knowledge/conf'
'collection.configName=myconf' '-DnumShards=2')
  fi

When I start solr through linux service, everything seems to be fine till I
hit the following exception.

[2016-03-17 20:23:34,760]ERROR
 9350[coreLoadExecutor-7-thread-1-processing-n:54.176.219.134:8983_solr] -
org.apache.solr.core.CoreContainer.create(CoreContainer.java:827) - Error
creating core [knowledge]: org/simpleframework/xml/core/Persister
org.apache.solr.common.SolrException: org/simpleframework/xml/core/Persister
        at org.apache.solr.core.SolrCore.<init>(SolrCore.java:820)
        at org.apache.solr.core.SolrCore.<init>(SolrCore.java:658)
        at org.apache.solr.core.CoreContainer.create(CoreContainer.java:814)
        at
org.apache.solr.core.CoreContainer.access$000(CoreContainer.java:87)
        at org.apache.solr.core.CoreContainer$1.call(CoreContainer.java:467)
        at org.apache.solr.core.CoreContainer$1.call(CoreContainer.java:458)
        at java.util.concurrent.FutureTask.run(FutureTask.java:266)
        at
org.apache.solr.common.util.ExecutorUtil$MDCAwareThreadPoolExecutor$1.run(ExecutorUtil.java:231)
        at
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
        at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
        at java.lang.Thread.run(Thread.java:745)
Caused by: java.lang.NoClassDefFoundError:
org/simpleframework/xml/core/Persister
        at
org.carrot2.util.attribute.AttributeValueSets.deserialize(AttributeValueSets.java:309)
        at
org.apache.solr.handler.clustering.carrot2.CarrotClusteringEngine.init(CarrotClusteringEngine.java:157)
        at
org.apache.solr.handler.clustering.ClusteringComponent.inform(ClusteringComponent.java:117)
        at
org.apache.solr.core.SolrResourceLoader.inform(SolrResourceLoader.java:697)
        at org.apache.solr.core.SolrCore.<init>(SolrCore.java:800)
        ... 10 more
Caused by: java.lang.ClassNotFoundException:
org.simpleframework.xml.core.Persister
        at java.net.URLClassLoader.findClass(URLClassLoader.java:381)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
        at
org.eclipse.jetty.webapp.WebAppClassLoader.loadClass(WebAppClassLoader.java:450)
        at
org.eclipse.jetty.webapp.WebAppClassLoader.loadClass(WebAppClassLoader.java:403)
        ... 15 more
[2016-03-17 20:23:34,763]ERROR
 
9353[coreContainerWorkExecutor-2-thread-1-processing-n:54.176.219.134:8983_solr]
- org.apache.solr.core.CoreContainer$2.run(CoreContainer.java:500) - Error
waiting for SolrCore to be created
java.util.concurrent.ExecutionException:
org.apache.solr.common.SolrException: Unable to create core [knowledge]
        at java.util.concurrent.FutureTask.report(FutureTask.java:122)
        at java.util.concurrent.FutureTask.get(FutureTask.java:192)
        at org.apache.solr.core.CoreContainer$2.run(CoreContainer.java:496)
        at
java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
        at java.util.concurrent.FutureTask.run(FutureTask.java:266)
        at
org.apache.solr.common.util.ExecutorUtil$MDCAwareThreadPoolExecutor$1.run(ExecutorUtil.java:231)
        at
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
        at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
        at java.lang.Thread.run(Thread.java:745)
Caused by: org.apache.solr.common.SolrException: Unable to create core
[knowledge]
        at org.apache.solr.core.CoreContainer.create(CoreContainer.java:828)
        at
org.apache.solr.core.CoreContainer.access$000(CoreContainer.java:87)
        at org.apache.solr.core.CoreContainer$1.call(CoreContainer.java:467)
        at org.apache.solr.core.CoreContainer$1.call(CoreContainer.java:458)
        ... 5 more
Caused by: org.apache.solr.common.SolrException:
org/simpleframework/xml/core/Persister
        at org.apache.solr.core.SolrCore.<init>(SolrCore.java:820)
        at org.apache.solr.core.SolrCore.<init>(SolrCore.java:658)
        at org.apache.solr.core.CoreContainer.create(CoreContainer.java:814)
        ... 8 more
Caused by: java.lang.NoClassDefFoundError:
org/simpleframework/xml/core/Persister
        at
org.carrot2.util.attribute.AttributeValueSets.deserialize(AttributeValueSets.java:309)
        at
org.apache.solr.handler.clustering.carrot2.CarrotClusteringEngine.init(CarrotClusteringEngine.java:157)
        at
org.apache.solr.handler.clustering.ClusteringComponent.inform(ClusteringComponent.java:117)
        at
org.apache.solr.core.SolrResourceLoader.inform(SolrResourceLoader.java:697)
        at org.apache.solr.core.SolrCore.<init>(SolrCore.java:800)
        ... 10 more
Caused by: java.lang.ClassNotFoundException:
org.simpleframework.xml.core.Persister
        at java.net.URLClassLoader.findClass(URLClassLoader.java:381)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
        at
org.eclipse.jetty.webapp.WebAppClassLoader.loadClass(WebAppClassLoader.java:450)
        at
org.eclipse.jetty.webapp.WebAppClassLoader.loadClass(WebAppClassLoader.java:403)
        ... 15 more

Looks like it's missing the reference of simple-xml jar. I've been using
Solr 5.0 till now, never see this error on startup.

Do I need to copy this jar in lib?

Any pointers will be appreciated.

-Thanks,
Shamik

Reply via email to