Uploaded image for project: 'ActiveMQ Classic'
  1. ActiveMQ Classic
  2. AMQ-9109

I tried upgrading from 5.14 to 5.17.2 latest available but at the final stage getting invalid error

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Blocker
    • Resolution: Invalid
    • 5.17.2
    • None
    • AMQP
    • Important

    Description

      Hello,

      After upgrading from 5.14 to 5.17.2 latest  getting below error:

       

       

      2022-10-08 06:49:04,821 | WARN  | Transport Connection to: tcp://10.10.12.12:11364 failed: User name [admin] or password is invalid. | org.apache.activemq.broker.TransportConnection.Transport | ActiveMQ Transport: ssl:///10.10.12.12:11364
      2022-10-08 06:49:06,820 | INFO  | Stopping tcp://10.10.12.12:11364 because Failed with SecurityException: User name [admin] or password is invalid. | org.apache.activemq.broker.TransportConnection | ActiveMQ BrokerService[dbaas_broker] Task-2
      2022-10-08 06:54:12,459 | WARN  | Failed to add Connection id=ID:server-33355-1665211732359-5:2, clientId=ID:server-33355-1665211732359-5:2, clientIP=10.12.13.13 due to User name [admin] or password is invalid. | org.apache.activemq.broker.TransportConnection | ActiveMQ Transport: ssl:///10.10.12.12:39447
       
      

       

      In 5.14 activemq.xml file I was using below bean.

       

        <bean class="org.jasypt.spring31.properties.EncryptablePropertyPlaceholderConfigurer" id="propertyConfigurer">
            <constructor-arg ref="configurationEncryptor" />
            <property name="location" value="file:${activemq.base}/conf/credentials-enc.properties" />
       
      

       

      Based on some suggestions in some blogs I used below bean in 5.17.2

       

       

        <bean class="org.springframework.beans.factory.config.PropertyPlaceholderConfigurer">
            <property name="locations">
                <value>file:${activemq.base}/conf/credentials-enc.properties</value>
            </property>
        </bean>
       
      

       

      However I feel like I'm missing <constructor-arg ref="configurationEncryptor" /> here in 5.17.2 configuration file.

      Please help me out what's the right springframework bean for 5.17.2 to work well with encrypted credential file.

       

      I dont see it anywhere in ActiveMQ documentation of 5.17.2.

       

       

       

       

       

      Attachments

        Activity

          People

            Unassigned Unassigned
            achar007 Bharath Kumar CM
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: