Skip to content

RESTEasy Reactive doesn't support java.util.UUID #31298

Closed

Description

Describe the bug

RESTEasy Reactive cannot serialize java.util.UUID.

IllegalState Form element 'org.acme.UserProfileDataApi$PostUserProfileDataMultipartForm.id' could not be converted to 'String' for REST Client interface 'org.acme.UserProfileDataApi'. A proper implementation of 'javax.ws.rs.ext.ParamConverter' needs to be returned by a 'javax.ws.rs.ext.ParamConverterProvider' that is registered with the client via the @RegisterProvider annotation on the REST Client interface.

I tried to add @PartType(MediaType.TEXT_PLAIN), but it made no difference.

Reproducer: https://github.com/hbelmiro/multipart-reactive-uuid-reproducer

Expected behavior

UUID attribute should be serialized to String.

Actual behavior

A serializer can't be found.

How to Reproduce?

Reproducer: https://github.com/hbelmiro/multipart-reactive-uuid-reproducer

Output of uname -a or ver

Linux fedora 6.1.11-200.fc37.x86_64 #1 SMP PREEMPT_DYNAMIC Thu Feb 9 19:20:24 UTC 2023 x86_64 x86_64 x86_64 GNU/Linux

Output of java -version

openjdk version "19.0.2" 2023-01-17 OpenJDK Runtime Environment Homebrew (build 19.0.2) OpenJDK 64-Bit Server VM Homebrew (build 19.0.2, mixed mode, sharing)

GraalVM version (if different from Java)

No response

Quarkus version or git rev

2.16.3.Final

Build tool (ie. output of mvnw --version or gradlew --version)

Apache Maven 3.8.6 (84538c9988a25aec085021c365c560670ad80f63)

Additional information

No response

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions