-
Notifications
You must be signed in to change notification settings - Fork 14
Timestamp error #26
Comments
Handle what? Handle Vert.x changing what objects are natively allowed to be serialised I'll have a look to see if there's an easy solution to this, but can't As a workaround, you could change your SQL so it returns a strong
|
Thank you for your quick reply. |
Not sure I can though. I can change it to a string in the persister, but people would need to know With v3, this can probably be done with the new proxy methods, but these
|
Hi
It was all good with the combination of:
I have updated vert.x:
Then I am getting this error:
[com.bloidonia
mod-jdbc-persistor2.1.2-com.bloidonia.vertx.mods.JdbcProcessor-1715900756] Caught error with SELECTorg.vertx.java.core.VertxException: Cannot have objects of class class java.sql.Timestamp in JSON
at org.vertx.java.core.json.JsonElement.convertMap(JsonElement.java:60)
at org.vertx.java.core.json.JsonObject.(JsonObject.java:56)
at org.vertx.java.core.json.JsonObject.(JsonObject.java:45)
at com.bloidonia.vertx.mods.JsonUtils.listOfMapsToJsonArray(JsonUtils.java:61)
at com.bloidonia.vertx.mods.JdbcProcessor$4.process(JdbcProcessor.java:277)
...
To be honest this is frustrating because the only thing I did was upgrading vert.x.
Would it be possible for your persister to handle this so clients don't have to change their code, please?
Thank you.
Uppsax
The text was updated successfully, but these errors were encountered: