-
Notifications
You must be signed in to change notification settings - Fork 183
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
NPE in Dropwizard 0.8.0, 0.8.1 #52
Comments
Also seeing the same thing. I tracked it down to an upstream bug last week, but can't find it anymore. Edit: Edit2:
Not sure why it's null though... |
@clamothe I don't think this is a |
Unfortunately I don't have time to look at this again right now. However if it's helpful, one of my sub-resources intentionally does not have a The error I received was from Swagger's ApiListingResource returning no Path. |
This issue should not happen anymore in a future dropwizard release: dropwizard/dropwizard#1067 |
@esiqveland I am facing the same issue with BeanConfig.java:223 file, did you manage to solve this? |
No, but I have not had the time to try it again since I found it didn't work. I downgraded to previous dropwizard-swagger. |
Which version is that? does it work with dropwizard 0.8.1? |
Worked with 0.6 thanks @esiqveland |
@thiagomoretto >>Please check if all of your resources have the @path annotation at class-level. |
apiListingResource.getPath() returns null in some scenarios, resulting in a NPE in Dropwizard code. Tested with dropwizard-swagger 0.7.0 and Dropwizard 0.8.0 and 0.8.1.
dropwizard-swagger 0.6.0 works fine.
The text was updated successfully, but these errors were encountered: