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

ClasscastException when using MultipartForm in dev mode #16794

Closed
tqvarnst opened this issue Apr 26, 2021 · 0 comments · Fixed by #16795
Closed

ClasscastException when using MultipartForm in dev mode #16794

tqvarnst opened this issue Apr 26, 2021 · 0 comments · Fixed by #16795
Assignees
Labels
Milestone

Comments

@tqvarnst
Copy link
Contributor

Describe the bug

This problem is only related to running Quarkus in dev mode.

When using MultipartForm data in a post request during dev mode after a reload Quarkus throws a ClassCastException. Restarting Dev mode fixes the issue

Expected behavior

Hotreload of MutlipartForm object should be possible.

Actual behavior

ClassCastException

To Reproduce

See https://github.com/tqvarnst/reproducer

Configuration

# No config required to reproduce

Screenshots

image

Environment (please complete the following information):

Output of uname -a or ver

Darwin tqvarnst-mac 20.3.0 Darwin Kernel Version 20.3.0: Thu Jan 21 00:07:06 PST 2021; root:xnu-7195.81.3~1/RELEASE_X86_64 x86_64

Output of java -version

openjdk version "11.0.8" 2020-07-14
OpenJDK Runtime Environment AdoptOpenJDK (build 11.0.8+10)
OpenJDK 64-Bit Server VM AdoptOpenJDK (build 11.0.8+10, mixed mode)

GraalVM version (if different from Java)

Just JVM mode, no GraalVM required to reproduce

Quarkus version or git rev

1.13.2.Final

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

Apache Maven 3.6.3 (cecedd343002696d0abb50b32b541b8a6ba2883f)
Maven home: /Users/tqvarnst/.m2/wrapper/dists/apache-maven-3.6.3-bin/1iopthnavndlasol9gbrbg6bf2/apache-maven-3.6.3
Java version: 11.0.8, vendor: AdoptOpenJDK, runtime: /Users/tqvarnst/.sdkman/candidates/java/11.0.8.hs-adpt
Default locale: en_SE, platform encoding: UTF-8
OS name: "mac os x", version: "10.16", arch: "x86_64", family: "mac"

Additional context

N/A

@tqvarnst tqvarnst added the kind/bug Something isn't working label Apr 26, 2021
@geoand geoand self-assigned this Apr 26, 2021
geoand added a commit to geoand/quarkus that referenced this issue Apr 26, 2021
geoand added a commit that referenced this issue Apr 26, 2021
Fix dev-mode CL issue with multipart form handling
@quarkus-bot quarkus-bot bot added this to the 2.0 - main milestone Apr 26, 2021
@gsmet gsmet modified the milestones: 2.0 - main, 1.13.3.Final Apr 26, 2021
gsmet pushed a commit to gsmet/quarkus that referenced this issue Apr 26, 2021
gsmet pushed a commit to gsmet/quarkus that referenced this issue Apr 26, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants