-
Notifications
You must be signed in to change notification settings - Fork 7
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
Can't configure JSON Mapper results in IllegalStateException message == null #1
Comments
can you provide a small project that reproduces the issue ? |
I've just added a vertx-retrofit branch to this example project which reproduces the issue. If you'd like something smaller, let me know. |
I will give a try soon and let you know @AshleyByeUK |
the build fails for me
if you can tell me how to reproduce the issue precisely it would be great |
I think it’s already been solved, as per answer to discussion on [stackoverflow](https://stackoverflow.com/questions/44722980/retrofit-vertx-with-rxjava2-in-kotlin-illegalstateexception-message-null/44756780#44756780).
From: Julien Viet <notifications@github.com>
Reply-To: vietj/retrofit-vertx <reply@reply.github.com>
Date: Monday, 26 June 2017 at 06:58
To: vietj/retrofit-vertx <retrofit-vertx@noreply.github.com>
Cc: DELETED EMAIL, Mention <mention@noreply.github.com>
Subject: Re: [vietj/retrofit-vertx] Can't configure JSON Mapper results in IllegalStateException message == null (#1)
the build fails for me
* What went wrong:
Execution failed for task ':compileKotlin'.
Could not resolve all dependencies for configuration ':compileClasspath'.
Could not find io.vertx:vertx-rxjava2:3.5.0-SNAPSHOT.
Searched in the following locations:
https://jcenter.bintray.com/io/vertx/vertx-rxjava2/3.5.0-SNAPSHOT/maven-metadata.xml
https://jcenter.bintray.com/io/vertx/vertx-rxjava2/3.5.0-SNAPSHOT/vertx-rxjava2-3.5.0-SNAPSHOT.pom
https://jcenter.bintray.com/io/vertx/vertx-rxjava2/3.5.0-SNAPSHOT/vertx-rxjava2-3.5.0-SNAPSHOT.jar
http://dl.bintray.com/kotlin/ktor/io/vertx/vertx-rxjava2/3.5.0-SNAPSHOT/maven-metadata.xml
http://dl.bintray.com/kotlin/ktor/io/vertx/vertx-rxjava2/3.5.0-SNAPSHOT/vertx-rxjava2-3.5.0-SNAPSHOT.pom
http://dl.bintray.com/kotlin/ktor/io/vertx/vertx-rxjava2/3.5.0-SNAPSHOT/vertx-rxjava2-3.5.0-SNAPSHOT.jar
file:/Users/.m2/repository/io/vertx/vertx-rxjava2/3.5.0-SNAPSHOT/maven-metadata.xml
file:/Users/.m2/repository/io/vertx/vertx-rxjava2/3.5.0-SNAPSHOT/vertx-rxjava2-3.5.0-SNAPSHOT.pom
file:/Users/.m2/repository/io/vertx/vertx-rxjava2/3.5.0-SNAPSHOT/vertx-rxjava2-3.5.0-SNAPSHOT.jar
Required by:
project :
Could not find com.github.aesteve:vertx-sse:0.1.
Searched in the following locations:
https://jcenter.bintray.com/com/github/aesteve/vertx-sse/0.1/vertx-sse-0.1.pom
https://jcenter.bintray.com/com/github/aesteve/vertx-sse/0.1/vertx-sse-0.1.jar
http://dl.bintray.com/kotlin/ktor/com/github/aesteve/vertx-sse/0.1/vertx-sse-0.1.pom
http://dl.bintray.com/kotlin/ktor/com/github/aesteve/vertx-sse/0.1/vertx-sse-0.1.jar
file:/Users/.m2/repository/com/github/aesteve/vertx-sse/0.1/vertx-sse-0.1.pom
file:/Users/.m2/repository/com/github/aesteve/vertx-sse/0.1/vertx-sse-0.1.jar
Required by:
project :
if you can tell me how to reproduce the issue precisely it would be great
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub<#1 (comment)>, or mute the thread DELETED LINK
|
I just knocked together the following, which reproduces the issue:
Wondering if it is answered by this discussion on StackOverflow? (I'm using v 1.0.1) |
can you try with the version that was released today ? |
I get a different exception when running the example from a previous comment:
That's with the following dependencies:
|
However, I just had a thought and tried it with a non-data class and it kind of works, but you lose the benefits of a data class, such as automatic
If I create a
I guess that's more of a Java/Kotlin interop thing than a library issue though. Might be worth a note in the README for any other prospective Kotlin users? |
do you mind providing such note ? |
as PR |
I get the following exception when trying to use retrofit-vertx:
This is from the following code (note that exception is the same whether I try to use Moshi or configure Jackson):
However, if I remove
.callFactory(VertxCallFactory(client))
and in this case just use Moshi, I get my JSON as expected.Is it possible to configure the JSON mapper being used? Or is this error cause by some other issue?
The text was updated successfully, but these errors were encountered: