Multipart Class Defined Outside Resource Implementation Fails with CNFE "Populator"
See original GitHub issueDescribe the bug
When I define a class meant to be used as a payload in both my REST client and resource I get a CNFE stating that the “populator” could not be located. If I put the class with the resource it works fine.
Referencing a conversation with Michal on Google Groups.
Issue 1 demonstrates the error / Working 2 demonstrates what worked:
reproduce-issue1.zip reproduce-working2.zip
NOTE: Hopefully I did not mix up my reproducers.
Expected behavior
Class defined in a separate module can be used as the payload from the client and in the resource.
Actual behavior
Class not found exception - “Populator” when the payload is defined in another module.
ClassNotFoundException: io.platform.api.publish.FilePackage_generated_populator
How to Reproduce?
Run mvn clean install
on the issue attached above
Output of uname -a
or ver
Ubuntu / WSL
Output of java -version
JDK 11 in the POM / 15 as the default.
GraalVM version (if different from Java)
No response
Quarkus version or git rev
2.0.3.Final
Build tool (ie. output of mvnw --version
or gradlew --version
)
3.8.1
Additional information
I forgot to include the Jandex plugin in my reproducer but my modules all are invoking it (and I see the IDX file). I have also tried adding a beans.xml
but that did not help. Anything but the multipart payload seems to work though when separated between an API jar and the service jar.
Issue Analytics
- State:
- Created 2 years ago
- Comments:9 (8 by maintainers)
I’ll have a look tomorrow
https://github.com/quarkusio/quarkus/pull/19068 is the fix for the current state of afairs