4 Replies Latest reply on Jan 5, 2007 6:26 PM by Norman Richards

    Application scoped component throws Serialization Exception

    flo thomas Newbie

      in my web application, I use some Application Scoped components that interact with other non-Seam components (i.e. Lucene) - since initializing components that are required takes a lot of time, I decided to use this approach. Now, I in the A-Scoped comp. I have a reference to some non-serializable components - which gives me problems if the application runs for some time (not initially after deployment but after some half hour or so). I get:

      org.jboss.serial.exception.SerializationException: Could not create instance of org.apache.lucene.index.IndexWriter - org.apache.lucene.index.IndexWriter

      I reckon it's related because I have:

      public class Processing implements ProcessingIf, Serializable{
      private LuceneIndexer indexer;
      public class LuceneIndexer {
      private String noEntries;
      private IndexWriter iw;
      public LuceneIndexer() { /* some initialization of iw */}
      public void indexEntry(String entry) { ... }

      Do you know what I could do in order to make sure that the IndexWriter doesn't get Serialized - since this seems to be the problem...