java.lang.IllegalAccessError: tried to access method org.apache.lucene.store.RAMFile.__tc_getlength()J from class org.apache.lucene.store.RAMOutputStream

Terracotta | fuzy | 9 years ago
tip
Click on the to mark the solution that helps you, Samebug will learn from it.
As a community member, you’ll be rewarded for you help.
  1. 0

    Re:Lucene IllegalAccessError creating IndexWriter

    Terracotta | 9 years ago | fuzy
    java.lang.IllegalAccessError: tried to access method org.apache.lucene.store.RAMFile.__tc_getlength()J from class org.apache.lucene.store.RAMOutputStream

    Root Cause Analysis

    1. java.lang.IllegalAccessError

      tried to access method org.apache.lucene.store.RAMFile.__tc_getlength()J from class org.apache.lucene.store.RAMOutputStream

      at org.apache.lucene.store.RAMOutputStream.setFileLength()
    2. Lucene
      IndexWriter.addDocument
      1. org.apache.lucene.store.RAMOutputStream.setFileLength(RAMOutputStream.java:139)
      2. org.apache.lucene.store.RAMOutputStream.flush(RAMOutputStream.java:146)
      3. org.apache.lucene.store.RAMOutputStream.close(RAMOutputStream.java:83)
      4. org.apache.lucene.index.FieldInfos.write(FieldInfos.java:285)
      5. org.apache.lucene.index.DocumentWriter.addDocument(DocumentWriter.java:101)
      6. org.apache.lucene.index.IndexWriter.buildSingleDocSegment(IndexWriter.java:1013)
      7. org.apache.lucene.index.IndexWriter.addDocument(IndexWriter.java:1001)
      8. org.apache.lucene.index.IndexWriter.addDocument(IndexWriter.java:983)
      8 frames
    3. Hibernate Search Engine
      PostTransactionWorkQueueSynchronization.afterCompletion
      1. org.hibernate.search.backend.impl.lucene.LuceneWorker.add(LuceneWorker.java:70)
      2. org.hibernate.search.backend.impl.lucene.LuceneWorker.performWork(LuceneWorker.java:62)
      3. org.hibernate.search.backend.impl.lucene.LuceneWorker.performWork(LuceneWorker.java:43)
      4. org.hibernate.search.backend.impl.lucene.LuceneBackendQueueProcessor.run(LuceneBackendQueueProcessor.java:98)
      5. org.hibernate.search.backend.impl.BatchedQueueingProcessor.performWorks(BatchedQueueingProcessor.java:132)
      6. org.hibernate.search.backend.impl.PostTransactionWorkQueueSynchronization.afterCompletion(PostTransactionWorkQueueSynchronization.java:50)
      6 frames
    4. Hibernate
      JDBCTransaction.commit
      1. org.hibernate.transaction.JDBCTransaction.notifyLocalSynchsAfterTransactionCompletion(JDBCTransaction.java:243)
      2. org.hibernate.transaction.JDBCTransaction.commit(JDBCTransaction.java:121)
      2 frames