[c3p0-users] [PROBLEM WITH SPRING 2.0.1 + C3P0-0.9.1-pre12]
Status: Beta
Brought to you by:
swaldman
From: Carlos C. - H. 1 <cec...@ho...> - 2007-01-09 19:38:07
|
Hi! I've just joined the user list because I ran into some trouble with c3p0 = latest release, and maybe someone can shed some light... I had bee = working with the 0.9.1-pre11 and Spring release with no problem, but = yesterday I tried 0.9.1-pre12 as a drop in replacement in my classpath = and this error showed up: org.springframework.beans.factory.BeanCreationException: Error creating = bean with name 'dataSource' defined in ServletContext resource = [/WEB-INF/dataAccessContext.xml]: Instantiation of bean failed; nested = exception is java.lang.ExceptionInInitializerError Caused by: java.lang.ExceptionInInitializerError at = com.mchange.v2.naming.JavaBeanReferenceMaker.<clinit>(JavaBeanReferenceMa= ker.java:39) at = com.mchange.v2.c3p0.impl.PoolBackedDataSourceBase.<clinit>(PoolBackedData= SourceBase.java:203) at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at = sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAc= cessorImpl.java:39) at = sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConst= ructorAccessorImpl.java:27) at java.lang.reflect.Constructor.newInstance(Constructor.java:494) at = org.springframework.beans.BeanUtils.instantiateClass(BeanUtils.java:84) at = org.springframework.beans.BeanUtils.instantiateClass(BeanUtils.java:60) at = org.springframework.beans.factory.support.SimpleInstantiationStrategy.ins= tantiate(SimpleInstantiationStrategy.java:52) at = org.springframework.beans.factory.support.AbstractAutowireCapableBeanFact= ory.instantiateBean(AbstractAutowireCapableBeanFactory.java:640) at = org.springframework.beans.factory.support.AbstractAutowireCapableBeanFact= ory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:626) at = org.springframework.beans.factory.support.AbstractAutowireCapableBeanFact= ory.createBean(AbstractAutowireCapableBeanFactory.java:381) at = org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject= (AbstractBeanFactory.java:245) at = org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.ge= tSingleton(DefaultSingletonBeanRegistry.java:140) at = org.springframework.beans.factory.support.AbstractBeanFactory.getBean(Abs= tractBeanFactory.java:242) at = org.springframework.beans.factory.support.AbstractBeanFactory.getBean(Abs= tractBeanFactory.java:156) at = org.springframework.beans.factory.support.DefaultListableBeanFactory.preI= nstantiateSingletons(DefaultListableBeanFactory.java:273) at = org.springframework.context.support.AbstractApplicationContext.refresh(Ab= stractApplicationContext.java:346) at = org.springframework.web.context.support.AbstractRefreshableWebApplication= Context.refresh(AbstractRefreshableWebApplicationContext.java:156) at = org.springframework.web.context.ContextLoader.createWebApplicationContext= (ContextLoader.java:246) at = org.springframework.web.context.ContextLoader.initWebApplicationContext(C= ontextLoader.java:184) at = org.springframework.web.context.ContextLoaderListener.contextInitialized(= ContextLoaderListener.java:49) at = org.apache.catalina.core.StandardContext.listenerStart(StandardContext.ja= va:3763) at = org.apache.catalina.core.StandardContext.start(StandardContext.java:4211)= at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1013) at org.apache.catalina.core.StandardHost.start(StandardHost.java:718) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1013) at = org.apache.catalina.core.StandardEngine.start(StandardEngine.java:442) at = org.apache.catalina.core.StandardService.start(StandardService.java:450) at = org.apache.catalina.core.StandardServer.start(StandardServer.java:709) at org.apache.catalina.startup.Catalina.start(Catalina.java:551) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at = sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java= :39) at = sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorI= mpl.java:25) at java.lang.reflect.Method.invoke(Method.java:585) at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:294) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:432) Caused by: java.lang.NullPointerException at com.mchange.v2.util.DoubleWeakHashMap.get(DoubleWeakHashMap.java:129) at = com.mchange.v2.log.jdk14logging.Jdk14MLog.getMLogger(Jdk14MLog.java:46) at com.mchange.v2.log.MLog.getLogger(MLog.java:129) at = com.mchange.v2.log.jdk14logging.Jdk14MLog.getMLogger(Jdk14MLog.java:57) at com.mchange.v2.log.MLog.getLogger(MLog.java:145) at com.mchange.v2.log.MLog.<clinit>(MLog.java:72) .. 37 more Jan 9, 2007 12:03:21 PM org.apache.catalina.core.StandardContext = listenerStart SEVERE: Exception sending context initialized event to listener instance = of class org.springframework.web.context.ContextLoaderListener org.springframework.beans.factory.BeanCreationException: Error creating = bean with name 'dataSource' defined in ServletContext resource = [/WEB-INF/dataAccessContext.xml]: Instantiation of bean failed; nested = exception is java.lang.ExceptionInInitializerError Caused by: java.lang.ExceptionInInitializerError at = com.mchange.v2.naming.JavaBeanReferenceMaker.<clinit>(JavaBeanReferenceMa= ker.java:39) at = com.mchange.v2.c3p0.impl.PoolBackedDataSourceBase.<clinit>(PoolBackedData= SourceBase.java:203) at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at = sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAc= cessorImpl.java:39) at = sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConst= ructorAccessorImpl.java:27) at java.lang.reflect.Constructor.newInstance(Constructor.java:494) at = org.springframework.beans.BeanUtils.instantiateClass(BeanUtils.java:84) at = org.springframework.beans.BeanUtils.instantiateClass(BeanUtils.java:60) at = org.springframework.beans.factory.support.SimpleInstantiationStrategy.ins= tantiate(SimpleInstantiationStrategy.java:52) at = org.springframework.beans.factory.support.AbstractAutowireCapableBeanFact= ory.instantiateBean(AbstractAutowireCapableBeanFactory.java:640) at = org.springframework.beans.factory.support.AbstractAutowireCapableBeanFact= ory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:626) at = org.springframework.beans.factory.support.AbstractAutowireCapableBeanFact= ory.createBean(AbstractAutowireCapableBeanFactory.java:381) at = org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject= (AbstractBeanFactory.java:245) at = org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.ge= tSingleton(DefaultSingletonBeanRegistry.java:140) at = org.springframework.beans.factory.support.AbstractBeanFactory.getBean(Abs= tractBeanFactory.java:242) at = org.springframework.beans.factory.support.AbstractBeanFactory.getBean(Abs= tractBeanFactory.java:156) at = org.springframework.beans.factory.support.DefaultListableBeanFactory.preI= nstantiateSingletons(DefaultListableBeanFactory.java:273) at = org.springframework.context.support.AbstractApplicationContext.refresh(Ab= stractApplicationContext.java:346) at = org.springframework.web.context.support.AbstractRefreshableWebApplication= Context.refresh(AbstractRefreshableWebApplicationContext.java:156) at = org.springframework.web.context.ContextLoader.createWebApplicationContext= (ContextLoader.java:246) at = org.springframework.web.context.ContextLoader.initWebApplicationContext(C= ontextLoader.java:184) at = org.springframework.web.context.ContextLoaderListener.contextInitialized(= ContextLoaderListener.java:49) at = org.apache.catalina.core.StandardContext.listenerStart(StandardContext.ja= va:3763) at = org.apache.catalina.core.StandardContext.start(StandardContext.java:4211)= at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1013) at org.apache.catalina.core.StandardHost.start(StandardHost.java:718) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1013) at = org.apache.catalina.core.StandardEngine.start(StandardEngine.java:442) at = org.apache.catalina.core.StandardService.start(StandardService.java:450) at = org.apache.catalina.core.StandardServer.start(StandardServer.java:709) at org.apache.catalina.startup.Catalina.start(Catalina.java:551) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at = sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java= :39) at = sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorI= mpl.java:25) at java.lang.reflect.Method.invoke(Method.java:585) at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:294) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:432) Caused by: java.lang.NullPointerException at com.mchange.v2.util.DoubleWeakHashMap.get(DoubleWeakHashMap.java:129) at = com.mchange.v2.log.jdk14logging.Jdk14MLog.getMLogger(Jdk14MLog.java:46) at com.mchange.v2.log.MLog.getLogger(MLog.java:129) at = com.mchange.v2.log.jdk14logging.Jdk14MLog.getMLogger(Jdk14MLog.java:57) at com.mchange.v2.log.MLog.getLogger(MLog.java:145) at com.mchange.v2.log.MLog.<clinit>(MLog.java:72) .. 37 more I can't figure out from the error logs what cpuld be wrong, previous jar = worked with the data source configuration in Spring, which I haven't = changed in a while. In case it helps, here's what I have: <bean id=3D"dataSource" class=3D"com.mchange.v2.c3p0.ComboPooledDataSource" destroy-method=3D"close"> <property name=3D"driverClass" value=3D"${jdbc.driverClassName}" = /> <property name=3D"jdbcUrl" value=3D"${jdbc.url}" /> <property name=3D"user" value=3D"${jdbc.username}" /> <property name=3D"password" value=3D"${jdbc.password}" /> <property name=3D"preferredTestQuery" = value=3D"${jdbc.testQuery}" /> </bean> Any ideas? Thanks! Regards, Carlos |