-->
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: [search4] NoSuchMethod:o.j.logging.Logger.getMessageLogger
PostPosted: Wed Nov 09, 2011 11:00 am 
Regular
Regular

Joined: Fri Jul 30, 2004 4:02 pm
Posts: 50
I'm getting really frustrated with one particular error I'm running into trying to work with Hibernate search 4.0.0.CR1 -

Code:
java.lang.NoSuchMethodError: org.jboss.logging.Logger.getMessageLogger(Ljava/lang/Class;Ljava/lang/String;)Ljava/lang/Object;
   at org.hibernate.search.util.logging.impl.LoggerFactory.make(LoggerFactory.java:37)
   at org.hibernate.search.backend.impl.EventSourceTransactionContext.<clinit>(EventSourceTransactionContext.java:58)
   at org.hibernate.search.impl.FullTextSessionImpl.<init>(FullTextSessionImpl.java:105)
   at org.hibernate.search.Search.getFullTextSession(Search.java:45)
   at org.hibernate.search.jpa.impl.FullTextEntityManagerImpl.getFullTextSession(FullTextEntityManagerImpl.java:71)
   at org.hibernate.search.jpa.impl.FullTextEntityManagerImpl.createIndexer(FullTextEntityManagerImpl.java:292)


Trying jboss-logger 3.0.1.GA, as well as a variety of different jboss-logging-spi's, different versions, trying jboss-commons, and nothing seems to be working. Since it is a method problem, jarfinder-type tools don't work, and i couldn't find a listing of this method in javadocs.

Trying hibernate-test (I actually didn't know that existed, I might look into that more) also didn't seem to help.

The issue particularly happens when I try to rebuild the index.


EDIT: this is upgrading a prior working implementation from 3.4.1.Final to 4.0.0.CR1, and app tests such as rebuildindex are failing related to the above message.

thanks for any help on this, I'm using Maven 2, hibernate-search 4.0.0.CR1

-D


Top
 Profile  
 
 Post subject: Re: [search4] NoSuchMethod:o.j.logging.Logger.getMessageLogger
PostPosted: Wed Nov 09, 2011 12:00 pm 
Regular
Regular

Joined: Fri Jul 30, 2004 4:02 pm
Posts: 50
changing to jboss-logging 3.1.0.Beta3 seems to resolve the problem (with slf4j added).


Top
 Profile  
 
 Post subject: Re: [search4] NoSuchMethod:o.j.logging.Logger.getMessageLogger
PostPosted: Wed Nov 09, 2011 2:44 pm 
Hibernate Team
Hibernate Team

Joined: Fri Oct 05, 2007 4:47 pm
Posts: 2536
Location: Third rock from the Sun
Hello,
I just checked:
org.jboss.logging.Logger.getMessageLogger(Class<T>, String)

is defined in Logger version 3.0.1.GA; It seems likely that you where having another version on your classpath? I'd suggest to use Tattletale to scan your classpath.

Anyway, it's likely that we're going to upgrade to JBoss Logger 3.1.x before the final release.

_________________
Sanne
http://in.relation.to/


Top
 Profile  
 
 Post subject: Re: [search4] NoSuchMethod:o.j.logging.Logger.getMessageLogger
PostPosted: Thu Nov 17, 2011 4:01 pm 
Newbie

Joined: Thu Nov 17, 2011 3:57 pm
Posts: 3
I am facing the same problem and the 3.1.0.Beta3 didnĀ“t work.

I am deploying an Hibernate Search 4.0.0.CR1 application into JBoss EAP 5.1.
I had to isolate the classloader to get the Hibernate working and after that I am geting the following (the same error mentioned begore)

Code:
java.lang.NoSuchMethodError: org.jboss.logging.Logger.getMessageLogger(Ljava/lang/Class;Ljava/lang/String;)Ljava/lang/Object;
        at org.hibernate.search.util.logging.impl.LoggerFactory.make(LoggerFactory.java:37)
        at org.hibernate.search.backend.impl.EventSourceTransactionContext.<clinit>(EventSourceTransactionContext.java:58)
        at org.hibernate.search.impl.FullTextSessionImpl.<init>(FullTextSessionImpl.java:105)
        at org.hibernate.search.Search.getFullTextSession(Search.java:45)


I checked the org.jboss.logging.Logger jar provided by JBoss and the version is 2.1.1.GA, which does not contains the getMessageLogger method. I beleive this is the problem but I have no idea how to solve it.


Any idea?


Top
 Profile  
 
 Post subject: Re: [search4] NoSuchMethod:o.j.logging.Logger.getMessageLogger
PostPosted: Sun Feb 19, 2012 3:13 pm 
Newbie

Joined: Sun Feb 19, 2012 3:09 pm
Posts: 1
I know its older post but I'm facing same issue with JBoss 5.1 and hibernate 4.0.1,
Did you get any solution?


Top
 Profile  
 
 Post subject: Re: [search4] NoSuchMethod:o.j.logging.Logger.getMessageLogger
PostPosted: Tue Apr 03, 2012 4:14 am 
Newbie

Joined: Wed Mar 28, 2012 1:55 pm
Posts: 3
Hi,

does anyone know how to solve it? I'm facing with the same problem, i tested all kinds of possibilities but it doesn't work.

Thanks!


Top
 Profile  
 
 Post subject: Re: [search4] NoSuchMethod:o.j.logging.Logger.getMessageLogger
PostPosted: Sun Aug 19, 2012 11:19 pm 
Newbie

Joined: Sun Aug 19, 2012 11:16 pm
Posts: 1
The issue is because of old "jboss-common-logging-log4j-2.0.4.GA.jar" file in eclipse directory. follow below steps

Go to Eclipse home directory and search for jboss*logging*.jar and delete older version of the above jar file, keep the latest version one :)
Relaunch eclipse and try now.


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.