Data Collector communication issues seen after upgrade

book

Article ID: 35771

calendar_today

Updated On:

Products

CA Infrastructure Management CA Infrastructure Management CA Performance Management - Usage and Administration CA Performance Management - Data Polling

Issue/Introduction

Issue:

After successfully upgrading the data collector to 2.6 the data collector can be in an "Unknown"state in the Performance Center user interface

 

The following can be seen in the /opt/IMDataCollector/apache-karaf-2.3.0/data/log/karaf.log on the data collector

 

Starting ActiveMQ

INFO: Loading '/app/CA/IMDataCollector/broker/apache-activemq-5.11.1/bin/env'

INFO: Using java '/app/CA/IMDataCollector/jre/bin/java'

INFO: Starting - inspect logfiles specified in logging.properties and log4j.properties to get details

INFO: pidfile created : '/app/CA/IMDataCollector/broker/apache-activemq-5.11.1/data/activemq.pid' (pid '17037')

 

The following can be seen in the /opt/IMDataCollector/broker/apache-activemq-5.11.1/data/activemq.log on the data collector

2015-10-26 12:58:49,086 | INFO  | Refreshing [email protected]: startup date [Mon Oct 26 12:58:49 CDT 2015]; root of context hierarchy | org.apache.activemq.xbean.XBeanBrokerFactory$1 | main

2015-10-26 12:58:49,923 | ERROR | Failed to load: class path resource [activemq.xml], reason: Line 76 in XML document from class path resource [activemq.xml] is invalid; nested exception is org.xml.sax.SAXParseException; lineNumber: 76; columnNumber: 61; Element type "networkConnector" must be followed by either attribute specifications, ">" or "/>". | org.apache.activemq.xbean.XBeanBrokerFactory | main

org.springframework.beans.factory.xml.XmlBeanDefinitionStoreException: Line 76 in XML document from class path resource [activemq.xml] is invalid; nested exception is org.xml.sax.SAXParseException; lineNumber: 76; columnNumber: 61; Element type "networkConnector" must be followed by either attribute specifications, ">" or "/>".

  at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.doLoadBeanDefinitions(XmlBeanDefinitionReader.java:396)[spring-beans-3.2.11.RELEASE.jar:3.2.11.RELEASE]

  at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:334)[spring-beans-3.2.11.RELEASE.jar:3.2.11.RELEASE]

  at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:302)[spring-beans-3.2.11.RELEASE.jar:3.2.11.RELEASE]

  at org.apache.xbean.spring.context.ResourceXmlApplicationContext.loadBeanDefinitions(ResourceXmlApplicationContext.java:111)[xbean-spring-3.18.jar:3.18]

  at org.apache.xbean.spring.context.ResourceXmlApplicationContext.loadBeanDefinitions(ResourceXmlApplicationContext.java:104)[xbean-spring-3.18.jar:3.18]

  at org.springframework.context.support.AbstractRefreshableApplicationContext.refreshBeanFactory(AbstractRefreshableApplicationContext.java:130)[spring-context-3.2.11.RELEASE.jar:3.2.11.RELEASE]

  at org.springframework.context.support.AbstractApplicationContext.obtainFreshBeanFactory(AbstractApplicationContext.java:539)[spring-context-3.2.11.RELEASE.jar:3.2.11.RELEASE]

  at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:451)[spring-context-3.2.11.RELEASE.jar:3.2.11.RELEASE]

  at org.apache.xbean.spring.context.ResourceXmlApplicationContext.<init>(ResourceXmlApplicationContext.java:64)[xbean-spring-3.18.jar:3.18]

  at org.apache.xbean.spring.context.ResourceXmlApplicationContext.<init>(ResourceXmlApplicationContext.java:52)[xbean-spring-3.18.jar:3.18]

  at org.apache.activemq.xbean.XBeanBrokerFactory$1.<init>(XBeanBrokerFactory.java:104)[activemq-spring-5.11.1.jar:5.11.1]

  at org.apache.activemq.xbean.XBeanBrokerFactory.createApplicationContext(XBeanBrokerFactory.java:104)[activemq-spring-5.11.1.jar:5.11.1]

  at org.apache.activemq.xbean.XBeanBrokerFactory.createBroker(XBeanBrokerFactory.java:67)[activemq-spring-5.11.1.jar:5.11.1]

  at org.apache.activemq.broker.BrokerFactory.createBroker(BrokerFactory.java:71)[activemq-broker-5.11.1.jar:5.11.1]

  at org.apache.activemq.broker.BrokerFactory.createBroker(BrokerFactory.java:54)[activemq-broker-5.11.1.jar:5.11.1]

  at org.apache.activemq.console.command.StartCommand.runTask(StartCommand.java:87)[activemq-console-5.11.1.jar:5.11.1]

  at org.apache.activemq.console.command.AbstractCommand.execute(AbstractCommand.java:57)[activemq-console-5.11.1.jar:5.11.1]

  at org.apache.activemq.console.command.ShellCommand.runTask(ShellCommand.java:150)[activemq-console-5.11.1.jar:5.11.1]

  at org.apache.activemq.console.command.AbstractCommand.execute(AbstractCommand.java:57)[activemq-console-5.11.1.jar:5.11.1]

  at org.apache.activemq.console.command.ShellCommand.main(ShellCommand.java:104)[activemq-console-5.11.1.jar:5.11.1]

  at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)[:1.7.0_67]

  at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)[:1.7.0_67]

  at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)[:1.7.0_67]

  at java.lang.reflect.Method.invoke(Unknown Source)[:1.7.0_67]

  at org.apache.activemq.console.Main.runTaskClass(Main.java:262)[activemq.jar:5.11.1]

  at org.apache.activemq.console.Main.main(Main.java:115)[activemq.jar:5.11.1]

2015-10-26 13:00:54,171 | INFO  | Refreshing [email protected]: startup date [Mon Oct 26 13:00:54 CDT 2015]; root of context hierarchy | org.apache.activemq.xbean.XBeanBrokerFactory$1 | main

2015-10-26 13:00:55,016 | ERROR | Failed to load: class path resource [activemq.xml], reason: Line 76 in XML document from class path resource [activemq.xml] is invalid; nested exception is org.xml.sax.SAXParseException; lineNumber: 76; columnNumber: 61; Element type "networkConnector" must be followed by either attribute specifications, ">" or "/>". | org.apache.activemq.xbean.XBeanBrokerFactory | main

org.springframework.beans.factory.xml.XmlBeanDefinitionStoreException: Line 76 in XML document from class path resource [activemq.xml] is invalid; nested exception is org.xml.sax.SAXParseException; lineNumber: 76; columnNumber: 61; Element type "networkConnector" must be followed by either attribute specifications, ">" or "/>".

  at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.doLoadBeanDefinitions(XmlBeanDefinitionReader.java:396)[spring-beans-3.2.11.RELEASE.jar:3.2.11.RELEASE]

  at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:334)[spring-beans-3.2.11.RELEASE.jar:3.2.11.RELEASE]

  at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:302)[spring-beans-3.2.11.RELEASE.jar:3.2.11.RELEASE]

  at org.apache.xbean.spring.context.ResourceXmlApplicationContext.loadBeanDefinitions(ResourceXmlApplicationContext.java:111)[xbean-spring-3.18.jar:3.18]

  at org.apache.xbean.spring.context.ResourceXmlApplicationContext.loadBeanDefinitions(ResourceXmlApplicationContext.java:104)[xbean-spring-3.18.jar:3.18]

  at org.springframework.context.support.AbstractRefreshableApplicationContext.refreshBeanFactory(AbstractRefreshableApplicationContext.java:130)[spring-context-3.2.11.RELEASE.jar:3.2.11.RELEASE]

  at org.springframework.context.support.AbstractApplicationContext.obtainFreshBeanFactory(AbstractApplicationContext.java:539)[spring-context-3.2.11.RELEASE.jar:3.2.11.RELEASE]

  at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:451)[spring-context-3.2.11.RELEASE.jar:3.2.11.RELEASE]

  at org.apache.xbean.spring.context.ResourceXmlApplicationContext.<init>(ResourceXmlApplicationContext.java:64)[xbean-spring-3.18.jar:3.18]

  at org.apache.xbean.spring.context.ResourceXmlApplicationContext.<init>(ResourceXmlApplicationContext.java:52)[xbean-spring-3.18.jar:3.18]

  at org.apache.activemq.xbean.XBeanBrokerFactory$1.<init>(XBeanBrokerFactory.java:104)[activemq-spring-5.11.1.jar:5.11.1]

  at org.apache.activemq.xbean.XBeanBrokerFactory.createApplicationContext(XBeanBrokerFactory.java:104)[activemq-spring-5.11.1.jar:5.11.1]

  at org.apache.activemq.xbean.XBeanBrokerFactory.createBroker(XBeanBrokerFactory.java:67)[activemq-spring-5.11.1.jar:5.11.1]

  at org.apache.activemq.broker.BrokerFactory.createBroker(BrokerFactory.java:71)[activemq-broker-5.11.1.jar:5.11.1]

  at org.apache.activemq.broker.BrokerFactory.createBroker(BrokerFactory.java:54)[activemq-broker-5.11.1.jar:5.11.1]

  at org.apache.activemq.console.command.StartCommand.runTask(StartCommand.java:87)[activemq-console-5.11.1.jar:5.11.1]

  at org.apache.activemq.console.command.AbstractCommand.execute(AbstractCommand.java:57)[activemq-console-5.11.1.jar:5.11.1]

  at org.apache.activemq.console.command.ShellCommand.runTask(ShellCommand.java:150)[activemq-console-5.11.1.jar:5.11.1]

  at org.apache.activemq.console.command.AbstractCommand.execute(AbstractCommand.java:57)[activemq-console-5.11.1.jar:5.11.1]

  at org.apache.activemq.console.command.ShellCommand.main(ShellCommand.java:104)[activemq-console-5.11.1.jar:5.11.1]

  at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)[:1.7.0_67]

  at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)[:1.7.0_67]

  at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)[:1.7.0_67]

  at java.lang.reflect.Method.invoke(Unknown Source)[:1.7.0_67]

  at org.apache.activemq.console.Main.runTaskClass(Main.java:262)[activemq.jar:5.11.1]

  at org.apache.activemq.console.Main.main(Main.java:115)[activemq.jar:5.11.1]

 

 

Environment:  

2.6

 

Cause:

When reviewing line 76 in /opt/IMDataCollector/broker/apache-activemq-5.11.1/conf/activemq.xml the data aggregator is surrounded by double quotes and it should not be

 

<networkConnector name="da_manager" uri="static:(tcp://"<DA Name>":61616)" duplex="true" suppressDuplicateTopicSubscriptions="false"/>

 

Workaround:

Modify line 76 in activemq.xml to remove the quotes around the data aggregator and restart the data collector process

 

Additional Information:

A fix was added to the 2.7 release of performance management to prevent this from happening

 

 

 

Environment

Release: IMDAGG99000-2.6-Infrastructure Management-Data Aggregator
Component: