1. Hibernate4Beta1: NPE when using C3PO within persistence.xml forum.hibernate.orgAs soon I call javax.persistence.Persistence.createEntityManagerFactory("bclayer"); I get following NPE: Code: Caused by: java.lang.NullPointerException at org.hibernate.service.jdbc.connections.internal.C3P0ConnectionProvider.getConnection(C3P0ConnectionProvider.java:75) at org.hibernate.engine.jdbc.internal.JdbcServicesImpl$ConnectionProviderJdbcConnectionAccess.obtainConnection(JdbcServicesImpl.java:227) at org.hibernate.engine.jdbc.internal.JdbcServicesImpl.configure(JdbcServicesImpl.java:113) at org.hibernate.service.internal.BasicServiceRegistryImpl.configureService(BasicServiceRegistryImpl.java:80) at org.hibernate.service.internal.AbstractServiceRegistryImpl.initializeService(AbstractServiceRegistryImpl.java:143) at org.hibernate.service.internal.AbstractServiceRegistryImpl.getService(AbstractServiceRegistryImpl.java:118) at org.hibernate.cfg.SettingsFactory.buildSettings(SettingsFactory.java:68) at org.hibernate.cfg.Configuration.buildSettingsInternal(Configuration.java:2251) at org.hibernate.cfg.Configuration.buildSettings(Configuration.java:2247) ... |