Gary Tully created ARTEMIS-5521:
-----------------------------------
Summary: brokerProperties -
storeConfiguration.dataSourceProperties values don't support conversion from
string
Key: ARTEMIS-5521
URL: https://issues.apache.org/jira/browse/ARTEMIS-5521
Project: ActiveMQ Artemis
Issue Type: Bug
Components: Configuration
Affects Versions: 2.41.0
Reporter: Gary Tully
Fix For: 2.42.0
With a property value:
{{
storeConfiguration.dataSourceProperties.initialSize=3
}}
we get an error:
{{
"AMQ224097: Failed to start server"}
java.lang.RuntimeException: Unable to instantiate DataSource
at
org.apache.activemq.artemis.jdbc.store.drivers.JDBCDataSourceUtils.getDataSource(JDBCDataSourceUtils.java:44)
at
org.apache.activemq.artemis.core.config.storage.DatabaseStorageConfiguration.getDataSource(DatabaseStorageConfiguration.java:200)
at
org.apache.activemq.artemis.core.config.storage.DatabaseStorageConfiguration.getConnectionProvider(DatabaseStorageConfiguration.java:216)
...
Caused by: java.lang.IllegalArgumentException: Cannot invoke
org.apache.commons.dbcp2.BasicDataSource.setInitialSize on bean class 'class
org.apache.commons.dbcp2.BasicDataSource' - argument type mismatch - had
objects of type "java.lang.String" but expected signature "int"
at
org.apache.commons.beanutils.PropertyUtilsBean.invokeMethod(PropertyUtilsBean.java:1313)
at
org.apache.commons.beanutils.PropertyUtilsBean.setSimpleProperty(PropertyUtilsBean.java:1942)
at
org.apache.commons.beanutils.PropertyUtilsBean.setNestedProperty(PropertyUtilsBean.java:1793)
at
org.apache.commons.beanutils.PropertyUtilsBean.setProperty(PropertyUtilsBean.java:1812)
... 16 more
Caused by: java.lang.IllegalArgumentException: argument type mismatch
}}
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]
For further information, visit: https://activemq.apache.org/contact