Uploaded image for project: 'OpenNMS'
  1. OpenNMS
  2. NMS-9748

Data-collection (Non-SNMP) broken on Minion

    XMLWordPrintable

    Details

      Description

      While attempting to fix NMS-9711, we effectively broke all Minion based data collection support. The bundle containing the collection RPC module is missing an import, which prevents the payloads from being marshaled properly.

      The following exception can be found on the Minions:

      2017-11-21 11:11:40,444 | ERROR | pool-38-thread-1 | DefaultErrorHandler              | 104 - org.apache.camel.camel-core - 2.19.1 | Failed delivery for (MessageId: ID-noise-40639-1511280496869-1-11 on ExchangeI
      d: ID-noise-40639-1511280496869-1-10). Exhausted after delivery attempt: 1 caught: java.lang.RuntimeException: javax.xml.bind.JAXBException:                                                                       
      Exception Description: Class [org.opennms.core.xml.NumberAdapter] not found.                                                                                                                                       
       - with linked exception:                                                                                                                                                                                          
      [Exception [EclipseLink-50047] (Eclipse Persistence Services - 2.5.1.v20130918-f2b9fc5): org.eclipse.persistence.exceptions.JAXBException                                                                          
      Exception Description: Class [org.opennms.core.xml.NumberAdapter] not found.]                                                                                                                                      
                                                                                                                                                                                                                         
      Message History                                                                                                                                                                                                    
      ---------------------------------------------------------------------------------------------------------------------------------------                                                                            
      RouteId              ProcessorId          Processor                                                                        Elapsed (ms)                                                                            
      [RPC.Server.Collect] [RPC.Server.Collect] [queuingservice://OpenNMS.MINION.RPC.Collect?asyncConsumer=true                ] [       132]                                                                            
      [RPC.Server.Collect] [setExchangePattern] [setExchangePattern[InOut]                                                     ] [         0]                                                                            
      [RPC.Server.Collect] [process3          ] [Processor@0x76af0097                                                          ] [       130]                                                                            
                                                                                                                                                                                                                         
      Stacktrace                                                                                                                                                                                                         
      ---------------------------------------------------------------------------------------------------------------------------------------                                                                            
      java.lang.RuntimeException: javax.xml.bind.JAXBException:                                                                                                                                                          
      Exception Description: Class [org.opennms.core.xml.NumberAdapter] not found.                                                                                                                                       
       - with linked exception:                                                                                                                                                                                          
      [Exception [EclipseLink-50047] (Eclipse Persistence Services - 2.5.1.v20130918-f2b9fc5): org.eclipse.persistence.exceptions.JAXBException                                                                          
      Exception Description: Class [org.opennms.core.xml.NumberAdapter] not found.]                            
              at org.opennms.core.xml.XmlHandler.<init>(XmlHandler.java:61) ~[?:?]                                                                                                                                       
              at org.opennms.core.rpc.xml.AbstractXmlRpcModule.createXmlHandler(AbstractXmlRpcModule.java:111) ~[?:?]                                                                                                    
              at org.opennms.core.rpc.xml.AbstractXmlRpcModule.getResponseXmlHandler(AbstractXmlRpcModule.java:96) ~[?:?]                                                                                                
              at org.opennms.core.rpc.xml.AbstractXmlRpcModule.marshalResponse(AbstractXmlRpcModule.java:76) ~[?:?]                                                                                                      
              at Proxy06726520_5547_4edb_a0e1_2a4818599ebb.marshalResponse(Unknown Source) ~[?:?]                                                                                                                        
              at org.opennms.core.rpc.camel.CamelRpcServerProcessor.lambda$process$0(CamelRpcServerProcessor.java:81) ~[232:org.opennms.core.ipc.rpc.camel:21.0.1]                                                       
              at java.util.concurrent.CompletableFuture.uniWhenComplete(CompletableFuture.java:760) [?:?]      
              at java.util.concurrent.CompletableFuture$UniWhenComplete.tryFire(CompletableFuture.java:736) [?:?]                                                                                                        
              at java.util.concurrent.CompletableFuture.postComplete(CompletableFuture.java:474) [?:?]         
              at java.util.concurrent.CompletableFuture$AsyncSupply.run(CompletableFuture.java:1595) [?:?]                                                                                                                       at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) [?:?]         
              at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) [?:?]                                                                                                                           at java.lang.Thread.run(Thread.java:748) [?:?]  
      Caused by: javax.xml.bind.JAXBException: 
      Exception Description: Class [org.opennms.core.xml.NumberAdapter] not found.
              at org.eclipse.persistence.jaxb.JAXBContext$TypeMappingInfoInput.createContextState(JAXBContext.java:1059) ~[?:?]
              at org.eclipse.persistence.jaxb.JAXBContext.<init>(JAXBContext.java:182) ~[?:?]
              at org.eclipse.persistence.jaxb.JAXBContextFactory.createContext(JAXBContextFactory.java:165) ~[?:?]
              at org.eclipse.persistence.jaxb.JAXBContextFactory.createContext(JAXBContextFactory.java:152) ~[?:?]
              at org.eclipse.persistence.jaxb.JAXBContextFactory.createContext(JAXBContextFactory.java:112) ~[?:?]
              at org.eclipse.persistence.jaxb.JAXBContextFactory.createContext(JAXBContextFactory.java:102) ~[?:?]
              at org.opennms.core.xml.JaxbUtils.getContextFor(JaxbUtils.java:424) ~[?:?]
              at org.opennms.core.xml.XmlHandler.<init>(XmlHandler.java:59) ~[?:?]
              ... 12 more
      Caused by: org.eclipse.persistence.exceptions.JAXBException: 
      Exception Description: Class [org.opennms.core.xml.NumberAdapter] not found.
              at org.eclipse.persistence.exceptions.JAXBException.classNotFoundException(JAXBException.java:681) ~[?:?]
              at org.eclipse.persistence.jaxb.javamodel.reflection.JavaModelImpl.getClass(JavaModelImpl.java:92) ~[?:?]
              at org.eclipse.persistence.jaxb.javamodel.Helper.getJavaClass(Helper.java:212) ~[?:?]
              at org.eclipse.persistence.jaxb.compiler.Property.setXmlJavaTypeAdapter(Property.java:763) ~[?:?]
              at org.eclipse.persistence.jaxb.compiler.AnnotationsProcessor.processXmlJavaTypeAdapter(AnnotationsProcessor.java:1729) ~[?:?]
              at org.eclipse.persistence.jaxb.compiler.AnnotationsProcessor.processPropertyAnnotations(AnnotationsProcessor.java:2549) ~[?:?]
              at org.eclipse.persistence.jaxb.compiler.AnnotationsProcessor.buildNewProperty(AnnotationsProcessor.java:1999) ~[?:?]
              at org.eclipse.persistence.jaxb.compiler.AnnotationsProcessor.getFieldPropertiesForClass(AnnotationsProcessor.java:1877) ~[?:?]
              at org.eclipse.persistence.jaxb.compiler.AnnotationsProcessor.getFieldPropertiesForClass(AnnotationsProcessor.java:1859) ~[?:?]
              at org.eclipse.persistence.jaxb.compiler.AnnotationsProcessor.getNoAccessTypePropertiesForClass(AnnotationsProcessor.java:3147) ~[?:?]
              at org.eclipse.persistence.jaxb.compiler.AnnotationsProcessor.getPropertiesForClass(AnnotationsProcessor.java:1853) ~[?:?]
              at org.eclipse.persistence.jaxb.compiler.AnnotationsProcessor.buildTypeInfo(AnnotationsProcessor.java:816) ~[?:?]
              at org.eclipse.persistence.jaxb.compiler.AnnotationsProcessor.postBuildTypeInfo(AnnotationsProcessor.java:734) ~[?:?]
              at org.eclipse.persistence.jaxb.compiler.AnnotationsProcessor.buildNewTypeInfo(AnnotationsProcessor.java:4746) ~[?:?]
              at org.eclipse.persistence.jaxb.compiler.AnnotationsProcessor.processReferencedClass(AnnotationsProcessor.java:838) ~[?:?]
              at org.eclipse.persistence.jaxb.compiler.AnnotationsProcessor.processPropertyTypes(AnnotationsProcessor.java:1119) ~[?:?]
              at org.eclipse.persistence.jaxb.compiler.AnnotationsProcessor.buildNewTypeInfo(AnnotationsProcessor.java:4748) ~[?:?]
              at org.eclipse.persistence.jaxb.compiler.AnnotationsProcessor.processReferencedClass(AnnotationsProcessor.java:838) ~[?:?]
              at org.eclipse.persistence.jaxb.compiler.AnnotationsProcessor.processPropertyTypes(AnnotationsProcessor.java:1119) ~[?:?]
              at org.eclipse.persistence.jaxb.compiler.AnnotationsProcessor.buildNewTypeInfo(AnnotationsProcessor.java:4748) ~[?:?]
              at org.eclipse.persistence.jaxb.compiler.AnnotationsProcessor.processReferencedClass(AnnotationsProcessor.java:838) ~[?:?]
              at org.eclipse.persistence.jaxb.compiler.AnnotationsProcessor.processPropertyTypes(AnnotationsProcessor.java:1119) ~[?:?]
              at org.eclipse.persistence.jaxb.compiler.AnnotationsProcessor.processPropertyTypes(AnnotationsProcessor.java:1081) ~[?:?]
              at org.eclipse.persistence.jaxb.compiler.AnnotationsProcessor.processClassesAndProperties(AnnotationsProcessor.java:281) ~[?:?]
              at org.eclipse.persistence.jaxb.compiler.Generator.<init>(Generator.java:150) ~[?:?]
              at org.eclipse.persistence.jaxb.JAXBContext$TypeMappingInfoInput.createContextState(JAXBContext.java:1055) ~[?:?]
              at org.eclipse.persistence.jaxb.JAXBContext.<init>(JAXBContext.java:182) ~[?:?]
              at org.eclipse.persistence.jaxb.JAXBContextFactory.createContext(JAXBContextFactory.java:165) ~[?:?]
              at org.eclipse.persistence.jaxb.JAXBContextFactory.createContext(JAXBContextFactory.java:152) ~[?:?]
              at org.eclipse.persistence.jaxb.JAXBContextFactory.createContext(JAXBContextFactory.java:112) ~[?:?]
              at org.eclipse.persistence.jaxb.JAXBContextFactory.createContext(JAXBContextFactory.java:102) ~[?:?]
              at org.opennms.core.xml.JaxbUtils.getContextFor(JaxbUtils.java:424) ~[?:?]
              at org.opennms.core.xml.XmlHandler.<init>(XmlHandler.java:59) ~[?:?]
              ... 12 more
      

        Attachments

          Activity

            People

            • Assignee:
              j-white Jesse White
              Reporter:
              j-white Jesse White
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: