-
-
Notifications
You must be signed in to change notification settings - Fork 164
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
An Implementation is missing at runtime #38
Comments
Youre using the js version of upickle on the jvm
|
No, I do use upickle JVM for my server and upickle JS for my client ! |
Yeah, can't think of anything else. The stack trace is definitely showing
|
Well, from the stacktrace, we have: at upickle.package$.read(package.scala:10) //it is in jvm: jvm/src/main/scala/upickle/json/package.scala, then
at upickle.Types$class.read(Types.scala:135) //it is in shared/main/scala/upickle/Types.scala and then
at upickle.json.package$.read(package.scala:20) //it is in js/src/main/scala/upickle/json/package.scala !! So my first call is well to the jvm lib, and then after 2 calls in upickle, we are in js part ... is this behaviour normal !? |
Can you come up with a minimal example without your funky servlet container? I bet when you do the problem will become self evident. |
Closing due to inactivity |
I had similar issue - turns out it is because jvm depends on js, which brings in all dependencies of js to jvm which includes js version of upickle. You can use projectDependencies to explicitly exclude js upickle from the classpath of jvm. |
Hi,
I use upickle through autowire in a scalatra client/server application.
My server depends on JVM stuff (for autowire, upickle, ...) and my client one on JS stuff (for autowire, upickle, ...).
Everything compiles and runs fine, except when I do a request through autowire, I get a weird exeception when upickle reads the JSON data. Is some lib or something is missing ?
Thanks
The text was updated successfully, but these errors were encountered: