[
https://issues.apache.org/jira/browse/ARTEMIS-5521?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17956404#comment-17956404
]
ASF subversion and git services commented on ARTEMIS-5521:
----------------------------------------------------------
Commit d975a7e606bea10ebb64bfa4e58f4d3949ae06d9 in activemq-artemis's branch
refs/heads/main from Gary Tully
[ https://gitbox.apache.org/repos/asf?p=activemq-artemis.git;h=d975a7e606 ]
ARTEMIS-5521 ensure conversion is in play when applying jdbc
dataSourceProperties
> 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
> Assignee: Gary Tully
> Priority: Major
> Labels: pull-request-available
> Fix For: 2.42.0
>
> Time Spent: 0.5h
> Remaining Estimate: 0h
>
> 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