NES server could not start after upgrade to 6.8.5
search cancel

NES server could not start after upgrade to 6.8.5

book

Article ID: 379474

calendar_today

Updated On:

Products

CA Release Automation - Release Operations Center (Nolio) CA Release Automation - DataManagement Server (Nolio)

Issue/Introduction

After upgrade of NES to 6.8.5, it could not start and appear as not reachable in UI. In the logs we could see these errors :

In logs/localhost.0.log :

SEVERE: Servlet.init() for servlet [execution] threw exception
org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'keepAliveDispatcherComponent' defined in URL [jar:file:/opt/nolio/nes01/webapps/execution/WEB-INF/lib/nolio-execution-6.8.5.jar!/com/nolio/platform/server/communication/services/KeepAliveDispatcherComponent.class]: Unsatisfied dependency expressed through constructor parameter 1; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'executionEngine': Unsatisfied dependency expressed through field 'brokerInfo'; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'brokerInfo' defined in class path resource [com/nolio/platform/server/spring/NesMainSpringConfig.class]: Unsatisfied dependency expressed through method 'brokerInfo' parameter 0; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'brokerNesId' defined in class path resource [com/nolio/platform/server/spring/NesActiveMqSpringConfig.class]: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.apache.activemq.broker.BrokerService]: Factory method 'brokerNesId' threw exception; nested exception is java.net.URISyntaxException: Illegal character in query at index 25: nio+ssl://0.0.0.0:61616?${jms.transport.configuration}
    at org.springframework.beans.factory.support.ConstructorResolver.createArgumentArray(ConstructorResolver.java:794)
    at org.springframework.beans.factory.support.ConstructorResolver.autowireConstructor(ConstructorResolver.java:220)
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.autowireConstructor(AbstractAutowireCapableBeanFactory.java:1372)
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:1222)
...
Caused by: org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'executionEngine': Unsatisfied dependency expressed through field 'brokerInfo'; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'brokerInfo' defined in class path resource [com/nolio/platform/server/spring/NesMainSpringConfig.class]: Unsatisfied dependency expressed through method 'brokerInfo' parameter 0; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'brokerNesId' defined in class path resource [com/nolio/platform/server/spring/NesActiveMqSpringConfig.class]: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.apache.activemq.broker.BrokerService]: Factory method 'brokerNesId' threw exception; nested exception is java.net.URISyntaxException: Illegal character in query at index 25: nio+ssl://0.0.0.0:61616?${jms.transport.configuration}
    at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor$AutowiredFieldElement.resolveFieldValue(AutowiredAnnotationBeanPostProcessor.java:713)
    at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor$AutowiredFieldElement.inject(AutowiredAnnotationBeanPostProcessor.java:693)
  at org.springframework.beans.factory.annotation.InjectionMetadata.inject(InjectionMetadata.java:119)

 

In logs\nolio_exec_all.log :

through method 'brokerInfo' parameter 0; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'brokerNesId' defined in class path resource [com/nolio/platform/server/spring/NesActiveMqSpringConfig.class]: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.apache.activemq.broker.BrokerService]: Factory method 'brokerNesId' threw exception; nested exception is java.net.URISyntaxException: Illegal character in query at index 25: nio+ssl://0.0.0.0:61616?${jms.transport.configuration}
2024-10-07T16:35:46.827+03:00 [main] ERROR (org.springframework.web.servlet.FrameworkServlet:534) - Context initialization failed
org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'keepAliveDispatcherComponent' defined in URL [jar:file:/opt/nolio/nes01/webapps/execution/WEB-INF/lib/nolio-execution-6.8.5.jar!/com/nolio/platform/server/communication/services/KeepAliveDispatcherComponent.class]: Unsatisfied dependency expressed through constructor parameter 1; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'executionEngine': Unsatisfied dependency expressed through field 'brokerInfo'; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'brokerInfo' defined in class path resource [com/nolio/platform/server/spring/NesMainSpringConfig.class]: Unsatisfied dependency expressed through method 'brokerInfo' parameter 0; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'brokerNesId' defined in class path resource [com/nolio/platform/server/spring/NesActiveMqSpringConfig.class]: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.apache.activemq.broker.BrokerService]: Factory method 'brokerNesId' threw exception; nested exception is java.net.URISyntaxException: Illegal character in query at index 25: nio+ssl://0.0.0.0:61616?${jms.transport.configuration}
    at org.springframework.beans.factory.support.ConstructorResolver.createArgumentArray(ConstructorResolver.java:794) ~[spring-beans-5.3.39.jar:5.3.39]
    at org.springframework.beans.factory.support.ConstructorResolver.autowireConstructor(ConstructorResolver.java:220) ~[spring-beans-5.3.39.jar:5.3.39]
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.autowireConstructor(AbstractAutowireCapableBeanFactory.java:1372) ~[spring-beans-5.3.39.jar:5.3.39]
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:1222) ~[spring-beans-5.3.39.jar:5.3.39]
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:582) ~[spring-beans-5.3.39.jar:5.3.39]

Environment

Release Automation 6.8.5

Cause

This error occurs if the line jms.transport.configuration is missing in file <ra_home>/webapps/execution/WEB-INF/jms.properties

This line is added in Release Automation 6.8.5

Resolution

    1. Edit file <RA_HOME>/webapps/execution/WEB-INF/jms.properties and add this line :
      jms.transport.configuration=daemon\=true&wireFormat.maxInactivityDuration\=0

      Example :



    2. Restart the server

      cd <RA_HOME>
      ./nolio_server.sh stop
      ./nolio_server.sh start