-
Notifications
You must be signed in to change notification settings - Fork 113
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
GraphQLServletListener cant be registered in OSGI #164
Comments
Added a check and fix in 7.5.1. |
I suppose the nullpointer does not occur anymore, but the exception was symptomatic of events not occurring in the right order. You will still be unable to register a GraphQLServletListener using OSGI. |
Have you verified this with a local build after this change? Because with this fix the listener should be added to the configuration once that’s initialized.
Groeten,
Michiel
…________________________________
Van: Maarten Blokker <notifications@github.com>
Verzonden: Saturday, June 22, 2019 10:53:25 AM
Aan: graphql-java-kickstart/graphql-java-servlet
CC: Michiel Oliemans; State change
Onderwerp: Re: [graphql-java-kickstart/graphql-java-servlet] GraphQLServletListener cant be registered in OSGI (#164)
I suppose the nullpointer does not occur anymore, but the exception was symptomatic of events not occurring in the right order. You will still be unable to register a GraphQLServletListener using OSGI.
—
You are receiving this because you modified the open/close state.
Reply to this email directly, view it on GitHub<#164?email_source=notifications&email_token=ADHEKQD46C4D3LHW7KEXNCTP3XSALA5CNFSM4HGH6Z62YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODYKESGY#issuecomment-504645915>, or mute the thread<https://github.com/notifications/unsubscribe-auth/ADHEKQA2EYMLDKDIE7ERR7DP3XSALANCNFSM4HGH6Z6Q>.
|
I have not verified correct behaviour yet, just made the conclusion based of the changes im seeing. I'l try to run some local tests somewhere next weeks, thanks for the effort! |
Im trying to register a GraphQLServletListener so i can set some headers on the response. When i register a listener in OSGI, the following code should pick it up and add it to the configuration:
OsgiGraphQLHttpServlet.java
which then calls:
AbstractGraphQLHttpServlet
However, the configuration field is not initialised yet until the servlet gets registered. So an NPE is thrown.
graphql-java version: 11.0
graphql-java-servlet version: 7.3.3
The text was updated successfully, but these errors were encountered: