RepoJournal
Spring

@spring-projects

Spring Framework, Spring Boot, and the JVM enterprise layer

Pick a date

The Wire · Showcase

SPRING AI FIXES JACKSON SERIALIZATION TRAP, FRAMEWORK TRIMS CRUFT

By RepoJournal · Filed · About Spring

Spring AI patches a critical serialization bug in OpenAI chat models where Optional-wrapped fields crash downstream drivers like Neo4j and MongoDB during metadata serialization.

The OpenAI Java SDK returns Optional-typed fields in AssistantMessage metadata, but Neo4j, MongoDB, and JDBC drivers can't serialize java.util.Optional [1]. Spring AI now unwraps these Optionals before passing them downstream, eliminating a footgun for production systems. Separately, Mistral AI's moderation endpoint can return null values in primitive fields, which Jackson 3's strict `FAIL_ON_NULL_FOR_PRIMITIVES` setting rejects outright [2]. The fix upgrades these to boxed types (Boolean and Double), a small change with big implications for anyone using content moderation. Spring Framework continues housekeeping with dependency bumps to Aalto 1.4, Gson 2.14, and Woodstox 7.2.1 [6], plus removal of deprecated SerializationUtils across the portfolio [4] [5]. PostgreSQL JDBC driver ticked to 42.7.13 across Spring Session [3].

Action items

References

  1. [1] Perform Optional unwrapping in OpenAiChatModel#buildGeneration spring-projects/spring-ai
  2. [2] Handle null fields in Mistral AI moderation `Categories` and `CategoryScores` spring-projects/spring-ai
  3. [3] Bump org.postgresql:postgresql from 42.7.12 to 42.7.13 ↗ spring-projects/spring-session
  4. [4] Add WelcomeController test, fix deprecated SerializationUtils, add Pe… ↗ spring-projects/spring-petclinic
  5. [5] Update due to deprecation warnings spring-projects/spring-framework
  6. [6] Upgrade to Aalto 1.4, Gson 2.14, Woodstox 7.2.1 spring-projects/spring-framework

FAQ

What changed in Spring on July 7, 2026?
Spring AI patches a critical serialization bug in OpenAI chat models where Optional-wrapped fields crash downstream drivers like Neo4j and MongoDB during metadata serialization.
What should Spring teams do about it?
Pull Spring AI Optional unwrapping fix if using OpenAI models with MongoDB, Neo4j, or JDBC backends • Review Mistral AI moderation integration if deployed; null handling now boxed • Upgrade Spring Framework dependencies at next patch cycle
Which Spring repositories shipped on July 7, 2026?
spring-projects/spring-ai, spring-projects/spring-session, spring-projects/spring-petclinic, spring-projects/spring-framework

For your repos

The showcase is a teaser.
Your wire is the product.

Same engine. Different stack. Below: what changes when the wire is yours.

Showcase wire

  • 14 famous open source orgs
  • One wire per day
  • Public, generic
  • Read on the web, when you remember

Your wire

  • Up to 1,500 of your repos - orgs, deps, vendors
  • Morning and evening briefs
  • Action items routed to your team
  • Slack delivery, email, breaking-news CVE alerts

Want a hands-on demo first? Ask a current user for an invite link.