You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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:
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 <[email protected]>
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: