]
Paul Ferraro moved JBEAP-19602 to WFLY-13547:
---------------------------------------------
Project: WildFly (was: JBoss Enterprise Application Platform)
Key: WFLY-13547 (was: JBEAP-19602)
Workflow: GIT Pull Request workflow (was: CDW with loose statuses v1)
Component/s: MP OpenAPI
(was: MP OpenAPI)
Affects Version/s: 20.0.0.Beta1
(was: EAP-XP-1.0.0.GA-CR1)
(was: EAP-XP-1.0.0.GA-CR2)
Smallrye OpenAPI throws java.lang.NullPointerException when
processing JAX-RS resources which define methods acception a SortedSet type parameter
-------------------------------------------------------------------------------------------------------------------------------------------------
Key: WFLY-13547
URL:
https://issues.redhat.com/browse/WFLY-13547
Project: WildFly
Issue Type: Bug
Components: MP OpenAPI
Affects Versions: 20.0.0.Beta1
Reporter: Paul Ferraro
Assignee: Paul Ferraro
Priority: Major
Deployment of WAR containing JAX-RS resource classes which define methods accepting
parameters of type {{SortedSet}} will fail with a NPE.
{{SortedSet}} is allowed by JAX-RS spec:
https://docs.oracle.com/javaee/7/api/javax/ws/rs/FormParam.html
The following stack trace represents the output of a deployment failure when an attempt
to deploy a WAR with such a resource:
{code}
Caused by: java.lang.NullPointerException
at
io.smallrye.openapi.runtime.scanner.ParameterProcessor.setSchemaProperties(ParameterProcessor.java:637)
at
io.smallrye.openapi.runtime.scanner.ParameterProcessor.getFormBodyContent(ParameterProcessor.java:605)
at
io.smallrye.openapi.runtime.scanner.ParameterProcessor.process(ParameterProcessor.java:404)
at
io.smallrye.openapi.runtime.scanner.OpenApiAnnotationScanner.processJaxRsMethod(OpenApiAnnotationScanner.java:577)
at
io.smallrye.openapi.runtime.scanner.OpenApiAnnotationScanner.lambda$processJaxRsResourceClass$0(OpenApiAnnotationScanner.java:422)
...
{code}
The failure was initially noticed while testing RESTEasy against EAP XP 1.0.0 CR1 and
CR2.