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

Minion fails to marshall requisition with JAXB error: Class [org.opennms.netmgt.model.PrimaryTypeAdapter] not found

    XMLWordPrintable

Details

    • Horizon 22 - Jan 19 - Feb 2

    Description

      When importing a requisition for a location with a minion, the minion fails to marshall the requisition, causing the import to fail with an RPC timeout.

      kafka.log
      2022-01-17T14:13:10,085 | INFO  | Timer-2          | HeartbeatProducer                | 344 - org.opennms.features.minion.heartbeat.producer - 29.0.4 | Sending heartbeat to Minion with id: locationMinion at location: location
      2022-01-17T14:13:13,203 | INFO  | pool-21-thread-1 | DnsRequisitionProvider           | 399 - org.opennms.opennms-requisition-dns - 29.0.4 | matchingRecord: checking rec: location.domain.com.	99799	IN	SOA	location.domain.com. locationDns.location.domain.com. [redacted] to see if it should be imported...
      [-- many lines of DNS AXFR output --]
      2022-01-17T14:13:13,251 | WARN  | pool-21-thread-1 | AbstractXmlRpcModule             | 295 - org.opennms.core.ipc.rpc.xml - 29.0.4 | Creating the XmlHandler failed. Retrying.
      java.lang.RuntimeException: javax.xml.bind.JAXBException: 
      Exception Description: Class [org.opennms.netmgt.model.PrimaryTypeAdapter] 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.netmgt.model.PrimaryTypeAdapter] not found.]
      	at org.opennms.core.xml.XmlHandler.<init>(XmlHandler.java:61) ~[?:?]
      	at org.opennms.core.rpc.xml.AbstractXmlRpcModule.createXmlHandler(AbstractXmlRpcModule.java:104) ~[?:?]
      	at org.opennms.core.rpc.xml.AbstractXmlRpcModule.getResponseXmlHandler(AbstractXmlRpcModule.java:96) ~[?:?]
      	at org.opennms.core.rpc.xml.AbstractXmlRpcModule.marshalResponse(AbstractXmlRpcModule.java:76) ~[?:?]
      	at Proxy443c249f_04ae_443e_b00e_a217f9a056f9.marshalResponse(Unknown Source) ~[?:?]
      	at org.opennms.core.ipc.rpc.kafka.KafkaRpcServerManager$KafkaConsumerRunner.sendResponse(KafkaRpcServerManager.java:401) ~[?:?]
      	at org.opennms.core.ipc.rpc.kafka.KafkaRpcServerManager$KafkaConsumerRunner.lambda$handleRequest$1(KafkaRpcServerManager.java:392) ~[?:?]
      	at java.util.concurrent.CompletableFuture.uniWhenComplete(CompletableFuture.java:859) [?:?]
      	at java.util.concurrent.CompletableFuture$UniWhenComplete.tryFire(CompletableFuture.java:837) [?:?]
      	at java.util.concurrent.CompletableFuture.postComplete(CompletableFuture.java:506) [?:?]
      	at java.util.concurrent.CompletableFuture$AsyncSupply.run(CompletableFuture.java:1705) [?:?]
      	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128) [?:?]
      	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628) [?:?]
      	at java.lang.Thread.run(Thread.java:834) [?:?]
      Caused by: javax.xml.bind.JAXBException: 
      Exception Description: Class [org.opennms.netmgt.model.PrimaryTypeAdapter] 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) ~[?:?]
      	... 13 more
      Caused by: org.eclipse.persistence.exceptions.JAXBException: 
      Exception Description: Class [org.opennms.netmgt.model.PrimaryTypeAdapter] 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.getPropertyPropertiesForClass(AnnotationsProcessor.java:3004) ~[?:?]
      	at org.eclipse.persistence.jaxb.compiler.AnnotationsProcessor.getPropertyPropertiesForClass(AnnotationsProcessor.java:2829) ~[?:?]
      	at org.eclipse.persistence.jaxb.compiler.AnnotationsProcessor.getNoAccessTypePropertiesForClass(AnnotationsProcessor.java:3158) ~[?:?]
      	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) ~[?:?]
      	... 13 more
      2022-01-17T14:13:13,255 | ERROR | pool-21-thread-1 | KafkaRpcServerManager            | 293 - org.opennms.core.ipc.rpc.kafka - 29.0.4 | Marshalling response in RPC module org.opennms.netmgt.provision.persist.rpc.RequisitionRpcModule@1600c569 failed.
      java.lang.RuntimeException: javax.xml.bind.JAXBException: 
      Exception Description: Class [org.opennms.netmgt.model.PrimaryTypeAdapter] 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.netmgt.model.PrimaryTypeAdapter] 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 Proxy443c249f_04ae_443e_b00e_a217f9a056f9.marshalResponse(Unknown Source) ~[?:?]
      	at org.opennms.core.ipc.rpc.kafka.KafkaRpcServerManager$KafkaConsumerRunner.sendResponse(KafkaRpcServerManager.java:401) ~[?:?]
      	at org.opennms.core.ipc.rpc.kafka.KafkaRpcServerManager$KafkaConsumerRunner.lambda$handleRequest$1(KafkaRpcServerManager.java:392) ~[?:?]
      	at java.util.concurrent.CompletableFuture.uniWhenComplete(CompletableFuture.java:859) [?:?]
      	at java.util.concurrent.CompletableFuture$UniWhenComplete.tryFire(CompletableFuture.java:837) [?:?]
      	at java.util.concurrent.CompletableFuture.postComplete(CompletableFuture.java:506) [?:?]
      	at java.util.concurrent.CompletableFuture$AsyncSupply.run(CompletableFuture.java:1705) [?:?]
      	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128) [?:?]
      	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628) [?:?]
      	at java.lang.Thread.run(Thread.java:834) [?:?]
      Caused by: javax.xml.bind.JAXBException: 
      Exception Description: Class [org.opennms.netmgt.model.PrimaryTypeAdapter] 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) ~[?:?]
      	... 13 more
      Caused by: org.eclipse.persistence.exceptions.JAXBException: 
      Exception Description: Class [org.opennms.netmgt.model.PrimaryTypeAdapter] 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.getPropertyPropertiesForClass(AnnotationsProcessor.java:3004) ~[?:?]
      	at org.eclipse.persistence.jaxb.compiler.AnnotationsProcessor.getPropertyPropertiesForClass(AnnotationsProcessor.java:2829) ~[?:?]
      	at org.eclipse.persistence.jaxb.compiler.AnnotationsProcessor.getNoAccessTypePropertiesForClass(AnnotationsProcessor.java:3158) ~[?:?]
      	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) ~[?:?]
      	... 13 more
      2022-01-17T14:13:40,085 | INFO  | Timer-2          | HeartbeatProducer                | 344 - org.opennms.features.minion.heartbeat.producer - 29.0.4 | Sending heartbeat to Minion with id: locationMinion at location: location

       

      Attachments

        Issue Links

          Activity

            People

              ranger Benjamin Reed
              wkeaney Will Keaney
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Git Integration

                  Error rendering 'com.xiplink.jira.git.jira_git_plugin:git-issue-webpanel'. Please contact your Jira administrators.