You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@activemq.apache.org by "Adam Heinz (JIRA)" <ji...@apache.org> on 2010/03/12 20:29:45 UTC
[jira] Created: (AMQ-2649) jdbcPersistenceAdapter adapterClass
attribute does not exist
jdbcPersistenceAdapter adapterClass attribute does not exist
------------------------------------------------------------
Key: AMQ-2649
URL: https://issues.apache.org/activemq/browse/AMQ-2649
Project: ActiveMQ
Issue Type: Bug
Components: Broker
Affects Versions: 5.3.0
Environment: RHEL4/5
Reporter: Adam Heinz
http://activemq.apache.org/jdbc-support.html
This documentation states that:
You can explicitly specify the JDBC adaptor class inside the activemq.xml...
<jdbcPersistenceAdapter adapterClass="org.apache.activemq.store.jdbc.adapter.ImageBasedJDBCAdaptor"/>
But I get an error when I use the following configuration:
<persistenceAdapter>
<jdbcPersistenceAdapter adapterClass="org.apache.activemq.store.jdbc.PostgresqlJDBCAdapter" dataSource="#postgres-ds"/>
</persistenceAdapter>
jvm 1 | Caused by: org.springframework.beans.NotWritablePropertyException: Invalid property 'adapterClass' of bean class [org.apache.activemq.store.jdbc.JDBCPersistenceAdapter]: Bean property 'adapterClass' is not writable or has an invalid setter method. Does the parameter type of the setter match the return type of the getter?
jvm 1 | at org.springframework.beans.BeanWrapperImpl.setPropertyValue(BeanWrapperImpl.java:801)
jvm 1 | at org.springframework.beans.BeanWrapperImpl.setPropertyValue(BeanWrapperImpl.java:651)
jvm 1 | at org.springframework.beans.AbstractPropertyAccessor.setPropertyValues(AbstractPropertyAccessor.java:78)
jvm 1 | at org.springframework.beans.AbstractPropertyAccessor.setPropertyValues(AbstractPropertyAccessor.java:59)
jvm 1 | at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1276)
jvm 1 | ... 45 more
Something similar was fixed a few years ago:
https://issues.apache.org/activemq/browse/AMQ-237
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Updated: (AMQ-2649) jdbcPersistenceAdapter adapterClass
attribute does not exist
Posted by "Bruce Snyder (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/activemq/browse/AMQ-2649?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Bruce Snyder updated AMQ-2649:
------------------------------
Fix Version/s: 5.5.0
(was: 5.4.1)
> jdbcPersistenceAdapter adapterClass attribute does not exist
> ------------------------------------------------------------
>
> Key: AMQ-2649
> URL: https://issues.apache.org/activemq/browse/AMQ-2649
> Project: ActiveMQ
> Issue Type: Bug
> Components: Broker
> Affects Versions: 5.3.0
> Environment: RHEL4/5
> Reporter: Adam Heinz
> Fix For: 5.5.0
>
>
> http://activemq.apache.org/jdbc-support.html
> This documentation states that:
> You can explicitly specify the JDBC adaptor class inside the activemq.xml...
> <jdbcPersistenceAdapter adapterClass="org.apache.activemq.store.jdbc.adapter.ImageBasedJDBCAdaptor"/>
> But I get an error when I use the following configuration:
> <persistenceAdapter>
> <jdbcPersistenceAdapter adapterClass="org.apache.activemq.store.jdbc.PostgresqlJDBCAdapter" dataSource="#postgres-ds"/>
> </persistenceAdapter>
> jvm 1 | Caused by: org.springframework.beans.NotWritablePropertyException: Invalid property 'adapterClass' of bean class [org.apache.activemq.store.jdbc.JDBCPersistenceAdapter]: Bean property 'adapterClass' is not writable or has an invalid setter method. Does the parameter type of the setter match the return type of the getter?
> jvm 1 | at org.springframework.beans.BeanWrapperImpl.setPropertyValue(BeanWrapperImpl.java:801)
> jvm 1 | at org.springframework.beans.BeanWrapperImpl.setPropertyValue(BeanWrapperImpl.java:651)
> jvm 1 | at org.springframework.beans.AbstractPropertyAccessor.setPropertyValues(AbstractPropertyAccessor.java:78)
> jvm 1 | at org.springframework.beans.AbstractPropertyAccessor.setPropertyValues(AbstractPropertyAccessor.java:59)
> jvm 1 | at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1276)
> jvm 1 | ... 45 more
> Something similar was fixed a few years ago:
> https://issues.apache.org/activemq/browse/AMQ-237
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.