[jira] [Created] (PYLUCENE-32) pylucene CharArraySet jvm error

2014-10-16 Thread Alex (JIRA)
Alex created PYLUCENE-32:


 Summary: pylucene CharArraySet jvm error
 Key: PYLUCENE-32
 URL: https://issues.apache.org/jira/browse/PYLUCENE-32
 Project: PyLucene
  Issue Type: Question
 Environment: 

I added a customized lucene analyzer class to lucene core in Pylucene. This 
class is google guava as a dependency because of the array handling function 
available in com.google.common.collect.Iterables in guava. When I tried to 
index using this analyzer, I got the following error: Traceback (most recent 
call last): File C:\IndexFiles.py, line 78, in lucene.initVM() JavaError: 
java.lang.NoClassDefFoundError: org/apache/lucene/analysis/CharArraySet Java 
stacktrace: java.lang.NoClassDefFoundError: 
org/apache/lucene/analysis/CharArraySet Caused by: 
java.lang.ClassNotFoundException: org.apache.lucene.analysis.CharArraySet at 
java.net.URLClassLoader$1.run(URLClassLoader.java:366) 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:425) at 
sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308) at 
java.lang.ClassLoader.loadClass(ClassLoader.java:358)

Even the example indexing code in Lucene in Action that I tried earlier and 
worked, when I retried it after adding this class is returning the same error 
above. Am not too familiar with CharArraySet class as I can see the problem is 
from it. How do i handle this? Thanks

Reporter: Alex






--
This message was sent by Atlassian JIRA
(v6.3.4#6332)


Re: [jira] [Created] (PYLUCENE-32) pylucene CharArraySet jvm error

2014-10-16 Thread Andi Vajda


I added a customized lucene analyzer class to lucene core in Pylucene. 
This class is google guava as a dependency because of the array handling 
function available in com.google.common.collect.Iterables in guava. When I 
tried to index using this analyzer, I got the following error: Traceback 
(most recent call last): File C:\IndexFiles.py, line 78, in 
lucene.initVM() JavaError: java.lang.NoClassDefFoundError: 
org/apache/lucene/analysis/CharArraySet Java stacktrace: 
java.lang.NoClassDefFoundError: org/apache/lucene/analysis/CharArraySet 
Caused by: java.lang.ClassNotFoundException: 
org.apache.lucene.analysis.CharArraySet at 
java.net.URLClassLoader$1.run(URLClassLoader.java:366) 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:425) at 
sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308) at 
java.lang.ClassLoader.loadClass(ClassLoader.java:358)


There is no class org/apache/lucene/analysis/CharArraySet in the current 
version of Lucene Core (4.10.1) but there is a CharArraySet class in the

util package of the analysis package:
  org/apache/lucene/analysis/util/CharArraySet

You are probably mixing versions of Lucene Core and your own that are not 
compatible.


Andi..


[jira] [Commented] (PYLUCENE-32) pylucene CharArraySet jvm error

2014-10-16 Thread Andi Vajda (JIRA)

[ 
https://issues.apache.org/jira/browse/PYLUCENE-32?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=14174698#comment-14174698
 ] 

Andi Vajda commented on PYLUCENE-32:


There is no class org/apache/lucene/analysis/CharArraySet in the current
version of Lucene Core (4.10.1) but there is a CharArraySet class in the
util package of the analysis package:   
  org/apache/lucene/analysis/util/CharArraySet  

You are probably mixing versions of Lucene Core and your own that are not   
compatible.

 pylucene CharArraySet jvm error
 ---

 Key: PYLUCENE-32
 URL: https://issues.apache.org/jira/browse/PYLUCENE-32
 Project: PyLucene
  Issue Type: Question
 Environment: I added a customized lucene analyzer class to lucene 
 core in Pylucene. This class is google guava as a dependency because of the 
 array handling function available in com.google.common.collect.Iterables in 
 guava. When I tried to index using this analyzer, I got the following error: 
 Traceback (most recent call last): File C:\IndexFiles.py, line 78, in 
 lucene.initVM() JavaError: java.lang.NoClassDefFoundError: 
 org/apache/lucene/analysis/CharArraySet Java stacktrace: 
 java.lang.NoClassDefFoundError: org/apache/lucene/analysis/CharArraySet 
 Caused by: java.lang.ClassNotFoundException: 
 org.apache.lucene.analysis.CharArraySet at 
 java.net.URLClassLoader$1.run(URLClassLoader.java:366) 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:425) at 
 sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308) at 
 java.lang.ClassLoader.loadClass(ClassLoader.java:358)
 Even the example indexing code in Lucene in Action that I tried earlier and 
 worked, when I retried it after adding this class is returning the same error 
 above. Am not too familiar with CharArraySet class as I can see the problem 
 is from it. How do i handle this? Thanks
Reporter: Alex





--
This message was sent by Atlassian JIRA
(v6.3.4#6332)