Skip to content

JsonParser null #3472

@StillLutto

Description

@StillLutto

Bug Report

Hi, it's me again 👋 (recently made a similar post)

Current Behavior

Simply put, the JsonParser gotten from the ClientOptions, the reactive API returns null or even try to copy-paste the default JSON_PARSER from ClientOptions.Builder:

// Attempt #1
println(client.options.jsonParser) // null

// Attempt #2
println(connection.reactive().jsonParser) // null

// Attempt #3
val services: Iterator<JsonParser> = ServiceLoader.load(JsonParser::class.java).iterator()
val result = if (services.hasNext()) services.next() else null
println(result) // null

I'm not well versed in Java's SPI, but the issue seems to be related to that. Futhermore, this is an issue that started happening recently, so I doubt that's the my Gradle environment is the problem, although it could still be. Any ideas?

Environment

Given that I use all of these with Lettuce, this should all be somewhat useful:

api("io.lettuce:lettuce-core:6.8.1.RELEASE")
api("com.fasterxml.jackson.core:jackson-databind:2.20.0")
runtimeOnly("org.jetbrains.kotlinx:kotlinx-coroutines-core-jvm:1.10.2")
api("org.jetbrains.kotlinx:kotlinx-coroutines-core:1.10.2")
api("org.jetbrains.kotlinx:kotlinx-coroutines-reactor:1.10.2")

With a Redis version of 8.2.0-alpine (docker).

Metadata

Metadata

Assignees

No one assigned

    Labels

    status: feedback-reminderWe've sent a reminder that we need additional information before we can continuestatus: waiting-for-feedbackWe need additional information before we can continue

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions