-->
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: [C3P0ConnectionProvider] could not instantiate C3P0 connect
PostPosted: Fri Feb 01, 2008 8:25 am 
Newbie

Joined: Fri Feb 01, 2008 7:19 am
Posts: 1
Hi, i'am using hibernate with WebSphere Application Server Community Edition. Everytime my application start always fail cause:

Code:
19:27:27,453 FATAL [C3P0ConnectionProvider] could not instantiate C3P0 connection pool
java.lang.NullPointerException
   at java.util.Hashtable.put(Hashtable.java:396)
   at com.mchange.v2.c3p0.DataSources.pooledDataSource(DataSources.java:314)
   at org.hibernate.connection.C3P0ConnectionProvider.configure(C3P0ConnectionProvider.java:159)
   at org.hibernate.connection.ConnectionProviderFactory.newConnectionProvider(ConnectionProviderFactory.java:124)
   at org.hibernate.connection.ConnectionProviderFactory.newConnectionProvider(ConnectionProviderFactory.java:56)
   at org.hibernate.cfg.SettingsFactory.createConnectionProvider(SettingsFactory.java:410)
   at org.hibernate.cfg.SettingsFactory.buildSettings(SettingsFactory.java:62)
   at org.hibernate.cfg.Configuration.buildSettings(Configuration.java:2009)
   at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1292)


the hibernate.cfg.xml is normal:
Code:
<property name="hibernate.c3p0.min_size">5</property>
        <property name="hibernate.c3p0.max_size">10</property>
        <property name="hibernate.c3p0.timeout">1800</property>
        <property name="hibernate.c3p0.max_statements">50</property>
        <property name="hibernate.c3p0.acquireRetryAttempts">50</property>
        <property name="hibernate.c3p0.acquireRetryDelay">3000</property>


Need help with this exception :)

Thank you

Yahya


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.