I have the similar problem on the slave side. My configuration file on the slave side is as follow:
Code:
<!-- This is for JMS indexing -->
<property name="hibernate.search.default.sourceBase" value="c:/temp/lucene/mastercopy" />
<property name="hibernate.search.default.indexBase" value="c:/temp/lucene/prod2" />
<property name="hibernate.search.default.refresh" value="300" />
<property name="hibernate.search.default.directory_provider" value="org.hibernate.search.store.FSSlaveDirectoryProvider" />
<property name="hibernate.search.worker.backend" value="jms" />
<property name="hibernate.search.worker.jms.connection_factory" value="java:/ConnectionFactory" />
<property name="hibernate.search.worker.jms.queue" value="queue/HibernateSearch" />
<property name="hibernate.search.worker.jndi.url" value="jnp://localhost:1099" />
<property name="hibernate.search.worker.execution" value="async" />
<property name="hibernate.search.worker.thread_pool.size" value="2" />
<property name="hibernate.search.worker.buffer_queue.max" value="50" />
<property name="hibernate.search.indexing_strategy" value="manual" />
I assume the Create, Update, & Delete operations on the slave side with JPA/Entity Manager will register index creation to the master via JMS.
But running the slave part with J2SE triggers the exception.
Code:
Caused by: java.lang.IllegalStateException: No current marker in source directory
at org.hibernate.search.store.FSSlaveDirectoryProvider.initialize(FSSlaveDirectoryProvider.java:56)
at org.hibernate.search.store.DirectoryProviderFactory.createDirectoryProvider(DirectoryProviderFactory.java:144)
... 17 more
Could you please tell me what is wrong in my config? The code is okay when I use FSDirectoryProvider.