-->
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.  [ 3 posts ] 
Author Message
 Post subject: Weblogic 12.2.1 + Hibernate Search 5.5.2 + JDK 8.0_u51
PostPosted: Mon Feb 22, 2016 1:43 am 
Newbie

Joined: Sun Feb 21, 2016 3:15 pm
Posts: 5
hi - i have been facing this issue since the past 2 days - about 16 productive man hours! :-) googled, stack overflow-ed, etc. - i can zero in on the fact that this in incompatibility between the archives in weblogic and the packaged hibernate in application; but i am not able to figure out which is the incompatibility in my case!

i request you to help me out with (further) pointers to resolve this issue or the possible fix itself;

Caused by: java.lang.NoSuchMethodError: org.hibernate.internal.CoreMessageLogger.debugf(Ljava/lang/String;I)V
at org.hibernate.engine.jdbc.connections.internal.PooledConnections.<init>(PooledConnections.java:34)
at org.hibernate.engine.jdbc.connections.internal.PooledConnections.<init>(PooledConnections.java:19)
at org.hibernate.engine.jdbc.connections.internal.PooledConnections$Builder.build(PooledConnections.java:138)
at org.hibernate.engine.jdbc.connections.internal.DriverManagerConnectionProviderImpl.buildPool(DriverManagerConnectionProviderImpl.java:110)
at org.hibernate.engine.jdbc.connections.internal.DriverManagerConnectionProviderImpl.configure(DriverManagerConnectionProviderImpl.java:74)
at org.hibernate.boot.registry.internal.StandardServiceRegistryImpl.configureService(StandardServiceRegistryImpl.java:94)
at org.hibernate.service.internal.AbstractServiceRegistryImpl.initializeService(AbstractServiceRegistryImpl.java:217)
at org.hibernate.service.internal.AbstractServiceRegistryImpl.getService(AbstractServiceRegistryImpl.java:189)
at org.hibernate.engine.jdbc.env.internal.JdbcEnvironmentInitiator.buildJdbcConnectionAccess(JdbcEnvironmentInitiator.java:145)
at org.hibernate.engine.jdbc.env.internal.JdbcEnvironmentInitiator.initiateService(JdbcEnvironmentInitiator.java:66)
at org.hibernate.engine.jdbc.env.internal.JdbcEnvironmentInitiator.initiateService(JdbcEnvironmentInitiator.java:35)
at org.hibernate.boot.registry.internal.StandardServiceRegistryImpl.initiateService(StandardServiceRegistryImpl.java:88)
at org.hibernate.service.internal.AbstractServiceRegistryImpl.createService(AbstractServiceRegistryImpl.java:234)
at org.hibernate.service.internal.AbstractServiceRegistryImpl.initializeService(AbstractServiceRegistryImpl.java:208)
at org.hibernate.service.internal.AbstractServiceRegistryImpl.getService(AbstractServiceRegistryImpl.java:189)
at org.hibernate.engine.jdbc.internal.JdbcServicesImpl.configure(JdbcServicesImpl.java:51)
at org.hibernate.boot.registry.internal.StandardServiceRegistryImpl.configureService(StandardServiceRegistryImpl.java:94)
at org.hibernate.service.internal.AbstractServiceRegistryImpl.initializeService(AbstractServiceRegistryImpl.java:217)
at org.hibernate.service.internal.AbstractServiceRegistryImpl.getService(AbstractServiceRegistryImpl.java:189)
at org.hibernate.boot.model.process.spi.MetadataBuildingProcess.handleTypes(MetadataBuildingProcess.java:352)
at org.hibernate.boot.model.process.spi.MetadataBuildingProcess.complete(MetadataBuildingProcess.java:111)
at org.hibernate.boot.model.process.spi.MetadataBuildingProcess.build(MetadataBuildingProcess.java:83)
at org.hibernate.boot.internal.MetadataBuilderImpl.build(MetadataBuilderImpl.java:418)
at org.hibernate.boot.internal.MetadataBuilderImpl.build(MetadataBuilderImpl.java:87)
at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:692)
at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:724)
at com.aptean.dhl.cs.persistence.configuration.DHLCSPersistenceConfiguration.<clinit>(DHLCSPersistenceConfiguration.java:34)
at com.aptean.dhl.cs.search.impl.DHLCSSearchImpl.<clinit>(DHLCSSearchImpl.java:36)
at com.aptean.dhl.cs.service.impl.DHLCSServiceImpl.getCategories(DHLCSServiceImpl.java:95)
at com.aptean.dhl.cs.ws.DHLCSWebServiceImpl.getCategories(DHLCSWebServiceImpl.java:97)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:497)
at org.apache.cxf.service.invoker.AbstractInvoker.performInvocation(AbstractInvoker.java:180)
at org.apache.cxf.service.invoker.AbstractInvoker.invoke(AbstractInvoker.java:96)
... 30 more


Top
 Profile  
 
 Post subject: Re: Weblogic 12.2.1 + Hibernate Search 5.5.2 + JDK 8.0_u51
PostPosted: Mon Feb 22, 2016 3:17 am 
Newbie

Joined: Sun Feb 21, 2016 9:24 pm
Posts: 5
The missing method is debugf that takes a String and int parameter:

https://github.com/hibernate/hibernate- ... s.java#L34

The CoreMessageLogger is extends the BasicLogger

https://github.com/hibernate/hibernate- ... r.java#L59

The BasicLogger is provided by a shared library:

import org.jboss.logging.BasicLogger;

The desired version is 'org.jboss.logging:jboss-logging:3.3.0.Final'
https://github.com/hibernate/hibernate- ... gradle#L50


Presumably somewhere on your class path is an older version of jboss-logging that doesn't have the required method. Audit your project dependency versions (maven/gradle/etc) and anything provided directly by your container.

It looks like this method was introduced in version 3.3.0 "[JBLOGGING-110] Add debugf and tracef methods for ints and longs."
Any version less than 3.3.0 would produce the exception that you're seeing.
https://github.com/jboss-logging/jboss- ... f5919ccceb


Top
 Profile  
 
 Post subject: Re: Weblogic 12.2.1 + Hibernate Search 5.5.2 + JDK 8.0_u51
PostPosted: Mon Feb 22, 2016 9:09 am 
Hibernate Team
Hibernate Team

Joined: Fri Oct 05, 2007 4:47 pm
Posts: 2536
Location: Third rock from the Sun
Hello,
I think phaas is right, that error means that you are using an outdated version of JBoss Logger.

Maven and other dependency management tools provide many ways to check that dependencies of your application's dependencies are right, but if in doubt you can always check the source code;
in case of Hibernate ORM you can find the libraries it's using here:
- https://github.com/hibernate/hibernate- ... gradle#L50

Although that is the master branch, you will likely want to check the specific tag of the release of Hibernate you are using.
- https://github.com/hibernate/hibernate-orm/releases

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


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 3 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.