a week ago
Alfresco community 7.4.X e 23.X
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.
Here the error
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 nulland i'm forced to restart alfresco to solve the error .
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
<alias name="activeMqConnectionFactory" alias="pooledConnectionFactory"/>Override: Disables the JMS pool. This causes Alfresco to use the direct ActiveMQConnectionFactory connection
instead of the pooledConnectionFactory bean. This creates a true Spring alias: whenever Alfresco requests pooledConnectionFactory, it will receive the activeMqConnectionFactory bean.
What do you think? Could this make sense? My tests seem to show improvement.
Explore our Alfresco products with the links below. Use labels to filter content by product module.