-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 7 posts ] 
Author Message
 Post subject: Tips on debugging Hibernate Search Problem with indexing?
PostPosted: Tue Aug 25, 2009 2:16 pm 
Newbie

Joined: Tue Aug 25, 2009 2:07 pm
Posts: 4
Hi, I'm using Hibernate Search on a procect, and got it working very quick when I first tested it. I recently switched to a different server, and the automatic indexing of entities suddenly stopped working.

Both of the servers are running the same versions of JDK (1.6), JBoss 5.1, and the configurations look identical to me. But on the new setup the index is never updated when entities are persisted.

I've tried to increase the logging level on the hibernate search category (org.hibernate), but no matter which level i choose, this is the only output I get (which doesn't really indicate any errors):

16:53:33,001 ERROR STDERR - 3321 [main] INFO org.hibernate.search.Version - Hibernate Search 3.1.1.GA
16:53:33,149 ERROR STDERR - 3489 [main] WARN org.search.store.DirectoryProviderHelper - Index directory not found, creating: '/var/lucene/indexes'
16:53:33,150 ERROR STDERR - 3490 [main] WARN org.hibernate.search.store.DirectoryProviderHelper - Index directory not found, creating: '/var/lucene/indexes/no.base.domain.Article'
16:53:33,743 ERROR STDERR - 4083 [main] WARN org.hibernate.search.store.DirectoryProviderHelper - Index directory not found, creating: '/var/lucene/indexes/no.base.domain.Post'

Any ideas on how to further debug this issue?


Top
 Profile  
 
 Post subject: Re: Tips on debugging Hibernate Search Problem with indexing?
PostPosted: Wed Aug 26, 2009 5:09 am 
Hibernate Team
Hibernate Team

Joined: Thu Apr 05, 2007 5:52 am
Posts: 1689
Location: Sweden
Hi,

are the two JBoss instances really the same? Meaning, are they both out of the box installations? Could it be that for example one of the servers has some hibernate related jar files in a shared lib directory? In particular the used version of annotations would be interesting since it contains the code for auto-registering the even listeners for automatic index updates.

Have you tried copying your working JBoss instance to the new server to check if it still runs there? Or you could try to register the required event listeners manually. Something like this:
Code:
<hibernate-configuration>
     <session-factory>
        ...
        <event type="post-update">
            <listener class="org.hibernate.search.event.FullTextIndexEventListener"/>
        </event>
        <event type="post-insert">
            <listener class="org.hibernate.search.event.FullTextIndexEventListener"/>
        </event>
        <event type="post-delete">
            <listener class="org.hibernate.search.event.FullTextIndexEventListener"/>
        </event>
        <event type="post-collection-recreate">
            <listener class="org.hibernate.search.event.FullTextIndexEventListener"/>
        </event>
        <event type="post-collection-remove">
            <listener class="org.hibernate.search.event.FullTextIndexEventListener"/>
        </event>
        <event type="post-collection-update">
            <listener class="org.hibernate.search.event.FullTextIndexEventListener"/>
        </event>
        <event type="flush">
            <listener class="org.hibernate.event.def.DefaultFlushEventListener"/>
            <listener class="org.hibernate.search.event.FullTextIndexEventListener"/>
        </event>
    </session-factory>
</hibernate-configuration>

Check the online documentation of Search for more information.
If this approach works it would also point into the direction that the two JBoss instances are not the same (at least not when it comes to provided libraries).

Also, is there anything else in the log file? For example, which version of Annotations is used?

--Hardy


Top
 Profile  
 
 Post subject: Re: Tips on debugging Hibernate Search Problem with indexing?
PostPosted: Wed Aug 26, 2009 9:49 am 
Newbie

Joined: Tue Aug 25, 2009 2:07 pm
Posts: 4
i'm using Annotations and EntityManager, so no such configuration exists for me, as far as I can see in the Hibernate Search documentation.

I'm now 100% sure that the configurations are identical as I copied the entire jboss directory from the old server just in case. When i delete the DB and lucene directory, the index is recreated on both of them, but only populated on the old one.

The only difference i can find between the systems is that the new machine is 64-bit and has a 64-bit JVM by default, but I tried to use a 32-bit one and it didn't help the situation.


Is there no more logging from Hibernate Search than the three lines doing init? It sure would be easier to think of a solution if I could pinpoint exactly where the problem is.


Top
 Profile  
 
 Post subject: Re: Tips on debugging Hibernate Search Problem with indexing?
PostPosted: Wed Aug 26, 2009 10:49 am 
Hibernate Team
Hibernate Team

Joined: Thu Apr 05, 2007 5:52 am
Posts: 1689
Location: Sweden
Hi,

even if you use Annotations and EntityManager you can add a configuration file. Just create hibernate.cfg.xml add the listener configuration and make sure the file is in the classpath.

Regarding logging - set the log level for 'org.hibernate.search' to trace. However, if the event listeners are not configured it does not matter which log level you are using since nothing will happen.

I myself run Search with a 64bit JVM and I have no problems. So I don't think this is the problem.

How are you populating the index on the new machine. Are you jsut creating a new entities and persist them?

--Hardy


Top
 Profile  
 
 Post subject: Re: Tips on debugging Hibernate Search Problem with indexing?
PostPosted: Wed Aug 26, 2009 5:48 pm 
Newbie

Joined: Tue Aug 25, 2009 2:07 pm
Posts: 4
The configuration file didn't solve the problem.

Regarding the logging, it seems that logging for Hibernate Search doesn't work properly with JBoss 5.1.0.GA. I don't know if it's true for all sl4j logging, but no matter the log4j-settings, only WARN and higher is shown, and it's printed through the STDERR. I think I should file a JIRA on this one, and I guess it belongs under JBoss. If anybody knows a workaround I would be very happy to know.


As a workaround to that I compiled Hibernate Search from source, and inserteted log.warn-statements. I used these to trace myself from Hibernate Annotations, through most of Hibernate Search and deep into Lucene, method by method (took the whole day). The error happens at org.apache.lucene.index.DocInverterPerField. But it really boggles my mind how the method manages to exit without giving any exceptions. This is the code:

Code:
Token token = stream.next(localToken);


I've changed it to this:

Code:
System.out.println("The class name: "+stream.getClass().getName()));
Token token = null;
try {
  token = stream.next(localToken);
}
catch (Exception e) {
  System.out.println("ex: "+e.getMessage());
}
System.out.println("This line is never printed");

No exception. The first System.out prints. There is a System.out at the first line of the stream.next-method (SnowballStemmer.next), but it doesn't print. Impossible!

Edit: By the way, indexing works (at least to some extent) when I comment out the strem.next-line. So I'm feeling a bit happier. :)


Top
 Profile  
 
 Post subject: Re: Tips on debugging Hibernate Search Problem with indexing?
PostPosted: Wed Aug 26, 2009 6:36 pm 
Newbie

Joined: Tue Aug 25, 2009 2:07 pm
Posts: 4
Some changes in Hibernate Search's class QueueProcessors (the class that manages the threads doing the Lucene work) finally revealed the error:

Code:
00:11:09,357 ERROR STDERR  - 4595 [main] WARN org.hibernate.search.backend.impl.lucene.QueueProcessors - executionException
00:11:09,357 ERROR STDERR  - 4596 [main] WARN org.hibernate.search.backend.impl.lucene.QueueProcessors - java.lang.NoSuchMethodError: org.tartarus.snowball.SnowballProgram.stem()Z
00:11:09,357 ERROR STDERR  - java.util.concurrent.ExecutionException: java.lang.NoSuchMethodError: org.tartarus.snowball.SnowballProgram.stem()Z
00:11:09,357 ERROR STDERR  -    at java.util.concurrent.FutureTask$Sync.innerGet(FutureTask.java:222)
00:11:09,357 ERROR STDERR  -    at java.util.concurrent.FutureTask.get(FutureTask.java:83)
00:11:09,357 ERROR STDERR  -    at org.hibernate.search.backend.impl.lucene.QueueProcessors.runAllWaiting(QueueProcessors.java:88)
00:11:09,357 ERROR STDERR  -    at org.hibernate.search.backend.impl.lucene.QueueProcessors.runAll(QueueProcessors.java:50)
00:11:09,357 ERROR STDERR  -    at org.hibernate.search.backend.impl.lucene.LuceneBackendQueueProcessor.run(LuceneBackendQueueProcessor.java:54)
00:11:09,358 ERROR STDERR  -    at org.hibernate.search.backend.impl.BatchedQueueingProcessor.performWorks(BatchedQueueingProcessor.java:173)
00:11:09,358 ERROR STDERR  -    at org.hibernate.search.backend.impl.PostTransactionWorkQueueSynchronization.afterCompletion(PostTransactionWorkQueueSynchronization.java:53)
00:11:09,358 ERROR STDERR  -    at com.arjuna.ats.internal.jta.resources.arjunacore.SynchronizationImple.afterCompletion(SynchronizationImple.java:123)
00:11:09,358 ERROR STDERR  -    at com.arjuna.ats.arjuna.coordinator.TwoPhaseCoordinator.afterCompletion(TwoPhaseCoordinator.java:381)
00:11:09,358 ERROR STDERR  -    at com.arjuna.ats.arjuna.coordinator.TwoPhaseCoordinator.end(TwoPhaseCoordinator.java:99)
00:11:09,358 ERROR STDERR  -    at com.arjuna.ats.arjuna.AtomicAction.commit(AtomicAction.java:177)
00:11:09,358 ERROR STDERR  -    at com.arjuna.ats.internal.jta.transaction.arjunacore.TransactionImple.commitAndDisassociate(TransactionImple.java:1423)
00:11:09,358 ERROR STDERR  -    at com.arjuna.ats.internal.jta.transaction.arjunacore.BaseTransaction.commit(BaseTransaction.java:137)
00:11:09,358 ERROR STDERR  -    at com.arjuna.ats.jbossatx.BaseTransactionManagerDelegate.commit(BaseTransactionManagerDelegate.java:75)
00:11:09,358 ERROR STDERR  -    at org.jboss.tm.usertx.client.ServerVMClientUserTransaction.commit(ServerVMClientUserTransaction.java:162)
00:11:09,358 ERROR STDERR  -    at org.jboss.seam.transaction.UTTransaction.commit(UTTransaction.java:52)
00:11:09,358 ERROR STDERR  -    at org.jboss.seam.util.Work.workInTransaction(Work.java:58)
00:11:09,358 ERROR STDERR  -    at org.jboss.seam.transaction.TransactionInterceptor.aroundInvoke(TransactionInterceptor.java:91)
00:11:09,358 ERROR STDERR  -    at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:68)
00:11:09,359 ERROR STDERR  -    at org.jboss.seam.core.MethodContextInterceptor.aroundInvoke(MethodContextInterceptor.java:44)
00:11:09,359 ERROR STDERR  -    at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:68)
00:11:09,359 ERROR STDERR  -    at org.jboss.seam.intercept.RootInterceptor.invoke(RootInterceptor.java:107)
00:11:09,359 ERROR STDERR  -    at org.jboss.seam.intercept.JavaBeanInterceptor.interceptInvocation(JavaBeanInterceptor.java:185)
00:11:09,359 ERROR STDERR  -    at org.jboss.seam.intercept.JavaBeanInterceptor.invoke(JavaBeanInterceptor.java:103)
00:11:09,359 ERROR STDERR  -    at no.frameworked.skjera.model.service.DatabasePopulator_$$_javassist_seam_4.populateDb(DatabasePopulator_$$_javassist_seam_4.java)
00:11:09,359 ERROR STDERR  -    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
00:11:09,359 ERROR STDERR  -    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
00:11:09,359 ERROR STDERR  -    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
00:11:09,359 ERROR STDERR  -    at java.lang.reflect.Method.invoke(Method.java:597)
00:11:09,359 ERROR STDERR  -    at org.jboss.seam.util.Reflections.invoke(Reflections.java:22)
00:11:09,359 ERROR STDERR  -    at org.jboss.seam.util.Reflections.invokeAndWrap(Reflections.java:144)
00:11:09,359 ERROR STDERR  -    at org.jboss.seam.Component.callComponentMethod(Component.java:2249)
00:11:09,359 ERROR STDERR  -    at org.jboss.seam.core.Events.raiseEvent(Events.java:85)
00:11:09,359 ERROR STDERR  -    at org.jboss.seam.contexts.ServletLifecycle.endInitialization(ServletLifecycle.java:118)
00:11:09,360 ERROR STDERR  -    at org.jboss.seam.init.Initialization.init(Initialization.java:740)
00:11:09,360 ERROR STDERR  -    at org.jboss.seam.servlet.SeamListener.contextInitialized(SeamListener.java:36)
00:11:09,360 ERROR STDERR  -    at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3910)
00:11:09,360 ERROR STDERR  -    at org.apache.catalina.core.StandardContext.start(StandardContext.java:4393)
00:11:09,360 ERROR STDERR  -    at org.jboss.web.tomcat.service.deployers.TomcatDeployment.performDeployInternal(TomcatDeployment.java:310)
00:11:09,360 ERROR STDERR  -    at org.jboss.web.tomcat.service.deployers.TomcatDeployment.performDeploy(TomcatDeployment.java:142)
00:11:09,360 ERROR STDERR  -    at org.jboss.web.deployers.AbstractWarDeployment.start(AbstractWarDeployment.java:461)
00:11:09,360 ERROR STDERR  -    at org.jboss.web.deployers.WebModule.startModule(WebModule.java:118)
00:11:09,360 ERROR STDERR  -    at org.jboss.web.deployers.WebModule.start(WebModule.java:97)
00:11:09,360 ERROR STDERR  -    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
00:11:09,360 ERROR STDERR  -    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
00:11:09,360 ERROR STDERR  -    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
00:11:09,360 ERROR STDERR  -    at java.lang.reflect.Method.invoke(Method.java:597)
00:11:09,360 ERROR STDERR  -    at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:157)
00:11:09,360 ERROR STDERR  -    at org.jboss.mx.server.Invocation.dispatch(Invocation.java:96)
00:11:09,361 ERROR STDERR  -    at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
00:11:09,361 ERROR STDERR  -    at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
00:11:09,361 ERROR STDERR  -    at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:668)
00:11:09,361 ERROR STDERR  -    at org.jboss.system.microcontainer.ServiceProxy.invoke(ServiceProxy.java:206)
00:11:09,361 ERROR STDERR  -    at $Proxy38.start(Unknown Source)
00:11:09,361 ERROR STDERR  -    at org.jboss.system.microcontainer.StartStopLifecycleAction.installAction(StartStopLifecycleAction.java:42)
00:11:09,361 ERROR STDERR  -    at org.jboss.system.microcontainer.StartStopLifecycleAction.installAction(StartStopLifecycleAction.java:37)
00:11:09,361 ERROR STDERR  -    at org.jboss.dependency.plugins.action.SimpleControllerContextAction.simpleInstallAction(SimpleControllerContextAction.java:62)
00:11:09,361 ERROR STDERR  -    at org.jboss.dependency.plugins.action.AccessControllerContextAction.install(AccessControllerContextAction.java:71)
00:11:09,361 ERROR STDERR  -    at org.jboss.dependency.plugins.AbstractControllerContextActions.install(AbstractControllerContextActions.java:51)
00:11:09,361 ERROR STDERR  -    at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:348)
00:11:09,361 ERROR STDERR  -    at org.jboss.system.microcontainer.ServiceControllerContext.install(ServiceControllerContext.java:286)
00:11:09,361 ERROR STDERR  -    at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:1631)
00:11:09,361 ERROR STDERR  -    at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:934)
00:11:09,361 ERROR STDERR  -    at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1082)
00:11:09,362 ERROR STDERR  -    at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:984)
00:11:09,362 ERROR STDERR  -    at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:822)
00:11:09,362 ERROR STDERR  -    at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:553)
00:11:09,362 ERROR STDERR  -    at org.jboss.system.ServiceController.doChange(ServiceController.java:688)
00:11:09,362 ERROR STDERR  -    at org.jboss.system.ServiceController.start(ServiceController.java:460)
00:11:09,362 ERROR STDERR  -    at org.jboss.system.deployers.ServiceDeployer.start(ServiceDeployer.java:163)
00:11:09,362 ERROR STDERR  -    at org.jboss.system.deployers.ServiceDeployer.deploy(ServiceDeployer.java:99)
00:11:09,362 ERROR STDERR  -    at org.jboss.system.deployers.ServiceDeployer.deploy(ServiceDeployer.java:46)
00:11:09,362 ERROR STDERR  -    at org.jboss.deployers.spi.deployer.helpers.AbstractSimpleRealDeployer.internalDeploy(AbstractSimpleRealDeployer.java:62)
00:11:09,362 ERROR STDERR  -    at org.jboss.deployers.spi.deployer.helpers.AbstractRealDeployer.deploy(AbstractRealDeployer.java:50)
00:11:09,362 ERROR STDERR  -    at org.jboss.deployers.plugins.deployers.DeployerWrapper.deploy(DeployerWrapper.java:171)
00:11:09,362 ERROR STDERR  -    at org.jboss.deployers.plugins.deployers.DeployersImpl.doDeploy(DeployersImpl.java:1439)
00:11:09,362 ERROR STDERR  -    at org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(DeployersImpl.java:1157)
00:11:09,362 ERROR STDERR  -    at org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(DeployersImpl.java:1178)
00:11:09,362 ERROR STDERR  -    at org.jboss.deployers.plugins.deployers.DeployersImpl.install(DeployersImpl.java:1098)
00:11:09,363 ERROR STDERR  -    at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:348)
00:11:09,363 ERROR STDERR  -    at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:1631)
00:11:09,363 ERROR STDERR  -    at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:934)
00:11:09,363 ERROR STDERR  -    at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1082)
00:11:09,363 ERROR STDERR  -    at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:984)
00:11:09,363 ERROR STDERR  -    at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:822)
00:11:09,363 ERROR STDERR  -    at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:553)
00:11:09,363 ERROR STDERR  -    at org.jboss.deployers.plugins.deployers.DeployersImpl.process(DeployersImpl.java:781)
00:11:09,363 ERROR STDERR  -    at org.jboss.deployers.plugins.main.MainDeployerImpl.process(MainDeployerImpl.java:702)
00:11:09,363 ERROR STDERR  -    at org.jboss.system.server.profileservice.repository.MainDeployerAdapter.process(MainDeployerAdapter.java:117)
00:11:09,363 ERROR STDERR  -    at org.jboss.system.server.profileservice.repository.ProfileDeployAction.install(ProfileDeployAction.java:70)
00:11:09,363 ERROR STDERR  -    at org.jboss.system.server.profileservice.repository.AbstractProfileAction.install(AbstractProfileAction.java:53)
00:11:09,363 ERROR STDERR  -    at org.jboss.system.server.profileservice.repository.AbstractProfileService.install(AbstractProfileService.java:361)
00:11:09,363 ERROR STDERR  -    at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:348)
00:11:09,363 ERROR STDERR  -    at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:1631)
00:11:09,364 ERROR STDERR  -    at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:934)
00:11:09,364 ERROR STDERR  -    at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1082)
00:11:09,364 ERROR STDERR  -    at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:984)
00:11:09,364 ERROR STDERR  -    at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:822)
00:11:09,364 ERROR STDERR  -    at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:553)
00:11:09,364 ERROR STDERR  -    at org.jboss.system.server.profileservice.repository.AbstractProfileService.activateProfile(AbstractProfileService.java:306)
00:11:09,364 ERROR STDERR  -    at org.jboss.system.server.profileservice.ProfileServiceBootstrap.start(ProfileServiceBootstrap.java:271)
00:11:09,364 ERROR STDERR  -    at org.jboss.bootstrap.AbstractServerImpl.start(AbstractServerImpl.java:461)
00:11:09,364 ERROR STDERR  -    at org.jboss.Main.boot(Main.java:221)
00:11:09,364 ERROR STDERR  -    at org.jboss.Main$1.run(Main.java:556)
00:11:09,364 ERROR STDERR  -    at java.lang.Thread.run(Thread.java:619)
00:11:09,364 ERROR STDERR  - Caused by: java.lang.NoSuchMethodError: org.tartarus.snowball.SnowballProgram.stem()Z
00:11:09,365 ERROR STDERR  -    at org.apache.lucene.analysis.snowball.SnowballFilter.next(SnowballFilter.java:69)
00:11:09,365 ERROR STDERR  -    at org.apache.lucene.index.DocInverterPerField.processFields(DocInverterPerField.java:153)
00:11:09,365 ERROR STDERR  -    at org.apache.lucene.index.DocFieldConsumersPerField.processFields(DocFieldConsumersPerField.java:36)
00:11:09,365 ERROR STDERR  -    at org.apache.lucene.index.DocFieldProcessorPerThread.processDocument(DocFieldProcessorPerThread.java:255)
00:11:09,365 ERROR STDERR  -    at org.apache.lucene.index.DocumentsWriter.updateDocument(DocumentsWriter.java:767)
00:11:09,365 ERROR STDERR  -    at org.apache.lucene.index.DocumentsWriter.addDocument(DocumentsWriter.java:743)
00:11:09,365 ERROR STDERR  -    at org.apache.lucene.index.IndexWriter.addDocument(IndexWriter.java:1919)
00:11:09,365 ERROR STDERR  -    at org.hibernate.search.backend.impl.lucene.works.AddWorkDelegate.performWork(AddWorkDelegate.java:82)
00:11:09,365 ERROR STDERR  -    at org.hibernate.search.backend.impl.lucene.PerDPQueueProcessor.performWriterWorks(PerDPQueueProcessor.java:113)
00:11:09,366 ERROR STDERR  -    at org.hibernate.search.backend.impl.lucene.PerDPQueueProcessor.run(PerDPQueueProcessor.java:92)
00:11:09,366 ERROR STDERR  -    at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
00:11:09,366 ERROR STDERR  -    at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
00:11:09,366 ERROR STDERR  -    at java.util.concurrent.FutureTask.run(FutureTask.java:138)
00:11:09,366 ERROR STDERR  -    at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
00:11:09,366 ERROR STDERR  -    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
00:11:09,366 ERROR STDERR  -    ... 1 more



Turns out I must have read some outdated information when teaching how to set up stemmers, cause I had porter-stemmer.jar, which contained classes duplicated from lucene-snowball.

So removing that file solved all my issues. Strange thing that it worked on one machine, but there must have been a minor difference in how the JVMs handled classloading.


Top
 Profile  
 
 Post subject: Re: Tips on debugging Hibernate Search Problem with indexing?
PostPosted: Thu Aug 27, 2009 1:47 am 
Hibernate Team
Hibernate Team

Joined: Thu Apr 05, 2007 5:52 am
Posts: 1689
Location: Sweden
geofrank wrote:
So removing that file solved all my issues. Strange thing that it worked on one machine, but there must have been a minor difference in how the JVMs handled classloading.


Great that you found the problem. So it was a class loading problem after all. On your machine the jar must have a different order in the classpath.

Regarding the logging - this is a problem. I haven't heard this before. It's probably worth to file a Jira for JBoss. Maybe there is already something on the JBoss forum.

--Hardy


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 7 posts ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.