-->
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.  [ 5 posts ] 
Author Message
 Post subject: net.sf.hibernate.cache.CacheException: org.jboss.util.Nested
PostPosted: Thu Feb 03, 2005 11:50 am 
Beginner
Beginner

Joined: Tue Feb 01, 2005 5:26 pm
Posts: 24
Location: dallas
hi all,

when i tried to use jobss treecache for my application i get this exception shown below. where the mapping file has the form *.hbn.xml

<class name="a.Car" table="CAR">
<cache usage="transactional" />
<joined-subclass name="a.Honda" table="HONDA">
<set name="parts" table="CAR_PARTS">
<cache usage="transactional">
<key column="PEOPLE_UUID" />
</set>
</joined-subclass>
</class>

i want to cache the class "Honda" and its collections, when i put <cache usage="transactional"> in the 'joined-subclass' it throws a parser exception. i thought might be the reason we should not user 'cache' tag in 'joined-subclass' tag. then i placed the <cache usage="transactional"> in the super class. the exception is shown below.
Thanks in advance. Hope i will get some help.

- Could not synchronize database state with session
StackTrace:
net.sf.hibernate.cache.CacheException: org.jboss.util.NestedRuntimeException: org.jgroups.blocks.MethodCall.invoke(Ljava/lang/Object;)Ljava/lang/Object;; - nested throwable: (java.lang.NoSuchMethodError: org.jgroups.blocks.MethodCall.invoke(Ljava/lang/Object;)Ljava/lang/Object;)
at net.sf.hibernate.cache.TreeCache.remove(TreeCache.java:44)
at net.sf.hibernate.cache.TransactionalCache.evict(TransactionalCache.java:74)
at net.sf.hibernate.impl.ScheduledCollectionAction.evict(ScheduledCollectionAction.java:76)
at net.sf.hibernate.impl.ScheduledCollectionRecreate.execute(ScheduledCollectionRecreate.java:24)
at net.sf.hibernate.impl.SessionImpl.execute(SessionImpl.java:2449)
at net.sf.hibernate.impl.SessionImpl.executeAll(SessionImpl.java:2435)
at net.sf.hibernate.impl.SessionImpl.execute(SessionImpl.java:2396)
at net.sf.hibernate.impl.SessionImpl.flush(SessionImpl.java:2261)
at net.sf.hibernate.transaction.JDBCTransaction.commit(JDBCTransaction.java:61)
at at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at junit.framework.TestCase.runTest(TestCase.java:154)
at junit.framework.TestCase.runBare(TestCase.java:127)
at junit.framework.TestResult$1.protect(TestResult.java:106)
at junit.framework.TestResult.runProtected(TestResult.java:124)
at junit.framework.TestResult.run(TestResult.java:109)
at junit.framework.TestCase.run(TestCase.java:118)
at junit.framework.TestSuite.runTest(TestSuite.java:208)
at junit.framework.TestSuite.run(TestSuite.java:203)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:421)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:305)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:186)
Caused by: org.jboss.util.NestedRuntimeException: org.jgroups.blocks.MethodCall.invoke(Ljava/lang/Object;)Ljava/lang/Object;; - nested throwable: (java.lang.NoSuchMethodError: org.jgroups.blocks.MethodCall.invoke(Ljava/lang/Object;)Ljava/lang/Object;)
at org.jboss.cache.TreeCache.invokeMethod(TreeCache.java:3248)
at org.jboss.cache.TreeCache.remove(TreeCache.java:1771)
at net.sf.hibernate.cache.TreeCache.remove(TreeCache.java:41)
... 25 more
Caused by: java.lang.NoSuchMethodError: org.jgroups.blocks.MethodCall.invoke(Ljava/lang/Object;)Ljava/lang/Object;
at org.jboss.cache.interceptors.CallInterceptor.invoke(CallInterceptor.java:14)
at org.jboss.cache.interceptors.Interceptor.invoke(Interceptor.java:43)
at org.jboss.cache.interceptors.TransactionInterceptor.invoke(TransactionInterceptor.java:55)
at org.jboss.cache.TreeCache.invokeMethod(TreeCache.java:3245)
... 27 more

[02-03-05 09:17:23](S)<62>[TelemetryDeviceHibernateService]{14} Exception thrown while getting telemetry device by UUID
StackTrace:
net.sf.hibernate.cache.CacheException: org.jboss.util.NestedRuntimeException: org.jgroups.blocks.MethodCall.invoke(Ljava/lang/Object;)Ljava/lang/Object;; - nested throwable: (java.lang.NoSuchMethodError: org.jgroups.blocks.MethodCall.invoke(Ljava/lang/Object;)Ljava/lang/Object;)
at net.sf.hibernate.cache.TreeCache.get(TreeCache.java:26)
at net.sf.hibernate.cache.TransactionalCache.get(TransactionalCache.java:29)
at net.sf.hibernate.impl.SessionImpl.doLoad(SessionImpl.java:2123)
at net.sf.hibernate.impl.SessionImpl.doLoadByClass(SessionImpl.java:2001)
at net.sf.hibernate.impl.SessionImpl.get(SessionImpl.java:1937)
Caused by: org.jboss.util.NestedRuntimeException: org.jgroups.blocks.MethodCall.invoke(Ljava/lang/Object;)Ljava/lang/Object;; - nested throwable: (java.lang.NoSuchMethodError: org.jgroups.blocks.MethodCall.invoke(Ljava/lang/Object;)Ljava/lang/Object;)
at org.jboss.cache.TreeCache.invokeMethod(TreeCache.java:3248)
at org.jboss.cache.TreeCache.get(TreeCache.java:1599)
at org.jboss.cache.TreeCache.get(TreeCache.java:1572)
at net.sf.hibernate.cache.TreeCache.get(TreeCache.java:23)
... 15 more
Caused by: java.lang.NoSuchMethodError: org.jgroups.blocks.MethodCall.invoke(Ljava/lang/Object;)Ljava/lang/Object;
at org.jboss.cache.interceptors.CallInterceptor.invoke(CallInterceptor.java:14)
at org.jboss.cache.interceptors.Interceptor.invoke(Interceptor.java:43)
at org.jboss.cache.interceptors.TransactionInterceptor.invoke(TransactionInterceptor.java:55)
at org.jboss.cache.TreeCache.invokeMethod(TreeCache.java:3245)
... 18 more

net.sf.hibernate.cache.CacheException: org.jboss.util.NestedRuntimeException: org.jgroups.blocks.MethodCall.invoke(Ljava/lang/Object;)Ljava/lang/Object;; - nested throwable: (java.lang.NoSuchMethodError: org.jgroups.blocks.MethodCall.invoke(Ljava/lang/Object;)Ljava/lang/Object;)
at net.sf.hibernate.cache.TreeCache.get(TreeCache.java:26)
at net.sf.hibernate.cache.TransactionalCache.get(TransactionalCache.java:29)
at net.sf.hibernate.impl.SessionImpl.doLoad(SessionImpl.java:2123)
at net.sf.hibernate.impl.SessionImpl.doLoadByClass(SessionImpl.java:2001)
at net.sf.hibernate.impl.SessionImpl.get(SessionImpl.java:1937)
at Caused by: org.jboss.util.NestedRuntimeException: org.jgroups.blocks.MethodCall.invoke(Ljava/lang/Object;)Ljava/lang/Object;; - nested throwable: (java.lang.NoSuchMethodError: org.jgroups.blocks.MethodCall.invoke(Ljava/lang/Object;)Ljava/lang/Object;)
at org.jboss.cache.TreeCache.invokeMethod(TreeCache.java:3248)
at org.jboss.cache.TreeCache.get(TreeCache.java:1599)
at org.jboss.cache.TreeCache.get(TreeCache.java:1572)
at net.sf.hibernate.cache.TreeCache.get(TreeCache.java:23)
... 15 more
Caused by: java.lang.NoSuchMethodError: org.jgroups.blocks.MethodCall.invoke(Ljava/lang/Object;)Ljava/lang/Object;
at org.jboss.cache.interceptors.CallInterceptor.invoke(CallInterceptor.java:14)
at org.jboss.cache.interceptors.Interceptor.invoke(Interceptor.java:43)
at org.jboss.cache.interceptors.TransactionInterceptor.invoke(TransactionInterceptor.java:55)
at org.jboss.cache.TreeCache.invokeMethod(TreeCache.java:3245)
... 18 more

StackTrace:
net.sf.hibernate.cache.CacheException: org.jboss.util.NestedRuntimeException: org.jgroups.blocks.MethodCall.invoke(Ljava/lang/Object;)Ljava/lang/Object;; - nested throwable: (java.lang.NoSuchMethodError: org.jgroups.blocks.MethodCall.invoke(Ljava/lang/Object;)Ljava/lang/Object;)
at net.sf.hibernate.cache.TreeCache.get(TreeCache.java:26)
at net.sf.hibernate.cache.TransactionalCache.get(TransactionalCache.java:29)
at net.sf.hibernate.impl.SessionImpl.doLoad(SessionImpl.java:2123)
at net.sf.hibernate.impl.SessionImpl.doLoadByClass(SessionImpl.java:2001)
at net.sf.hibernate.impl.SessionImpl.get(SessionImpl.java:1937)
at Caused by: org.jboss.util.NestedRuntimeException: org.jgroups.blocks.MethodCall.invoke(Ljava/lang/Object;)Ljava/lang/Object;; - nested throwable: (java.lang.NoSuchMethodError: org.jgroups.blocks.MethodCall.invoke(Ljava/lang/Object;)Ljava/lang/Object;)
at org.jboss.cache.TreeCache.invokeMethod(TreeCache.java:3248)
at org.jboss.cache.TreeCache.get(TreeCache.java:1599)
at org.jboss.cache.TreeCache.get(TreeCache.java:1572)
at net.sf.hibernate.cache.TreeCache.get(TreeCache.java:23)
... 15 more
Caused by: java.lang.NoSuchMethodError: org.jgroups.blocks.MethodCall.invoke(Ljava/lang/Object;)Ljava/lang/Object;
at org.jboss.cache.interceptors.CallInterceptor.invoke(CallInterceptor.java:14)
at org.jboss.cache.interceptors.Interceptor.invoke(Interceptor.java:43)
at org.jboss.cache.interceptors.TransactionInterceptor.invoke(TransactionInterceptor.java:55)
at org.jboss.cache.TreeCache.invokeMethod(TreeCache.java:3245)
... 18 more

net.sf.hibernate.cache.CacheException: org.jboss.util.NestedRuntimeException: org.jgroups.blocks.MethodCall.invoke(Ljava/lang/Object;)Ljava/lang/Object;; - nested throwable: (java.lang.NoSuchMethodError: org.jgroups.blocks.MethodCall.invoke(Ljava/lang/Object;)Ljava/lang/Object;)
at net.sf.hibernate.cache.TreeCache.get(TreeCache.java:26)
at net.sf.hibernate.cache.TransactionalCache.get(TransactionalCache.java:29)
at net.sf.hibernate.impl.SessionImpl.doLoad(SessionImpl.java:2123)
at net.sf.hibernate.impl.SessionImpl.doLoadByClass(SessionImpl.java:2001)
at net.sf.hibernate.impl.SessionImpl.get(SessionImpl.java:1937)
at Caused by: org.jboss.util.NestedRuntimeException: org.jgroups.blocks.MethodCall.invoke(Ljava/lang/Object;)Ljava/lang/Object;; - nested throwable: (java.lang.NoSuchMethodError: org.jgroups.blocks.MethodCall.invoke(Ljava/lang/Object;)Ljava/lang/Object;)
at org.jboss.cache.TreeCache.invokeMethod(TreeCache.java:3248)
at org.jboss.cache.TreeCache.get(TreeCache.java:1599)
at org.jboss.cache.TreeCache.get(TreeCache.java:1572)
at net.sf.hibernate.cache.TreeCache.get(TreeCache.java:23)
... 15 more
Caused by: java.lang.NoSuchMethodError: org.jgroups.blocks.MethodCall.invoke(Ljava/lang/Object;)Ljava/lang/Object;
at org.jboss.cache.interceptors.CallInterceptor.invoke(CallInterceptor.java:14)
at org.jboss.cache.interceptors.Interceptor.invoke(Interceptor.java:43)
at org.jboss.cache.interceptors.TransactionInterceptor.invoke(TransactionInterceptor.java:55)
at org.jboss.cache.TreeCache.invokeMethod(TreeCache.java:3245)
... 18 more
net.sf.hibernate.cache.CacheException: org.jboss.util.NestedRuntimeException: org.jgroups.blocks.MethodCall.invoke(Ljava/lang/Object;)Ljava/lang/Object;; - nested throwable: (java.lang.NoSuchMethodError: org.jgroups.blocks.MethodCall.invoke(Ljava/lang/Object;)Ljava/lang/Object;)
at net.sf.hibernate.cache.TreeCache.remove(TreeCache.java:44)
at net.sf.hibernate.cache.TransactionalCache.evict(TransactionalCache.java:74)
at net.sf.hibernate.impl.ScheduledCollectionAction.evict(ScheduledCollectionAction.java:76)
at net.sf.hibernate.impl.ScheduledCollectionRecreate.execute(ScheduledCollectionRecreate.java:24)
at net.sf.hibernate.impl.SessionImpl.execute(SessionImpl.java:2449)
at net.sf.hibernate.impl.SessionImpl.executeAll(SessionImpl.java:2435)
at net.sf.hibernate.impl.SessionImpl.execute(SessionImpl.java:2396)
at net.sf.hibernate.impl.SessionImpl.flush(SessionImpl.java:2261)
at net.sf.hibernate.transaction.JDBCTransaction.commit(JDBCTransaction.java:61)
at at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at junit.framework.TestCase.runTest(TestCase.java:154)
at junit.framework.TestCase.runBare(TestCase.java:127)
at junit.framework.TestResult$1.protect(TestResult.java:106)
at junit.framework.TestResult.runProtected(TestResult.java:124)
at junit.framework.TestResult.run(TestResult.java:109)
at junit.framework.TestCase.run(TestCase.java:118)
at junit.framework.TestSuite.runTest(TestSuite.java:208)
at junit.framework.TestSuite.run(TestSuite.java:203)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:421)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:305)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:186)
Caused by: org.jboss.util.NestedRuntimeException: org.jgroups.blocks.MethodCall.invoke(Ljava/lang/Object;)Ljava/lang/Object;; - nested throwable: (java.lang.NoSuchMethodError: org.jgroups.blocks.MethodCall.invoke(Ljava/lang/Object;)Ljava/lang/Object;)
at org.jboss.cache.TreeCache.invokeMethod(TreeCache.java:3248)
at org.jboss.cache.TreeCache.remove(TreeCache.java:1771)
at net.sf.hibernate.cache.TreeCache.remove(TreeCache.java:41)
... 25 more
Caused by: java.lang.NoSuchMethodError: org.jgroups.blocks.MethodCall.invoke(Ljava/lang/Object;)Ljava/lang/Object;
at org.jboss.cache.interceptors.CallInterceptor.invoke(CallInterceptor.java:14)
at org.jboss.cache.interceptors.Interceptor.invoke(Interceptor.java:43)
at org.jboss.cache.interceptors.TransactionInterceptor.invoke(TransactionInterceptor.java:55)
at org.jboss.cache.TreeCache.invokeMethod(TreeCache.java:3245)
... 27 more


Top
 Profile  
 
 Post subject: extension to the previous question.
PostPosted: Thu Feb 03, 2005 12:43 pm 
Beginner
Beginner

Joined: Tue Feb 01, 2005 5:26 pm
Posts: 24
Location: dallas
do i need to put an entry in the treecache.xml saying that this class needs to be cached. Because i was seeing a post in the EhCache where they say that we need to give an entry in ehcache.xml saying the class which needs to be cached.

regards,
praveen


Top
 Profile  
 
 Post subject: i dont know why
PostPosted: Thu Feb 03, 2005 4:24 pm 
Beginner
Beginner

Joined: Tue Feb 01, 2005 5:26 pm
Posts: 24
Location: dallas
hi all,

i dont know why, but i dont get any reply in this site. this is my second post and no..no..no.. reply. please someone reply it will be useful for the future hibernate users.

regards,
praveen


Top
 Profile  
 
 Post subject:
PostPosted: Thu Feb 03, 2005 6:44 pm 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 6:10 am
Posts: 8615
Location: Neuchatel, Switzerland (Danish)
dude ? your exception contains a so obvious nested exception that it answers it self....,)

Caused by: java.lang.NoSuchMethodError: org.jgroups.blocks.MethodCall.invoke(Ljava/lang/Object;)Ljava/lang/Object;

have you chekked you have the proper matching versions of the libraries. ?

_________________
Max
Don't forget to rate


Top
 Profile  
 
 Post subject: got fixed
PostPosted: Thu Feb 03, 2005 7:35 pm 
Beginner
Beginner

Joined: Tue Feb 01, 2005 5:26 pm
Posts: 24
Location: dallas
hi all,

i fixed this problem, it was due to the older version of jbosscache. where i downloaded the new version 1.2 and replaced the existing files with the new one. and it worked. but i really dont know if jboss treecache is working in my application. i tested it with and without treecache it is same case it shows the same time no improvement.

regards,
vamshi


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