-->
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: error on QueryCacheCache:
PostPosted: Fri Feb 04, 2005 6:34 am 
Newbie

Joined: Mon Dec 01, 2003 2:03 pm
Posts: 6
Read the rules before posting!
http://www.hibernate.org/ForumMailingli ... AskForHelp

I am having this error from hibernate :
can u help me ?

18:14:46,964 ERROR DiskStore:387 - net.sf.hibernate.cache.QueryCacheCache: Could not write elements to disk cache
java.io.NotSerializableException: org.apache.commons.logging.impl.Log4JLogger at java.io.ObjectOutputStream.writeObject0(Unknown Source) at java.io.ObjectOutputStream.defaultWriteFields(Unknown Source) at java.io.ObjectOutputStream.writeSerialData(Unknown Source) at java.io.ObjectOutputStream.writeOrdinaryObject(Unknown Source) at java.io.ObjectOutputStream.writeObject0(Unknown Source) at java.io.ObjectOutputStream.defaultWriteFields(Unknown Source) at java.io.ObjectOutputStream.writeSerialData(Unknown Source) at java.io.ObjectOutputStream.writeOrdinaryObject(Unknown Source) at java.io.ObjectOutputStream.writeObject0(Unknown Source) at java.io.ObjectOutputStream.writeObject(Unknown Source) at java.util.HashMap.writeObject(Unknown Source) at sun.reflect.GeneratedMethodAccessor2553.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at java.io.ObjectStreamClass.invokeWriteObject(Unknown Source) at java.io.ObjectOutputStream.writeSerialData(Unknown Source) at java.io.ObjectOutputStream.writeOrdinaryObject(Unknown Source) at java.io.ObjectOutputStream.writeObject0(Unknown Source) at java.io.ObjectOutputStream.defaultWriteFields(Unknown Source) at java.io.ObjectOutputStream.writeSerialData(Unknown Source) at java.io.ObjectOutputStream.writeOrdinaryObject(Unknown Source) at java.io.ObjectOutputStream.writeObject0(Unknown Source) at java.io.ObjectOutputStream.defaultWriteFields(Unknown Source) at java.io.ObjectOutputStream.writeSerialData(Unknown Source) at java.io.ObjectOutputStream.writeOrdinaryObject(Unknown Source) at java.io.ObjectOutputStream.writeObject0(Unknown Source) at java.io.ObjectOutputStream.writeObject(Unknown Source) at net.sf.ehcache.store.DiskStore.flushSpool(DiskStore.java:413) at net.sf.ehcache.store.DiskStore.spoolThreadMain(DiskStore.java:385) at net.sf.ehcache.store.DiskStore.access$600(DiskStore.java:83) at net.sf.ehcache.store.DiskStore$SpoolThread.run(DiskStore.java:567)


Hibernate version:

Mapping documents:

Code between sessionFactory.openSession() and session.close():

Full stack trace of any exception that occurs:

Name and version of the database you are using:

The generated SQL (show_sql=true):

Debug level Hibernate log excerpt:


Top
 Profile  
 
 Post subject:
PostPosted: Fri Feb 04, 2005 6:47 am 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 12:50 pm
Posts: 5130
Location: Melbourne, Australia
So, are your objects serializable?


Top
 Profile  
 
 Post subject:
PostPosted: Fri Feb 04, 2005 9:53 am 
Newbie

Joined: Mon Dec 01, 2003 2:03 pm
Posts: 6
Yes all the objects are serializable


Top
 Profile  
 
 Post subject:
PostPosted: Fri Feb 04, 2005 11:00 am 
Hibernate Team
Hibernate Team

Joined: Tue Sep 09, 2003 2:10 pm
Posts: 3246
Location: Passau, Germany
Sounds to me like one of your objects has a reference to a log4j Logger object, which is not serializable


Top
 Profile  
 
 Post subject:
PostPosted: Mon Feb 07, 2005 6:30 am 
Newbie

Joined: Mon Dec 01, 2003 2:03 pm
Posts: 6
well all my persisting object extend Business object wich is serializable
and in that object I have some reference to org.apache.commons.logging.Log.
but the application have been tested and I never seen that error before.

should I remove any logging in this class ?

thanks

S.Shehzad


Top
 Profile  
 
 Post subject:
PostPosted: Mon Feb 07, 2005 4:59 pm 
Hibernate Team
Hibernate Team

Joined: Sun Sep 14, 2003 3:54 am
Posts: 7256
Location: Paris, France
yes loggers are not serializable by essence

_________________
Emmanuel


Top
 Profile  
 
 Post subject:
PostPosted: Mon Feb 07, 2005 5:00 pm 
Hibernate Team
Hibernate Team

Joined: Sun Sep 14, 2003 3:54 am
Posts: 7256
Location: Paris, France
Well they might be, but I don't know any implementation doing so

_________________
Emmanuel


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.