unable start elasticsearch 0.20.3 - java.lang.VerifyError: class org.apache.lucene.analysis.ReusableAnalyzerBase

classic Classic list List threaded Threaded
8 messages Options
Reply | Threaded
Open this post in threaded view
|

unable start elasticsearch 0.20.3 - java.lang.VerifyError: class org.apache.lucene.analysis.ReusableAnalyzerBase

Artur Konczak
I'm getting this error on start of elasticsearch as a daemon(installed from deb package).

It seems that the problem is only with that version, I can run 0.20.1 without any problems.

My configuration:
OS: Xubuntu 64bit 
JAVA: jdk1.6.0_38 (64bit), I can reproduce the same issue using also java-7-openjdk-amd64.

Please help.

Sorry about stacktrace in the post, but I can't attach any files to it.


Stacktrace:

[2013-01-26 15:18:16,569][INFO ][node                     ] [Zero-G] {0.20.3}[2671]: initializing ...
[2013-01-26 15:18:16,569][DEBUG][node                     ] [Zero-G] using home [/usr/share/elasticsearch], config [/etc/elasticsearch], data [[/var/lib/elasticsearch]], logs [/var/log/elasticsearch], work [/tmp/elasticsearch], plugins [/usr/share/elasticsearch/plugins]
[2013-01-26 15:18:16,573][INFO ][plugins                  ] [Zero-G] loaded [], sites []
[2013-01-26 15:18:16,580][DEBUG][common.compress.lzf      ] using [UnsafeChunkDecoder] decoder
[2013-01-26 15:18:16,770][DEBUG][env                      ] [Zero-G] using node location [[/var/lib/elasticsearch/elasticsearch/nodes/0]], local_node_id [0]
[2013-01-26 15:18:17,217][DEBUG][bootstrap                ] Exception
org.elasticsearch.common.collect.ComputationException: java.lang.VerifyError: class org.apache.lucene.analysis.ReusableAnalyzerBase overrides final method tokenStream.(Ljava/lang/String;Ljava/io/Reader;)Lorg/apache/lucene/analysis/TokenStream;
at org.elasticsearch.common.collect.ComputingConcurrentHashMap$ComputingMapAdapter.get(ComputingConcurrentHashMap.java:400)
at org.elasticsearch.common.inject.internal.FailableCache.get(FailableCache.java:49)
at org.elasticsearch.common.inject.ConstructorInjectorStore.get(ConstructorInjectorStore.java:50)
at org.elasticsearch.common.inject.ConstructorBindingImpl.initialize(ConstructorBindingImpl.java:50)
at org.elasticsearch.common.inject.InjectorImpl.initializeBinding(InjectorImpl.java:370)
at org.elasticsearch.common.inject.BindingProcessor$1$1.run(BindingProcessor.java:148)
at org.elasticsearch.common.inject.BindingProcessor.initializeBindings(BindingProcessor.java:204)
at org.elasticsearch.common.inject.InjectorBuilder.initializeStatically(InjectorBuilder.java:119)
at org.elasticsearch.common.inject.InjectorBuilder.build(InjectorBuilder.java:102)
at org.elasticsearch.common.inject.Guice.createInjector(Guice.java:93)
at org.elasticsearch.common.inject.Guice.createInjector(Guice.java:70)
at org.elasticsearch.common.inject.ModulesBuilder.createInjector(ModulesBuilder.java:59)
at org.elasticsearch.node.internal.InternalNode.<init>(InternalNode.java:167)
at org.elasticsearch.node.NodeBuilder.build(NodeBuilder.java:159)
at org.elasticsearch.bootstrap.Bootstrap.setup(Bootstrap.java:67)
at org.elasticsearch.bootstrap.Bootstrap.main(Bootstrap.java:200)
at org.elasticsearch.bootstrap.ElasticSearch.main(ElasticSearch.java:32)
Caused by: java.lang.VerifyError: class org.apache.lucene.analysis.ReusableAnalyzerBase overrides final method tokenStream.(Ljava/lang/String;Ljava/io/Reader;)Lorg/apache/lucene/analysis/TokenStream;
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:787)
at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142)
at java.net.URLClassLoader.defineClass(URLClassLoader.java:447)
at java.net.URLClassLoader.access$100(URLClassLoader.java:71)
at java.net.URLClassLoader$1.run(URLClassLoader.java:361)
at java.net.URLClassLoader$1.run(URLClassLoader.java:355)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:354)
at java.lang.ClassLoader.loadClass(ClassLoader.java:423)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308)
at java.lang.ClassLoader.loadClass(ClassLoader.java:356)
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:787)
at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142)
at java.net.URLClassLoader.defineClass(URLClassLoader.java:447)
at java.net.URLClassLoader.access$100(URLClassLoader.java:71)
at java.net.URLClassLoader$1.run(URLClassLoader.java:361)
at java.net.URLClassLoader$1.run(URLClassLoader.java:355)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:354)
at java.lang.ClassLoader.loadClass(ClassLoader.java:423)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308)
at java.lang.ClassLoader.loadClass(ClassLoader.java:356)
at java.lang.Class.getDeclaredConstructors0(Native Method)
at java.lang.Class.privateGetDeclaredConstructors(Class.java:2404)
at java.lang.Class.getDeclaredConstructors(Class.java:1853)
at org.elasticsearch.common.inject.spi.InjectionPoint.forConstructorOf(InjectionPoint.java:177)
at org.elasticsearch.common.inject.ConstructorInjectorStore.createConstructor(ConstructorInjectorStore.java:59)
at org.elasticsearch.common.inject.ConstructorInjectorStore.access$000(ConstructorInjectorStore.java:29)




--
 
 
Reply | Threaded
Open this post in threaded view
|

Re: unable start elasticsearch 0.20.3 - java.lang.VerifyError: class org.apache.lucene.analysis.ReusableAnalyzerBase

joergprante@gmail.com
Hi,

you have a Lucene 4 analyzer jar in your classpath, but 0.20.2 is based
on Lucene 3.6.2

Jörg

Am 26.01.13 17:45, schrieb Artur Konczak:
> Caused by: java.lang.VerifyError: class
> org.apache.lucene.analysis.ReusableAnalyzerBase overrides final method
> tokenStream.(Ljava/lang/String;Ljava/io/Reader;)Lorg/apache/lucene/analysis/TokenStream;

Reply | Threaded
Open this post in threaded view
|

Re: unable start elasticsearch 0.20.3 - java.lang.VerifyError: class org.apache.lucene.analysis.ReusableAnalyzerBase

Artur Konczak
Thanks for your help. You are right.

The original deb package (0.20.3) from elasticsearch page is shipped with libs for lucene 3.6.2 and 4.0.0

-rw-r--r-- 1 konc01 ordev 10355770 Jan 25 20:53 elasticsearch-0.20.3.jar
-rw-r--r-- 1 konc01 ordev   865400 Jan 25 20:53 jna-3.3.0.jar
-rw-r--r-- 1 konc01 ordev   770462 Jan 25 20:53 jts-1.12.jar
-rw-r--r-- 1 konc01 ordev        0 Jan 28 09:56 list.txt
-rw-r--r-- 1 konc01 ordev   489884 Jan 25 20:53 log4j-1.2.17.jar
-rw-r--r-- 1 konc01 ordev  1173785 Jan 25 20:53 lucene-analyzers-3.6.2.jar
-rw-r--r-- 1 konc01 ordev  1527069 Jan 25 20:53 lucene-analyzers-common-4.0.0.jar
-rw-r--r-- 1 konc01 ordev   314072 Jan 25 20:53 lucene-codecs-4.0.0.jar
-rw-r--r-- 1 konc01 ordev  1539086 Jan 25 20:53 lucene-core-3.6.2.jar
-rw-r--r-- 1 konc01 ordev  2038850 Jan 25 20:53 lucene-core-4.0.0.jar
-rw-r--r-- 1 konc01 ordev    89171 Jan 25 20:53 lucene-highlighter-3.6.2.jar
-rw-r--r-- 1 konc01 ordev    99553 Jan 25 20:53 lucene-highlighter-4.0.0.jar
-rw-r--r-- 1 konc01 ordev    29814 Jan 25 20:53 lucene-memory-3.6.2.jar
-rw-r--r-- 1 konc01 ordev    37148 Jan 25 20:53 lucene-memory-4.0.0.jar
-rw-r--r-- 1 konc01 ordev    47407 Jan 25 20:53 lucene-queries-3.6.2.jar
-rw-r--r-- 1 konc01 ordev   194653 Jan 25 20:53 lucene-queries-4.0.0.jar
-rw-r--r-- 1 konc01 ordev   384953 Jan 25 20:53 lucene-queryparser-4.0.0.jar
-rw-r--r-- 1 konc01 ordev    45448 Jan 25 20:53 lucene-sandbox-4.0.0.jar
drwxr-xr-x 2 konc01 ordev     4096 Jan 25 20:53 sigar
-rw-r--r-- 1 konc01 ordev   995968 Jan 25 20:53 snappy-java-1.0.4.1.jar
-rw-r--r-- 1 konc01 ordev    69290 Jan 25 20:53 spatial4j-0.3.jar
 

--
 
 
Reply | Threaded
Open this post in threaded view
|

Re: unable start elasticsearch 0.20.3 - java.lang.VerifyError: class org.apache.lucene.analysis.ReusableAnalyzerBase

kimchy
Administrator
We will fix that, seems like a mistake…

On Jan 28, 2013, at 11:01 AM, Artur Konczak <[hidden email]> wrote:

> Thanks for your help. You are right.
>
> The original deb package (0.20.3) from elasticsearch page is shipped with libs for lucene 3.6.2 and 4.0.0
>
> -rw-r--r-- 1 konc01 ordev 10355770 Jan 25 20:53 elasticsearch-0.20.3.jar
> -rw-r--r-- 1 konc01 ordev   865400 Jan 25 20:53 jna-3.3.0.jar
> -rw-r--r-- 1 konc01 ordev   770462 Jan 25 20:53 jts-1.12.jar
> -rw-r--r-- 1 konc01 ordev        0 Jan 28 09:56 list.txt
> -rw-r--r-- 1 konc01 ordev   489884 Jan 25 20:53 log4j-1.2.17.jar
> -rw-r--r-- 1 konc01 ordev  1173785 Jan 25 20:53 lucene-analyzers-3.6.2.jar
> -rw-r--r-- 1 konc01 ordev  1527069 Jan 25 20:53 lucene-analyzers-common-4.0.0.jar
> -rw-r--r-- 1 konc01 ordev   314072 Jan 25 20:53 lucene-codecs-4.0.0.jar
> -rw-r--r-- 1 konc01 ordev  1539086 Jan 25 20:53 lucene-core-3.6.2.jar
> -rw-r--r-- 1 konc01 ordev  2038850 Jan 25 20:53 lucene-core-4.0.0.jar
> -rw-r--r-- 1 konc01 ordev    89171 Jan 25 20:53 lucene-highlighter-3.6.2.jar
> -rw-r--r-- 1 konc01 ordev    99553 Jan 25 20:53 lucene-highlighter-4.0.0.jar
> -rw-r--r-- 1 konc01 ordev    29814 Jan 25 20:53 lucene-memory-3.6.2.jar
> -rw-r--r-- 1 konc01 ordev    37148 Jan 25 20:53 lucene-memory-4.0.0.jar
> -rw-r--r-- 1 konc01 ordev    47407 Jan 25 20:53 lucene-queries-3.6.2.jar
> -rw-r--r-- 1 konc01 ordev   194653 Jan 25 20:53 lucene-queries-4.0.0.jar
> -rw-r--r-- 1 konc01 ordev   384953 Jan 25 20:53 lucene-queryparser-4.0.0.jar
> -rw-r--r-- 1 konc01 ordev    45448 Jan 25 20:53 lucene-sandbox-4.0.0.jar
> drwxr-xr-x 2 konc01 ordev     4096 Jan 25 20:53 sigar
> -rw-r--r-- 1 konc01 ordev   995968 Jan 25 20:53 snappy-java-1.0.4.1.jar
> -rw-r--r-- 1 konc01 ordev    69290 Jan 25 20:53 spatial4j-0.3.jar
>  
>
> --
>  
>  

--


Reply | Threaded
Open this post in threaded view
|

Re: unable start elasticsearch 0.20.3 - java.lang.VerifyError: class org.apache.lucene.analysis.ReusableAnalyzerBase

Artur Konczak
thx for a fast reply

--
 
 
Reply | Threaded
Open this post in threaded view
|

Re: unable start elasticsearch 0.20.3 - java.lang.VerifyError: class org.apache.lucene.analysis.ReusableAnalyzerBase

kimchy
Administrator
Sure, expect a 0.20.4 with a fixed deb today…

On Jan 28, 2013, at 11:12 AM, Artur Konczak <[hidden email]> wrote:

> thx for a fast reply
>
> --
>  
>  

--


Reply | Threaded
Open this post in threaded view
|

Re: unable start elasticsearch 0.20.3 - java.lang.VerifyError: class org.apache.lucene.analysis.ReusableAnalyzerBase

smhdiu
In reply to this post by Artur Konczak

Good to know, was wondering to upgrade today !

Thanks 
Mohsin

On Saturday, 26 January 2013 16:45:23 UTC, Artur Konczak wrote:
I'm getting this error on start of elasticsearch as a daemon(installed from deb package).

It seems that the problem is only with that version, I can run 0.20.1 without any problems.

My configuration:
OS: Xubuntu 64bit 
JAVA: jdk1.6.0_38 (64bit), I can reproduce the same issue using also java-7-openjdk-amd64.

Please help.

Sorry about stacktrace in the post, but I can't attach any files to it.


Stacktrace:

[2013-01-26 15:18:16,569][INFO ][node                     ] [Zero-G] {0.20.3}[2671]: initializing ...
[2013-01-26 15:18:16,569][DEBUG][node                     ] [Zero-G] using home [/usr/share/elasticsearch], config [/etc/elasticsearch], data [[/var/lib/elasticsearch]], logs [/var/log/elasticsearch], work [/tmp/elasticsearch], plugins [/usr/share/elasticsearch/plugins]
[2013-01-26 15:18:16,573][INFO ][plugins                  ] [Zero-G] loaded [], sites []
[2013-01-26 15:18:16,580][DEBUG][common.compress.lzf      ] using [UnsafeChunkDecoder] decoder
[2013-01-26 15:18:16,770][DEBUG][env                      ] [Zero-G] using node location [[/var/lib/elasticsearch/elasticsearch/nodes/0]], local_node_id [0]
[2013-01-26 15:18:17,217][DEBUG][bootstrap                ] Exception
org.elasticsearch.common.collect.ComputationException: java.lang.VerifyError: class org.apache.lucene.analysis.ReusableAnalyzerBase overrides final method tokenStream.(Ljava/lang/String;Ljava/io/Reader;)Lorg/apache/lucene/analysis/TokenStream;
at org.elasticsearch.common.collect.ComputingConcurrentHashMap$ComputingMapAdapter.get(ComputingConcurrentHashMap.java:400)
at org.elasticsearch.common.inject.internal.FailableCache.get(FailableCache.java:49)
at org.elasticsearch.common.inject.ConstructorInjectorStore.get(ConstructorInjectorStore.java:50)
at org.elasticsearch.common.inject.ConstructorBindingImpl.initialize(ConstructorBindingImpl.java:50)
at org.elasticsearch.common.inject.InjectorImpl.initializeBinding(InjectorImpl.java:370)
at org.elasticsearch.common.inject.BindingProcessor$1$1.run(BindingProcessor.java:148)
at org.elasticsearch.common.inject.BindingProcessor.initializeBindings(BindingProcessor.java:204)
at org.elasticsearch.common.inject.InjectorBuilder.initializeStatically(InjectorBuilder.java:119)
at org.elasticsearch.common.inject.InjectorBuilder.build(InjectorBuilder.java:102)
at org.elasticsearch.common.inject.Guice.createInjector(Guice.java:93)
at org.elasticsearch.common.inject.Guice.createInjector(Guice.java:70)
at org.elasticsearch.common.inject.ModulesBuilder.createInjector(ModulesBuilder.java:59)
at org.elasticsearch.node.internal.InternalNode.<init>(InternalNode.java:167)
at org.elasticsearch.node.NodeBuilder.build(NodeBuilder.java:159)
at org.elasticsearch.bootstrap.Bootstrap.setup(Bootstrap.java:67)
at org.elasticsearch.bootstrap.Bootstrap.main(Bootstrap.java:200)
at org.elasticsearch.bootstrap.ElasticSearch.main(ElasticSearch.java:32)
Caused by: java.lang.VerifyError: class org.apache.lucene.analysis.ReusableAnalyzerBase overrides final method tokenStream.(Ljava/lang/String;Ljava/io/Reader;)Lorg/apache/lucene/analysis/TokenStream;
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:787)
at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142)
at java.net.URLClassLoader.defineClass(URLClassLoader.java:447)
at java.net.URLClassLoader.access$100(URLClassLoader.java:71)
at java.net.URLClassLoader$1.run(URLClassLoader.java:361)
at java.net.URLClassLoader$1.run(URLClassLoader.java:355)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:354)
at java.lang.ClassLoader.loadClass(ClassLoader.java:423)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308)
at java.lang.ClassLoader.loadClass(ClassLoader.java:356)
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:787)
at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142)
at java.net.URLClassLoader.defineClass(URLClassLoader.java:447)
at java.net.URLClassLoader.access$100(URLClassLoader.java:71)
at java.net.URLClassLoader$1.run(URLClassLoader.java:361)
at java.net.URLClassLoader$1.run(URLClassLoader.java:355)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:354)
at java.lang.ClassLoader.loadClass(ClassLoader.java:423)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308)
at java.lang.ClassLoader.loadClass(ClassLoader.java:356)
at java.lang.Class.getDeclaredConstructors0(Native Method)
at java.lang.Class.privateGetDeclaredConstructors(Class.java:2404)
at java.lang.Class.getDeclaredConstructors(Class.java:1853)
at org.elasticsearch.common.inject.spi.InjectionPoint.forConstructorOf(InjectionPoint.java:177)
at org.elasticsearch.common.inject.ConstructorInjectorStore.createConstructor(ConstructorInjectorStore.java:59)
at org.elasticsearch.common.inject.ConstructorInjectorStore.access$000(ConstructorInjectorStore.java:29)




--
 
 
Reply | Threaded
Open this post in threaded view
|

Re: unable start elasticsearch 0.20.3 - java.lang.VerifyError: class org.apache.lucene.analysis.ReusableAnalyzerBase

mohammad
Hello everyone,
i am somewhat getting a similar problem like described above but am not sure:
here is the following error :

java.lang.OutOfMemoryError: unable to create new native thread at org.elasticsearch.threadpool.ThreadPool.
< init > (Unknown Source) while locating org.elasticsearch.threadpool.
ThreadPool Caused by: java.lang.OutOfMemoryError: unable to create new native thread at java.lang.Thread.start0(Native Method) at
java.lang.Thread.start(Unknown Source) at org.elasticsearch.threadpool.ThreadPool. < init > (ThreadPool.java: 132) at sun.reflect.
GeneratedConstructorAccessor106.newInstance(Unknown Source) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source) at java.lang.
reflect.Constructor.newInstance(Unknown Source)
at org.elasticsearch.common.inject.DefaultConstructionProxyFactory$1.newInstance(DefaultConstructionProxyFactory.java: 54)
at org.elasticsearch.common.inject.ConstructorInjector.construct(ConstructorInjector.java: 86) at
 org.elasticsearch.common.inject.ConstructorBindingImpl$Factory.get(ConstructorBindingImpl.java: 98) at
 org.elasticsearch.common.inject.ProviderToInternalFactoryAdapter$1.call(ProviderToInternalFactoryAdapter.java: 45) at
 org.elasticsearch.common.inject.InjectorImpl.callInContext(InjectorImpl.java: 819) at
 org.elasticsearch.common.inject.ProviderToInternalFactoryAdapter.get(ProviderToInternalFactoryAdapter.java: 42) at
 org.elasticsearch.common.inject.Scopes$1$1.get(Scopes.java: 56) at
 org.elasticsearch.common.inject.InternalFactoryToProviderAdapter.get(InternalFactoryToProviderAdapter.java: 45) at
 org.elasticsearch.common.inject.InjectorBuilder$1.call(InjectorBuilder.java: 200) at
 org.elasticsearch.common.inject.InjectorBuilder$1.call(InjectorBuilder.java: 193) at
 org.elasticsearch.common.inject.InjectorImpl.callInContext(InjectorImpl.java: 812) at
 org.elasticsearch.common.inject.InjectorBuilder.loadEagerSingletons(InjectorBuilder.java: 193) at
 org.elasticsearch.common.inject.InjectorBuilder.injectDynamically(InjectorBuilder.java: 175) at
 org.elasticsearch.common.inject.InjectorBuilder.build(InjectorBuilder.java: 110) at
 org.elasticsearch.common.inject.Guice.createInjector(Guice.java: 93) at org.elasticsearch.common.inject.Guice.createInjector(Guice.java: 70) at
 org.elasticsearch.common.inject.ModulesBuilder.createInjector(ModulesBuilder.java: 59) at
 org.elasticsearch.client.transport.TransportClient. < init > (TransportClient.java: 177) at
 org.elasticsearch.client.transport.TransportClient. < init > (TransportClient.java: 119) at.....

Sorry about not adding further lines:
I am using the current jars (see attached files :elsticSearchFiles.png)

Question :
Am i getting the errrors due to the jars.?Are the jars used correct?
If not, can anyone help me on this matter if the jars have to be changed

Thanks in advance

--
You received this message because you are subscribed to the Google Groups "elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/2345916c-1602-4280-b53b-40b73e636d19%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

elsticSearchFiles.png (24K) Download Attachment