Comments (4)
Not sure why this is happening for you either; line number in the error message would imply that I'm getting a null JsonGenerator in the serialize method, which seems unlikely.
But without more context it will be hard to reproduce your issue. Can you provide a complete, minimal test case that demonstrates the error?
from jackson-module-scala.
Took a quick stab at a test but it passes fine: devth@128298a
I'll investigate more to figure out what's different in my codebase. By the way, I noticed the version on the repo is > 2, but the latest on Maven Central is 1.9.3. Should we be using 2 yet?
from jackson-module-scala.
The groupId changed to align with other jackson modules for the 2.x series.
You should use the 2.x version as long as you are not integrating with another system that depends on Jackson 1.9, such as Jersey.
from jackson-module-scala.
The problem was in my code. getScore
could potentially return Some(null).
Thanks for the info on 2.x.
from jackson-module-scala.
Related Issues (20)
- investigate major binary compatibility regressions caused by jackson-databind 2.15.0-rc3-SNAPSHOT HOT 4
- Release 2.15.0-rc3 HOT 3
- Release 2.15.0 (final) HOT 2
- Update 2.15 release notes with Scala changes HOT 2
- Release 2.14.3 HOT 2
- Upgrade to Scala 3.3.0
- Release 2.15.1 HOT 1
- support deserializing Scala Iterators HOT 1
- Release 2.15.2 HOT 2
- Dependency on .class and .tasty files causes footprint bloat for GraalVM NativeImage HOT 5
- Failure to deserialise scala Map when default typing is activated HOT 10
- DefaultScalaModule breaks deserialization of java classes HOT 13
- 2.16 jackson-databind deserialization changes have broken support for the scala.util.Either class HOT 1
- Collection of case classes deserialized as Collection of Map2 HOT 4
- Release 2.15.3 HOT 4
- Release 2.16.0-rc1 HOT 1
- error when deserializing yaml HOT 2
- Release 2.16.0 HOT 2
- release jackson-module-scala v2.12 for Scala 2.10 HOT 2
- Release 2.16.1 HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from jackson-module-scala.