-->
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.  [ 1 post ] 
Author Message
 Post subject: Problem with hibernate appender
PostPosted: Wed Sep 05, 2007 4:36 pm 
Newbie

Joined: Wed Sep 27, 2006 6:10 pm
Posts: 8
I have integrated the project found at

http://www.hibernate.org/97.html

into my system, and on the surface i love the functionality. i have two problems i was hoping someone here can help me with. the first is a compile error, here is the output

[javac] /hiberlog/DefaultLoggingEvent.java:37: warning: [unchecked] unchecked call to add(E) as a member of the raw type java.util.HashSet
[javac] ((HashSet) throwableMessages).add(t);
[javac] ^
[javac] /hiberlog/HibernateAppender.java:77: warning: [unchecked] unchecked call to add(E) as a member of the raw type java.util.Vector
[javac] buffer.add(loggingEvent);
[javac] ^
[javac] /hiberlog/HibernateUtil.java:37: warning: [unchecked] unchecked call to set(T) as a member of the raw type java.lang.ThreadLocal
[javac] session.set(s);
[javac] ^
[javac] /hiberlog/HibernateUtil.java:46: warning: [unchecked] unchecked call to set(T) as a member of the raw type java.lang.ThreadLocal
[javac] session.set(null);
[javac] ^
[javac] 4 warnings

i dont have time to play with it so i was hoping someone can let me know if they fixed it or not, im using java 5.

the second issue is more severe. my junit tests, when i have the logger off, takes 11 seconds to run. when i turn the logger on, it takes 60 seconds. this isn't good, i was wondering if anyone else encountered this problem and has a few tips on how to fix it. i can understand a small hit in performance but this one is a bit much.

thanks
willie


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 

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.