TokenStream NoClassDefFoundError

Forum for questions and issues related to 3.0 migration.

Those wishing to upgrade should start by looking at the migration documents published on the Broadleaf Commerce documentation site.

Moderator: jocanas

kiteflo
Newbie
Newbie
Posts: 4
Joined: Mon May 04, 2015 9:40 am

TokenStream NoClassDefFoundError

Postby kiteflo » Wed Jun 17, 2015 3:58 am

Please help!

After migrating to 4.0 SOLR peridocially throws the exception below and therefore is not able to display any products. The lucene-core-4.10.3 is on the classpath and part of the war so it seems this is not a "real" classNotFoundException but something different..

Any help is highly appreciated...

thx,
Florian

[ERROR] 10:26:52 ErrorLogger - Job (DEFAULT.rebuildIndexJobDetail threw an exception.
org.quartz.SchedulerException: Job threw an unhandled exception. [See nested exception: org.springframework.scheduling.quartz.JobMethodInvocationFailedException: Invocation of method 'rebuildIndex' on target class [class org.broadleafcommerce.core.search.service.solr.SolrSearchServiceImpl] failed; nested exception is java.lang.NoClassDefFoundError: org.apache.lucene.analysis.TokenStream]
at org.quartz.core.JobRunShell.run(JobRunShell.java:218)
at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:560)
Caused by: org.springframework.scheduling.quartz.JobMethodInvocationFailedException: Invocation of method 'rebuildIndex' on target class [class org.broadleafcommerce.core.search.service.solr.SolrSearchServiceImpl] failed; nested exception is java.lang.NoClassDefFoundError: org.apache.lucene.analysis.TokenStream
at org.springframework.scheduling.quartz.MethodInvokingJobDetailFactoryBean$MethodInvokingJob.executeInternal(MethodInvokingJobDetailFactoryBean.java:266)
at org.springframework.scheduling.quartz.QuartzJobBean.execute(QuartzJobBean.java:75)
at org.quartz.core.JobRunShell.run(JobRunShell.java:207)
... 1 more
Caused by: java.lang.NoClassDefFoundError: org.apache.lucene.analysis.TokenStream
at org.apache.lucene.document.Field.tokenStream(Field.java:543)
at org.apache.lucene.index.DefaultIndexingChain$PerField.invert(DefaultIndexingChain.java:611)
at org.apache.lucene.index.DefaultIndexingChain.processField(DefaultIndexingChain.java:359)
at org.apache.lucene.index.DefaultIndexingChain.processDocument(DefaultIndexingChain.java:318)
at org.apache.lucene.index.DocumentsWriterPerThread.updateDocument(DocumentsWriterPerThread.java:239)
at org.apache.lucene.index.DocumentsWriter.updateDocument(DocumentsWriter.java:457)
at org.apache.lucene.index.IndexWriter.updateDocument(IndexWriter.java:1511)
at org.apache.solr.update.DirectUpdateHandler2.addDoc0(DirectUpdateHandler2.java:240)
at org.apache.solr.update.DirectUpdateHandler2.addDoc(DirectUpdateHandler2.java:164)
at org.apache.solr.update.processor.RunUpdateProcessor.processAdd(RunUpdateProcessorFactory.java:69)
at org.apache.solr.update.processor.UpdateRequestProcessor.processAdd(UpdateRequestProcessor.java:51)
at org.apache.solr.update.processor.DistributedUpdateProcessor.versionAdd(DistributedUpdateProcessor.java:952)
at org.apache.solr.update.processor.DistributedUpdateProcessor.processAdd(DistributedUpdateProcessor.java:692)
at org.apache.solr.handler.loader.XMLLoader.processUpdate(XMLLoader.java:247)
at org.apache.solr.handler.loader.XMLLoader.load(XMLLoader.java:174)
at org.apache.solr.handler.UpdateRequestHandler$1.load(UpdateRequestHandler.java:99)
at org.apache.solr.handler.ContentStreamHandlerBase.handleRequestBody(ContentStreamHandlerBase.java:74)
at org.apache.solr.handler.RequestHandlerBase.handleRequest(RequestHandlerBase.java:135)
at org.apache.solr.core.SolrCore.execute(SolrCore.java:1976)
at org.apache.solr.client.solrj.embedded.EmbeddedSolrServer.request(EmbeddedSolrServer.java:150)
at org.apache.solr.client.solrj.request.AbstractUpdateRequest.process(AbstractUpdateRequest.java:124)
at org.apache.solr.client.solrj.SolrServer.add(SolrServer.java:68)
at org.apache.solr.client.solrj.SolrServer.add(SolrServer.java:54)
at org.broadleafcommerce.core.search.service.solr.SolrIndexServiceImpl.buildIncrementalProductIndex(SolrIndexServiceImpl.java:335)
at org.broadleafcommerce.core.search.service.solr.SolrIndexServiceImpl.buildIncrementalIndex(SolrIndexServiceImpl.java:443)
at org.broadleafcommerce.core.search.service.solr.SolrIndexServiceImpl.buildIncrementalIndex(SolrIndexServiceImpl.java:278)
at org.broadleafcommerce.core.search.service.solr.SolrIndexServiceImpl$1.execute(SolrIndexServiceImpl.java:220)
at org.broadleafcommerce.core.search.service.solr.SolrIndexServiceImpl.performCachedOperation(SolrIndexServiceImpl.java:147)
at org.broadleafcommerce.core.search.service.solr.SolrIndexServiceImpl.rebuildIndex(SolrIndexServiceImpl.java:215)
at org.broadleafcommerce.core.search.service.solr.SolrSearchServiceImpl.rebuildIndex(SolrSearchServiceImpl.java:332)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:601)
at org.springframework.util.MethodInvoker.invoke(MethodInvoker.java:269)
at org.springframework.scheduling.quartz.MethodInvokingJobDetailFactoryBean$MethodInvokingJob.executeInternal(MethodInvokingJobDetailFactoryBean.java:257)
... 3 more

Return to “3.0 Upgrade and Migration”

Who is online

Users browsing this forum: No registered users and 1 guest