-->
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: java.lang.NoSuchMethodError: org.hibernate.util.SoftLimitMRU
PostPosted: Fri Oct 22, 2010 5:44 pm 
Newbie

Joined: Fri Oct 22, 2010 5:39 pm
Posts: 2
Hi All
When I replace the Hibernate 3.2 with 3.6 jar in my JSF application. I get following error. I can run individual Hibernate queries fine, only in TOMCAT web application the query is producing following error.

Caused by: javax.faces.el.EvaluationException: Bean: com.utmb.web.beans.datadictBean, property: existstudyChoice
at org.apache.myfaces.el.PropertyResolverImpl.getProperty(PropertyResolverImpl.java:463)
at org.apache.myfaces.el.PropertyResolverImpl.getValue(PropertyResolverImpl.java:85)
... 98 more
Caused by: java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.apache.myfaces.el.PropertyResolverImpl.getProperty(PropertyResolverImpl.java:459)
... 99 more
Caused by: java.lang.ExceptionInInitializerError
at com.utmb.util.HibernateUtil.<clinit>(Unknown Source)
at com.utmb.web.beans.datadictBean.getExiststudyChoice(Unknown Source)
... 104 more
Caused by: java.lang.NoSuchMethodError: org.hibernate.util.SoftLimitMRUCache.<init>(II)V
at org.hibernate.engine.query.QueryPlanCache.<init>(QueryPlanCache.java:77)
at org.hibernate.impl.SessionFactoryImpl.<init>(SessionFactoryImpl.java:237)
at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1842)
... 106 more



FOLLOWING LOG trace


Oct 22, 2010 4:29:11 PM org.hibernate.cfg.SettingsFactory buildSettings
INFO: Database ->
name : MySQL
version : 5.1.39-community
major : 5
minor : 1
Oct 22, 2010 4:29:11 PM org.hibernate.cfg.SettingsFactory buildSettings
INFO: Driver ->
name : MySQL-AB JDBC Driver
version : mysql-connector-java-5.1.12 ( Revision: ${bzr.revision-id} )
major : 5
minor : 1
Oct 22, 2010 4:29:11 PM org.hibernate.dialect.Dialect <init>
INFO: Using dialect: org.hibernate.dialect.MySQLDialect
Oct 22, 2010 4:29:11 PM org.hibernate.engine.jdbc.JdbcSupportLoader useContextu
lLobCreation
INFO: Disabling contextual LOB creation as JDBC driver reported JDBC version [3
less than 4
Oct 22, 2010 4:29:11 PM org.hibernate.transaction.TransactionFactoryFactory bui
dTransactionFactory
INFO: Using default transaction strategy (direct JDBC transactions)
Oct 22, 2010 4:29:11 PM org.hibernate.transaction.TransactionManagerLookupFacto
y getTransactionManagerLookup
INFO: No TransactionManagerLookup configured (in JTA environment, use of read-w
ite or transactional second-level cache is not recommended)
Oct 22, 2010 4:29:11 PM org.hibernate.cfg.SettingsFactory buildSettings
INFO: Automatic flush during beforeCompletion(): disabled
Oct 22, 2010 4:29:11 PM org.hibernate.cfg.SettingsFactory buildSettings
INFO: Automatic session close at end of transaction: disabled
Oct 22, 2010 4:29:11 PM org.hibernate.cfg.SettingsFactory buildSettings
INFO: JDBC batch size: 15
Oct 22, 2010 4:29:11 PM org.hibernate.cfg.SettingsFactory buildSettings
INFO: JDBC batch updates for versioned data: disabled
Oct 22, 2010 4:29:11 PM org.hibernate.cfg.SettingsFactory buildSettings
INFO: Scrollable result sets: enabled
Oct 22, 2010 4:29:11 PM org.hibernate.cfg.SettingsFactory buildSettings
INFO: JDBC3 getGeneratedKeys(): enabled
Oct 22, 2010 4:29:11 PM org.hibernate.cfg.SettingsFactory buildSettings
INFO: Connection release mode: auto
Oct 22, 2010 4:29:11 PM org.hibernate.cfg.SettingsFactory buildSettings
INFO: Maximum outer join fetch depth: 2
Oct 22, 2010 4:29:11 PM org.hibernate.cfg.SettingsFactory buildSettings
INFO: Default batch fetch size: 1
Oct 22, 2010 4:29:11 PM org.hibernate.cfg.SettingsFactory buildSettings
INFO: Generate SQL with comments: disabled
Oct 22, 2010 4:29:11 PM org.hibernate.cfg.SettingsFactory buildSettings
INFO: Order SQL updates by primary key: disabled
Oct 22, 2010 4:29:11 PM org.hibernate.cfg.SettingsFactory buildSettings
INFO: Order SQL inserts for batching: disabled
Oct 22, 2010 4:29:11 PM org.hibernate.cfg.SettingsFactory createQueryTranslator
actory
INFO: Query translator: org.hibernate.hql.ast.ASTQueryTranslatorFactory
Oct 22, 2010 4:29:11 PM org.hibernate.hql.ast.ASTQueryTranslatorFactory <init>
INFO: Using ASTQueryTranslatorFactory
Oct 22, 2010 4:29:11 PM org.hibernate.cfg.SettingsFactory buildSettings
INFO: Query language substitutions: {}
Oct 22, 2010 4:29:11 PM org.hibernate.cfg.SettingsFactory buildSettings
INFO: JPA-QL strict compliance: disabled
Oct 22, 2010 4:29:11 PM org.hibernate.cfg.SettingsFactory buildSettings
INFO: Second-level cache: enabled
Oct 22, 2010 4:29:11 PM org.hibernate.cfg.SettingsFactory buildSettings
INFO: Query cache: enabled
Oct 22, 2010 4:29:11 PM org.hibernate.cfg.SettingsFactory createRegionFactory
INFO: Cache region factory : org.hibernate.cache.impl.bridge.RegionFactoryCache
roviderBridge
Oct 22, 2010 4:29:11 PM org.hibernate.cache.impl.bridge.RegionFactoryCacheProvi
erBridge <init>
INFO: Cache provider: org.hibernate.cache.EhCacheProvider
Oct 22, 2010 4:29:11 PM org.hibernate.cfg.SettingsFactory buildSettings
INFO: Optimize cache for minimal puts: disabled
Oct 22, 2010 4:29:11 PM org.hibernate.cfg.SettingsFactory buildSettings
INFO: Structured second-level cache entries: enabled
Oct 22, 2010 4:29:11 PM org.hibernate.cfg.SettingsFactory createQueryCacheFacto
y
INFO: Query cache factory: org.hibernate.cache.StandardQueryCacheFactory
Oct 22, 2010 4:29:11 PM org.hibernate.cfg.SettingsFactory buildSettings
INFO: Echoing all SQL to stdout
Oct 22, 2010 4:29:11 PM org.hibernate.cfg.SettingsFactory buildSettings
INFO: Statistics: enabled
Oct 22, 2010 4:29:11 PM org.hibernate.cfg.SettingsFactory buildSettings
INFO: Deleted entity synthetic identifier rollback: disabled
Oct 22, 2010 4:29:11 PM org.hibernate.cfg.SettingsFactory buildSettings
INFO: Default entity-mode: pojo
Oct 22, 2010 4:29:11 PM org.hibernate.cfg.SettingsFactory buildSettings
INFO: Named query checking : enabled
Oct 22, 2010 4:29:11 PM org.hibernate.cfg.SettingsFactory buildSettings
INFO: Check Nullability in Core (should be disabled when Bean Validation is on)
enabled
Oct 22, 2010 4:29:11 PM org.hibernate.impl.SessionFactoryImpl <init>
INFO: building session factory
Initial SessionFactory creation failed.java.lang.NoSuchMethodError: org.hiberna
e.util.SoftLimitMRUCache.<init>(II)V


Top
 Profile  
 
 Post subject: Re: java.lang.NoSuchMethodError: org.hibernate.util.SoftLimitMRU
PostPosted: Tue Oct 26, 2010 10:31 am 
Newbie

Joined: Fri Oct 22, 2010 5:39 pm
Posts: 2
I removed the hibernate3-client.jar and the problem went away. If you have Security Manager turned on, you have add following permissions
java.lang.RuntimePermission "accessDeclaredMembers";
java.lang.RuntimePermission "getProtectionDomain";


Top
 Profile  
 
 Post subject: Re: java.lang.NoSuchMethodError: org.hibernate.util.SoftLimitMRU
PostPosted: Thu Feb 24, 2011 2:20 pm 
Newbie

Joined: Thu Feb 24, 2011 2:00 pm
Posts: 1
I encountered a similar problem:

Caused by: java.lang.NoSuchMethodError: org.hibernate.util.SoftLimitMRUCache.<init>(I)V
at org.hibernate.search.filter.MRUFilterCachingStrategy.initialize(MRUFilterCachingStrategy.java:48)
at org.hibernate.search.impl.SearchFactoryImpl.buildFilterCachingStrategy(SearchFactoryImpl.java:568)
at org.hibernate.search.impl.SearchFactoryImpl.<init>(SearchFactoryImpl.java:184)
at org.hibernate.search.event.FullTextIndexEventListener.initialize(FullTextIndexEventListener.java:126)
at org.hibernate.event.EventListeners$1.processListener(EventListeners.java:198)
at org.hibernate.event.EventListeners.processListeners(EventListeners.java:181)
at org.hibernate.event.EventListeners.initializeListeners(EventListeners.java:194)
at org.hibernate.cfg.Configuration.getInitializedEventListeners(Configuration.java:1980)
at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1842)
at org.hibernate.ejb.Ejb3Configuration.buildEntityManagerFactory(Ejb3Configuration.java:902)
at org.hibernate.ejb.HibernatePersistence.createContainerEntityManagerFactory(HibernatePersistence.java:74)
at org.springframework.orm.jpa.LocalContainerEntityManagerFactoryBean.createNativeEntityManagerFactory(LocalContainerEntityManagerFactoryBean.java:225)
at org.springframework.orm.jpa.AbstractEntityManagerFactoryBean.afterPropertiesSet(AbstractEntityManagerFactoryBean.java:308)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1477)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1417)

I am using Hibernate 3.6.1.FINAL glued by Spring 3.0.5 in a multi-module project with no front end. I solved the problem by commenting out hibernate-search from my pom, I didn't need it anyway.

<!--Hibernate Search
<dependency>
<groupId>org.hibernate</groupId>
<artifactId>hibernate-search</artifactId>
<version>3.2.1.Final</version>
</dependency -->

Hope this will help someone !

Arc

_________________
Mon site, plusconscient.net, propose une collection d'enregistrements audio (parole) en accès libre sur des sujets liés aux grandes problématiques de notre époque.


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.