You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@activemq.apache.org by "ASF GitHub Bot (Jira)" <ji...@apache.org> on 2025/06/05 12:56:00 UTC

[jira] [Updated] (ARTEMIS-5521) brokerProperties - storeConfiguration.dataSourceProperties values don't support conversion from string

     [ https://issues.apache.org/jira/browse/ARTEMIS-5521?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

ASF GitHub Bot updated ARTEMIS-5521:
------------------------------------
    Labels: pull-request-available  (was: )

> 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: 10m
>  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: issues-unsubscribe@activemq.apache.org
For additional commands, e-mail: issues-help@activemq.apache.org
For further information, visit: https://activemq.apache.org/contact