ActiveMQ
  1. ActiveMQ
  2. AMQ-2649

jdbcPersistenceAdapter adapterClass attribute does not exist

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 5.3.0
    • Fix Version/s: 5.6.0, 5.x
    • Component/s: Broker
    • Labels:
      None
    • Environment:

      RHEL4/5

      Description

      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

        Activity

        Adam Heinz created issue -
        Rob Davies made changes -
        Field Original Value New Value
        Fix Version/s 5.4.1 [ 12332 ]
        Bruce Snyder made changes -
        Fix Version/s 5.5.0 [ 12344 ]
        Fix Version/s 5.4.1 [ 12332 ]
        Jeff Turner made changes -
        Project Import Fri Nov 26 22:32:02 EST 2010 [ 1290828722158 ]
        Dejan Bosanac made changes -
        Fix Version/s 5.5.0 [ 12315626 ]
        Fix Version/s 5.4.2 [ 12315625 ]
        Gary Tully made changes -
        Fix Version/s 5.6.0 [ 12316331 ]
        Fix Version/s 5.5.0 [ 12315626 ]
        Gary Tully made changes -
        Status Open [ 1 ] Resolved [ 5 ]
        Assignee Gary Tully [ gtully ]
        Fix Version/s 5.6.0 [ 12317974 ]
        Resolution Fixed [ 1 ]

          People

          • Assignee:
            Gary Tully
            Reporter:
            Adam Heinz
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development