You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@activemq.apache.org by "Bharath Kumar CM (Jira)" <ji...@apache.org> on 2022/10/08 07:22:00 UTC

[jira] [Created] (AMQ-9109) I tried upgrading from 5.14 to 5.17.2 latest available but at the final stage getting invalid error

Bharath Kumar CM created AMQ-9109:
-------------------------------------

             Summary: I tried upgrading from 5.14 to 5.17.2 latest available but at the final stage getting invalid error
                 Key: AMQ-9109
                 URL: https://issues.apache.org/jira/browse/AMQ-9109
             Project: ActiveMQ
          Issue Type: Dependency upgrade
          Components: AMQP
    Affects Versions: 5.17.2
            Reporter: Bharath Kumar CM
             Fix For: NEEDS_REVIEW


Hello,

After upgrading from 5.14 to 5.17.2 latest  getting below error:

 

 
{code:java}
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
 
{code}
 

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

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

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

 

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

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.

 

 

 

 

 



--
This message was sent by Atlassian Jira
(v8.20.10#820010)