-
Notifications
You must be signed in to change notification settings - Fork 148
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
NPEx on unboxing null Boolean in FilterDefDecorator.isAsyncSupported #22406
Comments
|
Edit: updated for local project files +current GF version +current stack trace +sample code location Environment Details
Problem DescriptionCurrently: Request ends with HTTP 500 due to NullPointerException. WEB module deployed in EAR can not configure WebFilter for CDI Conversation Filter (as described in weld docs). As in glassfish/appserver/web/web-glue/src/main/java/com/sun/enterprise/web/deploy/FilterDefDecorator.java Lines 92 to 94 in f9e2dab
decoree.isAsyncSupported returns null (thus NPEx on unboxing).Looks like glassfish/appserver/web/weld-integration/src/main/java/org/glassfish/weld/WeldDeployer.java Lines 504 to 510 in f9e2dab
FilterDefDecorator is not prepared for such case.
Expected: Request completes being successfully WebFiltered. Can be reproduced easily. Similar described at clone project: payara/Payara#1905. Stack trace:
Steps to reproduce
Sample codehttps://github.com/pzrep/gf_22406 Impact of IssueFor application deployed as EAR it is not possible to configure filter chain that includes |
…22871) Fixes #22406 Signed-off-by: Piotrek Zygielo <[email protected]>
Environment Details
Problem Description
Currently: Request ends with HTTP 500 due to NullPointerException.
WEB module deployed in EAR can not configure WebFilter for CDI Conversation Filter (as described in weld docs).
The same WEB module deployed as separate
war
works fine.As in
https://github.com/javaee/glassfish/blob/168ce449c4ea0826842ab4129e83c4a700750970/appserver/web/web-glue/src/main/java/com/sun/enterprise/web/deploy/FilterDefDecorator.java#L116-L118
decoree.isAsyncSupported
returnsnull
.Looks like https://github.com/javaee/glassfish/blob/2dcc0e6fe0990da170385fca6fd0145dd82886bc/appserver/web/weld-integration/src/main/java/org/glassfish/weld/WeldDeployer.java#L528-L534 is not setting this property and
FilterDefDecorator
is not prepared for such case.Expected: Request completes being successfully WebFiltered.
Can be reproduced easily.
Similar described at clone project: payara/Payara#1905.
Stack trace:
Steps to reproduce
war/target/weld_filter_npex-war-1-SNAPSHOT.war
.war
was deployed at (/weld_filter_npex-war-1-SNAPSHOT
).ear/target/weld_filter_npex-ear-1-SNAPSHOT.ear
./weld_filter
).HTTP Status 500 - Internal Server Error
.Sample code
https://github.com/pzygielo/glassfish/tree/filter_weld_issue
Impact of Issue
For application deployed as EAR it is not possible to configure filter chain that includes
CDI Conversation Filter
.The text was updated successfully, but these errors were encountered: