{"action":"created","issue":{"url":"https://api.github.com/repos/willb/silex/issues/22","labels_url":"https://api.github.com/repos/willb/silex/issues/22/labels{/name}","comments_url":"https://api.github.com/repos/willb/silex/issues/22/comments","events_url":"https://api.github.com/repos/willb/silex/issues/22/events","html_url":"https://github.com/willb/silex/issues/22","id":85201958,"number":22,"title":"crash due to json4s incompatibility","user":{"login":"willb","id":1161,"avatar_url":"https://avatars.githubusercontent.com/u/1161?v=3","gravatar_id":"","url":"https://api.github.com/users/willb","html_url":"https://github.com/willb","followers_url":"https://api.github.com/users/willb/followers","following_url":"https://api.github.com/users/willb/following{/other_user}","gists_url":"https://api.github.com/users/willb/gists{/gist_id}","starred_url":"https://api.github.com/users/willb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/willb/subscriptions","organizations_url":"https://api.github.com/users/willb/orgs","repos_url":"https://api.github.com/users/willb/repos","events_url":"https://api.github.com/users/willb/events{/privacy}","received_events_url":"https://api.github.com/users/willb/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-06-04T17:43:43Z","updated_at":"2015-06-04T20:09:40Z","closed_at":"2015-06-04T20:09:40Z","body":"Thanks to Tomasz Fruboes for reporting the following issue:\r\n\r\n---\r\n\r\nI was trying to play with your silex library. Unfortunately it looks like there is some incompatibility between json4s-jackson 3.2.11 and spark leading to a crash:\r\n\r\n```\r\n[error] (run-main-0) java.lang.NoSuchMethodError: org.json4s.jackson.JsonMethods$.render(Lorg/json4s/JsonAST$JValue;)Lorg/json4s/JsonAST$JValue;\r\njava.lang.NoSuchMethodError: org.json4s.jackson.JsonMethods$.render(Lorg/json4s/JsonAST$JValue;)Lorg/json4s/JsonAST$JValue;\r\n       at org.apache.spark.sql.types.DataType.json(dataTypes.scala:264)\r\n```\r\n\r\njson4s v3.2.11 seems to be spark unfriendly, see https://github.com/json4s/json4s/issues/212.\r\n\r\n\r\nSteps to reproduce - create a  build.sbt with:\r\n\r\n```scala\r\nresolvers += \"Will's bintray\" at \"https://dl.bintray.com/willb/maven/\"\r\nlibraryDependencies += \"com.redhat.et\" %% \"silex\" % \"0.0.6\"\r\n```\r\n\r\nand try reading a parquet file in spark:\r\n\r\n```scala\r\n         val conf = new SparkConf().setMaster(\"local[2]\")\r\n         val sc = new SparkContext(conf)\r\n         val sqlContext = new SQLContext(sc)\r\n         val df = sqlContext.parquetFile(\"pathToFile\")\r\n         df.show(5)\r\n```\r\n\r\n0.0.5 version seems to be ok. I have tried to checkout silex code from github, change in build.sbt change jackson version to 3.2.10 and reference it in my project in the following way:\r\n\r\n```scala\r\nlazy val silex = ProjectRef(file(\"../silex/\"), \"silex\")\r\n\r\nlazy val myapp = project.in(file(\".\")).\r\n       dependsOn(silex).\r\n       settings(\r\n           scalaVersion := \"2.10.4\"\r\n       )\r\n```\r\nunfortunately error persists, which is bit confusing. Any idea why?\r\n"},"comment":{"url":"https://api.github.com/repos/willb/silex/issues/comments/109034139","html_url":"https://github.com/willb/silex/issues/22#issuecomment-109034139","issue_url":"https://api.github.com/repos/willb/silex/issues/22","id":109034139,"user":{"login":"willb","id":1161,"avatar_url":"https://avatars.githubusercontent.com/u/1161?v=3","gravatar_id":"","url":"https://api.github.com/users/willb","html_url":"https://github.com/willb","followers_url":"https://api.github.com/users/willb/followers","following_url":"https://api.github.com/users/willb/following{/other_user}","gists_url":"https://api.github.com/users/willb/gists{/gist_id}","starred_url":"https://api.github.com/users/willb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/willb/subscriptions","organizations_url":"https://api.github.com/users/willb/orgs","repos_url":"https://api.github.com/users/willb/repos","events_url":"https://api.github.com/users/willb/events{/privacy}","received_events_url":"https://api.github.com/users/willb/received_events","type":"User","site_admin":false},"created_at":"2015-06-04T20:09:40Z","updated_at":"2015-06-04T20:09:40Z","body":"Fixed in 3c658c6, which is released in v0.0.7.  Thanks for the bug report, Tomasz!"}}