You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by "happybuddha (JIRA)" <ji...@apache.org> on 2016/10/24 04:05:58 UTC
[jira] [Created] (DBCP-471) Cannot use connectionInitSqls property
in BasicDataSource
happybuddha created DBCP-471:
--------------------------------
Summary: Cannot use connectionInitSqls property in BasicDataSource
Key: DBCP-471
URL: https://issues.apache.org/jira/browse/DBCP-471
Project: Commons Dbcp
Issue Type: Bug
Affects Versions: 2.1.1
Reporter: happybuddha
Caused by: org.springframework.beans.NotWritablePropertyException: Invalid property 'connectionInitSqls' of bean class [org.apache.commons.dbcp2.BasicDataSource]: Bean property 'connectionInitSqls' is not writable or has an invalid setter method. Does the parameter type of the setter match the return type of the getter?
at org.springframework.beans.BeanWrapperImpl.setPropertyValue(BeanWrapperImpl.java:1042)
at org.springframework.beans.BeanWrapperImpl.setPropertyValue(BeanWrapperImpl.java:902)
at org.springframework.beans.AbstractPropertyAccessor.setPropertyValues(AbstractPropertyAccessor.java:75)
Configuration :
<bean id="dataSource" class="org.apache.commons.dbcp2.BasicDataSource" destroy-method="close">
<property name="driverClassName" value="${database.driverClassName}" />
<property name="url" value="${database.url}" />
<property name="username" value="${database.username}" />
<property name="password" value="${database.password}" />
<property name="connectionInitSqls">
<list>
<value>BEGIN call initialise_connection(); END;</value>
</list>
</property>
</bean>
Similar issue for another bean : https://issues.apache.org/jira/browse/DBCP-469
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)