<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Feedback - Could not refresh JMS Connection fo r destination 'acs-repo-transform-request' in Alfresco Forum</title>
    <link>https://connect.hyland.com/t5/alfresco-forum/feedback-could-not-refresh-jms-connection-fo-r-destination-acs/m-p/494223#M40530</link>
    <description>&lt;P&gt;Alfresco community 7.4.X e 23.X&lt;BR /&gt;&lt;BR /&gt;I have an installation at a customer's site with very slow write disks where it seems that activemq times out and alfresco cannot refresh the connection, which always returns nothing.&lt;BR /&gt;&lt;BR /&gt;Here the error&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;ERROR [component.jms.DefaultJmsMessageListenerContainer] [Camel (alfrescoCamelContext) thread #2 - JmsConsumer[acs-repo-transform-request]] Could not refresh JMS Connection fo
r destination 'acs-repo-transform-request' - retrying using FixedBackOff{interval=5000, currentAttempts=2761, maxAttempts=unlimited}. Cause: Error while attempting to add new Connection to the pool; nes
ted exception is java.lang.NullPointerException: Cannot invoke "org.apache.activemq.jms.pool.ConnectionPool.incrementReferenceCount()" because "connection" is null&lt;/LI-CODE&gt;&lt;P&gt;and i'm forced to restart alfresco to solve the error .&lt;BR /&gt;&lt;BR /&gt;After analyzing the issue to try to resolve the problem in the “messaging-context.xml” context file in the “alfresco/subsystems/Messaging/default” directory, I could try to resolve it by bypassing the Polled Factory, reducing performance but ensuring direct access to activemq with the following configuration in the alfresco extensions folder&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;&amp;lt;alias name="activeMqConnectionFactory" alias="pooledConnectionFactory"/&amp;gt;&lt;/LI-CODE&gt;&lt;P&gt;Override: Disables the JMS pool. This causes Alfresco to use the direct ActiveMQConnectionFactory connection&lt;BR /&gt;instead of the pooledConnectionFactory bean. This creates a true Spring alias: whenever Alfresco requests pooledConnectionFactory, it will receive the activeMqConnectionFactory bean.&lt;BR /&gt;&lt;BR /&gt;What do you think? Could this make sense? My tests seem to show improvement.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 30 Oct 2025 11:02:12 GMT</pubDate>
    <dc:creator>AlfrescoZZZ</dc:creator>
    <dc:date>2025-10-30T11:02:12Z</dc:date>
    <item>
      <title>Feedback - Could not refresh JMS Connection fo r destination 'acs-repo-transform-request'</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/feedback-could-not-refresh-jms-connection-fo-r-destination-acs/m-p/494223#M40530</link>
      <description>&lt;P&gt;Alfresco community 7.4.X e 23.X&lt;BR /&gt;&lt;BR /&gt;I have an installation at a customer's site with very slow write disks where it seems that activemq times out and alfresco cannot refresh the connection, which always returns nothing.&lt;BR /&gt;&lt;BR /&gt;Here the error&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;ERROR [component.jms.DefaultJmsMessageListenerContainer] [Camel (alfrescoCamelContext) thread #2 - JmsConsumer[acs-repo-transform-request]] Could not refresh JMS Connection fo
r destination 'acs-repo-transform-request' - retrying using FixedBackOff{interval=5000, currentAttempts=2761, maxAttempts=unlimited}. Cause: Error while attempting to add new Connection to the pool; nes
ted exception is java.lang.NullPointerException: Cannot invoke "org.apache.activemq.jms.pool.ConnectionPool.incrementReferenceCount()" because "connection" is null&lt;/LI-CODE&gt;&lt;P&gt;and i'm forced to restart alfresco to solve the error .&lt;BR /&gt;&lt;BR /&gt;After analyzing the issue to try to resolve the problem in the “messaging-context.xml” context file in the “alfresco/subsystems/Messaging/default” directory, I could try to resolve it by bypassing the Polled Factory, reducing performance but ensuring direct access to activemq with the following configuration in the alfresco extensions folder&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;&amp;lt;alias name="activeMqConnectionFactory" alias="pooledConnectionFactory"/&amp;gt;&lt;/LI-CODE&gt;&lt;P&gt;Override: Disables the JMS pool. This causes Alfresco to use the direct ActiveMQConnectionFactory connection&lt;BR /&gt;instead of the pooledConnectionFactory bean. This creates a true Spring alias: whenever Alfresco requests pooledConnectionFactory, it will receive the activeMqConnectionFactory bean.&lt;BR /&gt;&lt;BR /&gt;What do you think? Could this make sense? My tests seem to show improvement.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 30 Oct 2025 11:02:12 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/feedback-could-not-refresh-jms-connection-fo-r-destination-acs/m-p/494223#M40530</guid>
      <dc:creator>AlfrescoZZZ</dc:creator>
      <dc:date>2025-10-30T11:02:12Z</dc:date>
    </item>
  </channel>
</rss>

