java.lang.NoSuchMethodError: scala.Predef$._refArrayOps([Ljava/lang/Object;)[Ljava/lang/Object;

GitHub | guenhter | 5 months ago
tip
Click on the to mark the solution that helps you, Samebug will learn from it.
As a community member, you’ll be rewarded for you help.
  1. 0

    NoSuchMethodError when using jackson-module-scala_2.12.0-M5 with scala 2.12-RC1

    GitHub | 5 months ago | guenhter
    java.lang.NoSuchMethodError: scala.Predef$._refArrayOps([Ljava/lang/Object;)[Ljava/lang/Object;

    Root Cause Analysis

    1. java.lang.NoSuchMethodError

      scala.Predef$._refArrayOps([Ljava/lang/Object;)[Ljava/lang/Object;

      at com.fasterxml.jackson.module.scala.introspect.BeanIntrospector$.$anonfun$apply$14()
    2. jackson-module-scala
      BeanIntrospector$.$anonfun$apply$14$adapted
      1. com.fasterxml.jackson.module.scala.introspect.BeanIntrospector$.$anonfun$apply$14(BeanIntrospector.scala:170)
      2. com.fasterxml.jackson.module.scala.introspect.BeanIntrospector$.$anonfun$apply$14$adapted(BeanIntrospector.scala:169)
      2 frames
    3. Scala
      List.flatMap
      1. scala.collection.TraversableLike.$anonfun$flatMap$1(TraversableLike.scala:241)
      2. scala.collection.immutable.List.foreach(List.scala:378)
      3. scala.collection.TraversableLike.flatMap$(TraversableLike.scala:241)
      4. scala.collection.immutable.List.flatMap(List.scala:341)
      4 frames
    4. jackson-module-scala
      ScalaAnnotationIntrospector$.findImplicitPropertyName
      1. com.fasterxml.jackson.module.scala.introspect.BeanIntrospector$.apply(BeanIntrospector.scala:169)
      2. com.fasterxml.jackson.module.scala.introspect.ScalaAnnotationIntrospector$._descriptorFor(ScalaAnnotationIntrospectorModule.scala:21)
      3. com.fasterxml.jackson.module.scala.introspect.ScalaAnnotationIntrospector$.fieldName(ScalaAnnotationIntrospectorModule.scala:29)
      4. com.fasterxml.jackson.module.scala.introspect.ScalaAnnotationIntrospector$.findImplicitPropertyName(ScalaAnnotationIntrospectorModule.scala:77)
      4 frames
    5. Jackson
      ObjectMapper._configAndWriteValue
      1. com.fasterxml.jackson.databind.introspect.AnnotationIntrospectorPair.findImplicitPropertyName(AnnotationIntrospectorPair.java:469)
      2. com.fasterxml.jackson.databind.introspect.POJOPropertiesCollector._addFields(POJOPropertiesCollector.java:369)
      3. com.fasterxml.jackson.databind.introspect.POJOPropertiesCollector.collectAll(POJOPropertiesCollector.java:301)
      4. com.fasterxml.jackson.databind.introspect.POJOPropertiesCollector.getJsonValueMethod(POJOPropertiesCollector.java:172)
      5. com.fasterxml.jackson.databind.introspect.BasicBeanDescription.findJsonValueMethod(BasicBeanDescription.java:224)
      6. com.fasterxml.jackson.databind.ser.BasicSerializerFactory.findSerializerByAnnotations(BasicSerializerFactory.java:350)
      7. com.fasterxml.jackson.databind.ser.BeanSerializerFactory._createSerializer2(BeanSerializerFactory.java:210)
      8. com.fasterxml.jackson.databind.ser.BeanSerializerFactory.createSerializer(BeanSerializerFactory.java:159)
      9. com.fasterxml.jackson.databind.SerializerProvider._createUntypedSerializer(SerializerProvider.java:1272)
      10. com.fasterxml.jackson.databind.SerializerProvider._createAndCacheUntypedSerializer(SerializerProvider.java:1222)
      11. com.fasterxml.jackson.databind.SerializerProvider.findValueSerializer(SerializerProvider.java:499)
      12. com.fasterxml.jackson.databind.SerializerProvider.findTypedValueSerializer(SerializerProvider.java:697)
      13. com.fasterxml.jackson.databind.ser.DefaultSerializerProvider.serializeValue(DefaultSerializerProvider.java:270)
      14. com.fasterxml.jackson.databind.ObjectMapper._configAndWriteValue(ObjectMapper.java:3672)
      14 frames