Replies: 10 comments 13 replies
-
|
@gsviteri Could you also provide a minimal testcase to reproduce the issue? My version doesn't seem to work. |
Beta Was this translation helpful? Give feedback.
-
|
Edited: adding the json that comes from MongoDB |
Beta Was this translation helpful? Give feedback.
-
|
Thanks @JooHyukKim. Same error using snapshot version. My test is MockMVC using embedded Mongo. The full test scenario is going to be hard to publish. I will see if I can isolate. ANy more help will be appreciated ! |
Beta Was this translation helpful? Give feedback.
-
|
Instead of discussion this probably would have made sense as an issue. But that's fine. Just one quick question to make sure I understand this:
If so, yes, that's a bug and hopefully easy enough to test. |
Beta Was this translation helpful? Give feedback.
-
|
Might be something fiddly before Mongo tries to decode it Here are all the classes from the moment i |
Beta Was this translation helpful? Give feedback.
-
|
From the screenshot, I highlighted the decode statement and the following statement is |
Beta Was this translation helpful? Give feedback.
-
|
Beta Was this translation helpful? Give feedback.
-
|
just updated the original post with the previous version we were using |
Beta Was this translation helpful? Give feedback.
-
|
Sound good. Will give the guys a poke and perhaps update here as well once I hear from them. |
Beta Was this translation helpful? Give feedback.
-
|
@gsviteri @cowtowncoder FYI: I opened a PR for mongojack that fixes the issue. https://github.com/mongojack/mongojack/pull/241/files#diff-f14e52179b3d88fba38d6828d8fa3f6210c5bc1d41dc27937402e720b5846b52 I had to add a custom implementation for |
Beta Was this translation helpful? Give feedback.





Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi All,
After upgrading from
2.11.3to2.15.0, we are now having issues on the deserialisation where double values are deliberately marshalled as empty string.Few areas that we already covered:
[Source: (String); byte offset: #UNKNOWN](version that works is[Source: (String)"type"; line: -1, column: -1])VALUE_NUMBER_FLOATMapperFeature.ALLOW_COERCION_OF_SCALARS, same error I'm afraidobjectMapper.setSerializationInclusion(JsonInclude.Include.NON_NULL), no difference at allError Log
.ContinuousMultiSessionMetric class is a subtype of MultiSessionMetric. Here's how they are declared
{ "_id" : ObjectId("6455799cc5631e7c84edf0a9"), "lastSystemEventId" : "EventID1", "sessionId" : "session1", "biometric" : { "metrics" : [ { "metrics" : [ { "value" : 2299.9, "mean" : 2299.9, "standardDeviation" : 0.0, "name" : "Event/Received Time Difference", "desc" : "The time difference between events happening and processing them for this session", "normalisedValue" : 0.0, "type" : "continuous" }, { "value" : "Chrome", "mode" : "Chrome", "name" : "Browser", "desc" : "Browser used for this session", "normalisedValue" : 0.0, "type" : "discrete" }, { "value" : "MacOS", "mode" : "MacOS", "name" : "OS", "desc" : "OS used for this session", "normalisedValue" : 0.0, "type" : "discrete" }, { "name" : "Country", "desc" : "Country in which this session took place", "normalisedValue" : 0.0, "type" : "discrete" }, { "value" : "en-GB", "mode" : "en-GB", "name" : "Localisation", "desc" : "Locale setting of the computer used for this session, which is a set of parameters defining language, region, etc", "normalisedValue" : 0.0, "type" : "discrete" }, { "value" : "1440x900", "mode" : "1440x900", "name" : "Screen Resolution", "desc" : "Screen resolution of the computer used for this session", "normalisedValue" : 0.0, "type" : "discrete" } ], "name" : "System Features", "desc" : "These features relate to the computer used for the session." }, { "metrics" : [ { "value" : 8888.8, "mean" : 8888.8, "standardDeviation" : 0.0, "name" : "Average Click Duration", "desc" : "Average time duration of a mouse click", "normalisedValue" : 0.0, "type" : "continuous" }, { "value" : 8888.8, "mean" : 8888.8, "standardDeviation" : 0.0, "name" : "Average Double Click Latency", "desc" : "Average time interval between double left clicks", "normalisedValue" : 0.0, "type" : "continuous" }, { "value" : 8888.8, "mean" : 8888.8, "standardDeviation" : 0.0, "name" : "Left Clicks", "desc" : "Total number of left clicks", "normalisedValue" : 0.0, "type" : "continuous" }, { "value" : 8888.8, "mean" : 8888.8, "standardDeviation" : 0.0, "name" : "Right Clicks", "desc" : "Total number of right clicks", "normalisedValue" : 0.0, "type" : "continuous" } ], "name" : "Mouse Features", "desc" : "These features relate to the mouse use of the user during the session." }, { "metrics" : [ { "value" : 8888.8, "mean" : 8888.8, "standardDeviation" : 0.0, "name" : "Typing Speed", "desc" : "Average typing speed", "normalisedValue" : 0.0, "type" : "continuous" }, { "value" : 8888.8, "mean" : 8888.8, "standardDeviation" : 0.0, "name" : "Average Key Press Duration", "desc" : "Average time duration when a key is pressed down", "normalisedValue" : 0.0, "type" : "continuous" }, { "value" : 8888.8, "mean" : 8888.8, "standardDeviation" : 0.0, "name" : "Average Key Latency", "desc" : "Average time gap between the release of the last key and press of the next key", "normalisedValue" : 0.0, "type" : "continuous" }, { "value" : 8888.8, "mean" : 8888.8, "standardDeviation" : 0.0, "name" : "Key Overlap Time", "desc" : "Total duration of the time when the next key or keys are pressed down while the previous key has not been released", "normalisedValue" : 0.0, "type" : "continuous" }, { "value" : 8888.8, "mean" : 8888.8, "standardDeviation" : 0.0, "name" : "Average Double Key Press Latency", "desc" : "Average time interval between the same key being double pressed", "normalisedValue" : 0.0, "type" : "continuous" }, { "value" : 8888.8, "mean" : 8888.8, "standardDeviation" : 0.0, "name" : "Keyboard Idle Time Percentage", "desc" : "The percentage of time with no keyboard input", "normalisedValue" : 0.0, "type" : "continuous" }, { "value" : 8888.8, "mean" : 8888.8, "standardDeviation" : 0.0, "name" : "Tab Presses", "desc" : "Total number of Tab presses", "normalisedValue" : 0.0, "type" : "continuous" }, { "value" : 8888.8, "mean" : 8888.8, "standardDeviation" : 0.0, "name" : "Left Shift Presses", "desc" : "Total number of left shift presses", "normalisedValue" : 0.0, "type" : "continuous" }, { "value" : 8888.8, "mean" : 8888.8, "standardDeviation" : 0.0, "name" : "Right Shift Presses", "desc" : "Total number of right shift presses", "normalisedValue" : 0.0, "type" : "continuous" }, { "value" : 8888.8, "mean" : 8888.8, "standardDeviation" : 0.0, "name" : "Caps Lock Presses", "desc" : "Total number of Caps Lock presses", "normalisedValue" : 0.0, "type" : "continuous" }, { "value" : 8888.8, "mean" : 8888.8, "standardDeviation" : 0.0, "name" : "Digits", "desc" : "Total number of presses of the digit keys at the top of the alphanumeric section in keyboard", "normalisedValue" : 0.0, "type" : "continuous" }, { "value" : 8888.8, "mean" : 8888.8, "standardDeviation" : 0.0, "name" : "Numberpad", "desc" : "Total number of numpad key presses", "normalisedValue" : 0.0, "type" : "continuous" }, { "value" : 8888.8, "mean" : 8888.8, "standardDeviation" : 0.0, "name" : "Delete Presses", "desc" : "Total number of Delete key presses", "normalisedValue" : 0.0, "type" : "continuous" }, { "value" : 8888.8, "mean" : 8888.8, "standardDeviation" : 0.0, "name" : "Backspaces", "desc" : "Total number of Backspace key presses", "normalisedValue" : 0.0, "type" : "continuous" } ], "name" : "Keyboard Features", "desc" : "These features relate to the keyboard use of the user during the session." }, { "metrics" : [ { "value" : 8888.8, "mean" : 8888.8, "standardDeviation" : 0.0, "name" : "Idle Time Percentage", "desc" : "The percentage of time with no click or keyboard input", "normalisedValue" : 0.0, "type" : "continuous" }, { "value" : 8888.8, "mean" : 8888.8, "standardDeviation" : 0.0, "name" : "Average Time Between Text Fields", "desc" : "Average time interval between the last keyboard input in a text field and the first one in the next text field", "normalisedValue" : 0.0, "type" : "continuous" }, { "value" : 8888.8, "mean" : 8888.8, "standardDeviation" : 0.0, "name" : "Autofill Uses", "desc" : "The number times Autofill has been used to fill out a form", "normalisedValue" : 0.0, "type" : "continuous" }, { "value" : 8888.8, "mean" : 8888.8, "standardDeviation" : 0.0, "name" : "Autofill Cancels", "desc" : "The number times Autofill has been canceled", "normalisedValue" : 0.0, "type" : "continuous" } ], "name" : "Miscellaneous Features", "desc" : "Miscellaneous other features of the user." } ], "contexts" : [ { "name" : "checkout", "alias" : "checkout" } ] }, "context" : "checkout", "tenantId" : "TENANT", "entityId" : "consumer1", "entityType" : "consumer", "channel" : "JSC", "isGlobal" : false, "global" : false } { "_id" : ObjectId("6455799fc5631e7c84edf0aa"), "lastSystemEventId" : "EventID2", "sessionId" : "session2", "biometric" : { "metrics" : [ { "metrics" : [ { "value" : "UNKNOWN", "mode" : "UNKNOWN", "name" : "Charging", "desc" : "The charging status during the session", "normalisedValue" : 0.0, "type" : "discrete" } ], "name" : "Device Features", "desc" : "These features relate to the mobile device used for the session" }, { "metrics" : [ { "value" : 8888.8, "mean" : 8888.8, "standardDeviation" : 0.0, "name" : "Keystroke Distribution", "desc" : "The distribution of times between individual keystrokes", "normalisedValue" : 0.0, "type" : "continuous" }, { "value" : 8888.8, "mean" : 8888.8, "standardDeviation" : 0.0, "name" : "Fraction of Time Typing", "desc" : "The fraction of the total session time which was spent typing", "normalisedValue" : 0.0, "type" : "continuous" }, { "value" : 8888.8, "mean" : 8888.8, "standardDeviation" : 0.0, "name" : "Typing Speed", "desc" : "Average typing speed", "normalisedValue" : 0.0, "type" : "continuous" }, { "value" : 8888.8, "mean" : 8888.8, "standardDeviation" : 0.0, "name" : "Time in Text Fields", "desc" : "The total time spent typing in text fields", "normalisedValue" : 0.0, "type" : "continuous" }, { "value" : 8888.8, "mean" : 8888.8, "standardDeviation" : 0.0, "name" : "Backspaces", "desc" : "Total number of Backspace key presses", "normalisedValue" : 0.0, "type" : "continuous" } ], "name" : "Typing Features", "desc" : "These features relate to the typing behaviour of the user" }, { "metrics" : [ { "value" : "-0.0", "mode" : "0.0", "name" : "Field Filling Sequence", "desc" : "The sequence in which the user interacted with text fields", "normalisedValue" : -0.0, "type" : "discrete" }, { "value" : "-0.0", "mode" : "0.0", "name" : "View Sequence", "desc" : "The sequence in which the user visited views within the app", "normalisedValue" : -0.0, "type" : "discrete" } ], "name" : "Navigation Features", "desc" : "These features relate to the sequence in which the user navigates elements of the app" } ], "contexts" : [ { "name" : "checkout", "alias" : "checkout" } ] }, "context" : "checkout", "tenantId" : "TENANT", "entityId" : "consumer1", "entityType" : "consumer", "channel" : "IOS", "isGlobal" : false, "global" : false }So, this is how data are displayed when using Jackson:2.10.0

... And this is how it is displayed after upgrading

Any help will be massively appreciate here.
Cheers
Beta Was this translation helpful? Give feedback.
All reactions