Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to create session #18

Open
fountainheadpro opened this issue Dec 19, 2015 · 4 comments
Open

Unable to create session #18

fountainheadpro opened this issue Dec 19, 2015 · 4 comments

Comments

@fountainheadpro
Copy link

val lgn = Lightning(host = "http://boot2docker:3000/")
lgn.createSession("word-cloud")
org.json4s.ParserUtil$ParseException: unknown token <
Near: <
at org.json4s.native.JsonParser$Parser.fail(JsonParser.scala:207)
at org.json4s.native.JsonParser$Parser.nextToken(JsonParser.scala:294)
at org.json4s.native.JsonParser$$anonfun$1.apply(JsonParser.scala:159)
at org.json4s.native.JsonParser$$anonfun$1.apply(JsonParser.scala:117)
at org.json4s.native.JsonParser$.parse(JsonParser.scala:105)
at org.json4s.native.JsonParser$.parse(JsonParser.scala:53)
at org.json4s.native.JsonMethods$class.parse(JsonMethods.scala:11)
at org.json4s.native.JsonMethods$.parse(JsonMethods.scala:61)
at org.viz.lightning.Lightning.post(Lightning.scala:87)
at org.viz.lightning.Lightning.createSession(Lightning.scala:29)
at .(:12)
at .()
at .(:7)
at .()
at $print()
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:497)
at scala.tools.nsc.interpreter.IMain$ReadEvalPrint.call(IMain.scala:734)
at scala.tools.nsc.interpreter.IMain$Request.loadAndRun(IMain.scala:983)
at scala.tools.nsc.interpreter.IMain.loadAndRunReq$1(IMain.scala:573)
at scala.tools.nsc.interpreter.IMain.interpret(IMain.scala:604)
at scala.tools.nsc.interpreter.IMain.interpret(IMain.scala:568)
at scala.tools.nsc.interpreter.ILoop.reallyInterpret$1(ILoop.scala:760)
at scala.tools.nsc.interpreter.ILoop.interpretStartingWith(ILoop.scala:805)
at scala.tools.nsc.interpreter.ILoop.command(ILoop.scala:717)
at scala.tools.nsc.interpreter.ILoop.processLine$1(ILoop.scala:581)
at scala.tools.nsc.interpreter.ILoop.innerLoop$1(ILoop.scala:588)
at scala.tools.nsc.interpreter.ILoop.loop(ILoop.scala:591)
at scala.tools.nsc.interpreter.ILoop$$anonfun$process$1.apply$mcZ$sp(ILoop.scala:882)
at scala.tools.nsc.interpreter.ILoop$$anonfun$process$1.apply(ILoop.scala:837)
at scala.tools.nsc.interpreter.ILoop$$anonfun$process$1.apply(ILoop.scala:837)
at scala.tools.nsc.util.ScalaClassLoader$.savingContextLoader(ScalaClassLoader.scala:135)
at scala.tools.nsc.interpreter.ILoop.process(ILoop.scala:837)
at scala.tools.nsc.interpreter.ILoop.main(ILoop.scala:904)
at xsbt.ConsoleInterface.run(ConsoleInterface.scala:62)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:497)
at sbt.compiler.AnalyzingCompiler.call(AnalyzingCompiler.scala:101)
at sbt.compiler.AnalyzingCompiler.console(AnalyzingCompiler.scala:76)
at sbt.Console.sbt$Console$$console0$1(Console.scala:22)
at sbt.Console$$anonfun$apply$2$$anonfun$apply$1.apply$mcV$sp(Console.scala:23)
at sbt.Console$$anonfun$apply$2$$anonfun$apply$1.apply(Console.scala:23)
at sbt.Console$$anonfun$apply$2$$anonfun$apply$1.apply(Console.scala:23)
at sbt.Logger$$anon$4.apply(Logger.scala:85)
at sbt.TrapExit$App.run(TrapExit.scala:248)
at java.lang.Thread.run(Thread.java:745)

@AdrianP-
Copy link

AdrianP- commented Jan 8, 2016

Try to remove the last "/" in this way:

val lgn = Lightning(host = "http://boot2docker:3000")

@carsonpun
Copy link

I ran into the same issue before. But I resolved and able to plot by confirming the
scala REPL is the same version of the lightning jar created through sbt assembly (this is very important)

In my original failed case, my scala REPL was 2.11.6 but the jar was in 2.10.x after moved all of them to 2.11.6 I can perform the plotting.

@ucrkarthik
Copy link

So how did you move the lightning-scala project to 2.11.6? Did you just update the scalaVersion value to "2.11.6" in the build.sbt file and run "sbt assembly" to create a new assembly jar? Did you have to update any other artifact jar versions?

@carsonpun
Copy link

I only changed the build.sbt for the followings:
from:
scalaVersion := "2.10.3"
to:
scalaVersion := "2.11.6"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants