XML datacollection crash after upgrading to v20

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
5 messages Options
Reply | Threaded
Open this post in threaded view
|

XML datacollection crash after upgrading to v20

Showers, William

Hello,

 

We use the XML data collector to pull data from Elasticsearch into OpenNMS. I followed the steps outlined at the below link and it was working perfectly on v19.

 

https://github.com/opennms-config-modules/elasticsearch

 

Since upgrading to v20 the XML data collector stops OpenNMS from starting up and gives the below error message. Can anyone assist?

 

2017-08-01 10:50:40,267 WARN  [Main] o.s.c.s.ClassPathXmlApplicationContext: Exception encountered during context initialization - cancelling refresh attempt

org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'xmlDataCollectionConfigDao' defined in URL [jar:file:/usr/share/opennms/lib/org.opennms.protocols.xml-20.0.1.jar!/META-INF/opennms/component-dao.xml]: Invocation of init method failed; nested exception is Exception [EclipseLink-3001] (Eclipse Persistence Services - 2.5.1.v20130918-f2b9fc5): org.eclipse.persistence.exceptions.ConversionException

Exception Description: The object [GAUGE64], of class [class java.lang.String], could not be converted to [class org.opennms.netmgt.collection.api.AttributeType].

Internal Exception: java.lang.IllegalArgumentException: Unsupported attribute type 'GAUGE64'. Supported types include: , gauge, counter, string.

        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1574) ~[org.apache.servicemix.bundles.spring-beans-4.1.6.RELEASE_1.jar:?]

        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:539) ~[org.apache.servicemix.bundles.spring-beans-4.1.6.RELEASE_1.jar:?]

        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:476) ~[org.apache.servicemix.bundles.spring-beans-4.1.6.RELEASE_1.jar:?]

        at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:303) ~[org.apache.servicemix.bundles.spring-beans-4.1.6.RELEASE_1.jar:?]

        at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:230) ~[org.apache.servicemix.bundles.spring-beans-4.1.6.RELEASE_1.jar:?]

        at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:299) ~[org.apache.servicemix.bundles.spring-beans-4.1.6.RELEASE_1.jar:?]

        at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:194) ~[org.apache.servicemix.bundles.spring-beans-4.1.6.RELEASE_1.jar:?]

        at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:755) ~[org.apache.servicemix.bundles.spring-beans-4.1.6.RELEASE_1.jar:?]

        at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:757) ~[org.apache.servicemix.bundles.spring-context-4.1.6.RELEASE_1.jar:?]

        at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:480) [org.apache.servicemix.bundles.spring-context-4.1.6.RELEASE_1.jar:?]

        at org.springframework.context.support.ClassPathXmlApplicationContext.<init>(ClassPathXmlApplicationContext.java:139) [org.apache.servicemix.bundles.spring-context-4.1.6.RELEASE_1.jar:?]

        at org.springframework.context.support.ClassPathXmlApplicationContext.<init>(ClassPathXmlApplicationContext.java:105) [org.apache.servicemix.bundles.spring-context-4.1.6.RELEASE_1.jar:?]

        at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) ~[?:1.8.0_45]

        at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62) [?:1.8.0_45]

        at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) [?:1.8.0_45]

        at java.lang.reflect.Constructor.newInstance(Constructor.java:422) [?:1.8.0_45]

        at org.springframework.beans.BeanUtils.instantiateClass(BeanUtils.java:147) [org.apache.servicemix.bundles.spring-beans-4.1.6.RELEASE_1.jar:?]

        at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:122) [org.apache.servicemix.bundles.spring-beans-4.1.6.RELEASE_1.jar:?]

        at org.springframework.beans.factory.support.ConstructorResolver.autowireConstructor(ConstructorResolver.java:267) [org.apache.servicemix.bundles.spring-beans-4.1.6.RELEASE_1.jar:?]

        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.autowireConstructor(AbstractAutowireCapableBeanFactory.java:1139) [org.apache.servicemix.bundles.spring-beans-4.1.6.RELEASE_1.jar:?]

        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:1042) [org.apache.servicemix.bundles.spring-beans-4.1.6.RELEASE_1.jar:?]

        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:504) [org.apache.servicemix.bundles.spring-beans-4.1.6.RELEASE_1.jar:?]

        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:476) [org.apache.servicemix.bundles.spring-beans-4.1.6.RELEASE_1.jar:?]

        at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:303) [org.apache.servicemix.bundles.spring-beans-4.1.6.RELEASE_1.jar:?]

        at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:230) [org.apache.servicemix.bundles.spring-beans-4.1.6.RELEASE_1.jar:?]

        at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:299) [org.apache.servicemix.bundles.spring-beans-4.1.6.RELEASE_1.jar:?]

        at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:194) [org.apache.servicemix.bundles.spring-beans-4.1.6.RELEASE_1.jar:?]

        at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:351) [org.apache.servicemix.bundles.spring-beans-4.1.6.RELEASE_1.jar:?]

        at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:108) [org.apache.servicemix.bundles.spring-beans-4.1.6.RELEASE_1.jar:?]

        at org.springframework.beans.factory.support.ConstructorResolver.resolveConstructorArguments(ConstructorResolver.java:648) [org.apache.servicemix.bundles.spring-beans-4.1.6.RELEASE_1.jar:?]

        at org.springframework.beans.factory.support.ConstructorResolver.autowireConstructor(ConstructorResolver.java:140) [org.apache.servicemix.bundles.spring-beans-4.1.6.RELEASE_1.jar:?]

        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.autowireConstructor(AbstractAutowireCapableBeanFactory.java:1139) [org.apache.servicemix.bundles.spring-beans-4.1.6.RELEASE_1.jar:?]

        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:1042) [org.apache.servicemix.bundles.spring-beans-4.1.6.RELEASE_1.jar:?]

        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:504) [org.apache.servicemix.bundles.spring-beans-4.1.6.RELEASE_1.jar:?]

        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:476) [org.apache.servicemix.bundles.spring-beans-4.1.6.RELEASE_1.jar:?]

        at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:303) [org.apache.servicemix.bundles.spring-beans-4.1.6.RELEASE_1.jar:?]

        at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:230) [org.apache.servicemix.bundles.spring-beans-4.1.6.RELEASE_1.jar:?]

        at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:299) [org.apache.servicemix.bundles.spring-beans-4.1.6.RELEASE_1.jar:?]

        at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:199) [org.apache.servicemix.bundles.spring-beans-4.1.6.RELEASE_1.jar:?]

        at org.springframework.context.support.AbstractApplicationContext.getBean(AbstractApplicationContext.java:962) [org.apache.servicemix.bundles.spring-context-4.1.6.RELEASE_1.jar:?]

        at org.springframework.beans.factory.access.SingletonBeanFactoryLocator.useBeanFactory(SingletonBeanFactoryLocator.java:396) [org.apache.servicemix.bundles.spring-beans-4.1.6.RELEASE_1.jar:?]

        at org.opennms.core.spring.BeanUtils.getBeanFactory(BeanUtils.java:80) [org.opennms.core.spring-20.0.1.jar:?]

        at org.opennms.core.spring.BeanUtils.getFactory(BeanUtils.java:132) [org.opennms.core.spring-20.0.1.jar:?]

        at org.opennms.netmgt.daemon.AbstractSpringContextJmxServiceDaemon$1.run(AbstractSpringContextJmxServiceDaemon.java:103) [org.opennms.core.daemon-20.0.1.jar:?]

        at org.opennms.core.logging.Logging.withPrefix(Logging.java:71) [org.opennms.core.logging-20.0.1.jar:?]

        at org.opennms.netmgt.daemon.AbstractSpringContextJmxServiceDaemon.init(AbstractSpringContextJmxServiceDaemon.java:96) [org.opennms.core.daemon-20.0.1.jar:?]

        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_45]

        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[?:1.8.0_45]

        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.8.0_45]

        at java.lang.reflect.Method.invoke(Method.java:497) ~[?:1.8.0_45]

        at sun.reflect.misc.Trampoline.invoke(MethodUtil.java:71) [?:1.8.0_45]

        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_45]

        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[?:1.8.0_45]

        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.8.0_45]

        at java.lang.reflect.Method.invoke(Method.java:497) ~[?:1.8.0_45]

        at sun.reflect.misc.MethodUtil.invoke(MethodUtil.java:275) [?:1.8.0_45]

        at com.sun.jmx.mbeanserver.StandardMBeanIntrospector.invokeM2(StandardMBeanIntrospector.java:112) [?:1.8.0_45]

        at com.sun.jmx.mbeanserver.StandardMBeanIntrospector.invokeM2(StandardMBeanIntrospector.java:46) [?:1.8.0_45]

        at com.sun.jmx.mbeanserver.MBeanIntrospector.invokeM(MBeanIntrospector.java:237) [?:1.8.0_45]

        at com.sun.jmx.mbeanserver.PerInterface.invoke(PerInterface.java:138) [?:1.8.0_45]

        at com.sun.jmx.mbeanserver.MBeanSupport.invoke(MBeanSupport.java:252) [?:1.8.0_45]

        at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.invoke(DefaultMBeanServerInterceptor.java:819) [?:1.8.0_45]

        at com.sun.jmx.mbeanserver.JmxMBeanServer.invoke(JmxMBeanServer.java:801) [?:1.8.0_45]

        at org.opennms.netmgt.vmmgr.Invoker.invoke(Invoker.java:277) [org.opennms.core.daemon-20.0.1.jar:?]

        at org.opennms.netmgt.vmmgr.Invoker.invokeMethods(Invoker.java:206) [org.opennms.core.daemon-20.0.1.jar:?]

        at org.opennms.netmgt.vmmgr.Starter.start(Starter.java:154) [org.opennms.core.daemon-20.0.1.jar:?]

        at org.opennms.netmgt.vmmgr.Starter.startDaemon(Starter.java:94) [org.opennms.core.daemon-20.0.1.jar:?]

        at org.opennms.netmgt.vmmgr.Controller.start(Controller.java:173) [org.opennms.core.daemon-20.0.1.jar:?]

        at org.opennms.netmgt.vmmgr.Controller.main(Controller.java:150) [org.opennms.core.daemon-20.0.1.jar:?]

        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_45]

        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[?:1.8.0_45]

        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.8.0_45]

        at java.lang.reflect.Method.invoke(Method.java:497) ~[?:1.8.0_45]

        at org.opennms.bootstrap.Bootstrap$4.run(Bootstrap.java:525) [opennms_bootstrap.jar:?]

        at java.lang.Thread.run(Thread.java:745) [?:1.8.0_45]

Caused by: org.eclipse.persistence.exceptions.ConversionException:

Exception Description: The object [GAUGE64], of class [class java.lang.String], could not be converted to [class org.opennms.netmgt.collection.api.AttributeType].

Internal Exception: java.lang.IllegalArgumentException: Unsupported attribute type 'GAUGE64'. Supported types include: , gauge, counter, string.

        at org.eclipse.persistence.exceptions.ConversionException.couldNotBeConverted(ConversionException.java:87) ~[org.eclipse.persistence.core-2.5.1.jar:?]

        at org.eclipse.persistence.internal.jaxb.XMLJavaTypeConverter.convertDataValueToObjectValue(XMLJavaTypeConverter.java:162) ~[org.eclipse.persistence.moxy-2.5.1.jar:?]

        at org.eclipse.persistence.oxm.mappings.XMLDirectMapping.convertDataValueToObjectValue(XMLDirectMapping.java:526) ~[org.eclipse.persistence.core-2.5.1.jar:?]

        at org.eclipse.persistence.oxm.mappings.XMLDirectMapping.getAttributeValue(XMLDirectMapping.java:296) ~[org.eclipse.persistence.core-2.5.1.jar:?]

        at org.eclipse.persistence.oxm.mappings.XMLDirectMapping.getAttributeValue(XMLDirectMapping.java:1) ~[org.eclipse.persistence.core-2.5.1.jar:?]

        at org.eclipse.persistence.internal.oxm.XMLDirectMappingNodeValue.attribute(XMLDirectMappingNodeValue.java:159) ~[org.eclipse.persistence.core-2.5.1.jar:?]

        at org.eclipse.persistence.internal.oxm.record.UnmarshalRecordImpl.startElement(UnmarshalRecordImpl.java:901) ~[org.eclipse.persistence.core-2.5.1.jar:?]

        at org.eclipse.persistence.internal.oxm.XMLRelationshipMappingNodeValue.processChild(XMLRelationshipMappingNodeValue.java:110) ~[org.eclipse.persistence.core-2.5.1.jar:?]

        at org.eclipse.persistence.internal.oxm.XMLCompositeCollectionMappingNodeValue.startElement(XMLCompositeCollectionMappingNodeValue.java:188) ~[org.eclipse.persistence.core-2.5.1.jar:?]

        at org.eclipse.persistence.internal.oxm.record.UnmarshalRecordImpl.startElement(UnmarshalRecordImpl.java:839) ~[org.eclipse.persistence.core-2.5.1.jar:?]

        at org.xml.sax.helpers.XMLFilterImpl.startElement(Unknown Source) ~[?:2.5.0]

        at org.opennms.core.xml.SimpleNamespaceFilter.startElement(SimpleNamespaceFilter.java:83) ~[org.opennms.core.xml-20.0.1.jar:?]

        at org.apache.xerces.parsers.AbstractSAXParser.startElement(Unknown Source) ~[?:?]

        at org.apache.xerces.parsers.AbstractXMLDocumentParser.emptyElement(Unknown Source) ~[?:?]

        at org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanStartElement(Unknown Source) ~[?:?]

        at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown Source) ~[?:?]

        at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source) ~[?:?]

        at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source) ~[?:?]

        at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source) ~[?:?]

        at org.apache.xerces.parsers.XMLParser.parse(Unknown Source) ~[?:?]

        at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source) ~[?:?]

        at org.xml.sax.helpers.XMLFilterImpl.parse(Unknown Source) ~[?:2.5.0]

        at org.eclipse.persistence.internal.oxm.record.XMLReader.parse(XMLReader.java:221) ~[org.eclipse.persistence.core-2.5.1.jar:?]

        at org.eclipse.persistence.internal.oxm.record.SAXUnmarshaller.unmarshal(SAXUnmarshaller.java:492) ~[org.eclipse.persistence.core-2.5.1.jar:?]

        at org.eclipse.persistence.internal.oxm.record.SAXUnmarshaller.unmarshal(SAXUnmarshaller.java:695) ~[org.eclipse.persistence.core-2.5.1.jar:?]

        at org.eclipse.persistence.oxm.XMLUnmarshaller.unmarshal(XMLUnmarshaller.java:655) ~[org.eclipse.persistence.core-2.5.1.jar:?]

        at org.eclipse.persistence.jaxb.JAXBUnmarshaller.unmarshal(JAXBUnmarshaller.java:301) ~[org.eclipse.persistence.moxy-2.5.1.jar:?]

        at org.opennms.core.xml.JaxbUtils.unmarshal(JaxbUtils.java:259) ~[org.opennms.core.xml-20.0.1.jar:?]

        at org.opennms.core.xml.JaxbUtils.unmarshal(JaxbUtils.java:231) ~[org.opennms.core.xml-20.0.1.jar:?]

        at org.opennms.core.xml.JaxbUtils.unmarshal(JaxbUtils.java:226) ~[org.opennms.core.xml-20.0.1.jar:?]

        at org.opennms.protocols.xml.dao.jaxb.XmlDataCollectionConfigDaoJaxb.parseXmlGroups(XmlDataCollectionConfigDaoJaxb.java:118) ~[org.opennms.protocols.xml-20.0.1.jar:?]

        at org.opennms.protocols.xml.dao.jaxb.XmlDataCollectionConfigDaoJaxb.translateConfig(XmlDataCollectionConfigDaoJaxb.java:100) ~[org.opennms.protocols.xml-20.0.1.jar:?]

        at org.opennms.protocols.xml.dao.jaxb.XmlDataCollectionConfigDaoJaxb.translateConfig(XmlDataCollectionConfigDaoJaxb.java:50) ~[org.opennms.protocols.xml-20.0.1.jar:?]

        at org.opennms.core.xml.AbstractJaxbConfigDao.loadConfig(AbstractJaxbConfigDao.java:92) ~[org.opennms.core.xml-20.0.1.jar:?]

        at org.opennms.core.xml.AbstractJaxbConfigDao.afterPropertiesSet(AbstractJaxbConfigDao.java:108) ~[org.opennms.core.xml-20.0.1.jar:?]

        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1633) ~[org.apache.servicemix.bundles.spring-beans-4.1.6.RELEASE_1.jar:?]

        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1570) ~[org.apache.servicemix.bundles.spring-beans-4.1.6.RELEASE_1.jar:?]

        ... 74 more

Caused by: java.lang.IllegalArgumentException: Unsupported attribute type 'GAUGE64'. Supported types include: , gauge, counter, string.

        at org.opennms.netmgt.collection.adapters.AttributeTypeAdapter.unmarshal(AttributeTypeAdapter.java:61) ~[org.opennms.features.collection.api-20.0.1.jar:?]

        at org.opennms.netmgt.collection.adapters.AttributeTypeAdapter.unmarshal(AttributeTypeAdapter.java:35) ~[org.opennms.features.collection.api-20.0.1.jar:?]

        at org.eclipse.persistence.internal.jaxb.XMLJavaTypeConverter.convertDataValueToObjectValue(XMLJavaTypeConverter.java:153) ~[org.eclipse.persistence.moxy-2.5.1.jar:?]

        at org.eclipse.persistence.oxm.mappings.XMLDirectMapping.convertDataValueToObjectValue(XMLDirectMapping.java:526) ~[org.eclipse.persistence.core-2.5.1.jar:?]

        at org.eclipse.persistence.oxm.mappings.XMLDirectMapping.getAttributeValue(XMLDirectMapping.java:296) ~[org.eclipse.persistence.core-2.5.1.jar:?]

        at org.eclipse.persistence.oxm.mappings.XMLDirectMapping.getAttributeValue(XMLDirectMapping.java:1) ~[org.eclipse.persistence.core-2.5.1.jar:?]

        at org.eclipse.persistence.internal.oxm.XMLDirectMappingNodeValue.attribute(XMLDirectMappingNodeValue.java:159) ~[org.eclipse.persistence.core-2.5.1.jar:?]

        at org.eclipse.persistence.internal.oxm.record.UnmarshalRecordImpl.startElement(UnmarshalRecordImpl.java:901) ~[org.eclipse.persistence.core-2.5.1.jar:?]

        at org.eclipse.persistence.internal.oxm.XMLRelationshipMappingNodeValue.processChild(XMLRelationshipMappingNodeValue.java:110) ~[org.eclipse.persistence.core-2.5.1.jar:?]

        at org.eclipse.persistence.internal.oxm.XMLCompositeCollectionMappingNodeValue.startElement(XMLCompositeCollectionMappingNodeValue.java:188) ~[org.eclipse.persistence.core-2.5.1.jar:?]

        at org.eclipse.persistence.internal.oxm.record.UnmarshalRecordImpl.startElement(UnmarshalRecordImpl.java:839) ~[org.eclipse.persistence.core-2.5.1.jar:?]

        at org.xml.sax.helpers.XMLFilterImpl.startElement(Unknown Source) ~[?:2.5.0]

        at org.opennms.core.xml.SimpleNamespaceFilter.startElement(SimpleNamespaceFilter.java:83) ~[org.opennms.core.xml-20.0.1.jar:?]

        at org.apache.xerces.parsers.AbstractSAXParser.startElement(Unknown Source) ~[?:?]

        at org.apache.xerces.parsers.AbstractXMLDocumentParser.emptyElement(Unknown Source) ~[?:?]

        at org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanStartElement(Unknown Source) ~[?:?]

        at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown Source) ~[?:?]

        at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source) ~[?:?]

        at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source) ~[?:?]

        at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source) ~[?:?]

        at org.apache.xerces.parsers.XMLParser.parse(Unknown Source) ~[?:?]

        at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source) ~[?:?]

        at org.xml.sax.helpers.XMLFilterImpl.parse(Unknown Source) ~[?:2.5.0]

        at org.eclipse.persistence.internal.oxm.record.XMLReader.parse(XMLReader.java:221) ~[org.eclipse.persistence.core-2.5.1.jar:?]

        at org.eclipse.persistence.internal.oxm.record.SAXUnmarshaller.unmarshal(SAXUnmarshaller.java:492) ~[org.eclipse.persistence.core-2.5.1.jar:?]

        at org.eclipse.persistence.internal.oxm.record.SAXUnmarshaller.unmarshal(SAXUnmarshaller.java:695) ~[org.eclipse.persistence.core-2.5.1.jar:?]

        at org.eclipse.persistence.oxm.XMLUnmarshaller.unmarshal(XMLUnmarshaller.java:655) ~[org.eclipse.persistence.core-2.5.1.jar:?]

        at org.eclipse.persistence.jaxb.JAXBUnmarshaller.unmarshal(JAXBUnmarshaller.java:301) ~[org.eclipse.persistence.moxy-2.5.1.jar:?]

        at org.opennms.core.xml.JaxbUtils.unmarshal(JaxbUtils.java:259) ~[org.opennms.core.xml-20.0.1.jar:?]

        at org.opennms.core.xml.JaxbUtils.unmarshal(JaxbUtils.java:231) ~[org.opennms.core.xml-20.0.1.jar:?]

        at org.opennms.core.xml.JaxbUtils.unmarshal(JaxbUtils.java:226) ~[org.opennms.core.xml-20.0.1.jar:?]

        at org.opennms.protocols.xml.dao.jaxb.XmlDataCollectionConfigDaoJaxb.parseXmlGroups(XmlDataCollectionConfigDaoJaxb.java:118) ~[org.opennms.protocols.xml-20.0.1.jar:?]

        at org.opennms.protocols.xml.dao.jaxb.XmlDataCollectionConfigDaoJaxb.translateConfig(XmlDataCollectionConfigDaoJaxb.java:100) ~[org.opennms.protocols.xml-20.0.1.jar:?]

        at org.opennms.protocols.xml.dao.jaxb.XmlDataCollectionConfigDaoJaxb.translateConfig(XmlDataCollectionConfigDaoJaxb.java:50) ~[org.opennms.protocols.xml-20.0.1.jar:?]

        at org.opennms.core.xml.AbstractJaxbConfigDao.loadConfig(AbstractJaxbConfigDao.java:92) ~[org.opennms.core.xml-20.0.1.jar:?]

        at org.opennms.core.xml.AbstractJaxbConfigDao.afterPropertiesSet(AbstractJaxbConfigDao.java:108) ~[org.opennms.core.xml-20.0.1.jar:?]

        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1633) ~[org.apache.servicemix.bundles.spring-beans-4.1.6.RELEASE_1.jar:?]

        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1570) ~[org.apache.servicemix.bundles.spring-beans-4.1.6.RELEASE_1.jar:?]

        ... 74 more

 

William Showers
Director of Information Technology

Pittsburgh Technical College
412-809-5268
[hidden email]

 




This message and any attachments are intended only for the use of the addressee and may contain information that is privileged and confidential. If the reader of the message is not the intended recipient or an authorized representative of the intended recipient, you are hereby notified that any dissemination of this communication is strictly prohibited. If you have received this communication in error, notify the sender immediately by return email and delete the message and any attachments from your system.
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Please read the OpenNMS Mailing List FAQ:
http://www.opennms.org/index.php/Mailing_List_FAQ

opennms-discuss mailing list

To *unsubscribe* or change your subscription options, see the bottom of this page:
https://lists.sourceforge.net/lists/listinfo/opennms-discuss
Reply | Threaded
Open this post in threaded view
|

Re: XML datacollection crash after upgrading to v20

Roskens, Ronald-2

What happens if you change the type from GAUGE64 to gauge?

 

From: Showers, William [mailto:[hidden email]]
Sent: Tuesday, August 01, 2017 10:56 AM
To: [hidden email]
Subject: [opennms-discuss] XML datacollection crash after upgrading to v20

 

Hello,

 

We use the XML data collector to pull data from Elasticsearch into OpenNMS. I followed the steps outlined at the below link and it was working perfectly on v19.

 

https://github.com/opennms-config-modules/elasticsearch

 

Since upgrading to v20 the XML data collector stops OpenNMS from starting up and gives the below error message. Can anyone assist?

 

2017-08-01 10:50:40,267 WARN  [Main] o.s.c.s.ClassPathXmlApplicationContext: Exception encountered during context initialization - cancelling refresh attempt

org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'xmlDataCollectionConfigDao' defined in URL [jar:file:/usr/share/opennms/lib/org.opennms.protocols.xml-20.0.1.jar!/META-INF/opennms/component-dao.xml]: Invocation of init method failed; nested exception is Exception [EclipseLink-3001] (Eclipse Persistence Services - 2.5.1.v20130918-f2b9fc5): org.eclipse.persistence.exceptions.ConversionException

Exception Description: The object [GAUGE64], of class [class java.lang.String], could not be converted to [class org.opennms.netmgt.collection.api.AttributeType].

Internal Exception: java.lang.IllegalArgumentException: Unsupported attribute type 'GAUGE64'. Supported types include: , gauge, counter, string.

        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1574) ~[org.apache.servicemix.bundles.spring-beans-4.1.6.RELEASE_1.jar:?]

        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:539) ~[org.apache.servicemix.bundles.spring-beans-4.1.6.RELEASE_1.jar:?]

        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:476) ~[org.apache.servicemix.bundles.spring-beans-4.1.6.RELEASE_1.jar:?]

        at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:303) ~[org.apache.servicemix.bundles.spring-beans-4.1.6.RELEASE_1.jar:?]

        at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:230) ~[org.apache.servicemix.bundles.spring-beans-4.1.6.RELEASE_1.jar:?]

        at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:299) ~[org.apache.servicemix.bundles.spring-beans-4.1.6.RELEASE_1.jar:?]

        at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:194) ~[org.apache.servicemix.bundles.spring-beans-4.1.6.RELEASE_1.jar:?]

        at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:755) ~[org.apache.servicemix.bundles.spring-beans-4.1.6.RELEASE_1.jar:?]

        at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:757) ~[org.apache.servicemix.bundles.spring-context-4.1.6.RELEASE_1.jar:?]

        at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:480) [org.apache.servicemix.bundles.spring-context-4.1.6.RELEASE_1.jar:?]

        at org.springframework.context.support.ClassPathXmlApplicationContext.<init>(ClassPathXmlApplicationContext.java:139) [org.apache.servicemix.bundles.spring-context-4.1.6.RELEASE_1.jar:?]

        at org.springframework.context.support.ClassPathXmlApplicationContext.<init>(ClassPathXmlApplicationContext.java:105) [org.apache.servicemix.bundles.spring-context-4.1.6.RELEASE_1.jar:?]

        at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) ~[?:1.8.0_45]

        at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62) [?:1.8.0_45]

        at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) [?:1.8.0_45]

        at java.lang.reflect.Constructor.newInstance(Constructor.java:422) [?:1.8.0_45]

        at org.springframework.beans.BeanUtils.instantiateClass(BeanUtils.java:147) [org.apache.servicemix.bundles.spring-beans-4.1.6.RELEASE_1.jar:?]

        at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:122) [org.apache.servicemix.bundles.spring-beans-4.1.6.RELEASE_1.jar:?]

        at org.springframework.beans.factory.support.ConstructorResolver.autowireConstructor(ConstructorResolver.java:267) [org.apache.servicemix.bundles.spring-beans-4.1.6.RELEASE_1.jar:?]

        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.autowireConstructor(AbstractAutowireCapableBeanFactory.java:1139) [org.apache.servicemix.bundles.spring-beans-4.1.6.RELEASE_1.jar:?]

        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:1042) [org.apache.servicemix.bundles.spring-beans-4.1.6.RELEASE_1.jar:?]

        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:504) [org.apache.servicemix.bundles.spring-beans-4.1.6.RELEASE_1.jar:?]

        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:476) [org.apache.servicemix.bundles.spring-beans-4.1.6.RELEASE_1.jar:?]

        at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:303) [org.apache.servicemix.bundles.spring-beans-4.1.6.RELEASE_1.jar:?]

        at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:230) [org.apache.servicemix.bundles.spring-beans-4.1.6.RELEASE_1.jar:?]

        at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:299) [org.apache.servicemix.bundles.spring-beans-4.1.6.RELEASE_1.jar:?]

        at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:194) [org.apache.servicemix.bundles.spring-beans-4.1.6.RELEASE_1.jar:?]

        at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:351) [org.apache.servicemix.bundles.spring-beans-4.1.6.RELEASE_1.jar:?]

        at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:108) [org.apache.servicemix.bundles.spring-beans-4.1.6.RELEASE_1.jar:?]

        at org.springframework.beans.factory.support.ConstructorResolver.resolveConstructorArguments(ConstructorResolver.java:648) [org.apache.servicemix.bundles.spring-beans-4.1.6.RELEASE_1.jar:?]

        at org.springframework.beans.factory.support.ConstructorResolver.autowireConstructor(ConstructorResolver.java:140) [org.apache.servicemix.bundles.spring-beans-4.1.6.RELEASE_1.jar:?]

        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.autowireConstructor(AbstractAutowireCapableBeanFactory.java:1139) [org.apache.servicemix.bundles.spring-beans-4.1.6.RELEASE_1.jar:?]

        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:1042) [org.apache.servicemix.bundles.spring-beans-4.1.6.RELEASE_1.jar:?]

        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:504) [org.apache.servicemix.bundles.spring-beans-4.1.6.RELEASE_1.jar:?]

        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:476) [org.apache.servicemix.bundles.spring-beans-4.1.6.RELEASE_1.jar:?]

        at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:303) [org.apache.servicemix.bundles.spring-beans-4.1.6.RELEASE_1.jar:?]

        at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:230) [org.apache.servicemix.bundles.spring-beans-4.1.6.RELEASE_1.jar:?]

        at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:299) [org.apache.servicemix.bundles.spring-beans-4.1.6.RELEASE_1.jar:?]

        at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:199) [org.apache.servicemix.bundles.spring-beans-4.1.6.RELEASE_1.jar:?]

        at org.springframework.context.support.AbstractApplicationContext.getBean(AbstractApplicationContext.java:962) [org.apache.servicemix.bundles.spring-context-4.1.6.RELEASE_1.jar:?]

        at org.springframework.beans.factory.access.SingletonBeanFactoryLocator.useBeanFactory(SingletonBeanFactoryLocator.java:396) [org.apache.servicemix.bundles.spring-beans-4.1.6.RELEASE_1.jar:?]

        at org.opennms.core.spring.BeanUtils.getBeanFactory(BeanUtils.java:80) [org.opennms.core.spring-20.0.1.jar:?]

        at org.opennms.core.spring.BeanUtils.getFactory(BeanUtils.java:132) [org.opennms.core.spring-20.0.1.jar:?]

        at org.opennms.netmgt.daemon.AbstractSpringContextJmxServiceDaemon$1.run(AbstractSpringContextJmxServiceDaemon.java:103) [org.opennms.core.daemon-20.0.1.jar:?]

        at org.opennms.core.logging.Logging.withPrefix(Logging.java:71) [org.opennms.core.logging-20.0.1.jar:?]

        at org.opennms.netmgt.daemon.AbstractSpringContextJmxServiceDaemon.init(AbstractSpringContextJmxServiceDaemon.java:96) [org.opennms.core.daemon-20.0.1.jar:?]

        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_45]

        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[?:1.8.0_45]

        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.8.0_45]

        at java.lang.reflect.Method.invoke(Method.java:497) ~[?:1.8.0_45]

        at sun.reflect.misc.Trampoline.invoke(MethodUtil.java:71) [?:1.8.0_45]

        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_45]

        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[?:1.8.0_45]

        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.8.0_45]

        at java.lang.reflect.Method.invoke(Method.java:497) ~[?:1.8.0_45]

        at sun.reflect.misc.MethodUtil.invoke(MethodUtil.java:275) [?:1.8.0_45]

        at com.sun.jmx.mbeanserver.StandardMBeanIntrospector.invokeM2(StandardMBeanIntrospector.java:112) [?:1.8.0_45]

        at com.sun.jmx.mbeanserver.StandardMBeanIntrospector.invokeM2(StandardMBeanIntrospector.java:46) [?:1.8.0_45]

        at com.sun.jmx.mbeanserver.MBeanIntrospector.invokeM(MBeanIntrospector.java:237) [?:1.8.0_45]

        at com.sun.jmx.mbeanserver.PerInterface.invoke(PerInterface.java:138) [?:1.8.0_45]

        at com.sun.jmx.mbeanserver.MBeanSupport.invoke(MBeanSupport.java:252) [?:1.8.0_45]

        at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.invoke(DefaultMBeanServerInterceptor.java:819) [?:1.8.0_45]

        at com.sun.jmx.mbeanserver.JmxMBeanServer.invoke(JmxMBeanServer.java:801) [?:1.8.0_45]

        at org.opennms.netmgt.vmmgr.Invoker.invoke(Invoker.java:277) [org.opennms.core.daemon-20.0.1.jar:?]

        at org.opennms.netmgt.vmmgr.Invoker.invokeMethods(Invoker.java:206) [org.opennms.core.daemon-20.0.1.jar:?]

        at org.opennms.netmgt.vmmgr.Starter.start(Starter.java:154) [org.opennms.core.daemon-20.0.1.jar:?]

        at org.opennms.netmgt.vmmgr.Starter.startDaemon(Starter.java:94) [org.opennms.core.daemon-20.0.1.jar:?]

        at org.opennms.netmgt.vmmgr.Controller.start(Controller.java:173) [org.opennms.core.daemon-20.0.1.jar:?]

        at org.opennms.netmgt.vmmgr.Controller.main(Controller.java:150) [org.opennms.core.daemon-20.0.1.jar:?]

        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_45]

        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[?:1.8.0_45]

        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.8.0_45]

        at java.lang.reflect.Method.invoke(Method.java:497) ~[?:1.8.0_45]

        at org.opennms.bootstrap.Bootstrap$4.run(Bootstrap.java:525) [opennms_bootstrap.jar:?]

        at java.lang.Thread.run(Thread.java:745) [?:1.8.0_45]

Caused by: org.eclipse.persistence.exceptions.ConversionException:

Exception Description: The object [GAUGE64], of class [class java.lang.String], could not be converted to [class org.opennms.netmgt.collection.api.AttributeType].

Internal Exception: java.lang.IllegalArgumentException: Unsupported attribute type 'GAUGE64'. Supported types include: , gauge, counter, string.

        at org.eclipse.persistence.exceptions.ConversionException.couldNotBeConverted(ConversionException.java:87) ~[org.eclipse.persistence.core-2.5.1.jar:?]

        at org.eclipse.persistence.internal.jaxb.XMLJavaTypeConverter.convertDataValueToObjectValue(XMLJavaTypeConverter.java:162) ~[org.eclipse.persistence.moxy-2.5.1.jar:?]

        at org.eclipse.persistence.oxm.mappings.XMLDirectMapping.convertDataValueToObjectValue(XMLDirectMapping.java:526) ~[org.eclipse.persistence.core-2.5.1.jar:?]

        at org.eclipse.persistence.oxm.mappings.XMLDirectMapping.getAttributeValue(XMLDirectMapping.java:296) ~[org.eclipse.persistence.core-2.5.1.jar:?]

        at org.eclipse.persistence.oxm.mappings.XMLDirectMapping.getAttributeValue(XMLDirectMapping.java:1) ~[org.eclipse.persistence.core-2.5.1.jar:?]

        at org.eclipse.persistence.internal.oxm.XMLDirectMappingNodeValue.attribute(XMLDirectMappingNodeValue.java:159) ~[org.eclipse.persistence.core-2.5.1.jar:?]

        at org.eclipse.persistence.internal.oxm.record.UnmarshalRecordImpl.startElement(UnmarshalRecordImpl.java:901) ~[org.eclipse.persistence.core-2.5.1.jar:?]

        at org.eclipse.persistence.internal.oxm.XMLRelationshipMappingNodeValue.processChild(XMLRelationshipMappingNodeValue.java:110) ~[org.eclipse.persistence.core-2.5.1.jar:?]

        at org.eclipse.persistence.internal.oxm.XMLCompositeCollectionMappingNodeValue.startElement(XMLCompositeCollectionMappingNodeValue.java:188) ~[org.eclipse.persistence.core-2.5.1.jar:?]

        at org.eclipse.persistence.internal.oxm.record.UnmarshalRecordImpl.startElement(UnmarshalRecordImpl.java:839) ~[org.eclipse.persistence.core-2.5.1.jar:?]

        at org.xml.sax.helpers.XMLFilterImpl.startElement(Unknown Source) ~[?:2.5.0]

        at org.opennms.core.xml.SimpleNamespaceFilter.startElement(SimpleNamespaceFilter.java:83) ~[org.opennms.core.xml-20.0.1.jar:?]

        at org.apache.xerces.parsers.AbstractSAXParser.startElement(Unknown Source) ~[?:?]

        at org.apache.xerces.parsers.AbstractXMLDocumentParser.emptyElement(Unknown Source) ~[?:?]

        at org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanStartElement(Unknown Source) ~[?:?]

        at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown Source) ~[?:?]

        at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source) ~[?:?]

        at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source) ~[?:?]

        at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source) ~[?:?]

        at org.apache.xerces.parsers.XMLParser.parse(Unknown Source) ~[?:?]

        at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source) ~[?:?]

        at org.xml.sax.helpers.XMLFilterImpl.parse(Unknown Source) ~[?:2.5.0]

        at org.eclipse.persistence.internal.oxm.record.XMLReader.parse(XMLReader.java:221) ~[org.eclipse.persistence.core-2.5.1.jar:?]

        at org.eclipse.persistence.internal.oxm.record.SAXUnmarshaller.unmarshal(SAXUnmarshaller.java:492) ~[org.eclipse.persistence.core-2.5.1.jar:?]

        at org.eclipse.persistence.internal.oxm.record.SAXUnmarshaller.unmarshal(SAXUnmarshaller.java:695) ~[org.eclipse.persistence.core-2.5.1.jar:?]

        at org.eclipse.persistence.oxm.XMLUnmarshaller.unmarshal(XMLUnmarshaller.java:655) ~[org.eclipse.persistence.core-2.5.1.jar:?]

        at org.eclipse.persistence.jaxb.JAXBUnmarshaller.unmarshal(JAXBUnmarshaller.java:301) ~[org.eclipse.persistence.moxy-2.5.1.jar:?]

        at org.opennms.core.xml.JaxbUtils.unmarshal(JaxbUtils.java:259) ~[org.opennms.core.xml-20.0.1.jar:?]

        at org.opennms.core.xml.JaxbUtils.unmarshal(JaxbUtils.java:231) ~[org.opennms.core.xml-20.0.1.jar:?]

        at org.opennms.core.xml.JaxbUtils.unmarshal(JaxbUtils.java:226) ~[org.opennms.core.xml-20.0.1.jar:?]

        at org.opennms.protocols.xml.dao.jaxb.XmlDataCollectionConfigDaoJaxb.parseXmlGroups(XmlDataCollectionConfigDaoJaxb.java:118) ~[org.opennms.protocols.xml-20.0.1.jar:?]

        at org.opennms.protocols.xml.dao.jaxb.XmlDataCollectionConfigDaoJaxb.translateConfig(XmlDataCollectionConfigDaoJaxb.java:100) ~[org.opennms.protocols.xml-20.0.1.jar:?]

        at org.opennms.protocols.xml.dao.jaxb.XmlDataCollectionConfigDaoJaxb.translateConfig(XmlDataCollectionConfigDaoJaxb.java:50) ~[org.opennms.protocols.xml-20.0.1.jar:?]

        at org.opennms.core.xml.AbstractJaxbConfigDao.loadConfig(AbstractJaxbConfigDao.java:92) ~[org.opennms.core.xml-20.0.1.jar:?]

        at org.opennms.core.xml.AbstractJaxbConfigDao.afterPropertiesSet(AbstractJaxbConfigDao.java:108) ~[org.opennms.core.xml-20.0.1.jar:?]

        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1633) ~[org.apache.servicemix.bundles.spring-beans-4.1.6.RELEASE_1.jar:?]

        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1570) ~[org.apache.servicemix.bundles.spring-beans-4.1.6.RELEASE_1.jar:?]

        ... 74 more

Caused by: java.lang.IllegalArgumentException: Unsupported attribute type 'GAUGE64'. Supported types include: , gauge, counter, string.

        at org.opennms.netmgt.collection.adapters.AttributeTypeAdapter.unmarshal(AttributeTypeAdapter.java:61) ~[org.opennms.features.collection.api-20.0.1.jar:?]

        at org.opennms.netmgt.collection.adapters.AttributeTypeAdapter.unmarshal(AttributeTypeAdapter.java:35) ~[org.opennms.features.collection.api-20.0.1.jar:?]

        at org.eclipse.persistence.internal.jaxb.XMLJavaTypeConverter.convertDataValueToObjectValue(XMLJavaTypeConverter.java:153) ~[org.eclipse.persistence.moxy-2.5.1.jar:?]

        at org.eclipse.persistence.oxm.mappings.XMLDirectMapping.convertDataValueToObjectValue(XMLDirectMapping.java:526) ~[org.eclipse.persistence.core-2.5.1.jar:?]

        at org.eclipse.persistence.oxm.mappings.XMLDirectMapping.getAttributeValue(XMLDirectMapping.java:296) ~[org.eclipse.persistence.core-2.5.1.jar:?]

        at org.eclipse.persistence.oxm.mappings.XMLDirectMapping.getAttributeValue(XMLDirectMapping.java:1) ~[org.eclipse.persistence.core-2.5.1.jar:?]

        at org.eclipse.persistence.internal.oxm.XMLDirectMappingNodeValue.attribute(XMLDirectMappingNodeValue.java:159) ~[org.eclipse.persistence.core-2.5.1.jar:?]

        at org.eclipse.persistence.internal.oxm.record.UnmarshalRecordImpl.startElement(UnmarshalRecordImpl.java:901) ~[org.eclipse.persistence.core-2.5.1.jar:?]

        at org.eclipse.persistence.internal.oxm.XMLRelationshipMappingNodeValue.processChild(XMLRelationshipMappingNodeValue.java:110) ~[org.eclipse.persistence.core-2.5.1.jar:?]

        at org.eclipse.persistence.internal.oxm.XMLCompositeCollectionMappingNodeValue.startElement(XMLCompositeCollectionMappingNodeValue.java:188) ~[org.eclipse.persistence.core-2.5.1.jar:?]

        at org.eclipse.persistence.internal.oxm.record.UnmarshalRecordImpl.startElement(UnmarshalRecordImpl.java:839) ~[org.eclipse.persistence.core-2.5.1.jar:?]

        at org.xml.sax.helpers.XMLFilterImpl.startElement(Unknown Source) ~[?:2.5.0]

        at org.opennms.core.xml.SimpleNamespaceFilter.startElement(SimpleNamespaceFilter.java:83) ~[org.opennms.core.xml-20.0.1.jar:?]

        at org.apache.xerces.parsers.AbstractSAXParser.startElement(Unknown Source) ~[?:?]

        at org.apache.xerces.parsers.AbstractXMLDocumentParser.emptyElement(Unknown Source) ~[?:?]

        at org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanStartElement(Unknown Source) ~[?:?]

        at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown Source) ~[?:?]

        at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source) ~[?:?]

        at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source) ~[?:?]

        at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source) ~[?:?]

        at org.apache.xerces.parsers.XMLParser.parse(Unknown Source) ~[?:?]

        at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source) ~[?:?]

        at org.xml.sax.helpers.XMLFilterImpl.parse(Unknown Source) ~[?:2.5.0]

        at org.eclipse.persistence.internal.oxm.record.XMLReader.parse(XMLReader.java:221) ~[org.eclipse.persistence.core-2.5.1.jar:?]

        at org.eclipse.persistence.internal.oxm.record.SAXUnmarshaller.unmarshal(SAXUnmarshaller.java:492) ~[org.eclipse.persistence.core-2.5.1.jar:?]

        at org.eclipse.persistence.internal.oxm.record.SAXUnmarshaller.unmarshal(SAXUnmarshaller.java:695) ~[org.eclipse.persistence.core-2.5.1.jar:?]

        at org.eclipse.persistence.oxm.XMLUnmarshaller.unmarshal(XMLUnmarshaller.java:655) ~[org.eclipse.persistence.core-2.5.1.jar:?]

        at org.eclipse.persistence.jaxb.JAXBUnmarshaller.unmarshal(JAXBUnmarshaller.java:301) ~[org.eclipse.persistence.moxy-2.5.1.jar:?]

        at org.opennms.core.xml.JaxbUtils.unmarshal(JaxbUtils.java:259) ~[org.opennms.core.xml-20.0.1.jar:?]

        at org.opennms.core.xml.JaxbUtils.unmarshal(JaxbUtils.java:231) ~[org.opennms.core.xml-20.0.1.jar:?]

        at org.opennms.core.xml.JaxbUtils.unmarshal(JaxbUtils.java:226) ~[org.opennms.core.xml-20.0.1.jar:?]

        at org.opennms.protocols.xml.dao.jaxb.XmlDataCollectionConfigDaoJaxb.parseXmlGroups(XmlDataCollectionConfigDaoJaxb.java:118) ~[org.opennms.protocols.xml-20.0.1.jar:?]

        at org.opennms.protocols.xml.dao.jaxb.XmlDataCollectionConfigDaoJaxb.translateConfig(XmlDataCollectionConfigDaoJaxb.java:100) ~[org.opennms.protocols.xml-20.0.1.jar:?]

        at org.opennms.protocols.xml.dao.jaxb.XmlDataCollectionConfigDaoJaxb.translateConfig(XmlDataCollectionConfigDaoJaxb.java:50) ~[org.opennms.protocols.xml-20.0.1.jar:?]

        at org.opennms.core.xml.AbstractJaxbConfigDao.loadConfig(AbstractJaxbConfigDao.java:92) ~[org.opennms.core.xml-20.0.1.jar:?]

        at org.opennms.core.xml.AbstractJaxbConfigDao.afterPropertiesSet(AbstractJaxbConfigDao.java:108) ~[org.opennms.core.xml-20.0.1.jar:?]

        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1633) ~[org.apache.servicemix.bundles.spring-beans-4.1.6.RELEASE_1.jar:?]

        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1570) ~[org.apache.servicemix.bundles.spring-beans-4.1.6.RELEASE_1.jar:?]

        ... 74 more

 

William Showers
Director of Information Technology

Pittsburgh Technical College
412-809-5268
[hidden email]

 




This message and any attachments are intended only for the use of the addressee and may contain information that is privileged and confidential. If the reader of the message is not the intended recipient or an authorized representative of the intended recipient, you are hereby notified that any dissemination of this communication is strictly prohibited. If you have received this communication in error, notify the sender immediately by return email and delete the message and any attachments from your system.


This e-mail message is being sent solely for use by the intended recipient(s) and may contain confidential information. Any unauthorized review, use, disclosure or distribution is prohibited. If you are not the intended recipient, please contact the sender by phone or reply by e-mail, delete the original message and destroy all copies. Thank you.

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Please read the OpenNMS Mailing List FAQ:
http://www.opennms.org/index.php/Mailing_List_FAQ

opennms-discuss mailing list

To *unsubscribe* or change your subscription options, see the bottom of this page:
https://lists.sourceforge.net/lists/listinfo/opennms-discuss
Reply | Threaded
Open this post in threaded view
|

Re: XML datacollection crash after upgrading to v20

Showers, William

It allows the service to start but no data gets collected.

 

From: Roskens, Ronald [mailto:[hidden email]]
Sent: Tuesday, August 1, 2017 12:57 PM
To: 'General OpenNMS Discussion' <[hidden email]>
Subject: Re: [opennms-discuss] XML datacollection crash after upgrading to v20

 

What happens if you change the type from GAUGE64 to gauge?

 

From: Showers, William [[hidden email]]
Sent: Tuesday, August 01, 2017 10:56 AM
To: [hidden email]
Subject: [opennms-discuss] XML datacollection crash after upgrading to v20

 

Hello,

 

We use the XML data collector to pull data from Elasticsearch into OpenNMS. I followed the steps outlined at the below link and it was working perfectly on v19.

 

https://github.com/opennms-config-modules/elasticsearch

 

Since upgrading to v20 the XML data collector stops OpenNMS from starting up and gives the below error message. Can anyone assist?

 

2017-08-01 10:50:40,267 WARN  [Main] o.s.c.s.ClassPathXmlApplicationContext: Exception encountered during context initialization - cancelling refresh attempt

org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'xmlDataCollectionConfigDao' defined in URL [jar:file:/usr/share/opennms/lib/org.opennms.protocols.xml-20.0.1.jar!/META-INF/opennms/component-dao.xml]: Invocation of init method failed; nested exception is Exception [EclipseLink-3001] (Eclipse Persistence Services - 2.5.1.v20130918-f2b9fc5): org.eclipse.persistence.exceptions.ConversionException

Exception Description: The object [GAUGE64], of class [class java.lang.String], could not be converted to [class org.opennms.netmgt.collection.api.AttributeType].

Internal Exception: java.lang.IllegalArgumentException: Unsupported attribute type 'GAUGE64'. Supported types include: , gauge, counter, string.

        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1574) ~[org.apache.servicemix.bundles.spring-beans-4.1.6.RELEASE_1.jar:?]

        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:539) ~[org.apache.servicemix.bundles.spring-beans-4.1.6.RELEASE_1.jar:?]

        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:476) ~[org.apache.servicemix.bundles.spring-beans-4.1.6.RELEASE_1.jar:?]

        at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:303) ~[org.apache.servicemix.bundles.spring-beans-4.1.6.RELEASE_1.jar:?]

        at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:230) ~[org.apache.servicemix.bundles.spring-beans-4.1.6.RELEASE_1.jar:?]

        at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:299) ~[org.apache.servicemix.bundles.spring-beans-4.1.6.RELEASE_1.jar:?]

        at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:194) ~[org.apache.servicemix.bundles.spring-beans-4.1.6.RELEASE_1.jar:?]

        at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:755) ~[org.apache.servicemix.bundles.spring-beans-4.1.6.RELEASE_1.jar:?]

        at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:757) ~[org.apache.servicemix.bundles.spring-context-4.1.6.RELEASE_1.jar:?]

        at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:480) [org.apache.servicemix.bundles.spring-context-4.1.6.RELEASE_1.jar:?]

        at org.springframework.context.support.ClassPathXmlApplicationContext.<init>(ClassPathXmlApplicationContext.java:139) [org.apache.servicemix.bundles.spring-context-4.1.6.RELEASE_1.jar:?]

        at org.springframework.context.support.ClassPathXmlApplicationContext.<init>(ClassPathXmlApplicationContext.java:105) [org.apache.servicemix.bundles.spring-context-4.1.6.RELEASE_1.jar:?]

        at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) ~[?:1.8.0_45]

        at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62) [?:1.8.0_45]

        at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) [?:1.8.0_45]

        at java.lang.reflect.Constructor.newInstance(Constructor.java:422) [?:1.8.0_45]

        at org.springframework.beans.BeanUtils.instantiateClass(BeanUtils.java:147) [org.apache.servicemix.bundles.spring-beans-4.1.6.RELEASE_1.jar:?]

        at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:122) [org.apache.servicemix.bundles.spring-beans-4.1.6.RELEASE_1.jar:?]

        at org.springframework.beans.factory.support.ConstructorResolver.autowireConstructor(ConstructorResolver.java:267) [org.apache.servicemix.bundles.spring-beans-4.1.6.RELEASE_1.jar:?]

        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.autowireConstructor(AbstractAutowireCapableBeanFactory.java:1139) [org.apache.servicemix.bundles.spring-beans-4.1.6.RELEASE_1.jar:?]

        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:1042) [org.apache.servicemix.bundles.spring-beans-4.1.6.RELEASE_1.jar:?]

        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:504) [org.apache.servicemix.bundles.spring-beans-4.1.6.RELEASE_1.jar:?]

        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:476) [org.apache.servicemix.bundles.spring-beans-4.1.6.RELEASE_1.jar:?]

        at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:303) [org.apache.servicemix.bundles.spring-beans-4.1.6.RELEASE_1.jar:?]

        at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:230) [org.apache.servicemix.bundles.spring-beans-4.1.6.RELEASE_1.jar:?]

        at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:299) [org.apache.servicemix.bundles.spring-beans-4.1.6.RELEASE_1.jar:?]

        at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:194) [org.apache.servicemix.bundles.spring-beans-4.1.6.RELEASE_1.jar:?]

        at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:351) [org.apache.servicemix.bundles.spring-beans-4.1.6.RELEASE_1.jar:?]

        at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:108) [org.apache.servicemix.bundles.spring-beans-4.1.6.RELEASE_1.jar:?]

        at org.springframework.beans.factory.support.ConstructorResolver.resolveConstructorArguments(ConstructorResolver.java:648) [org.apache.servicemix.bundles.spring-beans-4.1.6.RELEASE_1.jar:?]

        at org.springframework.beans.factory.support.ConstructorResolver.autowireConstructor(ConstructorResolver.java:140) [org.apache.servicemix.bundles.spring-beans-4.1.6.RELEASE_1.jar:?]

        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.autowireConstructor(AbstractAutowireCapableBeanFactory.java:1139) [org.apache.servicemix.bundles.spring-beans-4.1.6.RELEASE_1.jar:?]

        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:1042) [org.apache.servicemix.bundles.spring-beans-4.1.6.RELEASE_1.jar:?]

        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:504) [org.apache.servicemix.bundles.spring-beans-4.1.6.RELEASE_1.jar:?]

        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:476) [org.apache.servicemix.bundles.spring-beans-4.1.6.RELEASE_1.jar:?]

        at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:303) [org.apache.servicemix.bundles.spring-beans-4.1.6.RELEASE_1.jar:?]

        at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:230) [org.apache.servicemix.bundles.spring-beans-4.1.6.RELEASE_1.jar:?]

        at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:299) [org.apache.servicemix.bundles.spring-beans-4.1.6.RELEASE_1.jar:?]

        at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:199) [org.apache.servicemix.bundles.spring-beans-4.1.6.RELEASE_1.jar:?]

        at org.springframework.context.support.AbstractApplicationContext.getBean(AbstractApplicationContext.java:962) [org.apache.servicemix.bundles.spring-context-4.1.6.RELEASE_1.jar:?]

        at org.springframework.beans.factory.access.SingletonBeanFactoryLocator.useBeanFactory(SingletonBeanFactoryLocator.java:396) [org.apache.servicemix.bundles.spring-beans-4.1.6.RELEASE_1.jar:?]

        at org.opennms.core.spring.BeanUtils.getBeanFactory(BeanUtils.java:80) [org.opennms.core.spring-20.0.1.jar:?]

        at org.opennms.core.spring.BeanUtils.getFactory(BeanUtils.java:132) [org.opennms.core.spring-20.0.1.jar:?]

        at org.opennms.netmgt.daemon.AbstractSpringContextJmxServiceDaemon$1.run(AbstractSpringContextJmxServiceDaemon.java:103) [org.opennms.core.daemon-20.0.1.jar:?]

        at org.opennms.core.logging.Logging.withPrefix(Logging.java:71) [org.opennms.core.logging-20.0.1.jar:?]

        at org.opennms.netmgt.daemon.AbstractSpringContextJmxServiceDaemon.init(AbstractSpringContextJmxServiceDaemon.java:96) [org.opennms.core.daemon-20.0.1.jar:?]

        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_45]

        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[?:1.8.0_45]

        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.8.0_45]

        at java.lang.reflect.Method.invoke(Method.java:497) ~[?:1.8.0_45]

        at sun.reflect.misc.Trampoline.invoke(MethodUtil.java:71) [?:1.8.0_45]

        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_45]

        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[?:1.8.0_45]

        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.8.0_45]

        at java.lang.reflect.Method.invoke(Method.java:497) ~[?:1.8.0_45]

        at sun.reflect.misc.MethodUtil.invoke(MethodUtil.java:275) [?:1.8.0_45]

        at com.sun.jmx.mbeanserver.StandardMBeanIntrospector.invokeM2(StandardMBeanIntrospector.java:112) [?:1.8.0_45]

        at com.sun.jmx.mbeanserver.StandardMBeanIntrospector.invokeM2(StandardMBeanIntrospector.java:46) [?:1.8.0_45]

        at com.sun.jmx.mbeanserver.MBeanIntrospector.invokeM(MBeanIntrospector.java:237) [?:1.8.0_45]

        at com.sun.jmx.mbeanserver.PerInterface.invoke(PerInterface.java:138) [?:1.8.0_45]

        at com.sun.jmx.mbeanserver.MBeanSupport.invoke(MBeanSupport.java:252) [?:1.8.0_45]

        at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.invoke(DefaultMBeanServerInterceptor.java:819) [?:1.8.0_45]

        at com.sun.jmx.mbeanserver.JmxMBeanServer.invoke(JmxMBeanServer.java:801) [?:1.8.0_45]

        at org.opennms.netmgt.vmmgr.Invoker.invoke(Invoker.java:277) [org.opennms.core.daemon-20.0.1.jar:?]

        at org.opennms.netmgt.vmmgr.Invoker.invokeMethods(Invoker.java:206) [org.opennms.core.daemon-20.0.1.jar:?]

        at org.opennms.netmgt.vmmgr.Starter.start(Starter.java:154) [org.opennms.core.daemon-20.0.1.jar:?]

        at org.opennms.netmgt.vmmgr.Starter.startDaemon(Starter.java:94) [org.opennms.core.daemon-20.0.1.jar:?]

        at org.opennms.netmgt.vmmgr.Controller.start(Controller.java:173) [org.opennms.core.daemon-20.0.1.jar:?]

        at org.opennms.netmgt.vmmgr.Controller.main(Controller.java:150) [org.opennms.core.daemon-20.0.1.jar:?]

        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_45]

        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[?:1.8.0_45]

        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.8.0_45]

        at java.lang.reflect.Method.invoke(Method.java:497) ~[?:1.8.0_45]

        at org.opennms.bootstrap.Bootstrap$4.run(Bootstrap.java:525) [opennms_bootstrap.jar:?]

        at java.lang.Thread.run(Thread.java:745) [?:1.8.0_45]

Caused by: org.eclipse.persistence.exceptions.ConversionException:

Exception Description: The object [GAUGE64], of class [class java.lang.String], could not be converted to [class org.opennms.netmgt.collection.api.AttributeType].

Internal Exception: java.lang.IllegalArgumentException: Unsupported attribute type 'GAUGE64'. Supported types include: , gauge, counter, string.

        at org.eclipse.persistence.exceptions.ConversionException.couldNotBeConverted(ConversionException.java:87) ~[org.eclipse.persistence.core-2.5.1.jar:?]

        at org.eclipse.persistence.internal.jaxb.XMLJavaTypeConverter.convertDataValueToObjectValue(XMLJavaTypeConverter.java:162) ~[org.eclipse.persistence.moxy-2.5.1.jar:?]

        at org.eclipse.persistence.oxm.mappings.XMLDirectMapping.convertDataValueToObjectValue(XMLDirectMapping.java:526) ~[org.eclipse.persistence.core-2.5.1.jar:?]

        at org.eclipse.persistence.oxm.mappings.XMLDirectMapping.getAttributeValue(XMLDirectMapping.java:296) ~[org.eclipse.persistence.core-2.5.1.jar:?]

        at org.eclipse.persistence.oxm.mappings.XMLDirectMapping.getAttributeValue(XMLDirectMapping.java:1) ~[org.eclipse.persistence.core-2.5.1.jar:?]

        at org.eclipse.persistence.internal.oxm.XMLDirectMappingNodeValue.attribute(XMLDirectMappingNodeValue.java:159) ~[org.eclipse.persistence.core-2.5.1.jar:?]

        at org.eclipse.persistence.internal.oxm.record.UnmarshalRecordImpl.startElement(UnmarshalRecordImpl.java:901) ~[org.eclipse.persistence.core-2.5.1.jar:?]

        at org.eclipse.persistence.internal.oxm.XMLRelationshipMappingNodeValue.processChild(XMLRelationshipMappingNodeValue.java:110) ~[org.eclipse.persistence.core-2.5.1.jar:?]

        at org.eclipse.persistence.internal.oxm.XMLCompositeCollectionMappingNodeValue.startElement(XMLCompositeCollectionMappingNodeValue.java:188) ~[org.eclipse.persistence.core-2.5.1.jar:?]

        at org.eclipse.persistence.internal.oxm.record.UnmarshalRecordImpl.startElement(UnmarshalRecordImpl.java:839) ~[org.eclipse.persistence.core-2.5.1.jar:?]

        at org.xml.sax.helpers.XMLFilterImpl.startElement(Unknown Source) ~[?:2.5.0]

        at org.opennms.core.xml.SimpleNamespaceFilter.startElement(SimpleNamespaceFilter.java:83) ~[org.opennms.core.xml-20.0.1.jar:?]

        at org.apache.xerces.parsers.AbstractSAXParser.startElement(Unknown Source) ~[?:?]

        at org.apache.xerces.parsers.AbstractXMLDocumentParser.emptyElement(Unknown Source) ~[?:?]

        at org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanStartElement(Unknown Source) ~[?:?]

        at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown Source) ~[?:?]

        at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source) ~[?:?]

        at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source) ~[?:?]

        at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source) ~[?:?]

        at org.apache.xerces.parsers.XMLParser.parse(Unknown Source) ~[?:?]

        at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source) ~[?:?]

        at org.xml.sax.helpers.XMLFilterImpl.parse(Unknown Source) ~[?:2.5.0]

        at org.eclipse.persistence.internal.oxm.record.XMLReader.parse(XMLReader.java:221) ~[org.eclipse.persistence.core-2.5.1.jar:?]

        at org.eclipse.persistence.internal.oxm.record.SAXUnmarshaller.unmarshal(SAXUnmarshaller.java:492) ~[org.eclipse.persistence.core-2.5.1.jar:?]

        at org.eclipse.persistence.internal.oxm.record.SAXUnmarshaller.unmarshal(SAXUnmarshaller.java:695) ~[org.eclipse.persistence.core-2.5.1.jar:?]

        at org.eclipse.persistence.oxm.XMLUnmarshaller.unmarshal(XMLUnmarshaller.java:655) ~[org.eclipse.persistence.core-2.5.1.jar:?]

        at org.eclipse.persistence.jaxb.JAXBUnmarshaller.unmarshal(JAXBUnmarshaller.java:301) ~[org.eclipse.persistence.moxy-2.5.1.jar:?]

        at org.opennms.core.xml.JaxbUtils.unmarshal(JaxbUtils.java:259) ~[org.opennms.core.xml-20.0.1.jar:?]

        at org.opennms.core.xml.JaxbUtils.unmarshal(JaxbUtils.java:231) ~[org.opennms.core.xml-20.0.1.jar:?]

        at org.opennms.core.xml.JaxbUtils.unmarshal(JaxbUtils.java:226) ~[org.opennms.core.xml-20.0.1.jar:?]

        at org.opennms.protocols.xml.dao.jaxb.XmlDataCollectionConfigDaoJaxb.parseXmlGroups(XmlDataCollectionConfigDaoJaxb.java:118) ~[org.opennms.protocols.xml-20.0.1.jar:?]

        at org.opennms.protocols.xml.dao.jaxb.XmlDataCollectionConfigDaoJaxb.translateConfig(XmlDataCollectionConfigDaoJaxb.java:100) ~[org.opennms.protocols.xml-20.0.1.jar:?]

        at org.opennms.protocols.xml.dao.jaxb.XmlDataCollectionConfigDaoJaxb.translateConfig(XmlDataCollectionConfigDaoJaxb.java:50) ~[org.opennms.protocols.xml-20.0.1.jar:?]

        at org.opennms.core.xml.AbstractJaxbConfigDao.loadConfig(AbstractJaxbConfigDao.java:92) ~[org.opennms.core.xml-20.0.1.jar:?]

        at org.opennms.core.xml.AbstractJaxbConfigDao.afterPropertiesSet(AbstractJaxbConfigDao.java:108) ~[org.opennms.core.xml-20.0.1.jar:?]

        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1633) ~[org.apache.servicemix.bundles.spring-beans-4.1.6.RELEASE_1.jar:?]

        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1570) ~[org.apache.servicemix.bundles.spring-beans-4.1.6.RELEASE_1.jar:?]

        ... 74 more

Caused by: java.lang.IllegalArgumentException: Unsupported attribute type 'GAUGE64'. Supported types include: , gauge, counter, string.

        at org.opennms.netmgt.collection.adapters.AttributeTypeAdapter.unmarshal(AttributeTypeAdapter.java:61) ~[org.opennms.features.collection.api-20.0.1.jar:?]

        at org.opennms.netmgt.collection.adapters.AttributeTypeAdapter.unmarshal(AttributeTypeAdapter.java:35) ~[org.opennms.features.collection.api-20.0.1.jar:?]

        at org.eclipse.persistence.internal.jaxb.XMLJavaTypeConverter.convertDataValueToObjectValue(XMLJavaTypeConverter.java:153) ~[org.eclipse.persistence.moxy-2.5.1.jar:?]

        at org.eclipse.persistence.oxm.mappings.XMLDirectMapping.convertDataValueToObjectValue(XMLDirectMapping.java:526) ~[org.eclipse.persistence.core-2.5.1.jar:?]

        at org.eclipse.persistence.oxm.mappings.XMLDirectMapping.getAttributeValue(XMLDirectMapping.java:296) ~[org.eclipse.persistence.core-2.5.1.jar:?]

        at org.eclipse.persistence.oxm.mappings.XMLDirectMapping.getAttributeValue(XMLDirectMapping.java:1) ~[org.eclipse.persistence.core-2.5.1.jar:?]

        at org.eclipse.persistence.internal.oxm.XMLDirectMappingNodeValue.attribute(XMLDirectMappingNodeValue.java:159) ~[org.eclipse.persistence.core-2.5.1.jar:?]

        at org.eclipse.persistence.internal.oxm.record.UnmarshalRecordImpl.startElement(UnmarshalRecordImpl.java:901) ~[org.eclipse.persistence.core-2.5.1.jar:?]

        at org.eclipse.persistence.internal.oxm.XMLRelationshipMappingNodeValue.processChild(XMLRelationshipMappingNodeValue.java:110) ~[org.eclipse.persistence.core-2.5.1.jar:?]

        at org.eclipse.persistence.internal.oxm.XMLCompositeCollectionMappingNodeValue.startElement(XMLCompositeCollectionMappingNodeValue.java:188) ~[org.eclipse.persistence.core-2.5.1.jar:?]

        at org.eclipse.persistence.internal.oxm.record.UnmarshalRecordImpl.startElement(UnmarshalRecordImpl.java:839) ~[org.eclipse.persistence.core-2.5.1.jar:?]

        at org.xml.sax.helpers.XMLFilterImpl.startElement(Unknown Source) ~[?:2.5.0]

        at org.opennms.core.xml.SimpleNamespaceFilter.startElement(SimpleNamespaceFilter.java:83) ~[org.opennms.core.xml-20.0.1.jar:?]

        at org.apache.xerces.parsers.AbstractSAXParser.startElement(Unknown Source) ~[?:?]

        at org.apache.xerces.parsers.AbstractXMLDocumentParser.emptyElement(Unknown Source) ~[?:?]

        at org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanStartElement(Unknown Source) ~[?:?]

        at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown Source) ~[?:?]

        at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source) ~[?:?]

        at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source) ~[?:?]

        at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source) ~[?:?]

        at org.apache.xerces.parsers.XMLParser.parse(Unknown Source) ~[?:?]

        at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source) ~[?:?]

        at org.xml.sax.helpers.XMLFilterImpl.parse(Unknown Source) ~[?:2.5.0]

        at org.eclipse.persistence.internal.oxm.record.XMLReader.parse(XMLReader.java:221) ~[org.eclipse.persistence.core-2.5.1.jar:?]

        at org.eclipse.persistence.internal.oxm.record.SAXUnmarshaller.unmarshal(SAXUnmarshaller.java:492) ~[org.eclipse.persistence.core-2.5.1.jar:?]

        at org.eclipse.persistence.internal.oxm.record.SAXUnmarshaller.unmarshal(SAXUnmarshaller.java:695) ~[org.eclipse.persistence.core-2.5.1.jar:?]

        at org.eclipse.persistence.oxm.XMLUnmarshaller.unmarshal(XMLUnmarshaller.java:655) ~[org.eclipse.persistence.core-2.5.1.jar:?]

        at org.eclipse.persistence.jaxb.JAXBUnmarshaller.unmarshal(JAXBUnmarshaller.java:301) ~[org.eclipse.persistence.moxy-2.5.1.jar:?]

        at org.opennms.core.xml.JaxbUtils.unmarshal(JaxbUtils.java:259) ~[org.opennms.core.xml-20.0.1.jar:?]

        at org.opennms.core.xml.JaxbUtils.unmarshal(JaxbUtils.java:231) ~[org.opennms.core.xml-20.0.1.jar:?]

        at org.opennms.core.xml.JaxbUtils.unmarshal(JaxbUtils.java:226) ~[org.opennms.core.xml-20.0.1.jar:?]

        at org.opennms.protocols.xml.dao.jaxb.XmlDataCollectionConfigDaoJaxb.parseXmlGroups(XmlDataCollectionConfigDaoJaxb.java:118) ~[org.opennms.protocols.xml-20.0.1.jar:?]

        at org.opennms.protocols.xml.dao.jaxb.XmlDataCollectionConfigDaoJaxb.translateConfig(XmlDataCollectionConfigDaoJaxb.java:100) ~[org.opennms.protocols.xml-20.0.1.jar:?]

        at org.opennms.protocols.xml.dao.jaxb.XmlDataCollectionConfigDaoJaxb.translateConfig(XmlDataCollectionConfigDaoJaxb.java:50) ~[org.opennms.protocols.xml-20.0.1.jar:?]

        at org.opennms.core.xml.AbstractJaxbConfigDao.loadConfig(AbstractJaxbConfigDao.java:92) ~[org.opennms.core.xml-20.0.1.jar:?]

        at org.opennms.core.xml.AbstractJaxbConfigDao.afterPropertiesSet(AbstractJaxbConfigDao.java:108) ~[org.opennms.core.xml-20.0.1.jar:?]

        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1633) ~[org.apache.servicemix.bundles.spring-beans-4.1.6.RELEASE_1.jar:?]

        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1570) ~[org.apache.servicemix.bundles.spring-beans-4.1.6.RELEASE_1.jar:?]

        ... 74 more

 

William Showers
Director of Information Technology

Pittsburgh Technical College
412-809-5268
[hidden email]

 




This message and any attachments are intended only for the use of the addressee and may contain information that is privileged and confidential. If the reader of the message is not the intended recipient or an authorized representative of the intended recipient, you are hereby notified that any dissemination of this communication is strictly prohibited. If you have received this communication in error, notify the sender immediately by return email and delete the message and any attachments from your system.


This e-mail message is being sent solely for use by the intended recipient(s) and may contain confidential information. Any unauthorized review, use, disclosure or distribution is prohibited. If you are not the intended recipient, please contact the sender by phone or reply by e-mail, delete the original message and destroy all copies. Thank you.




This message and any attachments are intended only for the use of the addressee and may contain information that is privileged and confidential. If the reader of the message is not the intended recipient or an authorized representative of the intended recipient, you are hereby notified that any dissemination of this communication is strictly prohibited. If you have received this communication in error, notify the sender immediately by return email and delete the message and any attachments from your system.
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Please read the OpenNMS Mailing List FAQ:
http://www.opennms.org/index.php/Mailing_List_FAQ

opennms-discuss mailing list

To *unsubscribe* or change your subscription options, see the bottom of this page:
https://lists.sourceforge.net/lists/listinfo/opennms-discuss
Reply | Threaded
Open this post in threaded view
|

Re: XML datacollection crash after upgrading to v20

Alejandro Galue-3

On Aug 1, 2017, at 1:35 PM, Showers, William <[hidden email]> wrote:

It allows the service to start but no data gets collected.

Maybe sharing the configuration of the XML collector an a sample XML output that is supposed to be consumed can give us some context about what is not working.

Here is a troubleshooting hint: as you’re running 20, you can test a single collection with the new shell commands:


Alejandro Galue
[hidden email]
PGP Key Fingerprint: 5293 6234 1E75 DF30 7821  1823 87AF 972E DAF8 BE2C


------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Please read the OpenNMS Mailing List FAQ:
http://www.opennms.org/index.php/Mailing_List_FAQ

opennms-discuss mailing list

To *unsubscribe* or change your subscription options, see the bottom of this page:
https://lists.sourceforge.net/lists/listinfo/opennms-discuss

signature.asc (465 bytes) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: XML datacollection crash after upgrading to v20

Showers, William

I have attached the config files you mentioned and below is the output from the ES cluster that is being monitored. Thanks for looking at this!

 

-Bill

 

{"_nodes":{"total":1,"successful":1,"failed":0},"cluster_name":"logging","timestamp":1501609963943,"status":"yellow","indices":{"count":55,"shards":{"total":183,"primaries":183,"replication":0.0,"index":{"shards":{"min":1,"max":5,"avg":3.327272727272727},"primaries":{"min":1,"max":5,"avg":3.327272727272727},"replication":{"min":0.0,"max":0.0,"avg":0.0}}},"docs":{"count":94878152,"deleted":47173},"store":{"size_in_bytes":76727570953,"throttle_time_in_millis":0},"fielddata":{"memory_size_in_bytes":0,"evictions":0},"query_cache":{"memory_size_in_bytes":0,"total_count":0,"hit_count":0,"miss_count":0,"cache_size":0,"cache_count":0,"evictions":0},"completion":{"size_in_bytes":0},"segments":{"count":821,"memory_in_bytes":204878986,"terms_memory_in_bytes":172514554,"stored_fields_memory_in_bytes":19730392,"term_vectors_memory_in_bytes":0,"norms_memory_in_bytes":40576,"points_memory_in_bytes":2245332,"doc_values_memory_in_bytes":10348132,"index_writer_memory_in_bytes":11990020,"version_map_memory_in_bytes":18885,"fixed_bit_set_memory_in_bytes":0,"max_unsafe_auto_id_timestamp":9223372036854775807,"file_sizes":{}}},"nodes":{"count":{"total":1,"data":1,"coordinating_only":0,"master":1,"ingest":1},"versions":["5.5.1"],"os":{"available_processors":8,"allocated_processors":8,"names":[{"name":"Linux","count":1}],"mem":{"total_in_bytes":33732866048,"free_in_bytes":9444581376,"used_in_bytes":24288284672,"free_percent":28,"used_percent":72}},"process":{"cpu":{"percent":4},"open_file_descriptors":{"min":821,"max":821,"avg":821}},"jvm":{"max_uptime_in_millis":6373642,"versions":[{"version":"1.8.0_131","vm_name":"OpenJDK 64-Bit Server VM","vm_version":"25.131-b11","vm_vendor":"Oracle Corporation","count":1}],"mem":{"heap_used_in_bytes":2025014664,"heap_max_in_bytes":17110138880},"threads":72},"fs":{"total_in_bytes":393675419648,"free_in_bytes":315810734080,"available_in_bytes":295789588480},"plugins":[],"network_types":{"transport_types":{"netty4":1},"http_types":{"netty4":1}}}}

 

 

From: Alejandro Galue [mailto:[hidden email]]
Sent: Tuesday, August 1, 2017 1:40 PM
To: General OpenNMS Discussion <[hidden email]>
Subject: Re: [opennms-discuss] XML datacollection crash after upgrading to v20

 

 

On Aug 1, 2017, at 1:35 PM, Showers, William <[hidden email]> wrote:

 

It allows the service to start but no data gets collected.

 

Maybe sharing the configuration of the XML collector an a sample XML output that is supposed to be consumed can give us some context about what is not working.

 

Here is a troubleshooting hint: as you’re running 20, you can test a single collection with the new shell commands:

 

 

Alejandro Galue
[hidden email]
PGP Key Fingerprint: 5293 6234 1E75 DF30 7821  1823 87AF 972E DAF8 BE2C

 




This message and any attachments are intended only for the use of the addressee and may contain information that is privileged and confidential. If the reader of the message is not the intended recipient or an authorized representative of the intended recipient, you are hereby notified that any dissemination of this communication is strictly prohibited. If you have received this communication in error, notify the sender immediately by return email and delete the message and any attachments from your system.
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Please read the OpenNMS Mailing List FAQ:
http://www.opennms.org/index.php/Mailing_List_FAQ

opennms-discuss mailing list

To *unsubscribe* or change your subscription options, see the bottom of this page:
https://lists.sourceforge.net/lists/listinfo/opennms-discuss

elasticsearch-cluster-stats.xml (9K) Download Attachment
xml-datacollection-config.xml (1K) Download Attachment