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

java.lang.NoSuchMethodError issue #40

Open
gitPratikSingh opened this issue May 12, 2018 · 2 comments
Open

java.lang.NoSuchMethodError issue #40

gitPratikSingh opened this issue May 12, 2018 · 2 comments
Labels

Comments

@gitPratikSingh
Copy link

Hi, I am getting this error when I tried to run the sample in your readme file.

"Exception in thread "main" java.lang.NoSuchMethodError: co.theasi.plotly.writer.Server.$init$(Lco/theasi/plotly/writer/Server;)V"

Platform: Windows 10
Scala version: Scala 2.10

Does scala plotly client work in Windows?

@pbugnion
Copy link
Contributor

I see no reason it would not work on Windows. It only supports Scala 2.11 and 2.12, however.

@gitPratikSingh
Copy link
Author

Machine: Scala 2.12.5 (Java HotSpot(TM) 64-Bit Server VM, Java 1.8.0_144.

Upgraded to Scala 2.12, but the issue did not get resolved.
Providing more detailsif this helps

Code:

import co.theasi.plotly.writer.Server
import co.theasi.plotly.{Plot, draw, writer}

implicit val server = new Server {
  val credentials = writer.Credentials("YYYYYY", "XXXXXXXXXXXXXXXXXXX")
  val url = "https://api.plot.ly/v2/"
}

val p = Plot().withScatter(Vector(1, 2), Vector(3, 4))
draw(p, "custom-credentials")

Error message:
java.lang.NoSuchMethodError: co.theasi.plotly.writer.Server.$init$(Lco/theasi/plotly/writer/Server;)V
at #worksheet#.$anon$1.(test.sc:5)
at #worksheet#.server$lzycompute(test.sc:5)
at #worksheet#.server(test.sc:5)
at #worksheet#.get$$instance$$server(test.sc:5)
at #worksheet#.#worksheet#(test.sc:22)

(Note- I am running this on the IntelliJ worksheet)

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

No branches or pull requests

3 participants