Uploaded image for project: 'DSpace'
  1. DSpace
  2. DS-2293

NoSuchMethodError: AttributeImpl in Elasticsearch

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Minor
    • Resolution: Answered
    • Affects Version/s: 5.0
    • Fix Version/s: None
    • Component/s: Statistics
    • Labels:
      None
    • Attachments:
      0
    • Comments:
      9
    • Documentation Status:
      Not Required

      Description

      I noticed the following stacktrace on demo coming from Elasticsearch. I remembered that just after the Solr/Lucene/ES version bump I've seen a similar error from Solr, which I described in my email to dspace-commit from November 11, 2014 (Re: [Dspace-commit] Where are we at for RC1 and Testathon). I did check that there is only a single version of the lucene, ES and solr .jars in [dspace]/lib/.

      2014-11-14 12:25:00,745 ERROR org.dspace.statistics.ElasticSearchLogger @ RunTimer in ESL:
      org.elasticsearch.common.util.concurrent.UncategorizedExecutionException: Failed execution
      at org.elasticsearch.action.support.AdapterActionFuture.rethrowExecutionException(AdapterActionFuture.java:92)
      at org.elasticsearch.action.support.AdapterActionFuture.actionGet(AdapterActionFuture.java:50)
      at org.dspace.statistics.ElasticSearchLogger.post(ElasticSearchLogger.java:303)
      at org.dspace.statistics.ElasticSearchLoggerEventListener.receiveEvent(ElasticSearchLoggerEventListener.java:31)
      at org.dspace.services.events.SystemEventService.fireLocalEvent(SystemEventService.java:144)
      at org.dspace.services.events.SystemEventService.fireEvent(SystemEventService.java:86)
      at org.dspace.app.xmlui.cocoon.BitstreamReader.setup(BitstreamReader.java:413)
      at sun.reflect.GeneratedMethodAccessor109.invoke(Unknown Source)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      at java.lang.reflect.Method.invoke(Method.java:483)
      at org.apache.cocoon.core.container.spring.avalon.PoolableProxyHandler.invoke(PoolableProxyHandler.java:71)
      at com.sun.proxy.$Proxy126.setup(Unknown Source)
      at org.apache.cocoon.components.pipeline.AbstractProcessingPipeline.setupReader(AbstractProcessingPipeline.java:560)
      at org.apache.cocoon.components.pipeline.AbstractProcessingPipeline.preparePipeline(AbstractProcessingPipeline.java:464)
      at org.apache.cocoon.components.pipeline.AbstractProcessingPipeline.process(AbstractProcessingPipeline.java:411)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      at java.lang.reflect.Method.invoke(Method.java:483)
      at org.apache.cocoon.core.container.spring.avalon.PoolableProxyHandler.invoke(PoolableProxyHandler.java:71)
      at com.sun.proxy.$Proxy125.process(Unknown Source)
      at org.apache.cocoon.components.treeprocessor.sitemap.ReadNode.invoke(ReadNode.java:94)
      at org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:78)
      at org.apache.cocoon.components.treeprocessor.sitemap.SelectNode.invoke(SelectNode.java:87)
      at org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:55)
      at org.apache.cocoon.components.treeprocessor.sitemap.MatchNode.invoke(MatchNode.java:87)
      at org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:55)
      at org.apache.cocoon.components.treeprocessor.sitemap.MatchNode.invoke(MatchNode.java:87)
      at org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:78)
      at org.apache.cocoon.components.treeprocessor.sitemap.PipelineNode.invoke(PipelineNode.java:143)
      at org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:78)
      at org.apache.cocoon.components.treeprocessor.sitemap.PipelinesNode.invoke(PipelinesNode.java:81)
      at org.apache.cocoon.components.treeprocessor.ConcreteTreeProcessor.process(ConcreteTreeProcessor.java:239)
      at org.apache.cocoon.components.treeprocessor.ConcreteTreeProcessor.process(ConcreteTreeProcessor.java:171)
      at org.apache.cocoon.components.treeprocessor.TreeProcessor.process(TreeProcessor.java:247)
      at org.apache.cocoon.servlet.RequestProcessor.process(RequestProcessor.java:351)
      at org.apache.cocoon.servlet.RequestProcessor.service(RequestProcessor.java:169)
      at org.apache.cocoon.sitemap.SitemapServlet.service(SitemapServlet.java:84)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
      at org.apache.cocoon.servletservice.ServletServiceContext$PathDispatcher.forward(ServletServiceContext.java:468)
      at org.apache.cocoon.servletservice.ServletServiceContext$PathDispatcher.forward(ServletServiceContext.java:443)
      at org.apache.cocoon.servletservice.spring.ServletFactoryBean$ServiceInterceptor.invoke(ServletFactoryBean.java:264)
      at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
      at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:202)
      at com.sun.proxy.$Proxy92.service(Unknown Source)
      at org.dspace.springmvc.CocoonView.render(CocoonView.java:113)
      at org.springframework.web.servlet.DispatcherServlet.render(DispatcherServlet.java:1180)
      at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:950)
      at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:852)
      at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:882)
      at org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:778)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:620)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:303)
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
      at org.dspace.app.xmlui.cocoon.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:111)
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
      at org.dspace.app.xmlui.cocoon.DSpaceCocoonServletFilter.doFilter(DSpaceCocoonServletFilter.java:275)
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
      at org.dspace.app.xmlui.cocoon.servlet.multipart.DSpaceMultipartFilter.doFilter(DSpaceMultipartFilter.java:119)
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
      at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
      at org.dspace.utils.servlet.DSpaceWebappServletFilter.doFilter(DSpaceWebappServletFilter.java:78)
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
      at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:220)
      at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:122)
      at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:503)
      at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:170)
      at com.googlecode.psiprobe.Tomcat70AgentValve.invoke(Tomcat70AgentValve.java:38)
      at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:103)
      at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:950)
      at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:116)
      at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:421)
      at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1070)
      at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:611)
      at org.apache.tomcat.util.net.AprEndpoint$SocketProcessor.doRun(AprEndpoint.java:2462)
      at org.apache.tomcat.util.net.AprEndpoint$SocketProcessor.run(AprEndpoint.java:2451)
      at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
      at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
      at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
      at java.lang.Thread.run(Thread.java:745)
      Caused by: java.util.concurrent.ExecutionException: java.lang.NoSuchMethodError: java.lang.invoke.MethodHandle.invokeExact()Lorg/apache/lucene/util/AttributeImpl;
      at org.elasticsearch.common.util.concurrent.BaseFuture$Sync.getValue(BaseFuture.java:288)
      at org.elasticsearch.common.util.concurrent.BaseFuture$Sync.get(BaseFuture.java:275)
      at org.elasticsearch.common.util.concurrent.BaseFuture.get(BaseFuture.java:113)
      at org.elasticsearch.action.support.AdapterActionFuture.actionGet(AdapterActionFuture.java:45)
      ... 85 more
      Caused by: java.lang.NoSuchMethodError: java.lang.invoke.MethodHandle.invokeExact()Lorg/apache/lucene/util/AttributeImpl;
      at org.apache.lucene.util.AttributeFactory$1.createInstance(AttributeFactory.java:182)
      at org.apache.lucene.util.AttributeFactory$StaticImplementationAttributeFactory.createAttributeInstance(AttributeFactory.java:145)
      at org.apache.lucene.util.AttributeSource.addAttribute(AttributeSource.java:229)
      at org.apache.lucene.document.Field$StringTokenStream.<init>(Field.java:561)
      at org.apache.lucene.document.Field.tokenStream(Field.java:543)
      at org.apache.lucene.index.DefaultIndexingChain$PerField.invert(DefaultIndexingChain.java:597)
      at org.apache.lucene.index.DefaultIndexingChain.processField(DefaultIndexingChain.java:342)
      at org.apache.lucene.index.DefaultIndexingChain.processDocument(DefaultIndexingChain.java:301)
      at org.apache.lucene.index.DocumentsWriterPerThread.updateDocument(DocumentsWriterPerThread.java:241)
      at org.apache.lucene.index.DocumentsWriter.updateDocument(DocumentsWriter.java:451)
      at org.apache.lucene.index.IndexWriter.updateDocument(IndexWriter.java:1539)
      at org.apache.lucene.index.IndexWriter.addDocument(IndexWriter.java:1254)
      at org.elasticsearch.index.engine.internal.InternalEngine.innerCreateNoLock(InternalEngine.java:476)
      at org.elasticsearch.index.engine.internal.InternalEngine.innerCreate(InternalEngine.java:414)
      at org.elasticsearch.index.engine.internal.InternalEngine.create(InternalEngine.java:398)
      at org.elasticsearch.index.shard.service.InternalIndexShard.create(InternalIndexShard.java:387)
      at org.elasticsearch.action.index.TransportIndexAction.shardOperationOnPrimary(TransportIndexAction.java:205)
      at org.elasticsearch.action.support.replication.TransportShardReplicationOperationAction$AsyncShardOperationAction.performOnPrimary(TransportShardReplicationOperationAction.java:535)
      at org.elasticsearch.action.support.replication.TransportShardReplicationOperationAction$AsyncShardOperationAction$1.run(TransportShardReplicationOperationAction.java:434)
      at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
      at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
      ... 1 more

      2014-11-14 12:25:00,747 ERROR org.dspace.statistics.ElasticSearchLoggerEventListener @ General Exception: Failed execution
      2014-11-14 12:25:00,747 INFO org.dspace.usage.LoggerUsageEventListener @ dspacedemo+admin@gmail.com:session_id=9A5CCE02E95E4964EC252051E83EC8BD:ip_addr=139.228.243.15:view_bitstream:bitstream_id=21

        Attachments

          Activity

            People

            • Assignee:
              peterdietz Peter Dietz
              Reporter:
              helix84 Ivan Masár
            • Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: