Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-62544

BFA: Exception after update to 1.26.0

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: Major Major
    • None
    • Jenkins 2.190.1, Ubuntu 18.04 LTS

      After update of all plugins to their latest versions (incl. the BFA plugin), no known failure causes are shown anymore under "Failure Cause Management". Instead, that page shows a red error text:

      Could not fetch causes: java.lang.reflect.InvocationTargetException

      We use MongoDB to store the known error cases.

      The Jenkins log has a complete stack trace:

      Jun 03, 2020 1:14:49 PMĀ SEVEREĀ com.sonyericsson.jenkins.plugins.bfa.BuildFailureScanner scan
      Could not scan build SomeJob #1234
      java.lang.NoSuchMethodError: 'java.lang.reflect.Type com.fasterxml.jackson.databind.introspect.Annotated.getGenericType()'
      	at org.mongojack.internal.MongoAnnotationIntrospector.getTypeForAnnotated(MongoAnnotationIntrospector.java:81)
      	at org.mongojack.internal.MongoAnnotationIntrospector.findDeserializer(MongoAnnotationIntrospector.java:97)
      	at com.fasterxml.jackson.databind.introspect.AnnotationIntrospectorPair.findDeserializer(AnnotationIntrospectorPair.java:665)
      	at com.fasterxml.jackson.databind.deser.BasicDeserializerFactory.findDeserializerFromAnnotation(BasicDeserializerFactory.java:2092)
      	at com.fasterxml.jackson.databind.deser.BasicDeserializerFactory.constructCreatorProperty(BasicDeserializerFactory.java:1019)
      	at com.fasterxml.jackson.databind.deser.BasicDeserializerFactory._addExplicitPropertyCreator(BasicDeserializerFactory.java:634)
      	at com.fasterxml.jackson.databind.deser.BasicDeserializerFactory._addExplicitAnyCreator(BasicDeserializerFactory.java:661)
      	at com.fasterxml.jackson.databind.deser.BasicDeserializerFactory._addDeserializerConstructors(BasicDeserializerFactory.java:411)
      	at com.fasterxml.jackson.databind.deser.BasicDeserializerFactory._constructDefaultValueInstantiator(BasicDeserializerFactory.java:283)
      	at com.fasterxml.jackson.databind.deser.BasicDeserializerFactory.findValueInstantiator(BasicDeserializerFactory.java:224)
      	at com.fasterxml.jackson.databind.deser.BeanDeserializerFactory.buildBeanDeserializer(BeanDeserializerFactory.java:220)
      	at com.fasterxml.jackson.databind.deser.BeanDeserializerFactory.createBeanDeserializer(BeanDeserializerFactory.java:143)
      	at com.fasterxml.jackson.databind.deser.DeserializerCache._createDeserializer2(DeserializerCache.java:414)
      	at com.fasterxml.jackson.databind.deser.DeserializerCache._createDeserializer(DeserializerCache.java:349)
      	at com.fasterxml.jackson.databind.deser.DeserializerCache._createAndCache2(DeserializerCache.java:264)
      	at com.fasterxml.jackson.databind.deser.DeserializerCache._createAndCacheValueDeserializer(DeserializerCache.java:244)
      	at com.fasterxml.jackson.databind.deser.DeserializerCache.findValueDeserializer(DeserializerCache.java:142)
      	at com.fasterxml.jackson.databind.DeserializationContext.findRootValueDeserializer(DeserializationContext.java:491)
      	at com.fasterxml.jackson.databind.ObjectMapper._findRootDeserializer(ObjectMapper.java:4669)
      Caused: java.lang.reflect.InvocationTargetException
      	at jdk.internal.reflect.GeneratedMethodAccessor762.invoke(Unknown Source)
      	at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      	at java.base/java.lang.reflect.Method.invoke(Method.java:566)
      	at org.mongojack.internal.util.JacksonAccessor.invoke(JacksonAccessor.java:149)
      Caused: java.lang.RuntimeException
      	at org.mongojack.internal.util.JacksonAccessor.invoke(JacksonAccessor.java:153)
      	at org.mongojack.internal.util.JacksonAccessor.findDeserializer(JacksonAccessor.java:44)
      	at org.mongojack.internal.util.IdHandlerFactory.getIdHandlerForProperty(IdHandlerFactory.java:40)
      	at org.mongojack.JacksonDBCollection.<init>(JacksonDBCollection.java:138)
      	at org.mongojack.JacksonDBCollection.wrap(JacksonDBCollection.java:236)
      	at com.sonyericsson.jenkins.plugins.bfa.db.MongoDBKnowledgeBase.getJacksonCollection(MongoDBKnowledgeBase.java:1099)
      	at com.sonyericsson.jenkins.plugins.bfa.db.MongoDBKnowledgeBase.initCache(MongoDBKnowledgeBase.java:212)
      	at com.sonyericsson.jenkins.plugins.bfa.db.MongoDBKnowledgeBase.getCauses(MongoDBKnowledgeBase.java:224)
      	at com.sonyericsson.jenkins.plugins.bfa.BuildFailureScanner.scan(BuildFailureScanner.java:189)
      	at com.sonyericsson.jenkins.plugins.bfa.BuildFailureScanner.scanIfNotScanned(BuildFailureScanner.java:165)
      	at com.sonyericsson.jenkins.plugins.bfa.BuildFailureScanner.doScan(BuildFailureScanner.java:141)
      	at com.sonyericsson.jenkins.plugins.bfa.BuildFailureScanner.onCompleted(BuildFailureScanner.java:121)
      	at hudson.model.listeners.RunListener.fireCompleted(RunListener.java:209)
      	at hudson.model.Run.execute(Run.java:1860)
      	at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
      	at hudson.model.ResourceController.execute(ResourceController.java:97)
      	at hudson.model.Executor.run(Executor.java:429)
      

      We also tried to downgrade the plugin to 1.24.1 again, but that didn't help.

            t_westling Tomas Westling
            dhs Dirk Heinrichs
            Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: