You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@lucene.apache.org by Uzair Kamal <uz...@iacgrp.com> on 2013/06/11 09:31:03 UTC

Re: [---SPAM---] RE: Lucene Index Upgradation

Your previous email was quiet helpful and i followed the same way and it works.. but at the end now i am getting another strange exception i.e 

java.lang.NoClassDefFoundError: org/apache/lucene/util/PriorityQueue
	at com.abc.xyz.wikitology.WikitologyPrediction.init_MoreLikeThis(WikitologyPrediction.java:105)

Can you please help.

Thanks



----- Original Message -----
From: "Uwe Schindler" <uw...@thetaphi.de>
To: java-user@lucene.apache.org
Sent: Tuesday, June 11, 2013 11:28:01 AM
Subject: [---SPAM---] RE: Lucene Index Upgradation

Hi,

This is not a Lucene problem or a problem with the index. It looks like one of those:
a) You have some outdated Lucene JAR files somewhere in your classpath (e.g. JAR file from Lucene 2.4 mixed with those of Lucene 3.4) in the classpath. You should clean up your compilation and runtime classpath and only list *one* version of Lucene JARs and really no duplicate JARs from different versions
b) The error does only happen in your own class, not in Lucene's code. The Java verifier cannot check the method types because the types mismatch. This can happen, if the classloader that loads Lucene is a different one that the one loading your classes. I have no idea what application server you are using, but nmake sure that Lucene and your application classes are next to each other in the WEB-INF/lib folder (if this is a web application).

Uwe

-----
Uwe Schindler
H.-H.-Meier-Allee 63, D-28213 Bremen
http://www.thetaphi.de
eMail: uwe@thetaphi.de


> -----Original Message-----
> From: Uzair Kamal [mailto:uzair.kamal@iacgrp.com]
> Sent: Tuesday, June 11, 2013 8:03 AM
> To: java-user@lucene.apache.org
> Subject: Lucene Index Upgradation
> 
> Hi
>   I had an index of precious files with Lucene 2.4, i wanted to switch to lucene
> 4.3 as Lucene 2.4 index is giving an exception of illegal arguments on function
> moreLikeThis. I upgrade that index to 3.5 but still getting the same exception.
> Can any please help. Following is the stack trace of the exception
> 
> SEVERE: The exception contained within MappableContainerException could
> not be mapped to a response, re-throwing to the HTTP container
> java.lang.VerifyError: (class:
> com/intuira/discovery/wikitology/WikitologyPrediction, method:
> init_MoreLikeThis signature:
> ()Lorg/apache/lucene/search/similar/MoreLikeThis;)
> 
> Thanks
> 
> Uzair Kamal
> IntuiRA-iApps
> Team Lead (Java)
> voip: 5754
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org
> For additional commands, e-mail: java-user-help@lucene.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-user-help@lucene.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-user-help@lucene.apache.org


Re: [---SPAM---] Re: [---SPAM---] RE: Lucene Index Upgradation

Posted by Uzair Kamal <uz...@iacgrp.com>.
Okay thanks i resolved that by further removing some unwanted jars. 



Thanks

Uzair Kamal

----- Original Message -----
From: "Uzair Kamal" <uz...@iacgrp.com>
To: java-user@lucene.apache.org
Sent: Tuesday, June 11, 2013 12:31:03 PM
Subject: [---SPAM---] Re: [---SPAM---] RE: Lucene Index Upgradation

Your previous email was quiet helpful and i followed the same way and it works.. but at the end now i am getting another strange exception i.e 

java.lang.NoClassDefFoundError: org/apache/lucene/util/PriorityQueue
	at com.abc.xyz.wikitology.WikitologyPrediction.init_MoreLikeThis(WikitologyPrediction.java:105)

Can you please help.

Thanks



----- Original Message -----
From: "Uwe Schindler" <uw...@thetaphi.de>
To: java-user@lucene.apache.org
Sent: Tuesday, June 11, 2013 11:28:01 AM
Subject: [---SPAM---] RE: Lucene Index Upgradation

Hi,

This is not a Lucene problem or a problem with the index. It looks like one of those:
a) You have some outdated Lucene JAR files somewhere in your classpath (e.g. JAR file from Lucene 2.4 mixed with those of Lucene 3.4) in the classpath. You should clean up your compilation and runtime classpath and only list *one* version of Lucene JARs and really no duplicate JARs from different versions
b) The error does only happen in your own class, not in Lucene's code. The Java verifier cannot check the method types because the types mismatch. This can happen, if the classloader that loads Lucene is a different one that the one loading your classes. I have no idea what application server you are using, but nmake sure that Lucene and your application classes are next to each other in the WEB-INF/lib folder (if this is a web application).

Uwe

-----
Uwe Schindler
H.-H.-Meier-Allee 63, D-28213 Bremen
http://www.thetaphi.de
eMail: uwe@thetaphi.de


> -----Original Message-----
> From: Uzair Kamal [mailto:uzair.kamal@iacgrp.com]
> Sent: Tuesday, June 11, 2013 8:03 AM
> To: java-user@lucene.apache.org
> Subject: Lucene Index Upgradation
> 
> Hi
>   I had an index of precious files with Lucene 2.4, i wanted to switch to lucene
> 4.3 as Lucene 2.4 index is giving an exception of illegal arguments on function
> moreLikeThis. I upgrade that index to 3.5 but still getting the same exception.
> Can any please help. Following is the stack trace of the exception
> 
> SEVERE: The exception contained within MappableContainerException could
> not be mapped to a response, re-throwing to the HTTP container
> java.lang.VerifyError: (class:
> com/intuira/discovery/wikitology/WikitologyPrediction, method:
> init_MoreLikeThis signature:
> ()Lorg/apache/lucene/search/similar/MoreLikeThis;)
> 
> Thanks
> 
> Uzair Kamal
> IntuiRA-iApps
> Team Lead (Java)
> voip: 5754
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org
> For additional commands, e-mail: java-user-help@lucene.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-user-help@lucene.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-user-help@lucene.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-user-help@lucene.apache.org