-->
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.  [ 2 posts ] 
Author Message
 Post subject: Schema Update macht Probleme
PostPosted: Fri Mar 30, 2007 3:21 am 
Newbie

Joined: Wed Dec 07, 2005 9:16 am
Posts: 2
Hallo Leute.

Ich habe ein Problem mit dem Schema update.

Wir heben eine RCP - Applikation mit Hibernate 3.2.1.ga und lassen das
Schema durch Hibernate automatisch generieren, so dass die Mappingdateien die Struktur bestimmen.
Bei einem Update soll das Schema automatisch angepasst werden.
Dazu gibt es ja den Parameter hibernate.hbm2ddl.auto=update.
Doch sobald dieser gesetzt wird, kommt der C3P0 Connection Pool durcheinander.

Quote:
30/03/2007 09:00:04 WARN async.ThreadPoolAsynchronousRunner - ThreadPoolAsynchronousRunner$DeadlockDetector:
429 -com.mchange.v2.async.ThreadPoolAsynchronousRunner$DeadlockDetector@1bde392 --
APPARENT DEADLOCK!!! Creating emergency threads for unassigned pending tasks!


Egal ob ich eine Oracle10g oder Mysql5 DB nehme.

Hat jemand eine Ahnung ?

Meine C3PO Config:
Quote:
<property name="c3p0.acquire_increment">10</property>
<property name="c3p0.idle_test_period">100</property>
<property name="c3p0.timeout">100</property>
<property name="c3p0.max_statements">0</property>
<property name="c3p0.min_size">10</property>
<property name="c3p0.max_size">100</property>


Vielen Dank,

icetec


Top
 Profile  
 
 Post subject: Problem gelöst ...
PostPosted: Fri Mar 30, 2007 7:42 am 
Newbie

Joined: Wed Dec 07, 2005 9:16 am
Posts: 2
So, nachdem ich auf Hibernate 3.2.2 GA und C3P0-9.1.1
upgedated habe, funzt das Schema update einwandfrei.

Habe noch an den Parametern geschraubt.
Falls es jemanden interessiert:
Quote:
<property name="hibernate.c3p0.initialPoolSize">10</property>
<property name="hibernate.c3p0.min_size">10</property>
<property name="hibernate.c3p0.max_size">150</property>
<property name="hibernate.c3p0.timeout">1800</property>
<property name="hibernate.c3p0.max_statements">300</property>
<property name="hibernate.c3po.idle_test_period">3000</property>
<property name="hibernate.c3po.maxIdleTime">30</property>
<property name="hibernate.c3po.propertyCycle">300</property>
<property name="hibernate.c3po.acquireIncrement">3</property>
<property name="hibernate.c3po.testConnectionOnCheckout">false</property>
<property name="hibernate.c3po.autoCommitOnClose">false</property>
<property name="hibernate.c3po.numHelperThreads">10</property>


Trotzdem, vielen Dank.

icetec


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