-->
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: Exception in the jdbcodbcdriver finalizer
PostPosted: Wed Jul 02, 2008 10:42 pm 
Newbie

Joined: Wed Jul 02, 2008 10:33 pm
Posts: 3
I am using hibernate 3.2 and MySQL, version: 5.0.45-community-nt and mysql-connector-java-5.1.5 as mysql connector
I have nothing special in the config as such. below i have given my config file
Everything seems to be alright as far as functionality is concerned but I am suspending my debugger with any exception and I am quite frequently seeing this nullpointer exception

JdbcOdbcDriver.finalize() line: 96
Finalizer.invokeFinalizeMethod(Object) line: not available [native method]
Finalizer.runFinalizer() line: 83
Finalizer.access$100(Finalizer) line: 14
Finalizer$FinalizerThread.run() line: 160

I know the call stack is not very helpful but I have got only this and since it seems to be unrelated to my application actions at this point I don't have any idea on how to narrow down the issue..not sure it is hibernate/my set up issue or not.. will really appreciate any pointers or suggestions

Here is my hibernate config (i have omitted connection username/passwd and mapping resources)



<?xml version='1.0' encoding='UTF-8'?>
<!DOCTYPE hibernate-configuration PUBLIC
"-//Hibernate/Hibernate Configuration DTD 3.0//EN"
"http://hibernate.sourceforge.net/hibernate-configuration-3.0.dtd">


<hibernate-configuration>

<session-factory>

<property name="connection.url">
jdbc:mysql://localhost:3306/wom
</property>
<property name="dialect">
org.hibernate.dialect.MySQLDialect
</property>
<property name="connection.driver_class">
com.mysql.jdbc.Driver
</property>
<property name="hibernate.cache.provider_class">
org.hibernate.cache.EhCacheProvider
</property>
<property name="hibernate.cache.use_second_level_cache">
false
</property>

<property name="hibernate.jdbc.batch_size">10</property>
<property name="hibernate.c3p0.min_size">5</property>
<property name="hibernate.c3p0.max_size">60</property>
<property name="hibernate.c3p0.timeout">300</property>
<property name="hibernate.c3p0.max_statements">100</property>
<property name="hibernate.c3p0.idle_test_period">3000</property>



<property name="show_sql">true</property>
<property name="format_sql">true</property>



</session-factory>

</hibernate-configuration>


Top
 Profile  
 
 Post subject: It isn't hibernate
PostPosted: Tue Aug 26, 2008 4:00 pm 
Newbie

Joined: Tue Aug 26, 2008 3:53 pm
Posts: 1
Hey thuhouse,

I have the same problem - however, I built a sample app that uses jdbc only and left hibernate out completely and the problem persisted. What's interesting is that the exception is thrown at a strange time - I know it's in a different thread, so it's asynchronous, but it gets thrown at the same point during debugging every time... from within the TilesRequestProcessor!!! ???

Are you using tiles?

Either way, I think it's an issue with the mysql jdbc driver in conjunction with possibly tiles, and possibly eclipse.

If you figured it out, please let me know.


Top
 Profile  
 
 Post subject: i still have that problem..
PostPosted: Thu Aug 28, 2008 10:40 am 
Newbie

Joined: Wed Jul 02, 2008 10:33 pm
Posts: 3
..yes..i am using tiles and eclipse..i still get that issue but in my production i don't see it..only in the debugger i get it..i read somewhere it is issue with mysql driver and for that user it disappeared with latest driver but i already have version later than that..so not sure..


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.