spark-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Sean Owen <so...@cloudera.com>
Subject Re: Spark 2.0.0-preview ... problem with jackson core version
Date Fri, 01 Jul 2016 18:59:22 GMT
Are you just asking why you can't use 2.5.3 in your app? because
Jackson isn't shaded, which is sort of the bad news. But just use
2.6.5 too, ideally. I don't know where 2.6.1 is coming from, but Spark
doesn't use it.

On Fri, Jul 1, 2016 at 5:48 PM,  <ppatierno@live.com> wrote:
> In my project I found the library which brings Jackson core 2.6.5 and it is
> used in conjunction with the requested Jackson scala module 2.5.3 wanted by
> spark 2.0.0 preview. At runtime it's the cause of exception.
>
> Now I have excluded 2.6.5 using sbt but it could be dangerous for the other
> library.
>
> Why this regression to Jackson 2.5.3 switching from 2.0.0 snapshot to
> preview ?
>
> Thanks
> Paolo
>
> Get Outlook for Android
>
>
>
>
> On Fri, Jul 1, 2016 at 4:24 PM +0200, "Paolo Patierno" <ppatierno@live.com>
> wrote:
>
> Hi,
>
> developing a custom receiver up today I used spark version "2.0.0-SNAPSHOT"
> and scala version 2.11.7.
> With these version all tests work fine.
>
> I have just switching to "2.0.0-preview" as spark version but not I have
> following error :
>
> An exception or error caused a run to abort: class
> com.fasterxml.jackson.module.scala.ser.ScalaIteratorSerializer overrides
> final method
> withResolved.(Lcom/fasterxml/jackson/databind/BeanProperty;Lcom/fasterxml/jackson/databind/jsontype/TypeSerializer;Lcom/fasterxml/jackson/databind/JsonSerializer;)Lcom/fasterxml/jackson/databind/ser/std/AsArraySerializerBase;
> java.lang.VerifyError: class
> com.fasterxml.jackson.module.scala.ser.ScalaIteratorSerializer overrides
> final method
> withResolved.(Lcom/fasterxml/jackson/databind/BeanProperty;Lcom/fasterxml/jackson/databind/jsontype/TypeSerializer;Lcom/fasterxml/jackson/databind/JsonSerializer;)Lcom/fasterxml/jackson/databind/ser/std/AsArraySerializerBase;
>     at java.lang.ClassLoader.defineClass1(Native Method)
>
> I see that using 2.0.0-SNAPSHOT the jackson core version is 2.6.5 ... now
> 2.6.1 with module scala 2.5.3.
>
> Thanks,
> Paolo.
>
> Paolo Patierno
> Senior Software Engineer (IoT) @ Red Hat
> Microsoft MVP on Windows Embedded & IoT
> Microsoft Azure Advisor
>
> Twitter : @ppatierno
> Linkedin : paolopatierno
> Blog : DevExperience

---------------------------------------------------------------------
To unsubscribe e-mail: user-unsubscribe@spark.apache.org


Mime
View raw message