[ 
https://issues.apache.org/jira/browse/ARTEMIS-5521?focusedWorklogId=971945&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-971945
 ]

ASF GitHub Bot logged work on ARTEMIS-5521:
-------------------------------------------

                Author: ASF GitHub Bot
            Created on: 05/Jun/25 12:55
            Start Date: 05/Jun/25 12:55
    Worklog Time Spent: 10m 
      Work Description: gtully opened a new pull request, #5745:
URL: https://github.com/apache/activemq-artemis/pull/5745

   …ceProperties




Issue Time Tracking
-------------------

            Worklog Id:     (was: 971945)
    Remaining Estimate: 0h
            Time Spent: 10m

> 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: [email protected]
For additional commands, e-mail: [email protected]
For further information, visit: https://activemq.apache.org/contact


Reply via email to