Invalid property ' url ' of bean class [Com.mchange.v2.c3p0.ComboPooledDataSource]

Source: Internet
Author: User
Tags addchild

1. Error description

info:2015-05-01 13:13:05[localhost-startstop-1]-Initializing c3p0-0.9.2.1 [built 20-march-2013 10:47:27 +0000; Debug? True trace:10]warn:2015-05-01 13:13:05[localhost-startstop-1]-Exception encountered during context initialization- Cancelling refresh Attemptorg.springframework.beans.factory.BeanCreationException:Error creating bean with Name ' DataSource ' defined in class path resource [Applicationcontext.xml]: Error setting property values; Nested exception is Org.springframework.beans.NotWritablePropertyException:Invalid property ' url ' of Bean class [ Com.mchange.v2.c3p0.ComboPooledDataSource]: Bean property ' URL ' was not writable or had an invalid setter method. Does the parameter type of the setter match the return type of the Getter?at Org.springframework.beans.factory.support.Abs Tractautowirecapablebeanfactory.applypropertyvalues (abstractautowirecapablebeanfactory.java:1508) at Org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean (Abstractautowirecapablebeanfactory.java:1216) at Org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean ( abstractautowirecapablebeanfactory.java:538) at Org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean ( abstractautowirecapablebeanfactory.java:476) at org.springframework.beans.factory.support.abstractbeanfactory$1. GetObject (abstractbeanfactory.java:302) at Org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton ( defaultsingletonbeanregistry.java:229) at Org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean (abstractbeanfactory.java:298) at Org.springframework.beans.factory.support.AbstractBeanFactory.getBean (abstractbeanfactory.java:193) at Org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons ( defaultlistablebeanfactory.java:725) at Org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization ( Abstractapplicationcontext.java:757) at Org.springframework.context.support.AbstractApplicationContext.refresh ( abstractapplicationcontext.java:480) at Org.springframework.web.context.ContextLoader.configureAndRefreshWebApplicationContext (contextloader.java:403) At Org.springframework.web.context.ContextLoader.initWebApplicationContext (contextloader.java:306) at Org.springframework.web.context.ContextLoaderListener.contextInitialized (contextloaderlistener.java:106) at Org.apache.catalina.core.StandardContext.listenerStart (standardcontext.java:4994) at Org.apache.catalina.core.StandardContext.startInternal (standardcontext.java:5492) at Org.apache.catalina.util.LifecycleBase.start (lifecyclebase.java:150) at Org.apache.catalina.core.ContainerBase.addChildInternal (containerbase.java:901) at Org.apache.catalina.core.ContainerBase.addChild (containerbase.java:877) at Org.apache.catalina.core.StandardHost.addChild (standardhost.java:649) at Org.apache.catalina.startup.HostConfig.deployDirectory (hostconfig.java:1245) at Org.apachE.catalina.startup.hostconfig$deploydirectory.run (hostconfig.java:1895) at java.util.concurrent.executors$ Runnableadapter.call (executors.java:471) at Java.util.concurrent.FutureTask.run (futuretask.java:262) at Java.util.concurrent.ThreadPoolExecutor.runWorker (threadpoolexecutor.java:1145) at Java.util.concurrent.threadpoolexecutor$worker.run (threadpoolexecutor.java:615) at Java.lang.Thread.run ( thread.java:745) caused By:org.springframework.beans.NotWritablePropertyException:Invalid property ' url ' of the bean class [Com.mchange.v2.c3p0.ComboPooledDataSource]: Bean property ' URL ' was not writable or had an invalid setter method. Does the parameter type of the setter match the return type of the Getter?at Org.springframework.beans.BeanWrapperImpl.set PropertyValue (beanwrapperimpl.java:1065) at Org.springframework.beans.BeanWrapperImpl.setPropertyValue ( beanwrapperimpl.java:923) at Org.springframework.beans.AbstractPropertyAccessor.setPropertyValues ( abstractpropertyaccessor.java:95) at Org.springframewoRk.beans.AbstractPropertyAccessor.setPropertyValues (abstractpropertyaccessor.java:75) at Org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues ( abstractautowirecapablebeanfactory.java:1504) ... moreerror:2015-05-01 13:13:05[localhost-startstop-1]-Context initialization Failedorg.springframework.beans.factory.BeanCreationException:Error creating Bean with Name ' dataSource ' defined in Class path resource [Applicationcontext.xml]: Error setting property values; Nested exception is Org.springframework.beans.NotWritablePropertyException:Invalid property ' url ' of Bean class [ Com.mchange.v2.c3p0.ComboPooledDataSource]: Bean property ' URL ' was not writable or had an invalid setter method. Does the parameter type of the setter match the return type of the Getter?at Org.springframework.beans.factory.support.Abs Tractautowirecapablebeanfactory.applypropertyvalues (abstractautowirecapablebeanfactory.java:1508) at Org.springframework.beans.factory.support.Abstractautowirecapablebeanfactory.populatebean (abstractautowirecapablebeanfactory.java:1216) at Org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean ( abstractautowirecapablebeanfactory.java:538) at Org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean ( abstractautowirecapablebeanfactory.java:476) at org.springframework.beans.factory.support.abstractbeanfactory$1. GetObject (abstractbeanfactory.java:302) at Org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton ( defaultsingletonbeanregistry.java:229) at Org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean (abstractbeanfactory.java:298) at Org.springframework.beans.factory.support.AbstractBeanFactory.getBean (abstractbeanfactory.java:193) at Org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons ( defaultlistablebeanfactory.java:725) at Org.springframework.context.support.AbstractApplicationContext. Finishbeanfactoryinitialization (abstractapplicationcontext.java:757) at Org.springframework.context.support.AbstractApplicationContext.refresh (abstractapplicationcontext.java:480) at Org.springframework.web.context.ContextLoader.configureAndRefreshWebApplicationContext (contextloader.java:403) At Org.springframework.web.context.ContextLoader.initWebApplicationContext (contextloader.java:306) at Org.springframework.web.context.ContextLoaderListener.contextInitialized (contextloaderlistener.java:106) at Org.apache.catalina.core.StandardContext.listenerStart (standardcontext.java:4994) at Org.apache.catalina.core.StandardContext.startInternal (standardcontext.java:5492) at Org.apache.catalina.util.LifecycleBase.start (lifecyclebase.java:150) at Org.apache.catalina.core.ContainerBase.addChildInternal (containerbase.java:901) at Org.apache.catalina.core.ContainerBase.addChild (containerbase.java:877) at Org.apache.catalina.core.StandardHost.addChild (standardhost.java:649) at Org.apache.catalina.startup.HostCOnfig.deploydirectory (hostconfig.java:1245) at Org.apache.catalina.startup.hostconfig$deploydirectory.run ( hostconfig.java:1895) at Java.util.concurrent.executors$runnableadapter.call (executors.java:471) at Java.util.concurrent.FutureTask.run (futuretask.java:262) at Java.util.concurrent.ThreadPoolExecutor.runWorker ( threadpoolexecutor.java:1145) at Java.util.concurrent.threadpoolexecutor$worker.run (ThreadPoolExecutor.java:615) At Java.lang.Thread.run (thread.java:745) caused by:org.springframework.beans.NotWritablePropertyException:Invalid Property ' url ' of the Bean class [Com.mchange.v2.c3p0.ComboPooledDataSource]: Bean property ' url ' was not writable or have a in Valid setter method. Does the parameter type of the setter match the return type of the Getter?at Org.springframework.beans.BeanWrapperImpl.set PropertyValue (beanwrapperimpl.java:1065) at Org.springframework.beans.BeanWrapperImpl.setPropertyValue ( beanwrapperimpl.java:923) at Org.springframework.beans.AbstractPropertyAccessor.setPropertyValueS (abstractpropertyaccessor.java:95) at Org.springframework.beans.AbstractPropertyAccessor.setPropertyValues ( ABSTRACTPROPERTYACCESSOR.JAVA:75) at Org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues ( abstractautowirecapablebeanfactory.java:1504) ... + More May 01, 2015 1:13:05 PM org.apache.catalina.core.StandardContext listenerstart severity: Exception Sending context initial Ized event to listener instance of class Org.springframework.web.context.ContextLoaderListenerorg.springframework.beans.factory.BeanCreationException:  Error creating Bean with Name ' DataSource ' defined in class path resource [Applicationcontext.xml]: Error setting property Values Nested exception is Org.springframework.beans.NotWritablePropertyException:Invalid property ' url ' of Bean class [ Com.mchange.v2.c3p0.ComboPooledDataSource]: Bean property ' URL ' was not writable or had an invalid setter method. Does the parameter type of the setter match the return type of the Getter?at org.Springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues ( abstractautowirecapablebeanfactory.java:1508) at Org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean ( abstractautowirecapablebeanfactory.java:1216) at Org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean ( abstractautowirecapablebeanfactory.java:538) at Org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean ( abstractautowirecapablebeanfactory.java:476) at org.springframework.beans.factory.support.abstractbeanfactory$1. GetObject (abstractbeanfactory.java:302) at Org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton ( defaultsingletonbeanregistry.java:229) at Org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean (abstractbeanfactory.java:298) at Org.springframework.beans.factory.support.AbstractBeanFactory.getBean (abstractbeanfactory.java:193) at Org.springfrAmework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons ( defaultlistablebeanfactory.java:725) at Org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization ( abstractapplicationcontext.java:757) at Org.springframework.context.support.AbstractApplicationContext.refresh ( abstractapplicationcontext.java:480) at Org.springframework.web.context.ContextLoader.configureAndRefreshWebApplicationContext (contextloader.java:403) At Org.springframework.web.context.ContextLoader.initWebApplicationContext (contextloader.java:306) at Org.springframework.web.context.ContextLoaderListener.contextInitialized (contextloaderlistener.java:106) at Org.apache.catalina.core.StandardContext.listenerStart (standardcontext.java:4994) at Org.apache.catalina.core.StandardContext.startInternal (standardcontext.java:5492) at Org.apache.catalina.util.LifecycleBase.start (lifecyclebase.java:150) at Org.apache.catalina.core.ContainerBase.addChildInternal (containerbase.java:901) at Org.apache.catalina.core.ContainerBase.addChild (containerbase.java:877) at Org.apache.catalina.core.StandardHost.addChild (standardhost.java:649) at Org.apache.catalina.startup.HostConfig.deployDirectory (hostconfig.java:1245) at Org.apache.catalina.startup.hostconfig$deploydirectory.run (hostconfig.java:1895) at Java.util.concurrent.executors$runnableadapter.call (executors.java:471) at Java.util.concurrent.FutureTask.run ( futuretask.java:262) at Java.util.concurrent.ThreadPoolExecutor.runWorker (threadpoolexecutor.java:1145) at Java.util.concurrent.threadpoolexecutor$worker.run (threadpoolexecutor.java:615) at Java.lang.Thread.run ( thread.java:745) caused By:org.springframework.beans.NotWritablePropertyException:Invalid property ' url ' of the bean class [Com.mchange.v2.c3p0.ComboPooledDataSource]: Bean property ' URL ' was not writable or had an invalid setter method. Does the parameter type of the setter match the return type of the Getter?at Org.springframework.beans.BeanWrapperImpl.set PropertyValue (beanwrapperimpl.java:1065) at Org.springframework.beans.BeanWrapperImpl.setPropertyValue (Beanwrapperimpl.java : 923) at Org.springframework.beans.AbstractPropertyAccessor.setPropertyValues (abstractpropertyaccessor.java:95) At Org.springframework.beans.AbstractPropertyAccessor.setPropertyValues (abstractpropertyaccessor.java:75) at Org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues ( abstractautowirecapablebeanfactory.java:1504) ...  + More May 01, 2015 1:13:05 pm com.sun.faces.config.ConfigureListener contextinitialized Info: Initialize context '/SPRINGMVCH ' Mojarra 2.0.3 (FCS b03) May 01, 2015 1:13:06 pm com.sun.faces.spi.InjectionProviderFactory CreateInstance Info: JSF1048: Postconstru Ct/predestroy comments. The Managedbeans method labeled with these comments will indicate that the comment has been processed.  May 01, 2015 1:13:06 PM org.apache.catalina.core.StandardContext startinternal severity: Error listenerstart May 01, 2015 1:13:06 PM Org.apache.catalina.core.StandardContext startinternal severity: Context [/springmvch] startup failed due to previous errORS May 01, 2015 1:13:06 pm org.apache.catalina.core.ApplicationContext Log Info: Closing Spring root Webapplicationcontext May 01, 2015 1:13:06 pm Org.apache.catalina.loader.WebappClassLoader checkthreadlocalmapforleaks Serious: the Web application [/ SPRINGMVCH] created a ThreadLocal with key of type [com.sun.faces.util.util$1] (value [[email protected]]) and a valu E of type [JAVA.UTIL.HASHMAP] (value [{com.sun.faces.patterncache={=}}]) but failed to remove it when the Web Applicatio N was stopped. Threads is going to being renewed over time to try and avoid a probable memory leak. May 01, 2015 1:13:06 PM Org.apache.catali Na.startup.HostConfig deploydirectory

2. Cause of Error


3. Solutions

Invalid property ' url ' of bean class [Com.mchange.v2.c3p0.ComboPooledDataSource]

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.