[Xapian-tickets] [Xapian] #616: Exception in thread "main" java.lang.IllegalArgumentException: No enum class org.xapian.TermGenerator$flags with value 0

Xapian nobody at xapian.org
Fri Mar 1 07:41:34 GMT 2013


#616: Exception in thread "main" java.lang.IllegalArgumentException: No enum
class org.xapian.TermGenerator$flags with value 0
------------------------------------+---------------------------------------
 Reporter:  Naveen                  |       Owner:     
     Type:  defect                  |      Status:  new
 Priority:  normal                  |   Milestone:     
Component:  Xapian-bindings (Java)  |     Version:     
 Severity:  critical                |    Keywords:     
Blockedby:                          |    Platform:  All
 Blocking:                          |  
------------------------------------+---------------------------------------
 While using the FLAG_SPELLING flag from the java binding.
 This is the code i tried to use it.


 {{{
 TermGenerator termGenerator = new TermGenerator();
 termGenerator.setDatabase(db);
 termGenerator.setFlags(TermGenerator.flags.FLAG_SPELLING);
 }}}


 I get the below exception.


 {{{
 Exception in thread "main" java.lang.IllegalArgumentException: No enum
 class org.xapian.TermGenerator$flags with value 0
         at
 org.xapian.TermGenerator$flags.swigToEnum(TermGenerator.java:146)
         at org.xapian.TermGenerator.setFlags(TermGenerator.java:73)
         at
 com.searchlab.test.IndexDocument.addField(IndexDocument.java:40)
         at
 com.searchlab.test.IndexDocument.addFields(IndexDocument.java:63)
         at com.searchlab.test.Main.main(Main.java:25)

 }}}

-- 
Ticket URL: <http://trac.xapian.org/ticket/616>
Xapian <http://xapian.org/>
Xapian



More information about the Xapian-tickets mailing list