Skip to content
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

wiremock-jetty12: NullPointerException within WireMockHandlerDispatchingServlet (similar to #1224) #2697

Open
finalchild opened this issue Apr 26, 2024 · 1 comment
Labels

Comments

@finalchild
Copy link

finalchild commented Apr 26, 2024

Proposal

Using wiremock-jetty12. Doesn't happen in wiremock-standalone.

After the first test (that is, mockServer.start() -> stubFor() -> resetAll() -> stop() -> start() -> stubFor()), WireMockHandlerDispatchingServlet fails to initialize requestHandler to non-null, making the requests return 500 from second tests onward.

requestHandler = (RequestHandler) context.getAttribute(handlerClassName);

This returns null.

Reproduction steps

I'm too busy debugging all the issues from upgrading our dependencies right now. I'll try to provide minimal reproduction code soon.

References

No response

@finalchild finalchild added the bug label Apr 26, 2024
@tomakehurst
Copy link
Member

Thanks for reporting. Will await the repro case.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants