swagger-api / swagger-core

Examples and server integrations for generating the Swagger API Specification, which enables easy access to your REST API
http://swagger.io
Apache License 2.0
7.36k stars 2.17k forks source link

NPE exception on /swagger.json service #1099

Closed fenoloco closed 9 years ago

fenoloco commented 9 years ago

If RESOURCE_PACKAGE list not match any of the package classes discovered. A NPE is fired when I request the resource on.../swagger.json

fehguy commented 9 years ago

Which scanner are you using? web.xml, BeanConfig, etc? And which swagger version?

fenoloco commented 9 years ago

I'm using BeanConfig.

2015-05-23 17:45 GMT-03:00 Tony Tam notifications@github.com:

Which scanner are you using? web.xml, BeanConfig, etc?

— Reply to this email directly or view it on GitHub https://github.com/swagger-api/swagger-core/issues/1099#issuecomment-104943648 .

fehguy commented 9 years ago

OK please try develop_2.0, which is available on 1.5.3-M2-SNAPSHOT via sonatype oss. I've added a unit test and this is not giving an error

webron commented 9 years ago

@fenoloco - have you had a chance to test it?

fenoloco commented 9 years ago

Not yet, I will try it asap. Fell free to close the ticket and I will open if doesn't work on that version. El may 28, 2015 12:45 PM, "Ron" notifications@github.com escribió:

@fenoloco https://github.com/fenoloco - have you had a chance to test it?

— Reply to this email directly or view it on GitHub https://github.com/swagger-api/swagger-core/issues/1099#issuecomment-106427353 .