Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fish 10036 class cast ex deserializing validation instance p6 #7105

Conversation

luiseufrasio
Copy link
Contributor

Description

When attempting to serialize and deserialize an instance of the jakarta.validation.ConstraintViolation class on a Jakarta application, the server runtime will trigger a java.lang.ClassCastException mentioning that an instance of org.hibernate.validator.constraints.CompositionType cannot be assigned to a field of the same class.

Important Info

Blockers

None

Testing

New tests

None

Testing Performed

  1. Build Payara Community
  2. Start Payara Server domain and deploy the WAR artefact (manual-validator-app-p6.war) attached at: https://payara.atlassian.net/browse/FISH-10036
  3. Test the application’s REST endpoint:
    curl "http://localhost:8080/manual-validator-app/api/vehicle?name=Lewis"

The operation should work correctly and print 200 http code with the results

Testing Environment

Zulu JDK 11 on Windows 11 with Maven 3.9.0

Documentation

None

Notes for Reviewers

None

Copy link
Contributor

@breakponchito breakponchito left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, I already tested and now the issue is not appearing during execution of the reproducer

@luiseufrasio luiseufrasio merged commit 0156e77 into payara:main Dec 5, 2024
1 check passed
Pandrex247 pushed a commit to Pandrex247/Payara that referenced this pull request Dec 5, 2024
…t-ex-deserializing-validation-instance-p6

Fish 10036 class cast ex deserializing validation instance p6
Pandrex247 pushed a commit that referenced this pull request Dec 9, 2024
…eserializing-validation-instance-p6

Fish 10036 class cast ex deserializing validation instance p6
Pandrex247 added a commit to Pandrex247/Payara that referenced this pull request Dec 9, 2024
…lass-cast-ex-deserializing-validation-instance-p6"

This reverts commit 0156e77, reversing
changes made to 26188ec.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants